/* ============================================
   KOREANI CENTER — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

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

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero-eyebrow {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-headline {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-subtext {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta-primary {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

.hero-cta-secondary {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 1.05s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

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

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: calc(100% - 12px); opacity: 0.4; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
}

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

.section-header.visible .section-title {
    transition-delay: 0.1s;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.5s ease;
}

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

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

/* ============================================
   WHY US CARDS
   ============================================ */
.why-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.why-card-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.why-card:hover .why-card-icon {
    transform: scale(1.1);
}

/* ============================================
   ACCESSIBILITY — 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-eyebrow,
    .hero-headline,
    .hero-subtext,
    .hero-cta-primary,
    .hero-cta-secondary {
        opacity: 1;
        animation: none;
    }
    
    .service-card,
    .why-card {
        opacity: 1;
        transform: none;
    }
    
    .section-eyebrow,
    .section-title {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
