/* ========================================
   Addicted to Glamour — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #4fa07e;
    color: #061a2e;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Initial state for reduced-motion users — always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* JS-added hidden state for animated elements */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered delays for grid items */
.service-card:nth-child(1) .reveal { transition-delay: 0s; }
.service-card:nth-child(2) .reveal { transition-delay: 0.1s; }
.service-card:nth-child(3) .reveal { transition-delay: 0.2s; }
.service-card:nth-child(4) .reveal { transition-delay: 0.1s; }
.service-card:nth-child(5) .reveal { transition-delay: 0.2s; }
.service-card:nth-child(6) .reveal { transition-delay: 0.3s; }

/* --- Navbar Transition --- */
#navbar.scrolled {
    background-color: rgba(6, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(168, 216, 185, 0.1);
}

#navbar.scrolled #nav-logo-text {
    color: #ffffff;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    transform: translateX(0);
}

/* --- Service Card Hover --- */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 26, 46, 0.3);
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4fa07e;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #061a2e;
}

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

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

/* --- Image Loading --- */
img {
    display: block;
}

/* --- Selection for dark areas --- */
.bg-midnight-900 ::selection,
.bg-midnight-950 ::selection {
    background-color: #6bb896;
    color: #061a2e;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #back-to-top,
    .reveal-hidden {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
