/* Color Palette */
:root {
    --color-dark-bg: #000000; /* Deep Charcoal/Black */
    --color-light-bg: rgba(2, 3, 10, 0.62); /* Near-black translucent blue */
    --color-accent-neon: #f5ff1a; /* Neon yellow */
    --color-accent-blue: #3c78ff; /* Matches MorphingDots core hue */
    --color-border-card: rgba(100, 180, 255, 0.6);
    --color-border-card-hover: rgba(0, 220, 255, 0.9);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #AAAAAA;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s ease-in-out;
}

/* Global Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
}

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.05em;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent-neon);
    text-align: center;
    margin-bottom: 2rem;
}
.vr-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--color-accent-neon);
    border-radius: 3px;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-neon);
    vertical-align: middle;
}

.tagline {
    font-size: 1.1rem;
    color: var(--color-accent-neon);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Layout and Structure */
.section-padding {
    padding: 8rem 5%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-compact {
    padding: 3rem 5%;
}

.section-padding.section-visible,
section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

#about {
    opacity: 1;
    transform: none;
}

body.no-js section,
body.bg-fallback section,
body.static-page section {
    opacity: 1;
    transform: none;
}
.section-subtext {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

/* --- Navigation --- */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 1); /* solid black background */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* optional subtle shadow for depth */
    transition: background-color 0.3s, box-shadow 0.3s;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}
.logo:hover {
    color: var(--color-accent-neon);
    text-shadow: 0 0 8px rgba(245, 255, 26, 0.7);
}
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
#main-nav a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
}
#main-nav a:hover { color: var(--color-accent-neon); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--color-text-primary);
    padding: 0.5rem;
    border-radius: 4px;
}
.nav-toggle:focus-visible {
    outline: 2px solid var(--color-accent-neon);
    outline-offset: 2px;
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text-primary);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#main-nav .nav-shiny-btn {
    /* Pushes the button up just enough to visually align its text baseline
       with the text links, compensating for its padding */
    transform: translateY(3px); 
    /* The button must be display: inline-flex or inline-block for transform to work */
    display: inline-block; 
}
/* --- HERO Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
#hero-animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.eye-candy-bg {
    background-color: var(--color-dark-bg);
}

.bg-fallback #hero-animation-canvas,
.no-js #hero-animation-canvas,
.eye-candy-bg.static-bg {
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.95;
}

.bg-animated #hero-animation-canvas {
    background-image: none;
}
.hero-content {
    max-width: 1000px;
    padding-top: 5rem;
    margin-left: auto;
    margin-right: auto;
}
.hero-content .subtext {
    font-size: 1.25rem;
    margin: 1.5rem auto 3rem;
    color: var(--color-text-secondary);
}

/* --- PILLARS / Services --- */
.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
/* --- PILLARS / Services Ultra-Subtle Blue Shine Effect --- */
.pillar {
    position: relative;
    overflow: hidden;
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-border-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pillar::after {
    content: none; /* remove shine border */
}

.pillar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(60,120,255,0.01) 0%,
        rgba(60,120,255,0.08) 45%,
        rgba(60,120,255,0.01) 100%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-card-hover);
    box-shadow:
        0 8px 22px rgba(60, 120, 255, 0.16),
        0 0 12px rgba(60, 120, 255, 0.16);
}

.pillar:hover::before {
    transform: rotate(25deg) translateX(120%);
}

.pillar h3 {
    font-size: 2rem;
    color: var(--color-accent-neon);
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--color-text-primary);
}

.team-member.pillar p {
    color: var(--color-text-primary);
}

.study-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.study-body h3 {
    margin: 0;
    font-size: 1.65rem;
    color: var(--color-accent-neon);
}

.study-body p {
    margin: 0;
    color: var(--color-text-secondary);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 20, 0.82) 0%, rgba(5, 8, 20, 0.72) 45%, rgba(5, 8, 20, 0.9) 100%);
    pointer-events: none;
}

.study-body {
    position: relative;
    z-index: 1;
}

.study-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    border-radius: 10px;
}

.pillar-link {
    display: block;
    margin-top: 1.5rem;
    color: var(--color-accent-neon);
    text-decoration: none;
    font-weight: 600;
}

/* Center the single team member */
.team-container {
    display: flex;
    justify-content: center;  /* centers horizontally */
    width: 100%;
}

/* Pillar card styling remains the same */
.team-member.pillar {
    position: relative;
    overflow: hidden;
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-border-card);
    padding: 3rem;
    border-radius: 12px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover shine effect */
.team-member.pillar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(60,120,255,0.01) 0%,
        rgba(60,120,255,0.08) 45%,
        rgba(60,120,255,0.01) 100%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.team-member.pillar:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-card-hover); /* keep hover border subtle */
    box-shadow:
        0 8px 22px rgba(60, 120, 255, 0.16),
        0 0 12px rgba(60, 120, 255, 0.16);
}

