@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Dark CAD / Terminal Theme */
    --bg-base: #090a0c;
    --bg-surface: rgba(18, 20, 24, 0.65);
    --bg-surface-opaque: #121418;
    --bg-panel: rgba(30, 32, 38, 0.8);
    
    --color-primary: #80856d;          /* Object Olive / Pantone Oil Green */
    --color-primary-hover: #5e644e;    /* Olive hover */
    --color-primary-light: rgba(128, 133, 109, 0.15);
    
    --border-light: rgba(128, 133, 109, 0.25);
    --border-focus: #80856d;
    --border-heavy: #3a3d35;
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dark: #090a0c;
    
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Style for Slide content overflow */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Background Grid & Blob Layers */
.fixed-gradient-layer,
.grid-blob-svg {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.fixed-gradient-layer {
    z-index: -5; /* Deepest layer */
    background-image: linear-gradient(0deg, rgba(128, 133, 109, 0.22) 0%, rgba(128, 133, 109, 0.08) 34%, transparent 70%);
    background-size: 100% 100%;
    background-position: center;
}

/* Triangle dot grid whose per-dot brightness is driven by an in-memory
   metaball field (computed in JS, never rasterised). Vector triangles stay
   crisp at any DPR; replaces the former data-URL mask that spammed one
   data:image/png request per animation frame. */
.grid-blob-svg {
    z-index: -3;
    width: 100%;
    height: 100%;
}

/* Floating logo styles */
.logo-floating {
    position: absolute;
    top: 24px;
    left: 40px;
    z-index: 50;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 4px;
}

.logo-image {
    width: 100px;
    height: auto;
    display: block;
}

.logo-project-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.logo-leaf-icon {
    font-size: 15.3px; /* 15% smaller than 18px */
    background: linear-gradient(135deg, #8f9479 0%, #5e644e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    vertical-align: middle;
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 15.3px; /* 15% smaller than 18px */
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #8f9479 0%, #5e644e 100%); /* Subtle gradient from platform */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    user-select: none;
}

/* Slideshow Layout Structure */
main.main-slideshow {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
}

.slides-container {
    flex: 1;
    position: relative;
    min-height: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column; /* Align children vertically */
    align-items: center;    /* Center children horizontally */
    justify-content: flex-start; /* Start from the top so overflowing content is fully scrollable */
    overflow-y: auto;
    padding: 80px 0 60px 0; /* Add padding at top to clear floating logo */
    z-index: 1;
}

.slide > .container {
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0; /* Prevent the container from shrinking when it overflows */
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 10;
}

/* Slideshow Controls Bar */
.slideshow-controls-bar {
    height: 72px; /* Increased slightly to fit labels */
    border-top: 1px solid var(--border-light);
    background: rgba(9, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 20;
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-slide-nav {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 24px; /* Standard icon size for simplified controls */
    padding: 12px;
    cursor: pointer;
    transition: color var(--transition-fast), opacity var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-slide-nav:hover:not(:disabled) {
    color: var(--text-main);
}

.btn-slide-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Timeline navigation axis styles */
.timeline-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    max-width: 680px;
    margin: 0 32px;
    height: 100%; /* Vertical centering: fill control bar height */
}

.timeline-line {
    position: absolute;
    height: 1px;
    background: var(--border-light);
    left: 0;
    right: 0;
    top: 50%; /* Center axis line vertically */
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0 13px; /* Constant horizontal padding (reduced by 1/3 from 20px) */
    height: 48px; /* Balanced height for axis alignment */
    border: 1px solid var(--border-light);
    background: var(--bg-base); /* Opaque background to cut the timeline axis line */
    transition: all var(--transition-fast);
}

.timeline-node .node-dot {
    display: none; /* Hide dots on desktop */
    width: 8px;
    height: 8px;
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: 0px !important; /* Sharp corners */
    transition: background var(--transition-fast), border-color var(--transition-fast);
    z-index: 3;
}

.timeline-node .node-label {
    font-family: var(--font-mono);
    font-size: 13px; /* Enlarge font size by 1.5x (from 9px) */
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    text-align: center;
    user-select: none;
    white-space: nowrap;
}

/* Active and hover states */
.timeline-node:hover {
    border-color: var(--border-focus);
    background: #141513; /* Solid, opaque background to mask timeline axis line on hover */
}

.timeline-node:hover .node-dot {
    border-color: var(--color-primary);
}

.timeline-node:hover .node-label {
    color: var(--text-main);
}

.timeline-node.active {
    border-color: var(--color-primary);
    background: #20221c; /* Solid, opaque background to mask timeline axis line when active */
}

.timeline-node.active .node-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.timeline-node.active .node-label {
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .timeline-nav {
        margin: 0 12px;
    }
    .timeline-node {
        min-width: auto;
        width: 24px;
        height: 24px;
        border: none;
        background: transparent;
        padding: 0;
    }
    .timeline-node .node-dot {
        display: block; /* Show dots on mobile screens */
    }
    .timeline-node .node-label {
        display: none; /* Hide text on mobile viewports to avoid overlapping */
    }
    .timeline-line {
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Typography & Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 0px !important; /* CRITICAL: Sharp corners */
    box-shadow: none !important;    /* CRITICAL: No glows or soft drop shadows */
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.glass-panel:hover {
    border-color: var(--border-focus);
    background: rgba(18, 20, 24, 0.8);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 44px; /* Fixed height for exact tag and browser consistency */
    padding: 0 24px; /* Horizontal padding only */
    border: 1px solid var(--color-primary);
    border-radius: 0px; /* Sharp corners */
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--text-main);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 44px; /* Fixed height for exact tag and browser consistency */
    padding: 0 24px; /* Horizontal padding only */
    border: 1px solid var(--border-light);
    border-radius: 0px; /* Sharp corners */
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--border-focus);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Hero Slide */
.hero-section {
    width: 100%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 900px;
}

.meta-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    padding: 4px 10px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 760px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 15px;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* About Slide */
.about-section {
    width: 100%;
}

.about-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.border-left-highlight {
    border-left: 3px solid var(--color-primary) !important;
}

.card-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.section-heading {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Challenges Slide */
.challenges-section {
    width: 100%;
}

.section-header-group {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.main-section-title {
    font-family: var(--font-sans);
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .main-section-title {
        font-size: 28px;
    }
}

.section-description {
    font-size: 15px;
    color: var(--text-muted);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
}

.challenge-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.challenge-card:hover {
    transform: translateY(-2px);
}

.challenge-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.challenge-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.challenge-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.partnership-note {
    padding: 20px;
    border-left: 3px solid var(--color-primary);
    font-size: 13px;
    color: var(--text-muted);
}

.partnership-note strong {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Scope Slide */
.scope-section {
    width: 100%;
}

.scope-panel {
    padding: 32px;
}

.panel-header-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.technical-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.technical-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.technical-list .bullet {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-primary);
    user-select: none;
    margin-top: 2px;
}

.list-content {
    display: flex;
    flex-direction: column;
}

.list-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.list-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.panel-footer-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    text-transform: uppercase;
}

.text-highlight-olive {
    color: var(--color-primary);
}

/* Contact Slide */
.contact-section {
    width: 100%;
}

.contact-box {
    padding: 50px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-box {
        padding: 32px 16px;
    }
}

.contact-title {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
}

.contact-email-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.email-text {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 1px;
    user-select: all; /* Easy text selection */
}

.contact-buttons-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .contact-buttons-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .email-text {
        font-size: 18px; /* Slightly smaller font size on narrow mobile screens */
    }
}

.toast-message {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.toast-message.show {
    opacity: 1;
}

.contact-mobile-footer {
    display: none;
}

/* Footer */
.footer {
    height: 40px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-base);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-main);
}

/* Custom Text Scramble Animation helper classes */
.scrambling {
    font-family: var(--font-mono);
    color: var(--color-primary);
}

.logo-subtitle .scrambling {
    color: inherit;
    -webkit-text-fill-color: inherit;
}

/* Phosphor Icon Alignment helper classes */
.icon-left {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

.icon-right {
    margin-left: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

.challenge-num {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.challenge-num .card-icon {
    font-size: 18px;
    color: var(--color-primary);
    opacity: 0.8;
}

.technical-list .bullet {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Radical Mobile Design Optimizations (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Global & Layout Overrides */
    .footer {
        display: none !important; /* Hide global footer on mobile to save vertical screen height */
    }
    
    .container {
        padding: 0 16px; /* Narrower gutters */
    }

    .slide {
        top: 60px; /* Restrict slide top to leave empty space for the floating logo */
        bottom: 80px; /* Restrict slide bottom to leave empty space for the floating navigation bar */
        height: auto; /* Allow height to be computed dynamically from top/bottom boundaries */
        padding: 12px 0; /* Tighten internal padding since the scrolling limits are managed by offsets */
        -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scrolling */
    }

    /* 2. Floating Header Logo - horizontal row layout */
    .logo-floating {
        top: 14px;
        left: 16px;
    }

    .logo-link {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .logo-image {
        display: none !important; /* Hide OBJECT logo completely on mobile, leaving only FRAXIN */
    }

    .logo-project-wrapper {
        margin-top: 0;
        border-left: none; /* Removed border divider since the image is hidden */
        padding-left: 0;   /* Removed padding since the image is hidden */
        gap: 4px;
    }

    .logo-subtitle {
        font-size: 21px; /* Scaled by 60% (from 13px) */
        letter-spacing: 1.5px;
    }

    .logo-leaf-icon {
        font-size: 21px; /* Scaled by 60% (from 13px) */
    }

    /* 3. Slide 0: Intro */
    .hero-title {
        font-size: 35px; /* Scaled by 60% (from 22px) */
        line-height: 1.25;
        margin-bottom: 14px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 21px; /* Scaled by 60% (from 13px) */
        margin-bottom: 24px;
        line-height: 1.45;
    }

    .meta-tag {
        margin-bottom: 12px;
        font-size: 15px; /* Scaled by 60% (from 9.5px) */
        padding: 4px 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .hero-actions button {
        width: 100%;
        height: 50px; /* Enlarger height to balance larger text */
        font-size: 19px; /* Scaled by 60% (from 12px) */
    }

    /* 4. Slide 1: About cards */
    .about-card {
        padding: 16px;
        min-height: auto;
    }

    .about-card .card-num {
        margin-bottom: 8px;
        font-size: 18px; /* Scaled by 60% (from 11px) */
    }

    .about-card .section-heading {
        font-size: 26px; /* Scaled by 60% (from 16px) */
        margin-bottom: 6px;
    }

    .about-card p {
        font-size: 20px; /* Scaled by 60% (from 12.5px) */
        line-height: 1.45;
    }

    /* 5. Slide 2: Challenges Grid (2 columns layout) */
    .section-header-group {
        margin-bottom: 16px;
    }

    .main-section-title {
        font-size: 35px; /* Scaled by 60% (from 22px) */
        margin-bottom: 6px;
    }

    .section-description {
        font-size: 20px; /* Scaled by 60% (from 12.5px) */
        line-height: 1.4;
    }

    .challenges-grid {
        grid-template-columns: 1fr; /* Switched to single column since fonts are 60% larger, saving horizontal space and avoiding squishing */
        gap: 12px;
        margin-bottom: 14px;
    }

    .challenges-grid .challenge-card:nth-child(5) {
        grid-column: span 1;
    }

    .challenge-card {
        padding: 14px 16px;
        min-height: auto;
        gap: 4px;
    }

    .challenge-num {
        margin-bottom: 6px;
        font-size: 18px; /* Scaled by 60% (from 11px) */
        padding-bottom: 4px;
    }

    .challenge-num .card-icon {
        font-size: 21px; /* Scaled by 60% (from 13px) */
    }

    .challenge-title {
        font-size: 19px; /* Scaled by 60% (from 12px) */
        margin-bottom: 4px;
    }

    .challenge-desc {
        font-size: 18px; /* Scaled by 60% (from 11px) */
        line-height: 1.35;
    }

    .partnership-note {
        padding: 14px 16px;
        font-size: 18px; /* Scaled by 60% (from 11px) */
        line-height: 1.35;
    }

    /* 6. Slide 3: Scope Panels */
    .scope-panel {
        padding: 14px;
    }

    .panel-header-title {
        font-size: 21px; /* Scaled by 60% (from 13px) */
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .technical-list {
        gap: 12px;
        margin-bottom: 12px;
    }

    .technical-list li {
        gap: 10px;
    }

    .technical-list .bullet {
        font-size: 19px; /* Scaled by 60% (from 12px) */
        margin-top: 2px;
    }

    .list-title {
        font-size: 19px; /* Scaled by 60% (from 12px) */
    }

    .list-desc {
        font-size: 18px; /* Scaled by 60% (from 11px) */
        line-height: 1.35;
    }

    .panel-footer-meta {
        font-size: 14px; /* Scaled by 60% (from 8.5px) */
        padding-top: 6px;
    }

    /* 7. Slide 4: Contact Box */
    .contact-box {
        padding: 20px 12px;
    }

    .contact-title {
        font-size: 35px; /* Scaled by 60% (from 22px) */
        margin-bottom: 6px;
    }

    .contact-subtitle {
        font-size: 20px; /* Scaled by 60% (from 12.5px) */
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .contact-email-wrapper {
        gap: 16px;
    }

    .email-text {
        font-size: 29px; /* Scaled by 60% (from 18px) */
    }

    .contact-buttons-group {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .contact-buttons-group .btn-secondary,
    .contact-buttons-group button {
        width: 100%;
        height: 50px; /* Enlarged height to balance larger text */
        font-size: 19px; /* Scaled by 60% (from 12px) */
    }

    .contact-mobile-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-top: 24px;
        padding-top: 14px;
        border-top: 1px solid var(--border-light);
        width: 100%;
        font-family: var(--font-mono);
        font-size: 15px; /* Scaled by 60% (from 9.5px) */
        color: var(--text-muted);
    }

    .contact-mobile-footer .footer-link {
        color: var(--color-primary);
        text-decoration: none;
    }

    /* 8. Floating Navigation & Axis Controls */
    .slideshow-controls-bar {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px); /* Spans the full width of the viewport minus gutters */
        max-width: none; /* Occupies all available horizontal space on mobile */
        height: 46px;
        background: rgba(9, 10, 12, 0.75);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--border-light);
        border-radius: 0px !important; /* Strict sharp corners constraint */
        box-shadow: none !important;
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
    }

    .slideshow-controls-bar .controls-container {
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-slide-nav {
        display: none !important; /* Hide next/prev arrows completely on mobile as requested */
    }

    .timeline-nav {
        margin: 0;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1;
    }

    .timeline-node {
        width: 32px; /* Margins are wider for comfortable touch targeting */
        height: 32px;
        padding: 0;
        border: none;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .timeline-node .node-dot {
        display: block;
        width: 8px;
        height: 8px;
        border-width: 1.5px;
        border-color: var(--border-light);
        background: transparent;
    }

    .timeline-node.active .node-dot {
        background: var(--color-primary);
        border-color: var(--color-primary);
    }

    .timeline-node .node-label {
        display: none;
    }

    .timeline-line {
        top: 50%;
        transform: translateY(-50%);
        background: var(--border-light);
        opacity: 0.5;
    }
}


