/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Bright, Warm & Human (Non-AI-Coded Cliché) */
    --primary: #E15A42;
    /* Terracotta / Coral */
    --primary-dark: #C5442D;
    --primary-light: #FFEDE9;

    --secondary: #0D9488;
    /* Deep Sea Teal */
    --secondary-dark: #0F766E;
    --secondary-light: #F0FDFA;

    --accent: #F59E0B;
    /* Marigold Gold */
    --accent-light: #FEF3C7;

    --bg-site: #FAF8F5;
    /* Warm Soft Sand */
    --bg-card: #FFFFFF;
    /* Pure White */
    --bg-subtle: #F5F2EB;
    /* Slightly darker sand for nesting */

    /* Typography Colors */
    --text-heading: #1C1917;
    /* Dark Charcoal */
    --text-body: #3F3F46;
    /* Soft Black/Grey */
    --text-muted: #71717A;
    /* Slate Muted */

    /* System Colors for MS Copilot App Badges */
    --excel-color: #107C41;
    --word-color: #106EBE;
    --ppt-color: #C43E1C;
    --outlook-color: #0078D4;
    --teams-color: #6264A7;
    --copilot-color: #00A2ED;

    /* Layout Variables */
    --border: #E7E5E4;
    /* Stone grey border */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(28, 25, 23, 0.06), 0 4px 6px -2px rgba(28, 25, 23, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(28, 25, 23, 0.08), 0 10px 10px -5px rgba(28, 25, 23, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-site);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
header.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(250, 248, 245, 0.85);
    /* backdrop blur background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(28, 25, 23, 0.08));
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
    border-left: 1px solid var(--border);
    padding-left: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: block;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn-portfolio {
    background-color: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(13, 148, 136, 0.15);
    transition: var(--transition);
}

.btn-portfolio:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 148, 136, 0.25);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-heading);
    transition: var(--transition);
}

@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   HERO / INTRO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 50px 0 80px 0;
    background: radial-gradient(circle at 50% 30%, var(--primary-light) 0%, transparent 70%);
    overflow: hidden;
}

/* Centered Hero Layout */
.hero-container-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.hero-logo-wrap {
    margin-bottom: 16px;
    display: inline-block;
}

.hero-badge-icon {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(225, 90, 66, 0.15));
    animation: float 6s ease-in-out infinite;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content-centered h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content-centered h1 span {
    color: var(--primary);
}

.hero-content-centered .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-centered .hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
}

.hero-content-centered .hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    justify-content: center;
}

.hero-visual-centered {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(225, 90, 66, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 90, 66, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-heading);
    border: 2px solid var(--border);
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--text-heading);
}

.hero-meta {
    display: flex;
    gap: 24px;
}

.meta-item {
    border-left: 3px solid var(--secondary);
    padding-left: 12px;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.meta-value {
    font-weight: 700;
    color: var(--text-heading);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-globe {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-orbit {
    position: absolute;
    border: 1px dashed var(--secondary);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    animation: spin 5s linear infinite;
}

.visual-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: -8px;
    box-shadow: 0 0 10px var(--primary);
}

.visual-inner-card {
    position: relative;
    background-color: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    width: 230px;
    z-index: 10;
}

.visual-inner-card .card-content {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.visual-inner-card .card-content.fade {
    opacity: 0;
    transform: translateY(-8px);
}

.visual-inner-card .card-step-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    background-color: var(--secondary-light);
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.visual-inner-card .card-step-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--primary);
    line-height: 1.2;
}

.visual-inner-card .card-step-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.visual-inner-card .card-step-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.visual-inner-card .step-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(28, 25, 23, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, scale 0.3s ease;
    cursor: pointer;
}

.visual-inner-card .step-dot:hover {
    background-color: var(--primary);
    transform: scale(1.15);
}

.visual-inner-card .step-dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* ==========================================================================
   SECTION 1: THE CAREER PIVOT & VISUAL TIMELINE
   ========================================================================== */
.timeline-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    text-align: center;
}

