/* ═══════════════════════════════════════════ BASE & RESET ═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════ NAVBAR SCROLL STATE ═══════════════════════════════════════════ */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(13, 17, 69, 0.08);
}

/* ═══════════════════════════════════════════ MOBILE MENU ═══════════════════════════════════════════ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hamburger animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
}

/* ═══════════════════════════════════════════ SERVICE CARDS ═══════════════════════════════════════════ */
.service-card {
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(13, 17, 69, 0.2);
}

/* ═══════════════════════════════════════════ GALLERY ═══════════════════════════════════════════ */
.gallery-item {
    box-shadow: 0 4px 20px rgba(13, 17, 69, 0.08);
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(13, 17, 69, 0.2);
}

/* ═══════════════════════════════════════════ SCROLL REVEAL (progressive enhancement) ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion: ensure all content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ═══════════════════════════════════════════ FOCUS STYLES ═══════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════ SELECTION ═══════════════════════════════════════════ */
::selection {
    background: #2dd4bf;
    color: #0d1145;
}

/* ═══════════════════════════════════════════ CUSTOM SCROLLBAR ═══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e8eaf6;
}

::-webkit-scrollbar-thumb {
    background: #9aa0d6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6f77c4;
}
