*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navbar */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link-text {
    transition: color 0.3s ease;
}

/* Hero */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-img {
    transform: scale(1.0);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 30, 42, 0.75) 40%,
        rgba(13, 118, 141, 0.55) 100%
    );
}

.hero-content {
    padding-top: 80px;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat {
    animation: fadeInUp 0.8s ease 0.7s both;
}

/* Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.15);
    animation: float 20s infinite ease-in-out;
}

.particle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.particle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -3%;
    animation-delay: -5s;
    background: rgba(45, 212, 191, 0.1);
}

.particle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 10%;
    animation-delay: -10s;
    background: rgba(45, 212, 191, 0.08);
}

.particle-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 15%;
    animation-delay: -15s;
    background: rgba(45, 212, 191, 0.12);
}

/* Scroll indicator */
.hero-scroll-indicator {
    animation: fadeInUp 0.8s ease 1s both;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(15px, 10px) scale(1.02);
    }
}

/* CTA Section */
.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(13, 118, 141, 0.7) 100%
    );
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up {
        transform: translateY(40px);
    }
    
    .reveal-left {
        transform: translateX(-40px);
    }
    
    .reveal-right {
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Smooth transitions for cards */
.group {
    transition: all 0.3s ease;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #0f172a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