.timeline-horizontal {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border);
    z-index: 1;
}

.timeline-stage {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    z-index: 2;
}

.stage-marker {
    width: 64px;
    height: 64px;
    background-color: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.timeline-stage.active .stage-marker {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 0 6px rgba(225, 90, 66, 0.15);
}

.stage-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.stage-title-wrap h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.stage-subtitle {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.stage-date {
    background-color: var(--bg-subtle);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-heading);
}

.stage-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .stage-body {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.stage-desc {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.stage-bullets {
    list-style: none;
}

.stage-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 24px;
}

.stage-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: -1px;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.stage-bullet-title {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.stage-bullet-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Image Grid in Timeline Stage */
.stage-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-grid.single-image {
    grid-template-columns: 1fr;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0) 100%);
    padding: 16px 12px 8px 12px;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.gallery-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   SECTION 2: AI GOVERNANCE & EVALUATION MATRIX
   ========================================================================== */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .matrix-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.matrix-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--border);
}

.matrix-card:nth-child(1)::before {
    background-color: var(--primary);
}

.matrix-card:nth-child(2)::before {
    background-color: var(--secondary);
}

.matrix-card:nth-child(3)::before {
    background-color: var(--accent);
}

.matrix-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.matrix-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.matrix-card:nth-child(1) .matrix-icon-wrap {
    background-color: var(--primary-light);
    color: var(--primary);
}

.matrix-card:nth-child(2) .matrix-icon-wrap {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.matrix-card:nth-child(3) .matrix-icon-wrap {
    background-color: var(--accent-light);
    color: var(--accent);
}

.matrix-card h3 {
    font-size: 1.35rem;
    color: var(--text-heading);
}

.matrix-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin-top: 10px;
}

.matrix-points li {
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.matrix-points li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.matrix-point-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.matrix-point-val {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.badge-risk {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
}

.badge-risk.low {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-risk.high {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* ==========================================================================
   SECTION 3: AI PRODUCT DELIVERY PIPELINE
   ========================================================================== */
.pipeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

@media (min-width: 768px) {
    .pipeline-container {
        padding-left: 0;
    }

    .pipeline-container::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 20px;
        bottom: 20px;
        width: 4px;
        background-color: var(--border);
        transform: translateX(-50%);
        z-index: 1;
    }
}

.pipeline-step {
    position: relative;
    margin-bottom: 50px;
    z-index: 2;
}

.pipeline-step:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .pipeline-step {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }

    .pipeline-step:nth-child(even) .pipeline-card {
        grid-column: 2;
    }

    .pipeline-step:nth-child(odd) .pipeline-card {
        grid-column: 1;
        text-align: right;
    }
}

.pipeline-node {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-site);
    border: 4px solid var(--border);
    left: -56px;
    top: 24px;
    z-index: 3;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .pipeline-node {
        left: 50%;
        transform: translateX(-50%);
    }
}

.pipeline-step.active .pipeline-node {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 6px rgba(225, 90, 66, 0.15);
}

.pipeline-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pipeline-step.active .pipeline-card {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pipeline-num {
    display: inline-block;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.pipeline-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.pipeline-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pipeline-tools {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .pipeline-step:odd .pipeline-tools {
        justify-content: flex-end;
    }
}

.pipeline-badge {
    font-size: 0.75rem;
    background-color: var(--bg-subtle);
    color: var(--text-heading);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--border);
}

/* ==========================================================================
   SECTION 4: MAXIMIZING MICROSOFT COPILOT
   ========================================================================== */
.copilot-license-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
}

.license-box-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .license-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.license-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.license-card h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.license-card ul {
    list-style-type: none;
}

.license-card li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.license-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Copilot In-App Accordion/Tabs Grid */
.copilot-app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .copilot-app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .copilot-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.copilot-app-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.copilot-app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.copilot-app-card.copilot-app {
    border-top: 4px solid var(--copilot-color);
}

.copilot-app-card.excel {
    border-top: 4px solid var(--excel-color);
}

.copilot-app-card.word {
    border-top: 4px solid var(--word-color);
}

.copilot-app-card.ppt {
    border-top: 4px solid var(--ppt-color);
}

.copilot-app-card.outlook {
    border-top: 4px solid var(--outlook-color);
}

.copilot-app-card.teams {
    border-top: 4px solid var(--teams-color);
}

.app-icon {
    font-size: 2.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 36px;
}

.app-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.copilot-app-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.app-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-tips li {
    position: relative;
    padding-left: 14px;
}

.app-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-heading);
}

