/* ========================================
   LAVISH HAIR STUDIO — Custom Styles
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

.geo-circle-1 {
    top: 5%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 26, 74, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 116, 138, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-rect-1 {
    top: 15%;
    right: 35%;
    width: 120px;
    height: 120px;
    background: rgba(139, 26, 74, 0.05);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-triangle {
    bottom: 25%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(139, 26, 74, 0.04);
    animation: float 7s ease-in-out infinite;
}

.geo-dot-grid {
    top: 30%;
    left: 2%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(139, 26, 74, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    animation: float 5s ease-in-out infinite reverse;
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* --- Navbar --- */
.navbar-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(139, 26, 74, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #4a0d26 !important;
}

.navbar-scrolled .menu-bar {
    background: #8B1A4A !important;
}

.navbar-scrolled .mobile-link {
    color: #4a0d26 !important;
}

/* --- Service Cards --- */
.service-card {
    border: 1px solid rgba(139, 26, 74, 0.06);
}

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

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

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

.gallery-item {
    position: relative;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    border: 1px solid rgba(139, 26, 74, 0.06);
}

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

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

.mobile-menu-open .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5rem;
}

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

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #8B1A4A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d1338;
}

/* --- Selection --- */
::selection {
    background: rgba(139, 26, 74, 0.15);
    color: #4a0d26;
}
