/* ============================================
   Katherine's Bookkeeping Service
   Bold Editorial Style — Charcoal + Coral
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #FF6B6B;
    color: #1a1a1a;
}

/* ---------- Navbar ---------- */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

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

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

/* Hamburger Animation */
.menu-line {
    display: block;
    transition: all 0.3s ease;
}

#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;
    transform: translateX(-10px);
}

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

/* ---------- Hero ---------- */
.hero-headline {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.55s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Section Headers ---------- */
.section-label {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.visible .section-label {
    opacity: 1;
    transform: translateY(0);
}

.section-header.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Service Cards ---------- */
.services-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Why Cards ---------- */
.why-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:nth-child(1) { transition-delay: 0.05s; }
.why-card:nth-child(2) { transition-delay: 0.1s; }
.why-card:nth-child(3) { transition-delay: 0.15s; }
.why-card:nth-child(4) { transition-delay: 0.2s; }

/* ---------- About Section ---------- */
.about-image-wrapper {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.about-stats {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.about-stats.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Contact Info Cards ---------- */
.contact-info-card {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ---------- Form ---------- */
#contact-form {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Footer ---------- */
footer > div > div:first-of-type > div > div {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

footer.visible > div > div:first-of-type > div > div:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
footer.visible > div > div:first-of-type > div > div:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
footer.visible > div > div:first-of-type > div > div:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #FF6B6B;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
    
    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        display: inline-block;
    }
    
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
}
