:root {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --text-primary: #fafafa;
    --text-muted: #888888;
    --accent: #a855f7;
    --accent-dim: #9333ea;
    --border: #2a2a2a;
    --card-bg: #161616;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, opacity 0.3s ease;
    opacity: 0;
    left: -50px;
    top: -50px;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

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

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

.lang-switch {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    border-color: var(--accent);
    background: var(--card-bg);
}

.lang-switch::after {
    display: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent);
}

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

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

.hero-title .line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealText 1s ease forwards;
}

.hero-title .line:nth-child(1) span { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.6s; }

.hero-title .highlight {
    color: var(--accent);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    max-width: 500px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
    flex-wrap: wrap;
}

.btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

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

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

.section {
    padding: 8rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

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

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

.about-text strong {
    color: var(--text-primary);
}

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

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

.stat:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

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

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.skill-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    background: var(--card-bg);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.skill-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-image {
    aspect-ratio: 16/10;
    background: var(--card-bg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
}

.project-placeholder span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.project-info {
    padding: 2rem 0;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-link:hover {
    color: var(--accent);
    gap: 1.25rem;
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.contact-title .highlight {
    color: var(--accent);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-email {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.social-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

footer {
    padding: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-text span {
    color: var(--accent);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.project-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
}

.project-hero-content {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.project-breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.project-hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-image-showcase {
    padding: 0 4rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.showcase-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-img.active {
    opacity: 1;
    position: relative;
}

.gallery-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent);
    border-color: var(--accent);
}

.project-content {
    padding: 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 6rem;
}

.content-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 3rem;
}

.sidebar-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.sidebar-link svg {
    width: 16px;
    height: 16px;
}

.content-main {
    max-width: 800px;
}

.content-section {
    margin-bottom: 3rem;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

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

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@media (max-width: 1200px) {
    .skills-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 1024px) {
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem;
    }
    .project { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .content-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem;
    }
    .content-sidebar { 
        position: static; 
    }
    .project-hero {
        padding: 6rem 2rem 2rem;
    }
    .project-image-showcase {
        padding: 0 2rem 2rem;
    }
    .project-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    nav { 
        padding: 1rem 1.5rem; 
    }
    .nav-links {
        gap: 1.5rem;
    }
    .nav-links a {
        font-size: 0.7rem;
    }
    .hero { 
        padding: 0 1.5rem; 
    }
    .hero-content {
        padding: 0;
    }
    .hero-label {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 1.5rem;
    }
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .scroll-indicator {
        display: none;
    }
    .section { 
        padding: 4rem 1.5rem; 
    }
    .section-header {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .about-text {
        font-size: 1.05rem;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stat {
        padding: 1.5rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .skills-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem;
    }
    .skill-card {
        padding: 1.5rem;
    }
    .project-title {
        font-size: 1.75rem;
    }
    .project-desc {
        font-size: 0.95rem;
    }
    .contact-title {
        font-size: 2rem;
    }
    .contact-text {
        font-size: 1rem;
    }
    .social-links {
        gap: 1.5rem;
    }
    footer { 
        flex-direction: column; 
        gap: 1rem; 
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .cursor { 
        display: none; 
    }
    .project-hero {
        min-height: auto;
        padding: 5rem 1.5rem 2rem;
    }
    .project-hero-title {
        font-size: 2rem;
    }
    .project-meta {
        gap: 2rem;
    }
    .project-image-showcase {
        padding: 0 1.5rem 2rem;
    }
    .project-content {
        padding: 2rem 1.5rem;
    }
    .content-title {
        font-size: 1.5rem;
    }
    .content-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.65rem;
    }
    .lang-switch {
        padding: 0.4rem 0.75rem;
    }
    .hero {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .project-hero {
        padding: 5rem 1rem 1.5rem;
    }
    .project-hero-title {
        font-size: 1.75rem;
    }
    .project-image-showcase {
        padding: 0 1rem 1.5rem;
    }
    .project-content {
        padding: 1.5rem 1rem;
    }
    footer {
        padding: 1.5rem 1rem;
    }
}
