/* Simplified and unified styles for both pages */
:root {
    --bg-color: #0f0f12;
    --text-color: #e0e0e0;
    --accent-color: #64ffda;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Added p5 container styling to fix background */
#p5-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Behind .container (z-index: 1) */
    pointer-events: none; /* Allows interaction with content below/above */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 0;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #aaa;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 10px;
    display: inline-block;
    margin-top: 60px;
    scroll-margin-top: 100px;
}

.portfolio-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.portfolio-item:hover {
    border-color: var(--accent-color);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.portfolio-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
}

.portfolio-links a:hover {
    text-decoration: underline;
}

.project-preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

footer {
    text-align: center;
    padding: 50px 0;
    color: #666;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
}

.footer-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}