/* ============================================
   Kewe African Hair Braiding — 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;
}

::selection {
    background-color: rgba(168, 84, 112, 0.2);
    color: #4f212e;
}

/* ---- Navbar ---- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(79, 33, 46, 0.08);
}

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

.navbar-scrolled .nav-link {
    color: #5e2737 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #a85470 !important;
}

/* ---- Hero Animations ---- */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.03); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 20px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, -15px); }
}

.hero-orb {
    animation: float1 8s ease-in-out infinite;
}

.orb-2 {
    animation: float2 10s ease-in-out infinite;
}

.orb-3 {
    animation: float3 7s ease-in-out infinite;
}

.orb-4 {
    animation: float4 9s ease-in-out infinite;
}

.hero-badge {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.2s;
}

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

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

.hero-ctas {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.2s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Section Headers ---- */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s ease 0.1s;
}

.section-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.section-header.revealed .section-label,
.section-header.revealed .section-title,
.section-header.revealed .section-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Service Cards ---- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }

/* ---- About Section ---- */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s ease;
}

.about-images.revealed {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s ease 0.2s;
}

.about-content.revealed {
    opacity: 1;
    transform: translateX(0);
}

.about-float-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
}

.about-float-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-feature {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

.about-feature.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Gallery ---- */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

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

.gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-item:nth-child(2) { transition-delay: 0.08s; }
.gallery-item:nth-child(3) { transition-delay: 0.16s; }
.gallery-item:nth-child(4) { transition-delay: 0.24s; }
.gallery-item:nth-child(5) { transition-delay: 0.32s; }
.gallery-item:nth-child(6) { transition-delay: 0.40s; }

/* ---- Testimonials ---- */
.testimonial-card {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.5s ease;
}

.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonial-card:nth-child(2) { transition-delay: 0.12s; }
.testimonial-card:nth-child(3) { transition-delay: 0.24s; }

/* ---- Contact ---- */
.contact-info-card {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.contact-info-card.revealed {
    opacity: 1;
    transform: translateX(0);
}

.contact-info-card:nth-child(1) { transition-delay: 0s; }
.contact-info-card:nth-child(2) { transition-delay: 0.1s; }
.contact-info-card:nth-child(3) { transition-delay: 0.2s; }

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease 0.2s;
}

.contact-form-wrapper.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Input Fields ---- */
.input-field {
    background: #faf5f7;
}

.input-field:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(168, 84, 112, 0.1);
}

/* ---- Buttons ---- */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 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-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(168, 84, 112, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ---- 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;
    }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-ctas,
    .hero-scroll {
        opacity: 1;
        animation: none;
    }
    
    .section-label,
    .section-title,
    .section-desc,
    .service-card,
    .about-images,
    .about-content,
    .about-float-card,
    .about-feature,
    .gallery-item,
    .testimonial-card,
    .contact-info-card,
    .contact-form-wrapper {
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 640px) {
    .hero-orb {
        display: none;
    }
    
    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}
