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

:root {

    --primary-text: #000000;
    --secondary-text: #444444;
    --tertiary-text: #666666;
    --border-color: #e0e0e0;
    --hover-bg: #f5f5f5;
    --accent-color: #000000;
    --bg-color: #ffffff;

    --star-badge-bg: rgba(0,0,0,0.06);
    --star-badge-shadow: 0 1px 2px rgba(0,0,0,0.04);

    --hero-size: clamp(4rem, 12vw, 12rem);
    --section-size: clamp(2rem, 6vw, 4rem);
    --text-size: clamp(1rem, 2.5vw, 1.5rem);
}

body.dark-mode {
    --primary-text: #ffffff;
    --secondary-text: #eaeaea;
    --tertiary-text: #c8c8c8;
    --border-color: #333333;
    --hover-bg: #222222;
    --accent-color: #ffffff;
    --bg-color: #121212;

    --star-badge-bg: rgba(255,255,255,0.06);
    --star-badge-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.star-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--star-badge-bg);
    color: var(--primary-text);
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: var(--star-badge-shadow);
}
.star-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.project-links .project-link + .star-badge { margin-left: 8px; }
.star-badge.loading { opacity: 0.7; }
.star-badge.error { opacity: 0.5; filter: grayscale(1); }

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

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

@keyframes expandLine {
    to {
        width: 80px;
    }
}

html {

    scroll-behavior: auto;
}

body {
    font-family: 'Gowun Batang', serif;
    font-weight: 400;
    line-height: 1.4;
    color: var(--primary-text);
    background: var(--bg-color);
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    letter-spacing: -0.02em;
    overscroll-behavior: none;
    transform: none !important;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {

    html, body { overscroll-behavior: auto !important; }

    .navigation { display: block !important; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--bg-color); }
    .menu-button { display: block !important; }
    .osmo-cloneable .menu { display: flex !important; }
    .container {
        padding: 0 20px;
    }
}

body.dark-mode {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.section, .project, .achievement, .misc-item, .header, .navigation {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.gsap-fade-in {
    opacity: 0;
    transform: translateY(50px);
}

.gsap-slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.gsap-slide-right {
    opacity: 0;
    transform: translateX(50px);
}

.gsap-scale {
    opacity: 0;
    transform: scale(0.8);
}

.gsap-stagger {
    opacity: 0;
    transform: translateY(30px);
}
.project, .achievement, .misc-item {
    transition: none;
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: none;
}


.navigation {
    display: none;
}

body.dark-mode .navigation {
    background: rgba(18, 18, 18, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.navigation.scrolled {
    top: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.dark-mode .navigation.scrolled {
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    gap: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 400;
    padding: 12px 20px;
    border-radius: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-text);
    background: var(--hover-bg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-text);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.nav-link.active::after {
    width: 20px;
}


.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: none;
}

.hero-strips {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.hero-strips .strip {
    position: absolute;
    left: 0;
    right: 0;
    height: 12%;
    overflow: hidden;
}

.hero-strips .strip:nth-child(1) { top: 5%; }
.hero-strips .strip:nth-child(2) { top: 22%; }
.hero-strips .strip:nth-child(3) { top: 39%; }
.hero-strips .strip:nth-child(4) { top: 56%; }
.hero-strips .strip:nth-child(5) { top: 73%; }
.hero-strips .strip:nth-child(6) { top: 90%; }

.hero-strips .strip-text {
    white-space: nowrap;
    font-size: clamp(24px, 6vw, 56px);
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--primary-text);
    opacity: 0.8;
    transform: translateX(0);
}

.hero-strips .strip.reverse .strip-text {
    opacity: 0.6;
}

.header .container {
    width: 100%;
}

.name {
    font-size: var(--hero-size);
    font-weight: 200;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--primary-text);
    line-height: 1;
    text-transform: lowercase;
    position: relative;
    overflow: visible;
}

.name-line {
    display: block;
    overflow: visible;
    padding-bottom: 0;
}

.name-line:first-child {
    margin-bottom: 0.08em;
}

.name-char {
    display: inline-block;
    transform: none;
    transition: none;
    margin-right: 0.01em;
}

.title {
    font-size: var(--text-size);
    color: var(--secondary-text);
    margin: 3rem 0 0 0;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 1;
    transform: none;
}

.contact {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
}

.contact-left {
    display: flex;
    gap: 40px;
}

.contact a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact a:hover {
    color: var(--primary-text);
}

.contact a:hover::after {
    width: 100%;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--tertiary-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--tertiary-text);
    opacity: 0.5;
}


.dark-mode-toggle {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    position: fixed;
    top: 28px;
    right: 30px;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-family: 'Gowun Batang', serif;
    color: var(--primary-text);
    z-index: 2000;
    line-height: 1;
}

.dark-mode-toggle:hover {
    opacity: 1;
}


.dark-mode-toggle .toggle-text {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    line-height: 1;
}


.menu-button {
    position: fixed;
    font-size: 0.9rem;
    top: 24px;
    right: 60px;
    background: transparent;
    border: none;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 8px;
    cursor: pointer;
    z-index: 1100;
    transform: translateY(-4px);
}
.menu-button-text { display: flex; flex-direction: column; align-items: flex-end; height: 1em; overflow: hidden; }
.menu-button .p-large { font-family: 'Gowun Batang', serif; line-height: 1; }
.menu-button-icon { width: 1em; height: 1em; display: none !important; }
.icon-wrap { display: none !important; }


.osmo-cloneable .menu { font-family: 'Gowun Batang', serif; }
.osmo-cloneable .menu-link-heading { font-family: 'Gowun Batang', serif; text-transform: none; letter-spacing: -0.02em; font-weight: 400; font-size: clamp(28px, 6vw, 48px); text-align: left; }
.osmo-cloneable .menu-link { justify-content: flex-end; }
.osmo-cloneable .menu-details, .osmo-cloneable .menu-list { align-items: stretch; }
.osmo-cloneable .menu { --menu-padding: clamp(20px, 4vw, 40px); }
.osmo-cloneable .menu-link { padding-left: 0; padding-right: 0; }
.osmo-cloneable .menu-inner { padding-right: 0; }
.osmo-cloneable .eyebrow { font-family: 'Gowun Batang', serif; letter-spacing: 0.12em; align-self: flex-end; margin-left: 0; margin-right: 0; }


.osmo-cloneable .menu-link, .osmo-cloneable .menu-link-heading { text-align: left; }


.osmo-cloneable .menu,
.osmo-cloneable .menu-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.osmo-cloneable .menu::-webkit-scrollbar,
.osmo-cloneable .menu-inner::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
    .menu-button { top: 15px; right: 15px; }
}


.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-color);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 9998;
}


