/* ========================================
   CSS Variables & Reset - Beige/Cream + Dark Brown Theme
======================================== */
:root {
    --bg-primary: #f5f1eb;
    --bg-secondary: #ebe5db;
    --bg-tertiary: #e0d8cc;
    --bg-card: #ffffff;
    --bg-dark: #2d2622;

    --text-primary: #2d2622;
    --text-secondary: rgba(45, 38, 34, 0.75);
    --text-tertiary: rgba(45, 38, 34, 0.55);
    --text-muted: rgba(45, 38, 34, 0.35);
    --text-light: #f5f1eb;

    --accent-primary: #8b6914;
    --accent-secondary: #a67c00;
    --accent-gradient: linear-gradient(135deg, #8b6914, #a67c00, #c49a2c);
    --accent-glow: rgba(139, 105, 20, 0.2);

    --gold: #8b6914;
    --gold-light: #a67c00;

    --brown: #2d2622;
    --brown-light: #4a3f38;
    --cream: #f5f1eb;
    --beige: #e8e2d9;

    --border-color: rgba(45, 38, 34, 0.1);
    --border-hover: rgba(45, 38, 34, 0.2);

    --glass-bg: rgba(45, 38, 34, 0.03);
    --glass-border: rgba(45, 38, 34, 0.08);
    --glass-bg-dark: rgba(255, 255, 255, 0.05);
    --glass-border-dark: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 2px 10px rgba(45, 38, 34, 0.08);
    --shadow-md: 0 4px 30px rgba(45, 38, 34, 0.12);
    --shadow-lg: 0 10px 60px rgba(45, 38, 34, 0.15);
    --shadow-glow: 0 0 60px rgba(139, 105, 20, 0.1);

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Space Grotesk', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ========================================
   Noise Overlay
======================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}


/* ========================================
   Scroll Progress
======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s linear;
}


/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(245, 241, 235, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket {
    color: var(--accent-primary);
    font-weight: 300;
}

.logo-text {
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-number {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

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

.nav-links a:hover .nav-number,
.nav-links a.active .nav-number {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-cta {
    font-size: 0.85rem;
    padding: 12px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--brown);
    border-color: var(--brown);
    color: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-frame:hover img {
    transform: scale(1.05);
}

.image-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 38, 34, 0.3) 100%);
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 38, 34, 0.1);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: float 4s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

.badge-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    left: -30px;
    animation-delay: 2s;
}

.badge-number {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tag-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.tag-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 32px;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordReveal 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 0.3s;
}

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

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.highlight-item:hover {
    border-color: var(--gold);
    background: rgba(139, 105, 20, 0.1);
}

.highlight-icon {
    color: var(--gold);
    font-size: 0.85rem;
}

.highlight-text {
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 100px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brown);
    color: var(--text-light);
    border: 2px solid var(--brown);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary .btn-text,
.btn-primary .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 105, 20, 0.3);
    color: var(--brown);
}

.btn-primary .btn-icon {
    transition: var(--transition);
}

.btn-primary:hover .btn-icon {
    transform: translateY(3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

.hero-bg-text {
    position: absolute;
    bottom: -5%;
    right: -5%;
    font-family: 'Syne', sans-serif;
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: -0.05em;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Marquee Section
======================================== */
.marquee-section {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-tertiary);
}

.marquee-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   Section Tags & Titles
======================================== */
.section-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-tag.light .tag-number,
.section-tag.light .tag-text {
    color: rgba(255, 255, 255, 0.5);
}

.section-tag.light .tag-line {
    background: rgba(255, 255, 255, 0.3);
}

.tag-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--gold);
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

