:root {
    --bg-color: #f8f8f8;
    --text-color: #121212;
    --accent: #666666;
    --font-hand-ko: 'Nanum Pen Script', cursive;
    --font-hand-en: 'Caveat', cursive;
    --font-hand-zh: 'Yuji Boku', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-hand-en);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-weight: 400;
    font-size: 5rem;
    letter-spacing: 4px;
    opacity: 0;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Hover effect via JS class */
.cursor.active {
    width: 0;
    height: 0;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.05);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    font-weight: 300;
    letter-spacing: 1px;
    align-items: center;
    color: #000;
}

nav a {
    text-decoration: none;
    color: #000 !important;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.6;
}

.korean-handwriting-sm {
    font-family: var(--font-hand-ko);
    font-size: 2.5rem;
}

/* Smooth content wrapper */
#smooth-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hero-sequence {
    opacity: 0.7;
    /* Make the background white color peek through */
    filter: brightness(1.2);
    /* Brighten the image itself */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    filter: brightness(0.9);
}

.hero-text-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 11vw;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 2px;
    perspective: 1000px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-right: 0.15em;
}

.hero-title span {
    display: block;
}

.korean-handwriting-title {
    font-family: var(--font-hand-ko);
}

/* Bio Section */
.bio-section {
    padding: 100px 10vw 15vh 10vw;
    position: relative;
    background: var(--bg-color);
    z-index: 2;
}

.bio-container {
    max-width: 800px;
    margin: 0 auto 15vh;
}

.rev-text {
    opacity: 0;
    transform: translateY(30px);
}

.korean-handwriting {
    font-family: var(--font-hand-ko);
    font-size: 3.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

.bio-process {
    width: 100%;
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.process-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.2);
}

/* Gallery Section */
.gallery-section {
    padding: 10vh 5vw;
    background: var(--bg-color);
}

.gallery-intro {
    text-align: center;
    margin-bottom: 15vh;
}

.section-title {
    font-size: 7vw;
    font-weight: 400;
    letter-spacing: 3px;
}

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

.gallery-item {
    width: 45%;
}

.gallery-item:nth-child(2) {
    margin-top: 20vh;
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 10px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-wrapper.interactable:hover img {
    transform: scale(1.05);
}

/* Experience Section */
.experience-section {
    height: 150vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding-bottom: 10vh;
}

.experience-inner {
    width: 100%;
    transform: translateY(-10vh);
}

.huge-text {
    font-size: 10vw;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.zh-hand {
    font-family: var(--font-hand-zh);
    font-size: 1.1em;
}

.huge-text.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
}

/* Footer */
footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-size: 6vw;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.footer-sub {
    font-size: 2.5rem;
    opacity: 1;
    transform: none;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 3rem;
}

.instagram-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem 3rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.instagram-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.career-title {
    font-size: 5rem;
    margin-top: 0;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.career-list {
    list-style: none;
    padding: 0;
}

.career-list li {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.career-list .detail {
    font-family: var(--font-hand-ko);
    font-size: 2.5rem;
    letter-spacing: 1px;
}
