/* Google Fonts - Optional, choose your preferred font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-dark: #0f0f1b; /* Dark background for header, footer, feature cards */
    --secondary-dark: #1a1a2e; /* General dark background */
    --tertiary-dark: #21213f; /* Slightly lighter dark for feature section */
    --golden-color: #ffd700; /* Golden accent color */
    --light-text: #e0e0e0; /* Light text color */
    --muted-text: #aaaaaa; /* Muted text color */
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif; /* A modern, clean font */
    margin: 0;
    padding: 0;
    background-color: var(--secondary-dark);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-dark);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between; /* Ensures logo is left, nav links are right */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo span {
    font-family: 'Playfair Display', serif; /* Elegant font for brand name */
    font-size: 1.6em;
    font-weight: 700;
    color: var(--golden-color);
    letter-spacing: 1px;
    margin-right: 20px; /* Space between text and icons */
}

/* Social Icons in Header */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icons */
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--golden-color);
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Align items vertically */
}

.nav-links li {
    margin-left: 30px; /* Space between Home and Learn More */
}


.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--golden-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--golden-color);
}

/* Styling for "Learn More" button in header */
.nav-links .btn-learn-more {
    background-color: var(--golden-color);
    color: var(--primary-dark);
    padding: 10px 20px; /* Adjust padding as needed */
    border-radius: 50px; /* Pill-shaped */
    font-weight: bold;
    font-size: 0.9em; /* Slightly smaller than main button */
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Essential for padding and transform */
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3); /* Subtle shadow */
    /* margin-left: 15px; This is now controlled by li margin-left */
}

.nav-links .btn-learn-more:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    color: var(--primary-dark); /* Ensure text color remains dark on hover */
}

/* Remove underline for .btn-learn-more */
.nav-links .btn-learn-more::after {
    display: none;
}


/* Hamburger for mobile */
.hamburger {
    display: none; /* Hidden by default */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--light-text);
    margin-left: 20px; /* Space from menu items */
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero_background.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    overflow: hidden; /* For particle effect */
}

/* Particle background - Optional stylistic element */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/particle_overlay.png'); /* A subtle particle texture */
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above particles */
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5em; /* Larger, more impactful */
    color: var(--golden-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); /* Subtle glow */
}

.hero-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: var(--light-text);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted-text);
}

.btn-join {
    background-color: var(--golden-color);
    color: var(--primary-dark);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px; /* Pill-shaped button */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Allows padding and transform */
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-join:hover {
    background-color: #e6c200;
    transform: translateY(-3px); /* Slight lift on hover */
}

/* Features Section */
.features-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    padding: 80px 20px;
    background-color: var(--tertiary-dark);
}

.feature-item {
    text-align: center;
    background-color: var(--primary-dark);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 300px; /* Fixed width for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.feature-item .icon-golden {
    font-size: 3.5em; /* Larger icons */
    color: var(--golden-color);
    margin-bottom: 25px;
    display: block; /* Ensures margin works correctly */
}

.feature-item h3 {
    font-size: 1.8em;
    color: var(--golden-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--muted-text);
    font-size: 1.05em;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: var(--muted-text);
    position: relative;
}

footer p {
    margin: 5px 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        flex-basis: 100%; /* Take full width on small screens */
        justify-content: center; /* Center the logo and icons */
        margin-bottom: 10px; /* Space below on mobile */
    }

    .logo span {
        margin-right: 15px; /* Adjust spacing on mobile */
    }

    .social-icons {
        margin-left: 15px; /* Adjust spacing on mobile */
    }

    .nav-links {
        display: none; /* Hide nav links by default on mobile */
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-dark);
        position: absolute;
        top: auto; /* Remove fixed top */
        bottom: 0; /* Position below header */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transform: translateY(100%); /* Start off-screen */
        transition: transform 0.3s ease-out;
    }

    .nav-links.active {
        display: flex; /* Show when active */
        transform: translateY(0); /* Slide in */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    /* Adjust btn-learn-more for mobile */
    .nav-links .btn-learn-more {
        margin: 10px auto; /* Center button in mobile menu */
    }

    .hamburger {
        display: block; /* Show hamburger icon */
        order: 1; /* Ensure hamburger is on the right */
        margin-left: auto; /* Push to right */
        align-self: flex-start; /* Align to top */
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section h2 {
        font-size: 1.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .feature-item {
        width: 80%; /* Make feature items wider on mobile */
        max-width: 400px; /* Limit max width */
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.3em;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section h2 {
        font-size: 1.2em;
    }
    .btn-join {
        padding: 12px 25px;
        font-size: 1em;
    }
    .feature-item {
        padding: 30px 20px;
    }
    .feature-item .icon-golden {
        font-size: 3em;
    }
    .feature-item h3 {
        font-size: 1.5em;
    }
}