/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header scroll state */
#siteHeader.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0D9488;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hamburger animation */
#mobileMenuBtn.active #hamburger span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}
#mobileMenuBtn.active #hamburger span:nth-child(2) {
    opacity: 0;
}
#mobileMenuBtn.active #hamburger span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* Floating animation for hero card */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

/* Gallery item */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}
.gallery-item:hover {
    transform: scale(1.02);
}

/* Custom selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 2px;
}

/* Form input focus ring */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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