/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #141414;
    --color-text: #e0e0e0;
    --color-text-light: #888888;
    --color-border: #2a2a2a;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* ============================================
   HEADER WITH CANVAS
   ============================================ */
.header {
    position: relative;
    height: 500px;
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

#simulationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
    padding-bottom: 2.5rem;
    pointer-events: none;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ============================================
   BIO SECTION
   ============================================ */
.bio {
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.bio-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.95rem;
}

.location {
    color: var(--color-text-light);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.project-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.project-card:last-child {
    border-bottom: none;
}

.project-card.featured {
    grid-template-columns: 400px 1fr;
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: #1a1a1a;
}

.project-card.featured .project-image {
    width: 400px;
    height: 280px;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    color: var(--color-text-light);
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.stat span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.2s;
    padding: 0.5rem 0;
}

.project-link:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
    transform: translateX(4px);
}

.project-link.secondary {
    color: var(--color-text-light);
}

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

/* ============================================
   GET IN TOUCH
   ============================================ */
.get-in-touch {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.get-in-touch h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.get-in-touch p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.contact-btn.primary {
    background-color: var(--color-accent);
    color: #ffffff;
    border: 1px solid var(--color-accent);
}

.contact-btn.primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    text-decoration: none;
}

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

.contact-btn.secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    text-decoration: none;
}

/* ============================================
   BACKGROUND SECTION
   ============================================ */
.background {
    padding: 4rem 0;
    background-color: var(--color-bg-elevated);
}

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

.skill-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-group p {
    color: var(--color-text-light);
    line-height: 1.7;
}

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

.background-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.background-item p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.background-item strong {
    color: var(--color-text);
    font-weight: 600;
}

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

.footer p {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

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

.footer-note {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .project-card.featured {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .header {
        height: 400px;
    }

    .name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .bio-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
