/* ============================================
   CHEVEUX SALON — Custom Styles
   Deep Navy + Warm Gold | Vibrant Modern
   ============================================ */

/* ---- 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;
}

/* ---- Geometric Shapes (Hero) ---- */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(212, 168, 67, 0.08);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 5%;
    left: -8%;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(212, 168, 67, 0.06);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-rect-1 {
    top: 25%;
    left: 55%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 168, 67, 0.1);
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle {
    bottom: 20%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 168, 67, 0.05);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    top: 60%;
    left: 8%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: float-slow 12s ease-in-out infinite reverse;
}

/* ---- Hero Floating Stat Cards ---- */
.stat-card {
    animation: float-card 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.stat-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5s;
}

/* ---- Animations ---- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .review-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Fallback: content always visible */
.section-reveal,
.service-card,
.review-card {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Navbar Scroll State ---- */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* ---- Mobile Menu ---- */
.mobile-link {
    opacity: 1;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

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

/* ---- Utility: reduce motion ---- */
@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;
    }
}
