/* ============================================
   The Color Lounge LLC — Custom Styles
   Premium Dark Luxury | Midnight + Mint
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(45, 212, 168, 0.3);
    color: #f0fdf4;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070d1f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #14b888, #0d9474);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2dd4a8, #14b888);
}

/* --- Scroll Indicator Animation --- */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .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.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background: rgba(7, 13, 31, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(45, 212, 168, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* --- Service Card Hover --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 168, 0.03), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* --- Gold shimmer on hover --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* --- Mobile menu transitions --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Button ripple effect --- */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* --- Focus styles --- */
:focus-visible {
    outline: 2px solid #2dd4a8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Image lazy-load placeholder --- */
img {
    background: linear-gradient(135deg, #0f1c3f 0%, #152650 100%);
}

/* --- Utility: gradient text --- */
.gradient-text {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* --- Print styles --- */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    nav, .reveal, #gallery, footer {
        display: none;
    }
}
