:root {
    --bg-color: #0c0c16;
    --text-color: #ffffff;
    --primary-color: #00ffff;
    --secondary-color: #b700ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --nav-height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Important for parallax wrapper */
    height: 100vh;
}

/* P5 Canvas Background - FIXED */
#p5-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    /* Behind everything */
    pointer-events: auto;
    /* allow interaction if needed, or none if blocking */
}

/* Ensure canvas inside is also full */
#p5-container canvas {
    display: block;
}


/* Parallax Wrapper */
.parallax-wrapper {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
    /* Above background */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(12, 12, 22, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 1px;
}

.brand span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Sections */
section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    /* No Transform style preserve-3d here to simplify stacking context for fixed bg */
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    /* Parallax simulated speed if wanted, or just static over fixed BG */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.8;
    font-weight: 300;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

/* Content Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.card {
    background: rgba(20, 20, 30, 0.6);
    /* Slightly more opaque for readability over moving BG */
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(15px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card ul {
    list-style: none;
}

.card li {
    margin-bottom: 0.8rem;
}

.card a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--secondary-color);
    transition: all 0.2s;
}

.card a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    margin-top: auto;
    width: 100%;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }
}