:root {
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --text-dark: #333333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --premium-gradient: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    --bg-gradient: linear-gradient(to right, #eef2f3, #8e9eab);
    --gold-accent: #d4af37; /* Added gold accent for premium feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif; /* Changed default font */
}

body {
    background: var(--light-blue);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 30px; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.2);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; /* Slightly smaller logo */
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    margin-right: 20px; /* Add some space */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* Increased gap for cleaner look */
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem; /* Restored font size */
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-links li:hover > a i {
    transform: rotate(180deg);
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content li a {
    padding: 10px 15px;
    display: block;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #444;
}

.dropdown-content li a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 20px; /* Slide effect */
}

/* Nav CTA Button */
.nav-cta {
    background: var(--premium-gradient);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-login:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-signup {
    background: var(--premium-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Background Animation */
#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e3f2fd 100%);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Background handled by canvas */
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.25); /* More glass effect */
    backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 900px;
    margin: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif; /* Serif font for headings */
    font-size: 4.5rem; /* Larger size */
    font-weight: 800;
    background: linear-gradient(135deg, #004e92 0%, #000428 100%); /* Deeper, richer blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: #444; /* Darker grey for better contrast */
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px; /* Cleaner look */
    animation: fadeInUp 1.2s ease-out;
}

.hero-content .btn-signup { /* Specific style for Hero CTA */
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(90deg, #0056b3 0%, #00c6ff 100%); /* Brighter, engaging gradient */
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

.hero-content .btn-signup:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding-top: 100px;
        overflow-y: auto; /* Enable scrolling if menu is long */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links > li > a {
        font-size: 1.2rem;
        justify-content: center;
        padding: 15px;
    }

    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 86, 179, 0.05);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        width: 100%;
        border-radius: 0;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        max-height: 300px; /* Approximate height */
        padding: 10px 0;
    }

    .dropdown-content li a {
        padding: 10px;
        font-size: 1rem;
    }

    .dropdown > a i {
        margin-left: 10px;
    }

    .nav-links.active {
        right: 0;
    }

    .auth-buttons {
        display: none; /* Can be moved inside nav-links for mobile */
    }
    
    /* Show auth buttons in mobile menu if needed, or keep hidden for simplicity */
    .nav-links .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        width: 100%;
        align-items: center;
    }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e3f2fd 100%);
}

.auth-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-blue);
    font-size: 2rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}
