:root {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --accent-primary: #0a84ff;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --card-bg: #1c1c1e;
    --card-border: #2c2c2e;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#p5-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#p5-banner canvas {
    display: block;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

header {
    margin-bottom: 120px;
}

.hero-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 0;
    z-index: -1;
}

.about-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.hero-content {
    text-align: left;
}

.about-section {
    max-width: 1000px;
    margin: 0 auto;
}

.about-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image-container {
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }
}

.name-header {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .name-header {
        margin-left: auto;
        margin-right: auto;
    }
}

.tagline {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

.about-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .about-text {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.projects-section {
    margin-top: 100px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.graphics-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 32px;
    margin-top: 48px;
}

.graphics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

@media (max-width: 768px) {
    .graphics-row {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    box-shadow: 0 4px 24px var(--card-shadow);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.project-card.full-width {
    width: 100%;
}

.project-card.side-by-side {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
}

.project-card.side-by-side .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card.side-by-side .video-container,
.project-card.side-by-side .image-container {
    order: 2;
}

@media (max-width: 900px) {
    .project-card.side-by-side {
        grid-template-columns: 1fr;
    }

    .project-card.side-by-side .video-container,
    .project-card.side-by-side .image-container {
        order: 1;
    }
}

.card-content {
    order: 1;
}

.card-header {
    padding: 32px 32px 16px;
}

.card-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tech-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
    border: none;
    letter-spacing: 0;
    text-transform: none;
}

.video-container {
    width: 100%;
    position: relative;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container {
    width: 100%;
    position: relative;
    background: var(--bg-secondary);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.card-footer {
    padding: 16px 32px 32px;
}

.card-footer p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 16px;
}

.inline-link {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.project-link {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.project-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.graphics-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.graphics-project-item {
    position: relative;
    display: block;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    background: var(--bg-secondary);
}

.graphics-project-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.graphics-project-item video,
.graphics-project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.graphics-project-title {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--card-bg);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 24px;
    }

    header {
        margin-bottom: 80px;
    }

    .name-header {
        font-size: 36px;
    }

    .about-text {
        font-size: 19px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .card-header {
        padding: 24px 24px 12px;
    }

    .card-header h2 {
        font-size: 21px;
    }

    .card-footer {
        padding: 12px 24px 24px;
    }

    .card-footer p {
        font-size: 16px;
    }

    .image-container {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .about-image {
        width: 120px;
        height: 120px;
    }

    .name-header {
        font-size: 32px;
    }

    .about-text {
        font-size: 17px;
    }
}
