:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-text: #e8e8e8;
    --color-text-muted: #8a8a8a;
    --color-accent: #4a9eff;
    --color-accent-muted: #2a5a9f;
    --color-border: #242424;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

[data-theme="light"] {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #6a6a6a;
    --color-accent: #0066ff;
    --color-accent-muted: #0052cc;
    --color-border: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

.cursor,
.cursor-follower {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor {
    background: var(--color-text);
    transition: transform 0.1s ease;
}

.cursor-follower {
    border: 1px solid var(--color-text);
    background: transparent;
    transition: transform 0.3s var(--ease-out-expo);
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 10000;
    pointer-events: none;
    transform: translateY(-100%);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 5%;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out-expo);
}

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

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--color-surface);
}

.section {
    padding: 10rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-accent);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 8rem;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

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

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 0.8s var(--ease-out-expo) forwards;
}

.word:nth-child(1) { animation-delay: 0.1s; }
.word:nth-child(2) { animation-delay: 0.2s; }
.word:nth-child(3) { animation-delay: 0.3s; }
.word:nth-child(4) { animation-delay: 0.4s; }

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

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

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

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

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--color-accent-muted);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    border-radius: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.card-1 {
    width: 300px;
    height: 200px;
    top: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 250px;
    height: 180px;
    bottom: 100px;
    left: 50px;
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

.card-3 {
    width: 200px;
    height: 150px;
    top: 200px;
    right: 100px;
    animation: float 7s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
}

.text-large {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--color-accent);
    transform: translateX(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    padding: 3rem 2.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(50px);
}

.expertise-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px);
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.85rem;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.work-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
}

.work-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.work-item:hover {
    padding-left: 2rem;
}

.work-year {
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

.work-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.work-description {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.link-arrow {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.link-arrow:hover {
    transform: translateX(10px);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.contact-link:hover {
    padding-left: 1rem;
    border-color: var(--color-accent);
}

.link-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.link-value {
    font-weight: 600;
}

.footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .work-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (hover: none) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}