.title-stroke {
    display: block;
    -webkit-text-stroke: 1px var(--text-primary);
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.title-fill {
    display: block;
    color: var(--text-primary);
}

.section-title-large {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-header-center .section-tag {
    justify-content: center;
}

.section-number {
    position: absolute;
    bottom: 40px;
    right: 60px;
    font-family: 'Space Grotesk', monospace;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 160px 0;
    background: var(--brown);
    position: relative;
    overflow: hidden;
}

.about .section-tag .tag-number,
.about .section-tag .tag-text {
    color: var(--gold);
}

.about .section-tag .tag-line {
    background: var(--gold);
}

.about .section-title,
.about .title-stroke,
.about .title-fill {
    color: var(--text-light);
}

.about .title-stroke {
    -webkit-text-stroke-color: var(--text-light);
}

.about .about-intro {
    color: var(--text-light);
}

.about .about-detail {
    color: rgba(255, 255, 255, 0.7);
}

.about .skill-pill {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.about .skill-pill:hover {
    border-color: var(--gold);
    background: rgba(139, 105, 20, 0.2);
}

.about .pill-icon {
    color: var(--gold);
}

.about .pill-text {
    color: rgba(255, 255, 255, 0.8);
}

.about .contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.about .contact-card:hover {
    border-color: var(--gold);
}

.about .card-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
}

.about .card-label {
    color: var(--gold);
}

.about .card-value {
    color: var(--text-light);
}

.about .section-number {
    color: rgba(255, 255, 255, 0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: start;
}

.about-left {
    position: sticky;
    top: 150px;
}

.about-right {
    max-width: 600px;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-detail {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.skills-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: var(--transition);
}

.skill-pill:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.15);
}

.pill-icon {
    color: var(--gold);
    font-size: 1rem;
}

.pill-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--gold);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    color: var(--gold);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.card-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ========================================
   Experience Section
======================================== */
.experience {
    padding: 160px 0;
    background: var(--bg-primary);
    position: relative;
}

.timeline-modern {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-item-modern {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.timeline-item-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-year {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', monospace;
    padding-top: 30px;
}

.year-number {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.year-dash {
    color: var(--gold);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.company-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.role-badge {
    font-size: 0.75rem;
    padding: 8px 16px;
    background: var(--brown);
    border-radius: 100px;
    color: var(--text-light);
}

.role-type {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.achievements li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.achievement-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 105, 20, 0.2);
    border-radius: 50%;
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.achievement-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    font-size: 0.8rem;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-tertiary);
}

/* ========================================
   Projects Section
======================================== */
.projects {
    padding: 160px 0;
    background: var(--bg-secondary);
    position: relative;
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: var(--transition-slow);
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.project-item:nth-child(even) .project-image-wrapper {
    order: 2;
}

.project-item:nth-child(even) .project-content {
    order: 1;
}

.project-featured {
    grid-template-columns: 1.5fr 1fr;
}

/* Portrait (vertical) image projects */
.project-item.project-portrait {
    grid-template-columns: 1fr 1.5fr;
}

.project-item.project-portrait:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
}

.project-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image-wrapper.portrait {
    aspect-ratio: 9/16;
    max-width: 400px;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-item:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(45, 38, 34, 0.8) 100%);
    pointer-events: none;
}

.project-number {
    position: absolute;
    top: 24px;
    left: 24px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 38, 34, 0.1);
    border-radius: 100px;
    color: var(--text-primary);
}

.project-content {
    padding: 20px 0;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold);
}

.meta-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-duration {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-duration i {
    font-size: 0.7rem;
    color: var(--gold);
}

.project-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.project-tech span:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.project-github {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brown);
    color: var(--text-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-github:hover {
    background: var(--gold);
}

.project-github i {
    font-size: 0.85rem;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 160px 0;
    background: var(--brown);
    position: relative;
    overflow: hidden;
}

.contact .section-tag .tag-number,
.contact .section-tag .tag-text {
    color: var(--gold);
}

.contact .section-tag .tag-line {
    background: var(--gold);
}

.contact .contact-title {
    color: var(--text-light);
}

.contact .contact-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.contact .contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact .contact-info-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 40px rgba(139, 105, 20, 0.2);
}

.contact .info-card-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
}

.contact .info-card-label {
    color: var(--gold);
}

.contact .info-card-value {
    color: var(--text-light);
}

.contact .info-card-arrow {
    color: var(--gold);
}

.contact .social-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.contact .social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown);
}

.contact .contact-bg-text {
    color: rgba(255, 255, 255, 0.02);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
}

.contact-info-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-size: 1.3rem;
}

.info-card-content {
    text-align: center;
}

.info-card-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.info-card-value {
    font-size: 1rem;
    color: var(--text-primary);
}

.info-card-arrow {
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

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

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-5px);
}

.contact-bg-text {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Syne', sans-serif;
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.015);
    letter-spacing: -0.05em;
    pointer-events: none;
    white-space: nowrap;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--brown);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Development Info Section */
.footer-dev-info {
    padding-bottom: 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-info-header {
    text-align: center;
    margin-bottom: 48px;
}

.dev-info-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 16px;
}

.dev-info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.dev-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.dev-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: var(--transition);
}

.dev-info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.dev-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 105, 20, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.dev-card-icon i {
    font-size: 1.3rem;
    color: var(--gold);
}

.dev-card-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.dev-card-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.dev-info-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gold);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brown);
    transition: var(--transition);
}

.dev-link:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 105, 20, 0.3);
}

.dev-link i:first-child {
    font-size: 1.2rem;
}

