/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-text: #000000;
    --color-text-muted: #555555;
    --color-accent: #000000;
    --color-accent-hover: #333333;
    --color-accent-subtle: rgba(0, 0, 0, 0.05);
    --color-border: rgba(0, 0, 0, 0.1);
    --font-main: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Typography
======================================== */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.highlight {
    color: var(--color-accent);
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* ========================================
   Navigation
======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    position: relative;
}

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

/* ========================================
   Intro Section
======================================== */
.intro {
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 1;
}

.intro-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.intro-photo {
    position: relative;
    flex-shrink: 0;
}

.intro-photo-img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.intro-name {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.intro-title {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.intro-bio {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.intro .skills {
    margin-top: 0;
}

.intro .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   About Section
======================================== */
.about {
    background: var(--color-bg-alt);
}

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

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

.about-intro {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.skills h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.skill-item {
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   Projects Section
======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-bg-alt);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.project-image-link {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.project-image-link:hover {
    opacity: 0.9;
}

.project-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.project-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.project-info {
    padding: 1.75rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.project-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.project-link {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ========================================
   Blog Section
======================================== */
.blog-placeholder {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ========================================
   Social Links
======================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: var(--transition);
}

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

/* ========================================
   Footer
======================================== */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .intro {
        padding: 8rem 0 4rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .intro-photo {
        display: flex;
        justify-content: center;
    }

    .intro-photo-img {
        width: 150px;
    }

    .photo-placeholder {
        width: 150px;
        height: 150px;
    }

    .intro-bio {
        max-width: 100%;
    }

    .intro .skill-list {
        justify-content: center;
    }

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

    .sprite {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

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

    .intro-name {
        font-size: 2rem;
    }
}

/* ========================================
   Selection & Scrollbar
======================================== */
::selection {
    background: var(--color-accent);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