.app-tips li strong {
    color: var(--text-heading);
    display: block;
    margin-bottom: 2px;
}

/* ==========================================================================
   SECTION 5: AI AGENTS & AUTONOMOUS WORKFLOWS
   ========================================================================== */
.agent-vs-copilot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .agent-vs-copilot {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.comparison-box.agent {
    border: 2px solid var(--secondary);
    position: relative;
}



.comparison-box h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list strong {
    color: var(--text-heading);
}

/* Agent Architecture Graphic */
.agent-architecture {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.agent-architecture-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.arch-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
}

@media (min-width: 992px) {
    .arch-flow {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 16px;
    }

    .arch-flow::before {
        content: '';
        position: absolute;
        left: 5%;
        right: 5%;
        top: 50%;
        height: 2px;
        background-color: var(--border);
        z-index: 1;
        transform: translateY(-50%);
    }
}

.arch-node {
    background-color: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 220px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.arch-node.brain {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.arch-node.brain h4 {
    color: var(--primary-dark);
}

.arch-node.brain .arch-icon {
    background-color: var(--primary);
    color: white;
}

.arch-node.tools {
    border-color: var(--secondary);
    background-color: var(--secondary-light);
}

.arch-node.tools h4 {
    color: var(--secondary-dark);
}

.arch-node.tools .arch-icon {
    background-color: var(--secondary);
    color: white;
}

.arch-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 12px auto;
}

.arch-node h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.arch-node p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   AI AGENT SIMULATOR STYLING (Light Theme matching page colors)
   ========================================================================== */
.agent-simulator-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .agent-simulator-container {
        padding: 40px;
    }
}

.simulator-section-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-heading);
}

.simulator-section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.simulator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .simulator-layout {
        grid-template-columns: 1fr 1.25fr;
    }
}

.sim-panel {
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
}

/* Console Panel styling - Light Theme */
.terminal-panel {
    border: 1px solid var(--border);
    background-color: #FAF8F5;
    /* Matches soft sand website background */
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-panel .panel-header {
    background-color: var(--bg-subtle);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.terminal-panel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-panel .dot.red {
    background-color: #EF4444;
}

.terminal-panel .dot.yellow {
    background-color: #F59E0B;
}

.terminal-panel .dot.green {
    background-color: #10B981;
}

.terminal-panel .panel-title {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-muted);
    margin-left: 4px;
    font-weight: 600;
}

.terminal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: monospace;
}

.scenario-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scenario-selector label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-select {
    background-color: var(--bg-card);
    color: var(--text-heading);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.sim-select:focus {
    border-color: var(--primary);
}

.prompt-display {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.prompt-header {
    font-size: 0.75rem;
    color: var(--primary-dark);
    font-weight: bold;
    margin-bottom: 6px;
}

.prompt-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-body);
}

.sim-inputs-files {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sim-file-badge {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-body);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.console-log-header {
    font-size: 0.75rem;
    color: var(--secondary-dark);
    font-weight: bold;
    margin-top: 4px;
}

.console-log-area {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    height: 160px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    scroll-behavior: smooth;
}

.console-line {
    word-break: break-word;
}

.console-line.system {
    color: var(--text-muted);
}

.console-line.thought {
    color: var(--primary-dark);
    font-weight: 600;
}

.console-line.tool {
    color: #D97706;
}

/* Darker Amber */
.console-line.knowledge {
    color: var(--secondary-dark);
}

.console-line.output {
    color: var(--primary);
    font-weight: 600;
}

.sim-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-sim-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-family: monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    box-shadow: 0 4px 6px rgba(225, 90, 66, 0.15);
}

