/* V2 Overrides for Staff Engineer Portfolio */
html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    /* Sky blue */
    --accent-glow: rgba(56, 189, 248, 0.2);
    --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.v2-layout {
    background-color: var(--bg-color);
    font-family: var(--font-stack);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Sticky Navigation */
#sticky-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    border-radius: 99px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#sticky-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

#sticky-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

#sticky-nav a:hover {
    color: #fff;
}

/* Hero Section Upgrade */
/* Hero Section Upgrade */
.v2-hero {
    min-height: 85vh;
    /* Reduced from 95vh to suggest "scroll for more" */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding: 10rem 0 8rem; Remove huge padding as flex handles vertical alignment */
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Dark Deep Space Background */
    background: radial-gradient(circle at 50% -20%, #1e293b 0%, #020617 80%);
    perspective: 1000px;
    /* Enable 3D space */
}

/* System Constellation Animation */
.v2-hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    /* Larger than container for parallax movement */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.04) 0%, transparent 10%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.04) 0%, transparent 10%),
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.02) 0%, transparent 20%),
        radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 15%);
    animation:
        galaxyPulse 15s ease-in-out infinite alternate,
        galaxyDrift 60s linear infinite;
    z-index: 0;
    transform-style: preserve-3d;
}

@keyframes galaxyPulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes galaxyDrift {
    0% {
        transform: rotate(0deg) scale(1) translateZ(0);
    }

    100% {
        transform: rotate(3deg) scale(1.1) translateZ(50px);
    }
}

.v2-hero .inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.role-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border-radius: 4px;
    /* More technical square look */
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    /* Monospace for engineering feel */
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.v2-hero h1 {
    font-size: 5rem;
    /* Huge impact */
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    /* Metallic Gradient */
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    padding-bottom: 0.2em;
    /* Prevent descender clipping */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-bio {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bio strong {
    color: var(--accent-color);
    font-weight: 500;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-down-indicator:hover {
    opacity: 1;
}

.chevron {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Button Overrides */
.button.special {
    background-color: var(--accent-color);
    color: #0f172a;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.button.special:hover {
    background-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.button:not(.special) {
    border-color: var(--card-border);
    color: var(--text-secondary);
}

.button:not(.special):hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Pillars Section (The Big Three) */
.v2-pillars {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.pillar-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.pillar-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.pillar-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pillar-card h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Ecosystem Layout */
.ecosystem-group {
    margin-bottom: 1.5rem;
}

.ecosystem-group h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
    display: inline-block;
}

.feature-list.dense {
    margin-top: 0.5rem;
}

.feature-list.dense li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Specific Card Visuals */
.visual {
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* KMP Architecture Diagram (CSS Only) */
.kmp-visual {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.05), transparent);
    flex-direction: column;
    gap: 1rem;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.node {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(4px);
}

.node.mono {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border-color: rgba(56, 189, 248, 0.3);
    margin-bottom: 0.5rem;
}

.lines {
    width: 60%;
    height: 20px;
    border-left: 2px solid var(--card-border);
    border-right: 2px solid var(--card-border);
    border-top: 2px solid var(--card-border);
    border-radius: 8px 8px 0 0;
    /* Fork shape */
    margin-bottom: 0.5rem;
}

.app-nodes {
    display: flex;
    gap: 1rem;
}

.node.app {
    background: #1e293b;
    font-size: 0.8rem;
}

.node.cli {
    border-style: dashed;
    opacity: 0.7;
}

.spawned-apps-container {
    padding: 1rem;
    border-top: none;
    background: #1e1e1e;
    /* Terminal background */
    border-radius: 8px;
    width: 90%;
    margin-top: 1.5rem;
    text-align: left;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spawned-apps-container .label {
    font-size: 0.7rem;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #6a9955;
    /* Terminal comment green */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
}

.app-slot.empty {
    font-size: 0.8rem;
    color: #d4d4d4;
    font-style: normal;
    border: none;
    padding: 0;
}

.app-slot.empty::before {
    content: "> ";
    color: var(--accent-color);
}

.app-slot.empty::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

/* Typing Animation */
.terminal-output {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #d4d4d4;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    /* Cursor */
    white-space: nowrap;
    animation:
        typing 3.5s steps(30, end),
        blink-caret .75s step-end infinite;
    max-width: fit-content;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-color)
    }
}

/* Impact Visuals */
.impact-visual {
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Grid Section */
.v2-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.grid-header {
    text-align: center;
    margin-bottom: 3rem;
}

.grid-header h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.grid-header h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .v2-hero h1 {
        font-size: 2.5rem;
    }

    .pillar-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .pillar-card:nth-child(even) .visual {
        order: -1;
    }

    .impact-visual {
        padding: 2rem;
    }
}

/* --- ANIMATIONS & VISUAL POLISH --- */

/* 1. Hero Background Animation */
@keyframes heroPulse {
    0% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 50% 20%;
    }

    100% {
        background-position: 50% 0%;
    }
}

.v2-hero {
    /* More complex, subtle gradient */
    background: radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, var(--bg-color) 100%);
    animation: heroPulse 10s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* decorative glowing orb in hero */
.v2-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}


/* 2. Architecture Diagram Animations */
@keyframes dataFlow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 20px;
    }
}

