/* =========================================
   1. DESIGN TOKENS & VARIABLES
========================================= */
:root {
    --bg-main: #060913;
    --bg-surface: #0B101A;
    --bg-elevated: #111826;
    
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dim: #8A6E30;
    
    --text-primary: #F8F9FA;
    --text-muted: #A1A1AA;
    
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-bg: rgba(17, 24, 38, 0.6);
    
    --ease: cubic-bezier(0.25, 1, 0.3, 1);
    --tr: 0.3s var(--ease);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* =========================================
   2. RESET & BASE
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }
input, textarea, button { font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 6px; }

/* =========================================
   3. LAYOUT & UTILITIES
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.section-dark {
    background: var(--bg-surface);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title em {
    color: var(--gold);
    font-style: italic;
}

.section-sub {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.full-width { width: 100%; text-align: center; }

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.scale-in { transform: scale(0.95); }
.reveal.visible { opacity: 1; transform: translate(0) scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Particles Canvas */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* =========================================
   4. NAVBAR & MOBILE MENU
========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 1.5rem;
    transition: background 0.4s var(--ease), border-bottom 0.4s var(--ease);
    box-sizing: border-box;
}

#navbar.scrolled {
    background: rgba(6, 9, 19, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002; /* Above mobile menu */
}

.logo-kr {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-divider { width: 1px; height: 20px; background: var(--glass-border); }
.logo-text { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }

/* Mobile Menu (Default) */
.nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-links a {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color var(--tr);
}

.nav-links a:hover, 
.nav-links a.active { color: var(--gold); }

/* Hamburger Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Must be above .nav-links */
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Desktop Menu Override */
@media (min-width: 900px) {
    .hamburger { display: none; }
    .nav-links {
        position: static;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        opacity: 1;
        pointer-events: all;
        transform: none;
        gap: 2.5rem;
    }
    .nav-links a { font-size: 0.85rem; letter-spacing: 2px; }
}

/* =========================================
   5. BUTTONS
========================================= */
.btn-gold, .btn-ghost {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--tr);
    cursor: pointer;
    text-align: center;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-main);
    font-weight: 600;
    border: 1px solid var(--gold);
}
.btn-gold:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.nav-cta { border: 1px solid var(--gold-dim); padding: 10px 24px !important; color: var(--gold) !important; }
.nav-cta:hover { background: var(--gold); color: var(--bg-main) !important; }

/* =========================================
   6. HERO SECTION
========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 60px;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Mobile Center Alignment */
.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow, .hero-badges, .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    align-items: center;
}

.gold-line { width: 30px; height: 1px; background: var(--gold); display: inline-block; }

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.badge {
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(255,255,255,0.02);
}

/* Hero Image */
.hero-image-wrap {
    width: 100%;
    max-width: 450px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    padding: 15px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    width: 100%;
}

.hero-img { width: 100%; filter: grayscale(15%) contrast(1.1); }

/* Floating Stats */
.hero-stat-card { display: none; }

@media (min-width: 1080px) {
    .hero-stat-card {
        display: flex;
        flex-direction: column;
        position: absolute;
        background: var(--bg-elevated);
        border: 1px solid var(--glass-border);
        padding: 20px 25px;
        z-index: 5;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .card-one { bottom: 30px; left: -50px; }
    .card-two { top: 40px; right: -40px; }
}

.stat-num { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); font-weight: 600; line-height: 1; }
.stat-unit { font-size: 1.2rem; color: var(--gold); }
.stat-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }

/* Desktop Hero Alignment Override */
@media (min-width: 900px) {
    .hero-content { flex-direction: row; align-items: center; text-align: left; gap: 4rem; }
    .hero-text { align-items: flex-start; flex: 1; }
    .hero-eyebrow, .hero-badges, .hero-actions { justify-content: flex-start; }
    .hero-image-wrap { flex: 1; justify-content: flex-end; }
}

/* =========================================
   7. ABOUT SECTION
========================================= */
.about-grid { display: grid; gap: 3rem; }

@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
}

.about-img-wrap { position: relative; }
.about-img { width: 100%; border: 1px solid var(--glass-border); }

.about-quote-card {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    padding: 25px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    width: 90%;
    margin-left: auto;
}

.about-quote { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; margin-bottom: 10px; color: var(--gold-light); }
.about-quote-author { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

.about-para { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

.about-pillars { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.pillar {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    align-items: flex-start;
}
.pillar-icon { font-size: 1.5rem; }
.pillar h4 { color: var(--text-primary); margin-bottom: 5px; font-size: 1rem; }
.pillar p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* =========================================
   8. ROLES SECTION
========================================= */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.role-card {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    transition: transform var(--tr), border-color var(--tr);
    position: relative;
}

.role-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.role-card.featured { border-top: 3px solid var(--gold); }

.role-badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--bg-main);
    font-size: 0.65rem;
    padding: 4px 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.role-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.role-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.role-org { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.role-divider { width: 40px; height: 1px; background: var(--glass-border); margin-bottom: 1.5rem; }
.role-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-tags span {
    border: 1px solid var(--glass-border);
    font-size: 0.7rem;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* =========================================
   9. EXPERTISE SECTION
========================================= */
.expertise-layout { display: grid; gap: 4rem; }
@media (min-width: 900px) { .expertise-layout { grid-template-columns: 1fr 1.2fr; align-items: center; } }

.exp-img-wrap { position: relative; }
.exp-img { width: 100%; filter: grayscale(10%); }
.exp-overlay-card {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, #000);
    padding: 40px 20px 20px;
}
.exp-degree-label { display: block; color: var(--gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.exp-degree { font-family: var(--font-serif); font-size: 1.2rem; }

.expertise-intro { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

.skill-bars { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 3rem; }
.skill-item { width: 100%; }
.skill-header { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-primary); }
.skill-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.05); position: relative; }
.skill-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--gold); width: 0; transition: width 1.5s var(--ease); }

.expertise-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.exp-stat {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    padding: 20px 10px;
    text-align: center;
}
.exp-stat-num { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold); font-weight: 600; }
.exp-stat-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: 5px; }

/* =========================================
   10. CONTACT SECTION
========================================= */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; } }

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    text-align: center;
}
.contact-avatar img { width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--gold); margin: 0 auto 1.5rem; object-fit: cover; }
.contact-name { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 5px; }
.contact-role { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.contact-details { text-align: left; display: flex; flex-direction: column; gap: 15px; }
.contact-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-group label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--tr);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #4B5563; }

/* =========================================
   11. FOOTER & LOADER
========================================= */
#footer {
    background: var(--bg-main);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }
.footer-bottom { font-size: 0.8rem; color: #4B5563; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; margin-top: 20px; }

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-logo { font-family: var(--font-serif); font-size: 3rem; color: var(--gold); font-weight: 800; letter-spacing: 4px; margin-bottom: 10px; }
.loader-name { font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 30px; }
.loader-bar-wrap { width: 200px; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: var(--gold); transition: width 0.2s linear; }

/* Init state for hero stagger elements */
.hero-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}