.team-member.pillar:hover::before {
    transform: rotate(25deg) translateX(120%);
}

/* Headshot inside the card */
.team-member .headshot {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-accent-neon);
    margin-bottom: 1rem;
}

.team-member h4 {
    color: var(--color-accent-neon);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-member .role {
    color: var(--color-accent-neon);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member .bio-snippet {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}


.value-propositions {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.value-propositions h4 {
    font-size: 1.4rem;
    color: var(--color-accent-neon);
    margin-bottom: 0.5rem;
}

/* --- FINAL CTA --- */
#final-cta {
    padding: 6rem 5%;
    text-align: center;
    background-color: var(--color-dark-bg);
}
#final-cta h2 {
    color: var(--color-text-primary);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

#final-cta p {
    font-size: 1.25rem; /* Make the text slightly larger */
    margin-bottom: 3rem; /* Pushes the button down by 3rem */
    color: var(--color-text-secondary);
}

.large-cta-btn {
    font-size: 1.25rem;
}

/* --- BUTTON STYLING (The Shine) --- */
.cta-button, .secondary-btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    position: relative;
    overflow: hidden; /* Critical for containing the visual shine */
    z-index: 10;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.cta-button--wide {
    padding: 1.2rem 3.5rem;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary Neon Shine Button */
.primary-shiny-btn {
    background: var(--color-accent-neon);
    color: var(--color-dark-bg);
    border: 2px solid var(--color-accent-neon);
    box-shadow:
        0 10px 30px rgba(245, 255, 26, 0.25),
        0 0 18px rgba(245, 255, 26, 0.35);
}
.primary-shiny-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 34px rgba(245, 255, 26, 0.35),
        0 0 28px rgba(245, 255, 26, 0.55);
}

/* Secondary Button (Outline/Inverse Look) */
.secondary-btn {
    background: transparent;
    color: var(--color-accent-neon);
    border: 2px solid var(--color-accent-neon);
}
.secondary-btn:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* --- Footer --- */
#main-footer {
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
#main-footer a {
    color: var(--color-text-secondary);
    text-decoration: underline;
}
#main-footer a:hover {
    color: var(--color-accent-neon);
}

@keyframes borderShineSweep {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* --- New Rules for About Page (Add to styles.css) --- */

/* Split Content Layout for Philosophy/Story section */
.content-split-layout {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    align-items: center;
}
.content-split-layout .split-text {
    flex: 1;
}
.content-split-layout .split-visual {
    flex: 1;
}
.content-split-layout h3 {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}
.content-split-layout p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

/* Core Values List - Grid Layout */
.value-pillars {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.value-pillars li {
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    background-color: var(--color-dark-bg); /* Dark background for contrast */
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}
.team-member {
    text-align: center;
}
.team-member .headshot {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-accent-neon);
    margin-bottom: 1rem;
}
.team-member h4 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.team-member .role {
    color: var(--color-accent-neon);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.team-member .bio-snippet {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* --- CONTACT FORM --- */
.contact-section {
    background: rgba(6, 10, 24, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-section .section-headline {
    margin-bottom: 1rem;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.form-row label {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* --- Responsive Layouts --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    .section-padding {
        padding: 6rem 6%;
    }
    .hero-content {
        padding-top: 3rem;
    }
    .value-propositions {
        grid-template-columns: repeat(2, 1fr);
    }
    .value-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    section,
    .section-padding {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #main-header {
        padding: 1rem 6%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 6%;
        margin-top: 0.5rem;
        z-index: 100;
    }
    #main-nav.is-open {
        display: block;
    }
    #main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    #main-nav li {
        width: 100%;
        text-align: left;
    }
    #main-nav a {
        display: block;
        padding: 0.75rem 0;
    }
    .hero-content {
        padding-top: 6rem;
        max-width: 600px;
        margin: 0 auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .value-propositions,
    .value-pillars,
    .team-grid,
    .team-container {
        grid-template-columns: 1fr;
    }
    .pillars-container {
        grid-template-columns: 1fr;
    }
    .team-grid {
        gap: 2rem;
    }
    .section-padding {
        padding: 5rem 7%;
    }
    .cta-button--wide {
        width: 100%;
        justify-content: center;
    }
    .contact-form {
        width: 100%;
    }
    .section-fullscreen {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.6rem;
    }
    h2 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 4rem 7%;
    }
    .hero-content .subtext {
        font-size: 1.05rem;
    }
    .cta-button--wide {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }
}
.form-row input,
.form-row textarea {
    background: var(--color-light-bg);
    border: 1px solid var(--color-border-card);
    padding: 1.15rem 1.25rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: border var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-border-card-hover);
    background: rgba(5, 8, 20, 0.92);
    box-shadow:
        0 8px 25px rgba(60, 120, 255, 0.18),
        0 0 15px rgba(60, 120, 255, 0.2);
}
.section-fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
