/* IMPROVED NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 27, 35, 0.95);
    backdrop-filter: blur(20px); /* Increased blur for better glass effect */
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.3s ease, background 0.3s ease; /* Smooth scroll effect */
}

/* Shrink nav on scroll */
nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 27, 35, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem; /* Reduced for better mobile */
    display: flex;
    align-items: center;
    gap: 2rem; /* Reduced gap */
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease; /* Add hover effect */
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo:hover {
    transform: scale(1.05); /* Subtle hover zoom */
}

.logo img {
    height: 40px; /* Slightly smaller */
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

nav.scrolled .logo img {
    height: 32px; /* Shrink on scroll */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800; /* Bolder */
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-links {
    display: flex;
    gap: 2rem; /* Better spacing */
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1; /* Take available space */
    justify-content: center; /* Center the nav links */
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

/* Animated underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--secondary);
}

/* CTA Button */
.nav-cta {
    flex-shrink: 0; /* Prevent button from shrinking */
}

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 255, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--secondary);
}

/* IMPROVED HERO SECTION */
.hero {
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(0, 82, 255, 0.15) 0%,
        rgba(0, 212, 170, 0.08) 30%,
        transparent 70%
    );
    animation: pulse 8s ease-in-out infinite;
}

/* Add secondary glow */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(0, 212, 170, 0.1) 0%,
        transparent 60%
    );
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out; /* Entrance animation */
}

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive sizing */
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em; /* Tighter spacing for large text */
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem); /* Responsive sizing */
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both; /* Delayed entrance */
}

.secondary-button {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 255, 0.3);
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .nav-container {
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    .logo {
        margin-left: 0;
    }
    
    .logo img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 27, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .nav-cta {
        order: -1; /* Move CTA before hamburger */
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 1.5rem 3rem;
    }
    
    h1 {
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* SCROLL BEHAVIOR (add to your JS) */
/* 
window.addEventListener('scroll', () => {
    const nav = document.querySelector('nav');
    if (window.scrollY > 50) {
        nav.classList.add('scrolled');
    } else {
        nav.classList.remove('scrolled');
    }
});

// Mobile menu toggle
const mobileToggle = document.querySelector('.mobile-menu-toggle');
const navLinks = document.querySelector('.nav-links');

mobileToggle.addEventListener('click', () => {
    navLinks.classList.toggle('active');
    mobileToggle.innerHTML = navLinks.classList.contains('active') ? '✕' : '☰';
});
*/