/* === Base Styles === */
*, *::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-color: rgba(249, 117, 131, 0.3);
    color: #f6f6f7;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e2024;
}
::-webkit-scrollbar-thumb {
    background: #3f4349;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #52575e;
}

/* === Service Cards === */
.service-card {
    will-change: transform;
}

/* === Gallery Items === */
.gallery-item {
    min-height: 200px;
}

@media (min-width: 768px) {
    .gallery-item {
        min-height: 300px;
    }
}

/* === Navbar Transition === */
#navbar.scrolled {
    background: rgba(18, 19, 22, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Mobile Menu === */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* === Scroll Reveal Animations === */
/* These are progressive enhancement — content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal[data-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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === Button Hover Effects === */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* === Input Autofill === */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1e2024 inset !important;
    -webkit-text-fill-color: #f6f6f7 !important;
    caret-color: #f6f6f7;
}

/* === Focus Visible === */
:focus-visible {
    outline: 2px solid #f97583;
    outline-offset: 2px;
}

/* === Print Styles === */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
