/* ==========================================================================
   1. BASE STYLES & TYPOGRAPHY
   ========================================================================== */
:root {
    --bg-color: #050505;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #ff3366;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Lora', serif; font-weight: 700; letter-spacing: -0.02em; }
h1, h2, h3 { text-transform: uppercase; }

/* ==========================================================================
   2. SHARED COMPONENTS (Header, Footer)
   ========================================================================== */

/* THREE.JS HEADER */
#canvas-container {
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 0;
    opacity: 0.6;
}

/* The index page uses an absolute position canvas for the hero */
.page-index #canvas-container {
    position: absolute;
}

/* The resume page uses a fixed canvas for a persistent background */
.page-resume #canvas-container {
    position: fixed;
}

/* FOOTER */
footer { 
    padding: 80px 5vw; 
    text-align: center; 
    color: var(--text-muted); 
    position: relative; /* Ensures footer is above fixed canvas on resume page */
    z-index: 1; 
}

.footer-alumni-text {
    font-size: 0.8rem;
}

.page-index footer .footer-alumni-text {
    margin-top: 20px;
}

.page-resume footer .footer-alumni-text {
    margin-top: 10px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 20px;
}

.footer-link:hover {
    color: var(--bg-color);
    background-color: var(--text-muted);
}

.footer-link.no-margin-top {
    margin-top: 0;
}

/* ==========================================================================
   3. INDEX PAGE STYLES (page-index)
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero .tags {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #f4f4f5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tag a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* LOGO WALL */
.logo-wall {
    width: 80%;
    margin: 80px auto 0;
    padding: 40px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    display: block;
    height: auto;
}

.logo-wall-image {
    max-width: 100%;
}

.logo-wall h4 {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #555;
    text-transform: uppercase;
    transition: color 0.3s;
}
.logo:hover { color: var(--text-main); }

/* FULL BLEED VIDEO DIVIDERS */
.video-divider {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-divider video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

.video-overlay-text {
    font-size: 4rem;
    z-index: 1;
    text-align: center;
    mix-blend-mode: overlay;
}

/* CASE STUDIES SECTION */
.case-studies {
    padding: 100px 5vw;
}

.section-header {
    font-size: 3rem;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: #111;
    padding: 30px;
    border-radius: 8px;
    opacity: 0; /* For GSAP */
    transform: translateY(50px); /* For GSAP */
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-10px) !important; }

.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); line-height: 1.6; }

/* LARGE DIVIDER SECTIONS: &PULL & MXR */
.venture-section {
    padding: 150px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.venture-section.reverse { flex-direction: row-reverse; }

.venture-content { flex: 1; max-width: 600px; }
.venture-content h2 { font-size: 5rem; margin-bottom: 20px; color: var(--accent); }
.h2-image {
    max-width: 15%;
}
.venture-content h2.image-heading {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.venture-content p { font-size: 1.2rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 30px;}

.venture-visual {
    flex: 1;
    height: 400px;
    background: #1a1a1a;
    margin: 0 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow: hidden;
}

.venture-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venture-img-fill-width {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.venture-img-fill-height {
    width: auto;
    height: 100%;
    border-radius: 10px;
}

/* ==========================================================================
   4. RESUME PAGE STYLES (page-resume)
   ========================================================================== */

.simple-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw;
    z-index: 10;
}

.simple-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
}

.simple-nav a:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 5vw 100px;
    position: relative;
    z-index: 1;
}

.resume-container h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    margin-top: 50px;
}

.resume-container section:first-of-type h2 {
    margin-top: 0;
}

.resume-header {
    text-align: center;
    margin-bottom: 60px;
}

.resume-header h1 {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.resume-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 5px;
}

.contact-links a:hover {
    color: var(--accent);
}

#summary p, #education p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-grid h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: none;
}

.expertise-grid p {
    color: var(--text-muted);
    line-height: 1.6;
}

.job {
    margin-bottom: 40px;
    border-left: 2px solid #222;
    padding-left: 20px;
}

.job h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.job h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: normal;
    text-transform: none;
}

.resume-container ul {
    list-style-position: outside;
    padding-left: 20px;
}

.resume-container ul li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 5px;
}

.resume-container ul ul {
    margin-top: 15px;
    padding-left: 25px;
}

.resume-container strong {
    color: var(--text-main);
    font-weight: 600;
}