.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 0;
}

.section-header {
    position: static;
    z-index: 10;
    background: var(--bg-color);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.section-title {
    font-size: var(--section-size);
    font-weight: 200;
    margin: 0;
    padding-top: 0.15em;
    color: var(--primary-text);
    letter-spacing: -0.03em;
    text-transform: lowercase;
    line-height: 1;
    overflow: visible;
}


.contrast-text { color: var(--secondary-text); transition: color 0.4s ease; }
.in-contrast { color: var(--primary-text) !important; }


#projects .project-description .word { color: var(--secondary-text); transition: color 0.3s ease; }
#projects .project-description .word.reveal { color: var(--primary-text); }

.section-title-char {
    display: inline-block;
    transform: translateY(100%);
}

.section-number {
    position: static;
    font-size: 14px;
    color: var(--tertiary-text);
    font-weight: 300;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

body {
    font-family: 'Gowun Batang', serif;
    font-weight: 400;
    line-height: 1.4;
    color: var(--primary-text);
    background: var(--bg-color);
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    letter-spacing: -0.02em;
    overscroll-behavior: contain;
    transform: none !important;
    overflow-x: hidden;
    margin-bottom: 60px;
}


#about .text {
    padding: 40px 0;
}
#about .text p {
    font-family: 'Gowun Batang', serif;
    font-size: clamp(24px, 5vw, 52px);
    line-height: 1.2;
    margin: 0 0 0 50px;
}

#about .text p .line {
    background: linear-gradient(to right, var(--primary-text) 50%, var(--secondary-text) 50%);
    background-size: 200% 100%;
    background-position-x: 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}


#about .about .word { color: var(--secondary-text); transition: color 0.3s ease; }
#about .about .word.reveal { color: var(--primary-text); }
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
    max-width: none;
}

.achievement {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 40px 30px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.achievement:hover {
    transform: translateY(-10px);
    background: var(--hover-bg);
    border-color: var(--primary-text);
}

body.dark-mode .achievement:hover {
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.02);
}

.achievement-content {
    position: relative;
}