.lines {
    /* Animated dashed lines representing data flow */
    background: linear-gradient(to bottom, var(--accent-color) 50%, transparent 50%);
    background-size: 2px 20px;
    /* Dash size */
    background-repeat: repeat-y;
    border: none;
    /* Reset standard border */
    position: relative;
    width: 2px;
    /* Single vertical line */
    margin: 0 auto 1rem;
    height: 40px;
    opacity: 0.5;
    animation: dataFlow 1s linear infinite;
}

/* To simulate the fork, we add pseudo elements */
.lines::before,
.lines::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--card-border);
}

.lines::before {
    right: 0;
}

.lines::after {
    left: 0;
}

/* 3. Impact Visuals (Bar Charts) */
.impact-visual {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.stat-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.stat-box+.stat-box {
    margin-top: -1rem;
    /* Overlap effect */
    margin-left: 2rem;
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--accent-color);
    z-index: 3;
}

.stat-number {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Removed old video placeholder styles */

/* --- PROJECT GRID REDESIGN --- */

.v2-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

/* --- FEATURE ROWS (ZIG-ZAG) --- */

.v2-features-layout {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 2rem 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Alternating Layout */
.feature-row.alt {
    flex-direction: row-reverse;
}

.feature-visual,
.feature-content {
    flex: 1;
}

.feature-content {
    position: relative;
}

/* Feature Number Background */
.feature-number {
    position: absolute;
    top: -4rem;
    left: -2rem;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    line-height: 1;
    font-family: var(--font-stack);
}

.feature-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.text-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 2px;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.text-link:hover::after {
    width: 100%;
}

/* Tech Stack in Feature Row */
.feature-content .tech-stack {
    margin-bottom: 2rem;
    gap: 0.75rem;
}

.feature-content .tech-badge {
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.35rem 0.8rem;
}

/* Status Badge for Pending/Reactivating Apps */
.tech-badge.status-pending {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.75rem;
}

/* Disabled Link State */
.text-link.disabled {
    color: var(--text-secondary);
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* DEVICE FRAME (CSS Phone Mockup) */
.device-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.device-frame {
    width: 280px;
    /* Mobile width */
    height: 560px;
    /* ~9:16 ratio */
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    /* Phone bezel */
    box-shadow:
        0 0 0 2px #555,
        /* Outer rim */
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        /* Drop shadow */
        -20px 20px 60px rgba(0, 0, 0, 0.4);
    /* Depth shadow */
    position: relative;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

/* Force image to fit */
.device-frame img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Ensures full image is visible */
    border-radius: 32px;
    /* Inner radius match */
    display: block;
}

/* Taller frame for long screenshots (Passive Wealth) */
.device-frame.tall-frame {
    height: 600px;
    /* Increased from 560px */
}

/* Screenshot that already includes device frame (Racing Post) */
.screenshot-frame {
    max-width: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.feature-row.alt .device-frame {
    transform: rotateY(15deg) rotateX(5deg);
}

/* Specificity Fix: Include both selectors */
.device-frame:hover,
.feature-row.alt .device-frame:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(56, 189, 248, 0.2);
    border-color: #444;
}

/* The Notch */
.device-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #333;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* 4. Video Placeholder Polish -> LIVE VIDEO */
.video-visual {
    background: transparent;
    /* Removed black bg */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    height: 480px;
    /* Increased from 300px to fit the 426px phone */
    overflow: visible;
    /* Allow 3D pop-out */
}

.video-frame {
    width: 240px;
    /* Slightly smaller than main project cards */
    height: 426px;
    transform: rotateY(-15deg) rotateX(5deg);
}

.video-frame:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
}

.device-frame img,
.device-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 32px;
    /* Matches inner curve */
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {

    .feature-row,
    .feature-row.alt {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .feature-content {
        order: -1;
        /* Text first on mobile */
    }

    .feature-number {
        display: none;
    }

    .device-frame,
    .feature-row.alt .device-frame {
        transform: none;
        /* No 3D on mobile */
    }

    .feature-content .tech-stack {
        justify-content: center;
    }
}

/* Contest Actions */
.contest-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.button.small {
    font-size: 0.8rem;
    padding: 0 1.25rem;
    height: 3rem;
    line-height: 3rem;
    border-radius: 6px;
}

/* Proof Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

/* Engineering Philosophy Section */
.v2-philosophy {
    padding: 6rem 0;
    background: transparent;
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.04);
}

.philosophy-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.philosophy-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Upgrade */
#footer {
    padding: 4rem 0;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
    text-align: center;
}

#footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 300;
}