@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    /* Color Palette - Deep Dark Modern */
    --bg-base: #050505;
    --bg-surface: #111111;
    --bg-surface-glass: rgba(20, 20, 20, 0.6);
    --bg-elevated: rgba(30, 30, 30, 0.4);
    
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --accent-glow: rgba(245, 208, 66, 0.15);
    --accent-color: #F5D042;
    --accent-secondary: #5E5CE6;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 120px; /* Space for floating nav */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L18 10 L11 13 L15 20 L12 22 L8 15 L2 20 Z' fill='%23FFFFFF' stroke='%23000000' stroke-width='1.5'/%3E%3C/svg%3E") 2 2, auto;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-base);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 3 L26 13 L16 17 L21 27 L18 29 L12 19 L4 25 Z' fill='%23F5D042' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E") 4 4, pointer !important;
}

ul { list-style: none; }

/* -----------------------------
   Typography
----------------------------- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* -----------------------------
   Containers & Layouts
----------------------------- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: 100vh;
    padding-top: 80px;
}

/* -----------------------------
   Bento Grid System
----------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}

.bento-item.compact {
    flex-direction: row;
    align-items: center;
    padding: 24px 32px;
    gap: 20px;
}

.bento-item.compact .icon-box {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.bento-item.compact .card-title {
    margin-bottom: 0;
}

.bento-item.compact .fa-arrow-right {
    position: static;
    margin-left: auto;
    font-size: 1.2rem;
}

/* Col spans */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* Responsive Bento */
@media (max-width: 1024px) {
    .col-4, .col-3 { grid-column: span 6; }
    .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
    .bento-grid { gap: 16px; }
    .bento-item { padding: 24px; border-radius: 24px; }
    .col-12, .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
}

/* -----------------------------
   Floating Island Navigation
----------------------------- */
.dock-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-bounce);
    position: relative;
}

.dock-item i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.dock-item:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
    transform: scale(1.05);
}

.dock-item.active {
    color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-base);
}

/* For mobile dock */
@media (max-width: 600px) {
    .dock-nav { width: 90%; justify-content: space-between; padding: 8px 12px; }
    .dock-item { padding: 12px; }
    .dock-item span { display: none; }
    .dock-item i { margin-right: 0; font-size: 1.4rem; }
}

/* -----------------------------
   Top Navigation (Subpages)
----------------------------- */
.top-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 15px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav-links {
    display: flex;
    gap: 30px;
}

.top-nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.top-nav-links a:hover {
    color: var(--text-primary);
}

.top-nav-links a.active {
    color: var(--text-primary);
}

.top-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .top-nav-links { display: none; }
}

/* -----------------------------
   Parallax & Imagery
----------------------------- */
.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* Extra height for move */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.6;
    transition: transform 0.1s linear;
}

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* -----------------------------
   Buttons & Links
----------------------------- */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 3 L26 13 L16 17 L21 27 L18 29 L12 19 L4 25 Z' fill='%23F5D042' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E") 4 4, pointer !important;
}

.btn-pill:hover {
    background: var(--text-primary);
    color: var(--bg-base);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--text-primary);
    color: var(--bg-base);
    transform: scale(1.1);
}

/* -----------------------------
   Tags
----------------------------- */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* -----------------------------
   Specific Components
----------------------------- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.huge-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.bento-item:hover .profile-img-wrap img {
    transform: scale(1.05);
}

/* Floating Elements */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

/* Timeline */
.modern-timeline {
    position: relative;
    padding-left: 30px;
}
.modern-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--border-hover);
}
.timeline-item {
    position: relative;
    padding-bottom: 40px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px; top: 6px; width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 3px solid var(--bg-surface);
}

/* Modals */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
}
.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-modal.show img { transform: scale(1); }
.close-modal {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff; font-size: 40px;
    font-weight: bold; cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover { color: var(--text-secondary); }
