/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: #0a0a0a;
    color: #d4af37;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* P5.js Background Container */
#p5-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #8b4513;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Special styling for Discord and Vote in navigation */
.nav-discord {
    color: #7289da !important;
}

.nav-discord:hover {
    color: #5865f2 !important;
    text-shadow: 0 0 10px #7289da;
}

.nav-vote-btn {
    background: linear-gradient(135deg, #2d5016, #4a7c2a) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    border: 2px solid #90ee90 !important;
    transition: all 0.3s ease !important;
}

.nav-vote-btn:hover {
    background: linear-gradient(135deg, #4a7c2a, #2d5016) !important;
    box-shadow: 0 4px 15px rgba(144, 238, 144, 0.4) !important;
    transform: translateY(-2px) !important;
}

.nav-vote-btn::after {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #fff;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #2d5016, #4a7c2a);
    color: #fff;
    border: 2px solid #90ee90;
    box-shadow: 0 4px 15px rgba(74, 124, 42, 0.4);
}

.btn-download:hover {
    background: linear-gradient(135deg, #4a7c2a, #2d5016);
    box-shadow: 0 6px 20px rgba(144, 238, 144, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.4); }
    to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.8); }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.rune-symbol {
    font-size: 8rem;
    color: #d4af37;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-20px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(180deg); }
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    text-align: center;
    color: #ffd700;
    margin-bottom: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.9));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-card {
    background: rgba(30, 30, 30, 0.8);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid #8b4513;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.about-card p {
    color: #cccccc;
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(10, 10, 10, 0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    background: rgba(40, 40, 40, 0.8);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #8b4513;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-item:hover {
    transform: scale(1.05);
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));
    text-align: center;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #cccccc;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.system-requirements {
    background: rgba(40, 40, 40, 0.8);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid #8b4513;
    backdrop-filter: blur(10px);
}

.system-requirements h4 {
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.system-requirements ul {
    list-style: none;
    color: #cccccc;
}

.system-requirements li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.system-requirements li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* Footer */
.footer {
    background: rgba(5, 5, 5, 0.95);
    padding: 60px 0 20px;
    border-top: 2px solid #8b4513;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.footer-section p, .footer-section li {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 140px 20px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
