/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000; /* Pure black */
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #333333; /* Darker gray for better contrast */
    --color-gray-800: #1a1a1a;
    --color-gray-900: #0d0d0d;
    --color-accent: #0a0a0a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: #000000; /* Base - nav stays dark; sections below override to white */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.111666.best/image/4uEZ5PLen2OwovNenppr10.jpg') center/cover no-repeat fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
}

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

.logo {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.6;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    transition: var(--transition);
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #ffffff;
    max-width: 38rem;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-scroll span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.6);
    animation: scrollLine 2s ease-in-out infinite;
}

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

/* Work Section */
.work-section {
    padding: 8rem 0;
    position: relative;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), transform var(--transition);
}

.work-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.work-item:nth-child(even) { direction: ltr; }

.work-image { display: none; }

.work-item:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.35); transform: translateY(0); }

.work-image-placeholder { display: none; }

.work-image-placeholder svg {
    position: relative;
    z-index: 1;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    width: 32px;
    height: 32px;
}

.work-item:hover .work-image-placeholder svg {
    transform: scale(1.1) rotate(5deg);
}

.work-info { padding: 0; }

/* Flat card icon/text */
.work-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.work-icon svg { width: 28px; height: 28px; }

.work-text { display: flex; flex-direction: column; gap: 0.25rem; color: #ffffff; }

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.work-category {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
}

.work-year {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-400);
}

.work-title { font-size: 1.125rem; font-weight: 700; color: #ffffff; margin: 0; }

.work-description { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0.25rem 0 0.5rem; }

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.work-link:hover {
    gap: 1rem;
}

.work-link svg {
    transition: var(--transition);
    width: 16px;
    height: 16px;
}

/* About Section */
.about-section {
    padding: 8rem 3rem;
    background: transparent;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-text .section-label {
    margin-bottom: 2rem;
}

.about-text .section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.about-skills {
    padding-top: 4rem;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

.skill-level {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* Contact Section */
.contact-section {
    padding: 8rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-content .section-label {
    margin-bottom: 2rem;
}

.contact-content .section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-method:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    flex-shrink: 0;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-method:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

/* Footer */
.footer {
    padding: 3rem;
    border-top: 1px solid var(--color-gray-200);
}

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

.footer-left p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-right a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .work-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-item:nth-child(even) {
        direction: ltr;
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .nav-links {
        gap: 2rem;
    }

    .hero {
        padding: 6rem 2rem 3rem;
        min-height: 90vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .work-section,
    .about-section,
    .contact-section {
        padding: 4rem 2rem;
    }

    .work-grid {
        gap: 4rem;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .contact-content .section-title {
        font-size: 2.5rem;
    }

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

    .about-skills {
        padding-top: 2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1.5rem;
    }

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

    .logo {
        font-size: 0.75rem;
    }
}
