:root {
    --primary: #00ff88;
    --secondary: #00ccff;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gray: #888888;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background elements */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gradientPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

/* Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    display: none;
}

.cursor.active {
    width: 40px;
    height: 40px;
    border-color: #ff3366;
}

@media (min-width: 1024px) {
    .cursor {
        display: block;
    }
}

/* Sticky Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0; /* slightly reduced padding when sticky */
    transition: background 0.3s, padding 0.3s;
}

/* When scrolled, you can optionally make it more solid */
.site-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Adjust container to allow sticky to work properly */
.container {
    /* existing styles */
    position: relative; /* ensure stacking context */
}

/* Offset anchor links so they aren't hidden behind sticky header */
html {
    scroll-padding-top: 80px; /* adjust based on your nav height */
    scroll-behavior: smooth;
}

/* Optional: adjust nav logo size on scroll (via JS) */
.site-nav.scrolled .nav-logo a {
    font-size: 1.8rem;
}

.nav-logo a {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section - FIXED */
.hero {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xxl) 0; /* Consistent vertical spacing */
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, #ffffff, var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}


/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--light);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xxl) 0; /* Increased top margin */
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    animation: fadeInScale 1s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.8s; }
.stat-item:nth-child(2) { animation-delay: 1s; }
.stat-item:nth-child(3) { animation-delay: 1.2s; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Services */
.services {
    margin-top: var(--spacing-xxl);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInScale 1s ease-out both;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contact */
.contact {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 255, 0.05));
    border-radius: 30px;
    text-align: center;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.contact p {
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

input, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--light);
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.95rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-lg);
    animation: slideDown 0.5s ease-out;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

/* Footer */
.site-footer {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes gradientPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes slideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes float {
    from {
        transform: rotate(var(--r, 0deg)) translateY(100vh) translateX(0);
    }
    to {
        transform: rotate(var(--r, 0deg)) translateY(-100vh) translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        padding: var(--spacing-lg);
        border-radius: var(--border-radius);
        gap: var(--spacing-md);
        backdrop-filter: blur(10px);
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin: var(--spacing-lg) 0;
    }

    .services {
        margin-top: var(--spacing-xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        margin-top: var(--spacing-xl);
        padding: var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .footer-links {
        justify-content: center;
        gap: var(--spacing-md);
    }
}