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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(160deg, #050d1a 0%, #0a1628 30%, #0f2035 60%, #152d48 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(94, 234, 212, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Section Labels */
.section-label {
    letter-spacing: 0.25em;
}

.section-title {
    letter-spacing: -0.01em;
}

.section-subtitle {
    letter-spacing: 0.01em;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #5eead4;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-link {
    font-size: 1.125rem;
}

/* Service Cards */
.service-card {
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #f0fdf9;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animations */
.hero-eyebrow {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-title {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.hero-subtitle {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero-cta {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.hero-scroll {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.hero-eyebrow.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-scroll.animate {
    opacity: 1;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

nav.scrolled .nav-link {
    color: rgba(10, 22, 40, 0.7);
}

nav.scrolled .menu-line {
    background: #0a1628;
}

/* Smooth focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #0a1628;
}

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

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

::-webkit-scrollbar-thumb {
    background: #5eead4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .section-title {
        font-size: 2.75rem;
    }
}
