/* ========================================
   Persona Beauty Salon — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* Selection */
::selection {
    background-color: rgba(255, 107, 67, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #1a1c20;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #ff6b43;
}

/* ========================================
   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: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
}

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

/* ========================================
   Navbar Scroll State
   ======================================== */
.navbar-scrolled {
    background: rgba(13, 14, 17, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67, 70, 79, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

#mobile-menu.hidden {
    animation: slideUp 0.2s ease-in forwards;
}

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

/* ========================================
   Form Focus States
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* ========================================
   Image Loading
   ======================================== */
img {
    font-style: italic;
    max-width: 100%;
    height: auto;
}

/* ========================================
   Utility: Custom Grid Gaps
   ======================================== */
.service-card {
    contain: layout style;
}

/* ========================================
   Smooth Image Transitions
   ======================================== */
.group img {
    will-change: transform;
}

.group:hover img {
    transform: scale(1.1);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #mobile-menu, button, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ========================================
   High Contrast Mode Support
   ======================================== */
@media (forced-colors: active) {
    .bg-coral-500 {
        background-color: Highlight;
    }
    
    .text-coral-400 {
        color: Highlight;
    }
}

/* ========================================
   Tablet and Up
   ======================================== */
@media (min-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, rgba(13, 14, 17, 0.95) 0%, rgba(13, 14, 17, 0.7) 50%, rgba(13, 14, 17, 0.4) 100%);
    }
}

/* ========================================
   Subtle Glow Effects
   ======================================== */
.glow-coral {
    box-shadow: 0 0 40px rgba(255, 107, 67, 0.15);
}

/* ========================================
   Card Hover Lift
   ======================================== */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
