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

:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --gray: #888;
    --gray-dark: #333;
    --accent: #c8ff00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: transparent;
    color: var(--black);
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

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

/* ==================== CUSTOM CURSOR ==================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.35;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-follower.hover {
    width: 52px;
    height: 52px;
    opacity: 0.5;
}

/* ==================== 3D CANVAS ==================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* ==================== SIDE NAV ==================== */
.side-nav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.nav-item:hover,
.nav-item.active {
    color: var(--black);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 120px;
    position: relative;
}

.mega-title {
    font-size: clamp(60px, 13vw, 160px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

.title-word {
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-word.outline {
    -webkit-text-stroke: 2px var(--black);
    color: transparent;
}

.title-word:hover {
    transform: translateX(20px);
}

.hero-info {
    display: flex;
    gap: 60px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
}

.value {
    font-size: 14px;
    font-weight: 500;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 120px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ==================== WORKS SECTION ==================== */
.works-section {
    padding: 100px 0 80px;
}

.section-intro {
    padding: 0 120px;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
    background: rgba(200, 255, 0, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
}

.section-title-large {
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Horizontal Scroll */
.works-horizontal {
    display: flex;
    gap: 28px;
    padding: 0 120px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.works-horizontal::-webkit-scrollbar {
    display: none;
}

.works-horizontal:active {
    cursor: grabbing;
}

.work-item {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover {
    transform: translateY(-8px);
}

.work-item.featured {
    width: 340px;
}

.work-link {
    display: block;
    position: relative;
}

.work-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
    margin-bottom: 16px;
    border-radius: 12px;
}

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

.work-link:hover .work-image img {
    transform: scale(1.06);
}

.work-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-num {
    font-size: 80px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);
}

.work-info {
    padding-right: 20px;
}

.work-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.work-link:hover .work-title {
    color: var(--accent);
}

.work-category {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 2px;
}

.work-year {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.work-stat {
    position: absolute;
    top: 12px;
    right: 12px;
    text-align: right;
    background: var(--accent);
    padding: 10px 14px;
    border-radius: 8px;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.stat-desc {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.works-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 120px 0;
}

.works-all-link {
    padding: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 28px;
    border: 1px solid var(--black);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.view-all:hover {
    background: var(--black);
    color: var(--white);
    gap: 16px;
}

.view-all .arrow {
    transition: transform 0.3s ease;
}

.view-all:hover .arrow {
    transform: translateX(4px);
}

/* Works Navigation Buttons */
.works-nav {
    display: flex;
    gap: 10px;
    padding: 0;
}

.works-nav-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--black);
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
    transform: scale(1.08);
}

.works-nav-btn:active {
    transform: scale(0.92);
}

/* ==================== EXPERIENCE ==================== */
.experience-section {
    padding: 100px 120px;
}

.exp-list {
    margin-top: 48px;
}

.exp-item {
    display: grid;
    grid-template-columns: 100px 1fr 1.2fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.exp-item::before {
    content: attr(data-index);
    position: absolute;
    left: -50px;
    top: 28px;
    font-size: 10px;
    color: var(--gray);
}

.exp-item:hover {
    padding-left: 16px;
    background: rgba(200, 255, 0, 0.04);
    border-radius: 8px;
}

.exp-date {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.exp-role {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 13px;
    color: var(--gray);
}

.exp-desc {
    font-size: 13px;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ==================== ABOUT ==================== */
.about-section {
    padding: 100px 120px;
    background: var(--black);
    color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.3;
}

.about-title em {
    font-style: normal;
    color: var(--accent);
}

.detail-block {
    margin-bottom: 32px;
}

.detail-block h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    margin-bottom: 10px;
}

.detail-block p {
    font-size: 14px;
    line-height: 1.8;
}

/* Skills Marquee */
.skills-marquee {
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.marquee-content span {
    font-size: 24px;
    font-weight: 300;
    color: var(--gray);
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* ==================== CONTACT ==================== */
.contact-section {
    min-height: 80vh;
    padding: 100px 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-title {
    font-size: clamp(48px, 12vw, 140px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin: 40px 0;
}

.contact-title .outline {
    -webkit-text-stroke: 2px var(--black);
    color: transparent;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
}

.contact-link {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    transition: all 0.3s ease;
}

.contact-link:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
    padding-left: 20px;
    background: rgba(200, 255, 0, 0.1);
}

.link-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
}

.link-value {
    font-size: 16px;
    font-weight: 500;
}

.link-arrow {
    font-size: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

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

.contact-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================== SETTINGS ==================== */
.settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--black);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: none;
    z-index: 100;
    transition: transform 0.3s ease;
}

.settings-btn:hover {
    transform: scale(1.1);
}

.settings-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--black);
    color: var(--white);
    padding: 24px;
    border-radius: 12px;
    z-index: 100;
    min-width: 200px;
    display: none;
}

.settings-panel.active {
    display: block;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.setting-row span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
}

.setting-row input[type="range"] {
    width: 100px;
    height: 2px;
    -webkit-appearance: none;
    background: var(--gray-dark);
    border-radius: 1px;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.fps-counter {
    text-align: center;
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-dark);
}

.fps-counter span {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        padding: 0 60px;
    }

    .side-nav {
        left: 20px;
    }

    .section-intro,
    .works-horizontal,
    .works-all-link,
    .experience-section,
    .about-section,
    .contact-section {
        padding-left: 60px;
        padding-right: 60px;
    }

    .exp-item::before {
        display: none;
    }

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

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    .side-nav {
        display: none;
    }

    .hero {
        padding: 120px 24px;
    }

    .mega-title {
        font-size: 48px;
    }

    .hero-info {
        flex-direction: column;
        gap: 24px;
    }

    .scroll-hint {
        right: 24px;
    }

    .section-intro,
    .works-horizontal,
    .works-all-link {
        padding-left: 24px;
        padding-right: 24px;
    }

    .work-item {
        width: 300px;
    }

    .experience-section,
    .about-section,
    .contact-section {
        padding: 80px 24px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-link {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .settings-btn {
        bottom: 20px;
        right: 20px;
    }

    .settings-panel {
        right: 20px;
        bottom: 80px;
    }
}