/* ===== Custom Styles for Lice Happens ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

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

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

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

#mobileMenu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Hero Section ===== */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: #e85d2f;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: #e2af44;
    bottom: 10%;
    left: -50px;
    animation-delay: 2s;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: #e85d2f;
    top: 40%;
    right: 15%;
    animation-delay: 4s;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: #e2af44;
    top: 20%;
    left: 5%;
    border-radius: 30px;
    transform: rotate(45deg);
    opacity: 0.08;
    animation-delay: 1s;
}

.shape-rect-2 {
    width: 120px;
    height: 120px;
    background: #e85d2f;
    bottom: 25%;
    right: 8%;
    border-radius: 20px;
    transform: rotate(20deg);
    opacity: 0.1;
    animation-delay: 3s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #e2af44;
    opacity: 0.08;
    top: 30%;
    right: 25%;
    animation-delay: 5s;
    filter: blur(1px);
}

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

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subhead {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease 1s both;
}

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

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

/* CTA Buttons */
.cta-primary {
    position: relative;
    overflow: hidden;
}

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

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary:hover {
    border-color: #e85d2f;
    color: #e85d2f;
}

/* ===== Section Styles ===== */
.section-label {
    letter-spacing: 0.15em;
}

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

.section-desc {
    line-height: 1.7;
}

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

.service-tag {
    transition: all 0.3s ease;
}

.service-card:hover .service-tag {
    letter-spacing: 0.05em;
}

/* ===== About Section ===== */
.about-float-card {
    animation: floatCard 4s ease-in-out infinite;
}

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

/* ===== Steps ===== */
.step-card {
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-8px);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(232, 93, 47, 0.4);
}

.step-card:hover .step-icon {
    transform: scale(1.05);
}

/* ===== Contact Form ===== */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #e85d2f;
    box-shadow: 0 0 0 4px rgba(232, 93, 47, 0.1);
}

.form-input::placeholder {
    color: #c9aa7e;
}

.form-submit {
    position: relative;
    overflow: hidden;
}

.form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.form-submit:hover::after {
    transform: translateX(100%);
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .shape-rect-1 {
        width: 120px;
        height: 120px;
    }
    
    .shape-triangle {
        display: none;
    }
    
    .about-float-card {
        position: relative;
        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
