/* ─── Custom overrides & additions ─── */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #115e59;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.35);
    color: #f0fdfa;
}

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

/* Reduce motion preference */
@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;
    }
    .float-slow, .float-medium, .float-fast {
        animation: none;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── Geometric accent shapes ─── */
.geometric-accent {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* ─── Gradient text utility ─── */
.gradient-text {
    background: linear-gradient(135deg, #2dd4bf, #0d9488, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Glass card effect ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── Button ripple effect ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* ─── Image hover zoom ─── */
img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Navbar scroll state ─── */
.nav-scrolled {
    background: rgba(2, 6, 23, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Input autofill override ─── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    caret-color: #f1f5f9;
}

/* ─── Print styles ─── */
@media print {
    nav, .mobile-menu, #menu-overlay, footer iframe {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .hero-gradient, .cta-gradient {
        background: #134e4a !important;
    }
}
