/* ============================================
   Xclusive Hair Extentions — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: 10%;
}

.shape-rectangle-1 {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 132, 90, 0.08) 0%, transparent 70%);
    top: 20%;
    left: -50px;
    transform: rotate(15deg);
    border-radius: 20px;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(212, 132, 90, 0.06);
    bottom: 15%;
    right: 5%;
    transform: rotate(-20deg);
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 40%;
}

.shape-rectangle-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.05) 0%, transparent 70%);
    top: 40%;
    right: 2%;
    transform: rotate(45deg);
    border-radius: 12px;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4845A, #E9BC9C);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ============================================
   Gallery Items
   ============================================ */
.gallery-item {
    height: 100%;
    min-height: 250px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
@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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-scrolled .font-display,
.nav-scrolled .font-body {
    color: #1B4332;
}

.nav-scrolled a:not(.bg-forest-600):not(.bg-white) {
    color: #1B4332;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb5a3;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(27, 67, 50, 0.2);
    color: #1B4332;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-rectangle-1 {
        width: 100px;
        height: 150px;
    }
    
    .shape-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid rgba(212, 132, 90, 0.06);
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-rectangle-2 {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 640px) {
    .gallery-item {
        min-height: 200px;
    }
}