.dev-link i:last-child {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dev-link:hover i:last-child {
    transform: translateX(4px);
}

.dev-version {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.version-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.version-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
}

.footer .logo-bracket {
    color: var(--gold);
}

.footer .logo-text {
    color: var(--text-light);
}

.footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer .footer-credit {
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    font-weight: 600;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-credit {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: var(--gold);
}

.btt-line {
    width: 1px;
    height: 60px;
    background: currentColor;
}

.btt-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

/* ========================================
   Animation Classes
======================================== */
[data-animate] {
    opacity: 0;
    transition: var(--transition-slow);
}

[data-animate].animated {
    opacity: 1;
}

[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-up"].animated {
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(-60px);
}

[data-animate="fade-left"].animated {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(60px);
}

[data-animate="fade-right"].animated {
    transform: translateX(0);
}

[data-animate="fade-scale"] {
    transform: scale(0.9);
}

[data-animate="fade-scale"].animated {
    transform: scale(1);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .nav-container {
        padding: 0 40px;
    }

    .hero-grid {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .dev-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-tag {
        justify-content: center;
    }

    .hero-highlights {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-left {
        position: static;
        text-align: center;
    }

    .about-left .section-tag {
        justify-content: center;
    }

    .about-right {
        max-width: 100%;
    }

    .timeline-item-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-item,
    .project-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-item:nth-child(even) .project-image-wrapper {
        order: 1;
    }

    .project-item:nth-child(even) .project-content {
        order: 2;
    }

    .project-image-wrapper.portrait {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 24px;
    }

    /* Footer Dev Info Responsive */
    .dev-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dev-info-card {
        padding: 20px;
    }

    .dev-info-header {
        margin-bottom: 32px;
    }

    .dev-info-title {
        font-size: 1.25rem;
    }

    .dev-info-links {
        flex-direction: column;
        gap: 16px;
    }

    .dev-link {
        width: 100%;
        justify-content: center;
    }

    .dev-version {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-github {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-grid {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .floating-badge {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .about,
    .experience,
    .projects,
    .contact {
        padding: 100px 0;
    }

    .section-title-large {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .project-item.project-portrait,
    .project-item.project-portrait:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .project-image-wrapper.portrait {
        max-width: 280px;
        margin: 0 auto;
        aspect-ratio: 9/16;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 12px;
    }

    a, button {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .skills-showcase {
        justify-content: center;
    }

    .timeline-card {
        padding: 24px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================
   Project Image Slider
======================================== */
.project-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slider-slide {
    cursor: pointer;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 38, 34, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.project-image-wrapper:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--brown);
    color: var(--text-light);
    border-color: var(--brown);
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active:hover {
    background: var(--gold);
}

/* Slider responsive */
@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 12px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   Image Modal
======================================== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: rotate(90deg);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-image-container {
    max-width: 80vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-image-container img {
    transform: scale(1);
}

.modal-info {
    margin-top: 20px;
    text-align: center;
    color: white;
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-image-container {
        max-width: 95vw;
        max-height: 70vh;
    }

    .modal-image-container img {
        max-height: 70vh;
    }

    .modal-title {
        font-size: 1rem;
    }
}

/* ========================================
   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;
    }
}

/* ========================================
   Portfolio Link Banner
======================================== */
.portfolio-link-banner {
    display: block;
    margin: 0 auto 4rem;
    max-width: 900px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.portfolio-link-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.portfolio-link-banner:hover::before {
    left: 100%;
}

.portfolio-link-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 70px rgba(139, 105, 20, 0.3);
}

.portfolio-link-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.portfolio-link-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.portfolio-link-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.portfolio-link-text {
    flex: 1;
}

.portfolio-link-text h3 {
    color: var(--text-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    font-family: 'Syne', sans-serif;
}

.portfolio-link-text p {
    color: rgba(245, 241, 235, 0.9);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.portfolio-link-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.portfolio-link-arrow i {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.portfolio-link-banner:hover .portfolio-link-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.portfolio-link-banner:hover .portfolio-link-arrow i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-link-banner {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .portfolio-link-content {
        gap: 1.5rem;
    }

    .portfolio-link-icon {
        width: 50px;
        height: 50px;
    }

    .portfolio-link-icon i {
        font-size: 1.5rem;
    }

    .portfolio-link-text h3 {
        font-size: 1.25rem;
    }

    .portfolio-link-text p {
        font-size: 0.9rem;
    }

    .portfolio-link-arrow {
        width: 40px;
        height: 40px;
    }

    .portfolio-link-arrow i {
        font-size: 1.2rem;
    }
}
