/* --- Quantum Leap Theme V2.2 --- */
:root {
    --background-deep: #100f1c;
    --glow-violet: #c061ff;
    --glow-violet-faded: rgba(192, 97, 255, 0.1);
    --text-primary: #e9d5ff;
    --text-secondary: #a0aec0;
    --font-main: 'Sora', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--background-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 400;
}

/* --- Criticality Glow Overlay --- */
#criticality-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glow-violet);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 1.0s ease-in-out;
}

/* For the full fade-out when animation is halted */
.simulation-halted #criticality-glow {
    opacity: 1;
}

/* --- Header & Nav --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(16, 15, 28, 0.8) 0%, rgba(16, 15, 28, 0) 100%);
}
.logo { font-weight: 600; font-size: 1.2rem; }
.logo span { color: var(--glow-violet); }
.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 32px;
    transition: var(--transition-smooth);
}
.main-nav a:hover { color: var(--text-primary); }

/* --- Hero Section & Fission Canvas --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
#physics-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}
.hero-text {
    position: relative;
    z-index: 10;
    max-width: 750px;
    padding: 0 24px;
}
.hero-text h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; }
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

/* REMOVED: Reactivity Meter styles are gone */

/* --- General Section & Scroll Animations --- */
.projects-section, .process-section {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-header { text-align: center; max-width: 800px; margin: 0 auto 64px auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* --- Focus List --- */
/* Removed old focus list styles */

/* --- Project Grid --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for cards */
    gap: 32px;
    margin-top: 64px;
}

.project-item {
    background-color: #161523; /* Darker background for cards */
    border-radius: 12px; /* More rounded corners */
    padding: 32px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Smooth transitions for hover */
    border: 1px solid rgba(192, 97, 255, 0.1); /* Subtle border */
    display: flex; /* Use flexbox for content alignment */
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer; /* Indicate clickability */
}

.project-item:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 25px var(--glow-violet-faded); /* Enhanced shadow and glow */
    border-color: var(--glow-violet); /* Highlight border on hover */
}

.project-item h3 {
    font-size: 1.6rem; /* Slightly larger title */
    font-weight: 700; /* Bolder title */
    margin-bottom: 12px;
    color: var(--glow-violet); /* Highlight title color */
}

.project-item p {
    color: var(--text-secondary);
    font-size: 1rem; /* Standard paragraph size */
    line-height: 1.6;
    margin-top: 8px; /* More spacing */
}

.project-item p:first-of-type { /* Style for category */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(192, 97, 255, 0.7); /* Faded violet for category */
    margin-bottom: 4px;
}

/* --- Process Section --- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 64px; }
.step { padding: 32px; border: 1px solid rgba(192, 97, 255, 0.2); border-radius: 8px; transition: var(--transition-smooth); }
.step:hover {
    transform: translateY(-5px);
    border-color: var(--glow-violet);
    background: var(--glow-violet-faded);
    box-shadow: 0 0 20px rgba(192, 97, 255, 0.1);
}
.step h3 { font-size: 1.2rem; font-weight: 700; color: var(--glow-violet); margin-bottom: 16px; }