/* ============================================
   BESPOKE HAIR DESIGN — 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 {
    background: rgba(22, 101, 52, 0.15);
    color: #166534;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #166534;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-nav-link {
    position: relative;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-tag {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-actions {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-card-main {
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-stat-card {
    opacity: 0;
}

.card-float-1 {
    animation: fadeInLeft 0.8s ease forwards, float 4s ease-in-out infinite;
    animation-delay: 0.8s, 1.5s;
}

.card-float-2 {
    animation: fadeInRight 0.8s ease forwards, float 4s ease-in-out infinite;
    animation-delay: 1s, 2s;
}

.card-float-3 {
    animation: fadeInLeft 0.8s ease forwards, float 4s ease-in-out infinite;
    animation-delay: 1.2s, 2.5s;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scroll Indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(22, 101, 52, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.4;
        transform: scaleY(0.6);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #166534;
    color: #fefce8;
    border: none;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 101, 52, 0.25);
}

.btn-primary.btn-lg {
    padding: 18px 36px;
    font-size: 13px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.25);
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    background: rgba(22, 101, 52, 0.06);
    border-color: rgba(22, 101, 52, 0.5);
    transform: translateY(-2px);
}

.btn-secondary.btn-lg {
    padding: 18px 36px;
    font-size: 13px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(22, 101, 52, 0.2);
    color: #166534;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 100px;
}

.section-title {
    line-height: 1.1;
}

.section-subtitle {
    line-height: 1.8;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    border-radius: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   FEATURE ITEMS
   ============================================ */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
}

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

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.input-field {
    width: 100%;
    padding: 12px 16px;
    background: #fefdf8;
    border: 1px solid rgba(22, 101, 52, 0.15);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #166534;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(22, 101, 52, 0.35);
}

.input-field:focus {
    border-color: rgba(22, 101, 52, 0.4);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.06);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title span {
        font-size: 2.5rem !important;
    }
    
    .hero-card-main img {
        height: 350px !important;
    }
    
    .hero-stat-card {
        display: none;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .section-title span {
        font-size: 2rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-title span {
        font-size: 2rem !important;
    }
}

/* ============================================
   REDUCED 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