.btn-sim-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(225, 90, 66, 0.2);
}

.btn-sim-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sim-secondary {
    background-color: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-family: monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sim-secondary:hover:not(:disabled) {
    background-color: var(--bg-subtle);
}

.btn-sim-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Diagram Panel styling */
.diagram-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 400px;
}

.diagram-grid {
    position: relative;
    width: 500px;
    height: 350px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   FLUID MOBILE RECONFIGURING FOR SIMULATOR DIAGRAM
   ========================================================================== */
@media (max-width: 991px) {
    .diagram-panel {
        --diagram-offset: 140px;
        min-height: auto !important;
        width: 100% !important;
        position: relative !important;
        /* Safe length calculation capped at max desktop height (350px + padding) */
        height: calc(0.7 * min(500px, calc(100vw - var(--diagram-offset))) + 32px) !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    /* Dynamically force the diagram container to fit exactly into its container width */
    .diagram-grid {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        /* Center and scale the grid visually, capped at scale(1) max and unit-stripped */
        transform: translate(-50%, -50%) scale(min(1, calc(((100vw - var(--diagram-offset)) / 500) / 1px))) !important;
        transform-origin: center center !important;
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    .diagram-panel {
        --diagram-offset: 120px;
    }
}

@media (max-width: 480px) {
    .diagram-panel {
        --diagram-offset: 106px;
        /* Accommodates tight padding on budget devices */
    }
}

@media (min-width: 992px) and (max-width: 1140px) {
    .diagram-grid {
        transform: scale(0.88);
        transform-origin: center center;
    }
}

.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.node-wrapper {
    position: absolute;
    z-index: 2;
}

.user-node-wrap {
    left: 10px;
    top: 135px;
    width: 110px;
    height: 80px;
}

.brain-node-wrap {
    left: 190px;
    top: 115px;
    width: 120px;
    height: 120px;
}

.knowledge-node-wrap {
    left: 370px;
    top: 30px;
    width: 120px;
    height: 95px;
}

.tools-node-wrap {
    left: 370px;
    top: 220px;
    width: 120px;
    height: 95px;
}

.sim-node {
    background-color: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.sim-node.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(225, 90, 66, 0.15);
    transform: scale(1.05);
}

.sim-node .node-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.sim-node.active .node-icon {
    transform: scale(1.2);
}

.sim-node .node-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-heading);
    line-height: 1.2;
}

.sim-node .node-sub-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Brain Node Special Styles */
.brain-node {
    border-radius: 50%;
    border-color: var(--primary);
    background-color: var(--primary-light);
    position: relative;
}

.brain-node.active {
    border-color: var(--primary-dark);
    box-shadow: 0 0 25px rgba(225, 90, 66, 0.25);
}

.brain-status {
    position: absolute;
    bottom: -24px;
    background-color: var(--text-heading);
    color: white;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: monospace;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    border: 1px solid var(--border);
    transition: background-color 0.3s;
}

.brain-node.active .brain-status {
    background-color: var(--primary-dark);
    border-color: var(--primary);
}

/* Brain ripple animations */
.brain-ripple,
.brain-ripple-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    pointer-events: none;
}

.brain-node.thinking .brain-ripple {
    animation: ripple-out 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.brain-node.thinking .brain-ripple-2 {
    animation: ripple-out 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.75s;
}

@keyframes ripple-out {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Node Custom Active States & Colors */
#node-user {
    border-color: var(--border);
    background-color: #ffffff;
}

#node-user.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(225, 90, 66, 0.15);
}

#node-knowledge {
    border-color: var(--secondary);
    background-color: var(--secondary-light);
}

#node-tools {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

#node-knowledge.active {
    border-color: var(--secondary-dark);
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.25);
}

