/* ================================
   Younghoo Kim - Personal Website
   Based on Website Innovator Style
   ================================ */

/* ---- Anti-flicker ---- */
html { visibility: hidden; opacity: 0; }
html.loaded { visibility: visible; opacity: 1; transition: opacity 0.15s ease-in; }

/* ---- Mobile bottom nav ---- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    z-index: 50;
    display: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 1023px) {
    .mobile-bottom-nav { display: flex !important; }
    body { padding-bottom: 70px; }
}

@media (min-width: 1024px) {
    .mobile-bottom-nav { display: none !important; }
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a5f;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 1000;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ---- Hero glow ---- */
.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* ---- Cards ---- */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* ---- Gradient text ---- */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-warm {
    background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Mobile menu ---- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 60px;
    background: white;
    z-index: 45;
    overflow-y: auto;
}
.mobile-menu.active {
    display: block;
}
@media (min-width: 1024px) {
    .mobile-menu { display: none !important; }
}

/* ---- Contact pulse ---- */
.contact-pulse {
    animation: contactPulse 2s ease-in-out infinite;
}
@keyframes contactPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.2); }
}

/* ---- Stats card ---- */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
@media (min-width: 768px) {
    .stat-number { font-size: 3rem; }
}

/* ---- Timeline ---- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid #e5e7eb;
}
.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid white;
    box-shadow: 0 0 0 3px #dbeafe;
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
}

/* ---- Section header ---- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .section-title { font-size: 2.5rem; }
}
.section-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
}

/* ---- Philosophy quote ---- */
.philosophy-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
}
.philosophy-quote {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .philosophy-quote { font-size: 4rem; }
}

/* ---- Role card ---- */
.role-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}
.role-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ---- Event item ---- */
.event-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}
@media (min-width: 640px) {
    .event-item {
        flex-direction: row;
        align-items: center;
    }
}

/* ---- Contact card ---- */
.contact-card {
    display: block;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
}
.contact-card:hover {
    transform: translateY(-4px);
}

/* ---- Social button ---- */
.social-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* ---- AOS custom ---- */
[data-aos] {
    transition-property: transform, opacity;
}

/* ---- Korean font ---- */
.font-korean {
    font-family: 'Noto Sans KR', Inter, system-ui, sans-serif;
}

/* ---- x-cloak ---- */
[x-cloak] { display: none !important; }
