/* ========================================
   Clau Anthony Beauty Salon — Custom Styles
   ======================================== */

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

/* Selection */
::selection {
    background-color: #f59e0b;
    color: #2d1024;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-link {
    color: #6b2d5b;
}

#navbar.scrolled #nav-logo {
    color: #6b2d5b;
}

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

#mobile-menu.open .mobile-link {
    animation: slideIn 0.4s ease forwards;
}

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

.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent);
    border-radius: 50%;
    top: 20%;
    right: 55%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(244, 114, 182, 0.2);
    border-radius: 50%;
    bottom: 15%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.12);
    top: 30%;
    right: 48%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-square-2 {
    width: 50px;
    height: 50px;
    background: rgba(244, 114, 182, 0.15);
    bottom: 25%;
    right: 40%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(245, 158, 11, 0.1);
    top: 60%;
    left: 5%;
    animation: float 9s ease-in-out infinite;
}

.geo-line-1 {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    top: 45%;
    left: 0;
    transform: rotate(-15deg);
}

.geo-line-2 {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(244, 114, 182, 0.3), transparent);
    bottom: 35%;
    right: 5%;
    transform: rotate(20deg);
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6b2d5b, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::after {
    transform: scaleX(1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 45, 91, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    position: relative;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-scale {
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-scale.revealed {
        opacity: 1;
        transform: scale(1);
    }

    /* Staggered delays */
    .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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2, .geo-circle-3, .geo-square-1, .geo-square-2,
    .geo-triangle, .geo-line-1, .geo-line-2 {
        display: none;
    }
}

/* ========================================
   Focus styles
   ======================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ========================================
   Custom scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b2d5b;
}