#node-tools.active {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* SVG Lines Styling */
.connection-line {
    fill: none;
    stroke: var(--border);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke 0.4s, stroke-width 0.4s, stroke-dasharray 0.4s;
}

.connection-line.active {
    stroke-width: 3.5;
    stroke-dasharray: 8 6;
    animation: flow-pulse 0.8s linear infinite;
}

.connection-line.active.primary {
    stroke: var(--primary);
}

.connection-line.active.secondary {
    stroke: var(--secondary);
}

.connection-line.active.accent {
    stroke: var(--accent);
}

@keyframes flow-pulse {
    to {
        stroke-dashoffset: -28;
    }
}

/* SVG Moving Packet Styling */
.pkt-group {
    pointer-events: none;
    transition: opacity 0.3s;
}

/* ==========================================================================
   SECTION 6: MODEL COMPARISON MATRIX
   ========================================================================== */
.model-intro-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .model-intro-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.model-explanation-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.model-explanation-card h4 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Model Comparison Table Wrapper */
.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 1100px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    vertical-align: top;
}

.comparison-table thead tr:last-child th,
.comparison-table thead th[rowspan="2"] {
    border-bottom: 2px solid #78716c;
}

.comparison-table tr.family-start td {
    border-top: 2px solid #78716c;
}

.comparison-table tr.family-end td {
    border-bottom: 2px solid #78716c;
}

.comparison-table td[rowspan] {
    border-bottom: 2px solid #78716c;
    border-right: 1px solid var(--border);
    background-color: var(--bg-card);
}

.comparison-table td.center-align,
.comparison-table th.center-align {
    text-align: center;
}

.score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 52px;
    text-align: center;
}

.score-high {
    background-color: #DCFCE7;
    color: #166534;
}

.score-mid {
    background-color: #FEF9C3;
    color: #854D0E;
}

.score-low {
    background-color: #F3F4F6;
    color: #374151;
}

.comparison-table th {
    background-color: var(--bg-subtle);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background-color: var(--bg-subtle);
}

.model-name {
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.badge-source {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-source.closed {
    background-color: #E0F2FE;
    color: #0369A1;
}

.badge-source.open {
    background-color: #ECFDF5;
    color: #047857;
}

/* Use Case Badge */
.badge-usecase {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   SECTION 7: EMERGING AI TECH & DEVELOPER TOOLS
   ========================================================================== */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

a.tool-card {
    text-decoration: none;
    color: inherit;
}

a.tool-card:hover {
    color: inherit;
}

.tool-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.tool-icon {
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 32px;
}

.tool-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.tool-vendor {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-top: -12px;
}

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

.tool-benefits {
    list-style: none;
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.tool-benefits li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.tool-benefits li::before {
    content: "⚡";
    position: absolute;
    left: 0;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--text-heading);
    color: #D1D5DB;
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #4B5563;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.footer-left h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-left p {
    max-width: 500px;
    margin-bottom: 20px;
}

.footer-right h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-links a {
    color: #9CA3AF;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
}

/* ==========================================================================
   LIGHTBOX / PORTFOLIO MODAL VIEWER
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 25, 23, 0.95);
    z-index: 1000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}

/* ==========================================================================
   ANIMATIONS & SCROLL-REVEAL STYLES
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* CSS Scroll Reveal Helper Classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

/* Timeline drawing reveal */
.timeline-horizontal::before {
    height: 0%;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-horizontal.revealed::before {
    height: calc(100% - 20px);
}

/* Responsive Overrides - Cascade Safe (At Bottom) */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    .hero-content h1 {
        font-size: 2.25rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-actions {
        justify-content: center !important;
    }

    /* FIX: Force the visual wrapper block to center perfectly on the screen */
    .hero-visual {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 20px !important;
        overflow: visible !important;
    }

    /* OPTION A: Scale down the circle cleanly for small mobile displays */
    .visual-globe {
        width: 240px !important;
        height: 240px !important;
    }

    /* Adjust the floating phase card position so it nests nicely on tiny mobile frames */
    .visual-inner-card {
        width: 190px !important;
    }
}