/* ============================================
   Dina's Hair Braiding — Custom Styles
   Classic & Elegant · Midnight Blue + Mint
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 26, 43, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Orbs --- */
.hero-orb {
    will-change: transform;
}

.orb-1 {
    background: radial-gradient(circle, rgba(79, 204, 166, 0.4) 0%, transparent 70%);
}

.orb-2 {
    background: radial-gradient(circle, rgba(79, 204, 166, 0.3) 0%, transparent 70%);
}

.orb-3 {
    background: radial-gradient(circle, rgba(79, 204, 166, 0.2) 0%, transparent 70%);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(79, 204, 166, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.1);
}

/* --- Mobile Menu --- */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Custom Selection --- */
::selection {
    background-color: rgba(79, 204, 166, 0.3);
    color: #102a43;
}

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

/* --- Button ripple effect --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 204, 166, 0.15);
}

/* --- Smooth image loading --- */
img {
    image-rendering: auto;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-950,
    .bg-midnight-900,
    .bg-midnight-800 {
        background-color: #f5f5f5 !important;
        color: #000 !important;
    }
}
