/* ─── Custom Properties ─── */
:root {
    --midnight-900: #0a2540;
    --midnight-800: #0d3154;
    --midnight-700: #113d68;
    --midnight-600: #154a7c;
    --midnight-500: #1a5790;
    --mint-500: #3dd9b8;
    --mint-400: #5eead4;
    --mint-600: #2bc4a4;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
}

/* ─── Typography ─── */
.font-cormorant {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-inter {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--stone-100);
}
::-webkit-scrollbar-thumb {
    background: var(--midnight-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-500);
}

/* ─── Selection ─── */
::selection {
    background: rgba(94, 234, 209, 0.3);
    color: var(--midnight-900);
}

/* ─── Smooth Scroll ─── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

#navbar.dark-scrolled {
    background: rgba(10, 37, 64, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(94, 234, 209, 0.1);
}

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

/* ─── Nav Links ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint-500);
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-link {
    color: var(--midnight-700) !important;
}

#navbar.dark-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ─── Mobile Menu ─── */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--midnight-900);
    transition: all 0.3s ease;
}

#navbar.scrolled .menu-line,
#navbar.dark-scrolled .menu-line {
    background: var(--midnight-900);
}

.menu-line.top { top: 10px; }
.menu-line.middle { top: 16px; }
.menu-line.bottom { top: 22px; }

body.menu-open .menu-line.top {
    transform: translateX(-50%) rotate(45deg);
    top: 16px;
}

body.menu-open .menu-line.middle {
    opacity: 0;
}

body.menu-open .menu-line.bottom {
    transform: translateX(-50%) rotate(-45deg);
    top: 16px;
}

.mobile-nav-link {
    position: relative;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--mint-500);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ─── Buttons ─── */
button, a[type="submit"] {
    position: relative;
    overflow: hidden;
}

button::after, a[type="submit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

button:hover::after, a[type="submit"]::after {
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Form Inputs ─── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(94, 234, 209, 0.15);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Utility ─── */
.text-mint-500 { color: var(--mint-500); }
.text-mint-400 { color: var(--mint-400); }
.text-mint-600 { color: var(--mint-600); }
.bg-mint-500 { background-color: var(--mint-500); }
.bg-mint-400 { background-color: var(--mint-400); }
.bg-mint-600 { background-color: var(--mint-600); }
.bg-midnight-900 { background-color: var(--midnight-900); }
.text-midnight-900 { color: var(--midnight-900); }
.text-midnight-700 { color: var(--midnight-700); }
</style>
