/* ============================================
   Dee's Cut & Style Hair Salon
   Premium Dark Luxury Theme
   Charcoal + Coral + Gold Palette
   ============================================ */

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

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

body {
    background-color: #0D0D0D;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: rgba(196, 114, 42, 0.3);
    color: #ffffff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4722A;
}

/* --- Navbar --- */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 13, 13, 0.6);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    border-bottom-color: rgba(196, 114, 42, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Hero Orbs Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

@keyframes floatCenter {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    animation-delay: 0s;
}

.orb-2 {
    animation-delay: -3s;
    animation: floatSlow 10s ease-in-out infinite;
}

.orb-3 {
    animation: floatCenter 12s ease-in-out infinite;
}

/* --- Decorative Lines --- */
@keyframes growLine {
    0% { transform: scaleY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); opacity: 0.6; }
}

.deco-line {
    transform-origin: top;
    animation: growLine 2s ease-out forwards;
}

.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 0.8s; }
.line-3 { animation-delay: 1.1s; }
.line-4 { animation-delay: 1.4s; }

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Service Cards --- */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(196, 114, 42, 0.2), transparent, rgba(232, 93, 58, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* --- Form Inputs --- */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(196, 114, 42, 0.3);
}

/* --- Gallery Hover --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(196, 114, 42, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* --- Pulse Animation --- */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 114, 42, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(196, 114, 42, 0); }
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* --- Gradient Text Utility --- */
.gradient-text {
    background: linear-gradient(135deg, #E8C878, #D4A84B, #E85D3A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-orb {
        display: none;
    }
    
    .orb-3 {
        display: block;
        width: 300px !important;
        height: 300px !important;
    }
    
    /* Show scroll reveal on mobile without animation */
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
    }
}
