@charset "UTF-8";

/* --- CSS Variables (Dark Theme) --- */
:root {
    /* Colors */
    --bg-color: #0c0c0c;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #e5ff00;
    /* Neon yellow accent like premium design studios */
    --nav-bg: rgba(12, 12, 12, 0.85);

    /* Fonts */
    --font-primary: 'Pretendard', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial;
    /* handled by Lenis */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

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

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* --- Custom Cursor --- */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

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

/* Hover States for Cursor */
.cursor.active {
    width: 0;
    height: 0;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(229, 255, 0, 0.1);
    border-color: var(--accent-color);
}

.cursor-follower.active-blend {
    mix-blend-mode: difference;
    background-color: #fff;
    width: 80px;
    height: 80px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 1000;
    transition: padding var(--transition-fast), background-color var(--transition-fast);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 1rem 4rem;
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links li a::after {
    content: attr(data-text);
    position: absolute;
    bottom: -100%;
    left: 0;
    color: var(--accent-color);
    transition: transform var(--transition-fast);
}

.nav-links li a:hover {
    color: transparent;
}

.nav-links li a:hover::after {
    transform: translateY(-100%);
}

.menu-btn {
    display: none;
    cursor: none;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-btn__burger,
.menu-btn__burger::before,
.menu-btn__burger::after {
    width: 30px;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all var(--transition-fast);
}

.menu-btn__burger {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn__burger::before {
    content: '';
    top: -8px;
}

.menu-btn__burger::after {
    content: '';
    top: 8px;
}

.menu-btn.open .menu-btn__burger {
    background: transparent;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg);
    top: 0;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0c0c0c 100%);
    position: relative;
}

/* Animation overlay to simulate noise */
.hero-gradient::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacoty='0.05'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero-title .line {
    overflow: hidden;
    display: block;
}

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

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    position: relative;
}

.hero-title .highlight::after {
    content: 'STORIES.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    width: 0%;
    overflow: hidden;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}

/* Will be triggered by JS when loaded */
.loaded .hero-title .highlight::after {
    width: 100%;
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(30px);
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-down .arrow {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* --- Common Layouts --- */
.section-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* --- Work Section --- */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-primary);
    cursor: none;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem 2rem;
}

.portfolio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.portfolio-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-media iframe,
.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.portfolio-item:hover .portfolio-media img {
    transform: scale(1.05);
}

/* YouTube Thumbnail & Play Button */
.youtube-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.youtube-placeholder .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to the placeholder */
}

.youtube-placeholder .play-icon svg path {
    transition: fill var(--transition-fast);
}

.youtube-placeholder:hover .play-icon {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-placeholder:hover .play-icon svg path {
    fill: #000;
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-category {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.portfolio-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
    margin-top: 0.3rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-actions {
    margin-top: 1rem;
    display: flex;
}

.view-large-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: none;
    transition: all var(--transition-fast);
}

.view-large-btn svg {
    transition: transform var(--transition-fast);
}

.view-large-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.view-large-btn:hover svg {
    transform: scale(1.1);
}

/* --- About Section --- */
.about {
    background-color: #080808;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-text p:first-child {
    font-size: 2rem;
    color: #fff;
    font-weight: 400;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 300;
}

/* --- Awards Section --- */
.awards {
    background-color: var(--bg-color);
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-fast);
}

.award-item:hover {
    transform: translateX(10px);
}

.award-item:last-child {
    border-bottom: none;
}

.award-year {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
    min-width: 80px;
}

.award-desc {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 300;
}

/* --- Contact Section --- */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
}

.contact-email {
    display: inline-block;
    color: var(--text-primary);
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    transition: all var(--transition-fast);
    margin-top: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-color);
    transition: width var(--transition-slow);
}

.contact-email:hover {
    color: #fff;
    -webkit-text-stroke: 0px;
}

.contact-email:hover::after {
    width: 100%;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    background: #050505;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-info p:first-child {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* --- Video Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-fast) ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform var(--transition-fast) ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .section-container {
        padding: 6rem 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(12, 12, 12, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 999;
        transform: translateY(-100%);
        transition: transform var(--transition-fast) ease-in-out;
    }

    .nav-links.active {
        transform: translateY(0);
    }

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

    .menu-btn {
        display: block;
        z-index: 1000;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .award-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Disable custom cursor on mobile to prevent touch issues */
    body {
        cursor: auto;
    }

    a {
        cursor: pointer;
    }

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