/* ========================================
   I'm BaDD Hair Salon — Custom Styles
   ======================================== */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F4;
}
::-webkit-scrollbar-thumb {
    background: #E06048;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cc452e;
}

/* ========================================
   Navigation
   ======================================== */
.nav-fixed {
    background: rgba(253, 249, 244, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(224, 96, 72, 0.1);
    transition: all duration-300;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(42, 37, 34, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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;
}

.mobile-nav-link {
    position: relative;
    padding-left: 1rem;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #E06048;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-link:hover::before {
    opacity: 1;
}

/* ========================================
   Hero Section
   ======================================== */
.geo-shape {
    animation: float 6s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 30%;
    animation-delay: 2s;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    border-radius: 30px;
    animation-delay: 1s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid;
    top: 60%;
    left: 5%;
    animation-delay: 3s;
}

.geo-dots {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 5%;
    background-image: radial-gradient(circle, #E06048 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.3;
    animation-delay: 1.5s;
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* ========================================
   Marquee
   ======================================== */
.marquee-track {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E06048, #E3B83B);
    border-radius: 3xl 3xl 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 37, 34, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #FAD5CC;
    line-height: 1;
    z-index: 0;
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* ========================================
   Success Message
   ======================================== */
.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-rect-1 {
        width: 100px;
        height: 100px;
    }
    
    .geo-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .geo-shape,
    .marquee-track,
    .animate-bounce {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
