/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.4);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Navbar */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(8, 13, 23, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

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

/* Hero Animations */
.hero-tag {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image-wrap {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.revealed {
    animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1).revealed { animation-delay: 0s; }
.service-card:nth-child(2).revealed { animation-delay: 0.1s; }
.service-card:nth-child(3).revealed { animation-delay: 0.2s; }
.service-card:nth-child(4).revealed { animation-delay: 0.3s; }
.service-card:nth-child(5).revealed { animation-delay: 0.4s; }
.service-card:nth-child(6).revealed { animation-delay: 0.5s; }

/* About Images */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
}

.about-images.revealed {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal Animations — progressive enhancement, hidden by default when JS doesn't run */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Hover */
.gallery-item {
    overflow: hidden;
}

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

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Print */
@media print {
    nav, #mobileMenu, .reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
