/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(167, 243, 208, 0.3);
    color: #fff;
}

/* Scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

.scroll-indicator {
    display: inline-block;
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Nav link underline effect */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu animation */
.menu-line {
    transform-origin: center;
}

body.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

body.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Scroll reveal — progressive enhancement via JS */
.reveal {
    /* Default: fully visible for accessibility */
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none !important; transition: none; }
    .scroll-indicator { animation: none; }
    .gallery-item img { transition: none; }
    .service-card { transition: none; }
}

/* Gallery hover */
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Testimonial card hover */
.testimonial-card {
    transition: border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(167, 243, 208, 0.08);
}

/* Service card hover */
.service-card {
    transition: border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(167, 243, 208, 0.06);
}

/* Header scroll state */
header.scrolled {
    background-color: rgba(2, 6, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form focus ring */
input:focus, textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #050D1A;
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 243, 208, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 243, 208, 0.5);
}