.achievement-number {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 20px;
    display: block;
}

.achievement-content h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--primary-text);
}

.achievement-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--secondary-text);
    font-weight: 300;
}

.achievement-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

.achievement-content a {
    color: var(--primary-text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-content a:hover::after {
    width: 100%;
}

.achievement-content a:hover {
    color: var(--secondary-text);
}

.achievement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-text), var(--secondary-text));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement:hover::before {
    opacity: 0.6;
}


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

.project {
    padding: 64px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.project:last-child {
    border-bottom: none;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

.project-info h3 {
    font-size: calc(var(--text-size) * 1.7);
    font-weight: 300;
    margin: 0 0 20px 0;
    color: var(--primary-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.project-tech {
    background: transparent;
    color: var(--tertiary-text);
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
}

.project-year {
    color: var(--tertiary-text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-description {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 28px;
    font-size: 16px;
    font-weight: 300;
}

.project-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.project-links.single-link {
    gap: 8px;
}
.project-links .project-link + .star-badge { margin-left: 8px; }


.project-info {
    padding: 0 24px;
}

.project-link {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    transition: all 0.3s ease;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-visual { display: none; }

.project-number {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 120px;
    font-weight: 100;
    color: var(--tertiary-text);
    line-height: 1;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* use the theme-aware tertiary text color for better contrast */
/* dark-mode will inherit via the CSS variable */

@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-number {
        font-size: 80px;
    }

    .section-header {
        top: auto;
        padding: 40px 0 30px;
        margin-bottom: 60px;
    }
}

.demo-link {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.demo-link:hover {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

body.dark-mode .demo-link {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .demo-link:hover {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

.link-icon {
    font-size: 12px;
}

.project-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.project-status.current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .project-status {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .project-status.current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .project { background: transparent; border-color: var(--border-color); }

body.dark-mode .project-name a {
    color: #ffffff;
}

body.dark-mode .project-tech {
    background: #2c2c3e;
    color: #ffffff;
}

body.dark-mode .project-link {
    color: #ffffff;
    border-color: #44475a;
}


.project-demo {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover .project-demo {
    opacity: 1;
    transform: translateY(0);
}

.demo-button {
    background: transparent;
    border: 1px solid var(--primary-text);
    color: var(--primary-text);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Gowun Batang', serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-text);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.demo-button:hover::before {
    left: 0;
}

.demo-button:hover {
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .demo-button:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}


body.dark-mode .demo-button {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-mode .demo-button:hover {
    color: #121212;
}

.demo-text {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.demo-button:hover .demo-text {
    transform: translateX(-2px);
}

.demo-button:hover .demo-arrow {
    transform: translateX(4px);
}


.demo-button:focus {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

.demo-button:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-text), var(--secondary-text));
    border-radius: 3px;
    width: 0%;
}

.skill-progress.animate {
    width: var(--progress-width);
}


.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 20px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--secondary-text);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary-text);
    padding: 12px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-text);
    border-bottom-color: var(--border-color);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--primary-text);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-text);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--tertiary-text);
}

.submit-button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .submit-button {
    background: #000000;
    color: #ffffff;
}

body.dark-mode .submit-button:hover {
    background: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button.success {
    background: #4caf50 !important;
}

.submit-button.error {
    background: #f44336 !important;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2196f3;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-family: 'Gowun Batang', serif;
    font-size: 14px;
    line-height: 1.4;
}

.notification-success {
    background: #4caf50;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196f3;
}

.form-loading .form-group input,
.form-loading .form-group textarea {
    opacity: 0.6;
    pointer-events: none;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

.submit-button:focus-visible {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

body.dark-mode .form-group input:focus-visible,
body.dark-mode .form-group textarea:focus-visible,
body.dark-mode .submit-button:focus-visible {
    outline-color: #ffffff;
}
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}

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

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }


@media (max-width: 768px) {
    body {
        padding: 40px 20px;
        font-size: 14px;
    }

    .section {
        margin-bottom: 35px;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .navigation {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0 auto 40px auto;
        width: fit-content;
    }

    .nav-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .header {
        margin-bottom: 60px;
        padding-bottom: 40px;
    }

    .name {
        font-size: 28px;
    }

    .title {
        font-size: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .misc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section {
        margin-bottom: 60px;
    }

    .dark-mode-toggle {
    top: 15px;
    right: 60px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 30px 15px;
    }

    .name {
        font-size: 24px;
    }

    .header {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }

    .section {
        margin-bottom: 30px;
    }

    .section-title {
        margin-bottom: 15px;
    }

    .nav-container {
        gap: 8px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}

.skill-progress[data-progress="90"] { --progress-width: 90%; }
.skill-progress[data-progress="85"] { --progress-width: 85%; }
.skill-progress[data-progress="95"] { --progress-width: 95%; }
.skill-progress[data-progress="80"] { --progress-width: 80%; }
.skill-progress[data-progress="75"] { --progress-width: 75%; }


.project {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover { transform: translateY(-4px); box-shadow: none; z-index: 5; }

.project:hover .project-number {
    transform: translateY(-6px);
    color: var(--tertiary-text);
}

body.dark-mode .project:hover { box-shadow: none; }

.misc-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.misc-item:hover {
    transform: translateY(-5px);
}


.section {
    will-change: transform, opacity;
}

.project, .misc-item {
    will-change: transform;
}




.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333333;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .back-to-top {
    background: #000000;
    color: #ffffff;
}

body.dark-mode .back-to-top:hover {
    background: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.back-to-top-icon {
    line-height: 1;
}


.misc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.misc-item {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 40px 30px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.misc-item:hover {
    transform: translateY(-10px);
    background: var(--hover-bg);
    border-color: var(--primary-text);
}

.misc-number {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 20px;
    display: block;
}

.misc-item h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--primary-text);
    line-height: 1.3;
}

.misc-content {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 300;
}

.highlight {
    color: var(--primary-text);
    font-weight: 400;
}

body.dark-mode .misc-item {
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(128, 128, 128, 0.3);
}


.footer {
    margin-top: 120px;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    animation-delay: 0.7s;
}

.footer p {
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}


@font-face {
    font-family: 'Gowun Batang';
    src: url('/assets/fonts/GowunBatang.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.osmo-ui { z-index: 0; pointer-events: none; display: flex; flex-flow: column; }
.osmo-header { display: none; }

.osmo-cloneable { padding: 0; min-height: 0; }
.osmo-cloneable .nav { z-index: 100; width: 100%; height: 100vh; position: fixed; inset: 0; display: none; }
.osmo-cloneable .overlay { z-index: 0; cursor: pointer; background-color: #13131366; width: 100%; height: 100%; position: absolute; inset: 0; }
.osmo-cloneable .menu { padding-bottom: 2em; gap: 5em; padding-top: 6em; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; width: min(26em, 21vw); height: 100%; margin-left: auto; position: relative; overflow: auto; padding-right: 0; }
.osmo-cloneable .menu-bg { z-index: 0; position: absolute; inset: 0; }
.osmo-cloneable .bg-panel { z-index: 0; background-color: var(--bg-color); border-top-left-radius: 0; border-bottom-left-radius: 0; position: absolute; inset: 0; }
.osmo-cloneable .bg-panel.first { background-color: var(--accent-color); }
.osmo-cloneable .bg-panel.second { background-color: var(--hover-bg); }
.osmo-cloneable .menu-inner { z-index: 1; gap: 5em; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; height: 100%; position: relative; overflow: auto; }
.osmo-cloneable .menu-list { display: flex; flex-direction: column; width: 100%; list-style: none; margin: 0; padding: 0; }
.osmo-cloneable .menu-list-item { position: relative; overflow: hidden; }
.osmo-cloneable .menu-link { padding: .75em 0 .75em 0; gap: .75em; width: 100%; text-decoration: none; display: flex; align-items: center; justify-content: flex-end; text-align: right; color: var(--primary-text); }
.osmo-cloneable .menu-link { position: relative; transition: background-color 0.25s ease; }
.osmo-cloneable .menu-link:hover,
.osmo-cloneable .menu-link:focus-visible { background-color: var(--hover-bg); }


.osmo-cloneable .menu-link::after { content: ''; position: absolute; right: 0; top: .35em; bottom: .35em; width: 3px; background: var(--accent-color); transform: scaleY(0); transform-origin: center bottom; transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s; opacity: 0.7; }
.osmo-cloneable .menu-link:hover::after,
.osmo-cloneable .menu-link:focus-visible::after { transform: scaleY(1); }
.osmo-cloneable .menu-link-heading { z-index: 1; text-transform: uppercase; font-family: 'Gowun Batang', serif; font-size: clamp(28px, 6vw, 48px); font-weight: 700; line-height: .75; transition: transform .55s cubic-bezier(.65, .05, 0, 1); position: relative; text-shadow: none; text-align: left; }
.osmo-cloneable .eyebrow { z-index: 1; color: var(--accent-color); text-transform: uppercase; font-family: monospace; font-weight: 400; position: relative; }
.osmo-cloneable .menu-link-bg { display: none !important; }
.osmo-cloneable .menu-link:hover .menu-link-heading { transform: translateY(-1em); transition-delay: .1s; }
.osmo-cloneable .menu-link:hover .menu-link-heading { transform: none; transition-delay: 0s; }
.osmo-cloneable .menu-link:hover .menu-link-bg { transform: scale3d(1,1,1); }
.osmo-cloneable .menu-details { padding-left: var(--menu-padding, 2em); gap: 1.25em; display: flex; flex-direction: column; }
.osmo-cloneable .p-small { font-size: .875em; font-family: 'Gowun Batang', serif; }
.osmo-cloneable .p-large { font-size: 1.125em; font-family: 'Gowun Batang', serif; }
.osmo-cloneable .text-link { text-decoration: none; position: relative; color: var(--primary-text); }
.osmo-cloneable .text-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent-color); transform-origin: right center; transform: scale(0,1); transition: transform .4s cubic-bezier(.65, .05, 0, 1); }
.osmo-cloneable .text-link:hover::after { transform-origin: left center; transform: scale(1,1); }

.osmo-icon-svg { display: none; }

@media (hover:hover) {
    .osmo-cloneable .menu-button:hover .icon-wrap { transform: rotate(90deg); }
}

@media screen and (max-width: 767px) {
    .osmo-cloneable .menu { padding-top: 7em; width: min(36em, 100vw); }
    .osmo-cloneable .bg-panel { border-top-left-radius: 0; border-bottom-left-radius: 0; }
    .osmo-cloneable .menu-list-item { height: 4.5em; }
    .osmo-cloneable .menu-link-heading { font-size: clamp(22px, 8vw, 36px); text-align: left; }
}

.osmo-credits, .osmo-credits__p, .osmo-credits__p-a { display: none; }

/* ========== ENHANCED GSAP ANIMATIONS STYLES ========== */

/* Smooth transitions for all interactive elements */
.project,
.misc-item,
.skill-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Enhanced hover states */
.project-link,
.contact a {
    will-change: transform;
}

/* Ensure project links are always visible */
.project-link {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
}

/* Parallax container */
.section {
    will-change: transform, opacity;
}

/* Project visual enhancements */
.project-visual {
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover .project-visual {
    transform: scale(1.02);
}

/* Section number parallax */
.section-number,
.project-number {
    will-change: transform;
}

/* Smooth reveal animations */
.section-title-char {
    display: inline-block;
    will-change: transform, opacity;
}

.name-char {
    display: inline-block;
    will-change: transform, opacity;
    transform-style: preserve-3d;
}

/* Enhanced project cards */
.project-content {
    will-change: opacity;
}

.project-info {
    will-change: transform;
}

/* Dark mode toggle enhancement */
.dark-mode-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
}

/* Back to top button enhancement */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Smooth opacity transitions */
.fade-in {
    will-change: opacity;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary-text);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}

/* Enhanced reading progress bar */
.reading-progress {
    transform-origin: left center;
    will-change: transform;
}

/* Magnetic effect preparations */
.project-link,
.contact a,
.dark-mode-toggle,
.back-to-top {
    will-change: transform;
    cursor: pointer;
}

/* Stagger animation support */
.project-tech {
    will-change: opacity, transform;
}

.project-links .project-link {
    will-change: opacity, transform;
}

/* Scale animation support */
.section {
    transform-origin: center center;
}

/* Blur effect for enhanced animations */
.text,
.about,
.about-large {
    will-change: transform, opacity, filter;
}

/* Hero strips smooth animation */
.strip-text {
    will-change: transform;
}

/* Enhanced link underlines */
a {
    position: relative;
}

/* Project meta smooth reveal */
.project-meta {
    will-change: opacity, transform;
}

/* Smooth color transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Override for elements that shouldn't transition */
.strip-text,
.reading-progress {
    transition: none !important;
}

/* GPU acceleration for better performance */
.project,
.section,
.name-char,
.section-title-char,
.project-visual,
.project-number,
.section-number {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

