/* ===================================
   Ronnie's Beauty Salon — Custom Styles
   =================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background: rgba(251, 191, 36, 0.2);
    color: #532034;
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(45, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.scrolled #logo {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle */
.menu-line {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
    background: rgba(255, 255, 255, 0.9);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuToggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Hero Section
   =================================== */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(168, 85, 118, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* ===================================
   Reveal Animations
   =================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* Scroll-triggered reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal-scroll {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0), transparent);
    transition: background 0.5s ease;
}

.service-card:hover::after {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
}

/* ===================================
   Gallery
   =================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================================
   Form Styles
   =================================== */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #2d0f1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
