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

:root {
    --midnight-950: #050D1A;
    --midnight-900: #0A1628;
    --midnight-800: #0F1F36;
    --midnight-700: #162A45;
    --mint-400: #5EEAD1;
    --mint-500: #3DD4B5;
    --mint-600: #2BBFA3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.nav-link {
    position: relative;
}

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

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

.nav-logo-text {
    color: #0A1628;
}

/* Mobile menu */
#mobile-menu {
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
}

/* Hero scroll dot */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5EEAD1, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery */
.gallery-item {
    height: 200px;
}

.gallery-item.col-span-2 {
    height: 408px;
}

@media (min-width: 1024px) {
    .gallery-item {
        height: 240px;
    }
    .gallery-item.col-span-2 {
        height: 488px;
    }
}

/* Form inputs */
.form-input {
    background: transparent;
}

.form-input::placeholder {
    color: #94A3B8;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #0A1628 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Selection */
::selection {
    background: #5EEAD1;
    color: #0A1628;
}
