/* ========================================
   PORTFOLIO - Minimal Dark Theme
   Clean, No AI Vibe, Hand-coded
======================================== */

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

:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #111111;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #ffffff;
    --color-border: #222222;
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--transition-smooth);
}

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

.cursor.hover {
    transform: scale(2);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s var(--transition-smooth),
                visibility 0.8s var(--transition-smooth);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    display: flex;
    gap: 0.5em;
}

.loader-text span {
    display: inline-block;
    opacity: 0;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

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

@keyframes loaderPulse {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-text:hover {
    opacity: 0.6;
}

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

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.4s var(--transition-smooth);
}

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

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

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.1) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

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

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

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

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: titleReveal 1.2s var(--transition-smooth) forwards;
}

.title-line:nth-child(1) .title-word {
    animation-delay: 0.5s;
}

.title-line:nth-child(2) .title-word {
    animation-delay: 0.7s;
}

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

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

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

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

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

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 8rem 4vw 4rem;
    border-bottom: 1px solid var(--color-border);
}

.section-number {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-text);
}

/* Works Section */
.works {
    background: var(--color-bg);
    padding-bottom: 8rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0 4vw;
}

.work-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
}

.work-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--transition-smooth);
}

.work-item:hover .work-image {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    opacity: 0;
    transition: opacity 0.6s var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s var(--transition-smooth);
}

.work-item:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

.work-category {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
}

/* About Section */
.about {
    background: var(--color-bg-light);
    padding-bottom: 8rem;
}

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

.about-text {
    max-width: 500px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.about-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
}

/* Contact Section */
.contact {
    background: var(--color-bg);
    padding-bottom: 8rem;
}

.contact-content {
    padding: 6rem 4vw;
    text-align: center;
}

.contact-email {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 4rem;
}

.email-text {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.contact-email:hover .email-text {
    opacity: 0.6;
}

.email-line {
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s var(--transition-smooth);
}

.contact-email:hover .email-line {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.social-link {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.4s var(--transition-smooth);
}

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

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

/* Footer */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 3rem 4vw;
}

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

.footer-text,
.footer-credit {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
