/* ==========================================================================
   APEX DEVELOPMENT - STYLING SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Transition Profiles */
    --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-theme: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                       color 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                       border-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);

    /* Default Theme: Dark Modernist */
    --bg-color: #08090a;
    --text-color: #e2e4e9;
    --text-muted: #71747e;
    --accent-color: #c4a06d; /* Architectural Brass */
    --accent-glow: rgba(196, 160, 109, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    --blueprint-grid-color: rgba(196, 160, 109, 0.03);
    --hud-bg: rgba(8, 9, 10, 0.75);
    --hud-border: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(255, 255, 255, 0.02);
    --svg-card-bg: rgba(255, 255, 255, 0.01);
}

/* Light Theme: Warm Architectural Paper */
body.light-theme {
    --bg-color: #f7f5f0; /* Cream Drafting Paper */
    --text-color: #131416;
    --text-muted: #7c7d82;
    --accent-color: #9a7442; /* Deep Bronze */
    --accent-glow: rgba(154, 116, 66, 0.15);
    --border-color: rgba(0, 0, 0, 0.08);
    --blueprint-grid-color: rgba(154, 116, 66, 0.04);
    --hud-bg: rgba(247, 245, 240, 0.75);
    --hud-border: rgba(0, 0, 0, 0.05);
    --card-bg: rgba(0, 0, 0, 0.02);
    --svg-card-bg: rgba(0, 0, 0, 0.01);
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    background-color: var(--bg-color);
}

html::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition-theme);
}


/* Blueprint Grid Layer Overlay */
.blueprint-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    background-image: 
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 10vw 10vh;
}

.blueprint-bg-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 5vw 5vh;
}

/* Layout HUD elements */

/* HUD Header */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--hud-bg);
    transition: var(--transition-theme);
}

.hud-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-theme);
}

.logo-accent {
    color: var(--accent-color);
    font-size: 14px;
}

.hud-nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.6;
    letter-spacing: 0.05em;
    transition: opacity 0.3s, color 0.3s, transform 0.2s;
    position: relative;
    padding: 4px 0;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
    color: var(--accent-color);
}

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

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.hud-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hud-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 18px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth), var(--transition-theme);
}

.hud-btn:hover {
    border-color: var(--accent-color);
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Rectangular Theme Toggle sliding switch */
.theme-toggle-btn {
    width: 44px;
    height: 24px;
    border: 2px solid var(--text-color) !important;
    background-color: transparent;
    padding: 0 !important;
    position: relative;
    transition: border-color 0.3s;
}
.theme-toggle-btn::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background-color: var(--text-color);
    transform: translateX(20px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}
body.light-theme .theme-toggle-btn::after {
    transform: translateX(0);
}
.theme-toggle-btn:hover {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
}
.theme-toggle-btn:hover::after {
    background-color: var(--accent-color) !important;
}

/* Hamburger menu button toggle mechanics */
.menu-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-icon-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}

.menu-icon-lines .line {
    display: block;
    height: 1.5px;
    width: 100%;
    background-color: currentColor;
    transition: var(--transition-smooth);
}

body.menu-open .menu-trigger-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

body.menu-open .menu-icon-lines .line-1 {
    transform: translateY(2.5px) rotate(45deg);
}

body.menu-open .menu-icon-lines .line-2 {
    transform: translateY(-3px) rotate(-45deg);
}

/* Slide bullets HUD - left aligned */
.hud-side-bullets {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 90;
}

.bullet-item {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.3;
    padding: 4px 8px;
    text-align: left;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
    position: relative;
}

.bullet-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s;
}

.bullet-item.active {
    opacity: 1;
    color: var(--accent-color);
    font-weight: 700;
}

.bullet-item.active::before {
    transform: translateY(-50%) scale(1);
}

/* Side Progress HUD - right aligned */
.hud-side-progress {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 90;
    width: 60px;
}

.progress-scroll-label {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    opacity: 0.4;
}

.progress-value-wrapper {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
}

.progress-suffix {
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.5;
}

.progress-bar-track {
    width: 2px;
    height: 120px;
    background-color: var(--border-color);
    position: relative;
    margin-right: 4px;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.1s ease-out;
}

/* Keyboard tooltips HUD */
.keyboard-tooltip-hud {
    position: fixed;
    left: 40px;
    bottom: 24px;
    z-index: 90;
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.4;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.key-shortcut {
    border: 1px solid var(--text-color);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 9px;
    opacity: 0.8;
}

/* Full-screen Overlay Menu Navigation */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 95;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

body.menu-open .overlay-menu {
    opacity: 1;
    visibility: visible;
}

.overlay-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    opacity: 0.98;
    z-index: -1;
    transition: var(--transition-theme);
}

/* Scrolling Tickers inside Menu */
.menu-ticker-tape {
    width: 100%;
    background-color: var(--border-color);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ticker-content {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    animation: menuTicker 20s linear infinite;
}

@keyframes menuTicker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.menu-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    padding: 0 80px;
    align-items: center;
    flex-grow: 1;
    gap: 80px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-link-wrapper {
    overflow: hidden;
}

.menu-link {
    font-family: var(--font-heading);
    font-size: 5vw;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    line-height: 1.1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s;
}

body.menu-open .menu-link {
    transform: translateY(0);
}

body.menu-open .menu-link-wrapper:nth-child(1) .menu-link { transition-delay: 0.1s; }
body.menu-open .menu-link-wrapper:nth-child(2) .menu-link { transition-delay: 0.15s; }
body.menu-open .menu-link-wrapper:nth-child(3) .menu-link { transition-delay: 0.2s; }
body.menu-open .menu-link-wrapper:nth-child(4) .menu-link { transition-delay: 0.25s; }
body.menu-open .menu-link-wrapper:nth-child(5) .menu-link { transition-delay: 0.3s; }

.menu-num {
    font-family: var(--font-mono);
    font-size: 14px;
    opacity: 0.4;
    margin-top: 10px;
}

.menu-link:hover {
    color: var(--accent-color);
    padding-left: 20px;
    transition: padding 0.3s, color 0.3s;
}

.menu-contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-left: 1px solid var(--border-color);
    padding-left: 60px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

body.menu-open .menu-contact-info {
    opacity: 1;
    transform: translateX(0);
}

.menu-info-section h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.menu-info-section p, .menu-info-section a {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    text-decoration: none;
}

.menu-social-links {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.hover-underline {
    position: relative;
    padding-bottom: 2px;
}

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

.hover-underline:hover::after {
    width: 100%;
}


/* ==========================================================================
   DECK & SLIDE SYSTEM
   ========================================================================== */

.deck-container {
    width: 100%;
    position: relative;
    z-index: 10;
}

.deck-slide {
    width: 100%;
    min-height: calc(100vh - 100px); /* Fill screen above footer */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding-top: 140px; /* offset for HUD header */
}

.slide-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 80px 80px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Numeric Section Headers */
.slide-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.slide-number::after {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4.5vw;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Accent transparent outlines for modern aesthetic */
.accent-outline-text {
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
    transition: -webkit-text-stroke 0.8s;
}

body.light-theme .accent-outline-text {
    -webkit-text-stroke: 1px var(--text-color);
}


/* ==========================================================================
   SLIDE 00: HERO SPECIFICS
   ========================================================================== */

.hero-slide {
    background-color: transparent;
}

/* WebGL Viewport */
.webgl-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#webglCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-inner {
    justify-content: space-between;
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero-header-label {
    display: flex;
    gap: 16px;
}

.hud-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 7.2vw;
    line-height: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    margin: 40px 0;
    z-index: 5;
    pointer-events: none;
}

.hero-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-end;
    width: 100%;
}

.hero-description {
    max-width: 480px;
}

.hero-description p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.7;
}

.hero-scroll-invite {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.mouse-scroll-indicator {
    width: 24px;
    height: 42px;
    border: 1.5px solid var(--text-color);
    border-radius: 12px;
    position: relative;
    opacity: 0.6;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: mouseWheelScroll 1.8s infinite;
}

@keyframes mouseWheelScroll {
    0% { opacity: 0; transform: translate3d(-50%, 0, 0); }
    30% { opacity: 1; }
    80% { opacity: 0; transform: translate3d(-50%, 15px, 0); }
    100% { opacity: 0; }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    opacity: 0.6;
}


/* ==========================================================================
   SLIDE 01: PHILOSOPHY SPECIFICS
   ========================================================================== */

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-top: 24px;
}

.philosophy-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.meta-line {
    width: 60px;
    height: 1px;
    background-color: var(--border-color);
}

.meta-value {
    color: var(--accent-color);
}

.philosophy-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lead-text {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 300;
}

.philosophy-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.philosophy-details p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.7;
}

.philosophy-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
}

.stat-unit {
    font-size: 20px;
    opacity: 0.5;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-top: 8px;
    text-transform: uppercase;
}


/* ==========================================================================
   SLIDE 02: PROJECTS SPECIFICS (SLIDER & GRID TOGGLING)
   ========================================================================== */

.projects-inner {
    padding-bottom: 80px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.projects-controls {
    display: flex;
    gap: 12px;
}

.projects-layout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 16px;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth), var(--transition-theme);
}

.projects-layout-btn:hover, .projects-layout-btn.active {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Works Viewport Layer */
.projects-viewport {
    position: relative;
    flex-grow: 1;
    min-height: 480px;
    width: 100%;
}

/* Horizontal SLIDER mode styling */
.projects-viewport.layout-slider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-viewport.layout-slider .project-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.projects-viewport.layout-slider .project-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-index {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 3.5vw;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 10px;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0.7;
    background-color: var(--card-bg);
}

.project-desc {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.project-specs {
    width: 100%;
    border-collapse: collapse;
}

.project-specs td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    transition: var(--transition-theme);
}

.project-specs td:first-child {
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0.4;
    width: 40%;
}

.project-specs td:last-child {
    font-weight: 500;
}

.project-graphics {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px dashed var(--border-color);
    background-color: var(--svg-card-bg);
    overflow: hidden;
    transition: var(--transition-theme);
}

.blueprint-svg {
    width: 100%;
    height: 100%;
    max-width: 480px;
    max-height: 480px;
    object-fit: contain;
}

/* Blueprint Line Drawing Styling */
.svg-wireframe path, 
.svg-wireframe line, 
.svg-wireframe circle,
.svg-wireframe rect {
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.svg-measurements text {
    letter-spacing: 0.05em;
}

/* Slider Controls HUD footer (only visible in slider mode) */
.projects-slider-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.slider-arrow-btn {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-color);
    padding: 10px;
    transition: color 0.3s;
}

.slider-arrow-btn:hover {
    color: var(--accent-color);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.slide-dot {
    width: 6px;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.slide-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.5);
}


/* Grid layout representation overrides */
.projects-viewport.layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    min-height: 480px;
}

.projects-viewport.layout-grid .project-card {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    transform: none !important;
    transition: border-color 0.3s, transform 0.3s, background-color 0.8s;
}

.projects-viewport.layout-grid .project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
}

.projects-viewport.layout-grid .project-info {
    order: 2;
}

.projects-viewport.layout-grid .project-graphics {
    order: 1;
    margin-bottom: 24px;
    aspect-ratio: 1.2;
}

.projects-viewport.layout-grid .project-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.projects-viewport.layout-grid .project-desc,
.projects-viewport.layout-grid .project-specs {
    display: none; /* Hide detailed lists in card layout to keep it clean */
}


/* ==========================================================================
   SLIDE 03: TIMELINE / PROCESS SPECIFICS
   ========================================================================== */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.process-card-item {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    transition: var(--transition-smooth), var(--transition-theme);
}

.process-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-card-item:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-8px);
}

body.light-theme .process-card-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.process-card-item:hover::before {
    transform: scaleX(1);
}

.card-num {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.card-body {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.6;
    flex-grow: 1;
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.4;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   SLIDE 04: CONTACT SPECIFICS
   ========================================================================== */

.contact-inner {
    padding-bottom: 24px; /* Give room for footer */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-top: 24px;
    flex-grow: 1;
}

.contact-lead-text {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.7;
    margin: 24px 0 40px;
    max-width: 480px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.method-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.method-row span {
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0.4;
}

.method-row a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 14px 18px;
    transition: border-color 0.3s, background-color 0.8s;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2371747e' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-submit-btn {
    align-self: flex-start;
    padding: 14px 32px;
    font-size: 12px;
}

.form-submit-btn:hover {
    border-color: var(--accent-color);
}

/* Alignment Grid Overlay */
.hud-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    padding: 0 80px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.grid-overlay-active .hud-grid-overlay {
    opacity: 1;
}
.overlay-grid-column {
    height: 100%;
    border-left: 1px dashed rgba(196, 160, 109, 0.12);
    border-right: 1px dashed rgba(196, 160, 109, 0.12);
    background-color: rgba(196, 160, 109, 0.012);
    transition: var(--transition-theme);
}
body.light-theme .overlay-grid-column {
    border-left: 1px dashed rgba(154, 116, 66, 0.12);
    border-right: 1px dashed rgba(154, 116, 66, 0.12);
    background-color: rgba(154, 116, 66, 0.012);
}

/* Good Fella Style Footer */
.gf-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 80px 80px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-theme);
    z-index: 10;
    margin-top: 80px;
}
.gf-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 80px;
    position: relative;
    z-index: 2;
}
@media (max-width: 1024px) {
    .gf-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-col-middle, .footer-col-right {
        border-left: none !important;
        padding-left: 0 !important;
    }
}
.footer-col-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.newsletter-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}
.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.newsletter-input-group label {
    font-family: var(--font-mono);
    font-size: 9px;
    opacity: 0.5;
    letter-spacing: 0.05em;
}
.newsletter-input {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.3s;
}
.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
}
.subscribe-btn-wrapper {
    display: flex;
    width: 100%;
}
.newsletter-submit-btn {
    flex-grow: 1;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px;
    transition: var(--transition-smooth);
    text-align: center;
}
.subscribe-plus-block {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-left: none;
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 16px;
    transition: var(--transition-theme);
}
.newsletter-submit-btn:hover {
    border-color: var(--accent-color);
    background-color: var(--text-color);
    color: var(--bg-color);
}
.newsletter-submit-btn:hover + .subscribe-plus-block {
    border-color: var(--accent-color);
}
.newsletter-caption {
    font-family: var(--font-mono);
    font-size: 9px;
    opacity: 0.4;
    letter-spacing: 0.05em;
}
.status-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.status-bullet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}
.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    display: inline-block;
    transform: rotate(45deg);
}
.status-dot.highlight-dot {
    background-color: #e05a47;
}
.status-text.highlight-text {
    color: #e05a47;
    font-weight: 600;
}
.footer-col-middle {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 60px;
    transition: var(--transition-theme);
}
.footer-col-middle h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.footer-directory {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-dir-link {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
    display: inline-block;
}
.footer-dir-link:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}
.footer-col-right {
    display: flex;
    flex-direction: column;
    gap: 36px;
    border-left: 1px solid var(--border-color);
    padding-left: 60px;
    transition: var(--transition-theme);
}
.footer-emails {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-email-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    transition: color 0.3s;
}
.footer-email-link:hover {
    color: var(--accent-color);
}
.footer-legal-links {
    display: flex;
    gap: 24px;
}
.footer-legal-link {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
}
.footer-legal-link:hover {
    color: var(--accent-color);
}
.footer-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-control-row {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-control-row kbd {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--text-color);
    font-size: 9px;
}
.footer-control-btn {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-color);
    text-decoration: underline;
    padding: 0;
    transition: var(--transition-theme);
}
.footer-watermark {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 16vw;
    font-weight: 900;
    color: var(--text-color);
    opacity: 0.03;
    line-height: 0.8;
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}
.footer-vector-left, .footer-vector-right {
    position: absolute;
    bottom: 20px;
    width: 140px;
    height: 180px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}
.footer-vector-left { left: 40px; }
.footer-vector-right { right: 40px; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-theme);
}
.footer-copyright, .footer-tagline {
    font-family: var(--font-mono);
    font-size: 9px;
    opacity: 0.4;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   ANIMATIONS & DYNAMIC MICRO-INTERACTIONS
   ========================================================================== */

/* Fade animation classes triggered on load / active */
.animate-fade {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.deck-slide.active-section .animate-fade {
    opacity: 1;
    transform: translateY(0);
}

/* Title text reveal animation wrapper class */
.animate-reveal {
    overflow: hidden;
}

.animate-reveal span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.deck-slide.active-section .animate-reveal span {
    transform: translateY(0);
}

.deck-slide.active-section .animate-reveal span:nth-child(2) {
    transition-delay: 0.1s;
}
.deck-slide.active-section .animate-reveal span:nth-child(3) {
    transition-delay: 0.2s;
}


/* ==========================================================================
   RESPONSIVE SCALING VIEWPORTS
   ========================================================================== */

@media (max-width: 1440px) {
    .slide-inner {
        padding-left: 60px;
        padding-right: 60px;
    }
    .hud-side-bullets { left: 24px; }
    .hud-side-progress { right: 24px; }
    .keyboard-tooltip-hud { left: 24px; }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 5vw;
    }
    
    .philosophy-grid,
    .contact-grid {
        gap: 40px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    /* Disable snap scroll for responsive viewports to allow native fluid mobile scroll experience */
    html {
        scroll-snap-type: none;
    }
    
    .deck-slide {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .slide-inner {
        padding-top: 60px;
        padding-bottom: 0;
        height: auto;
    }
    
    .hero-title {
        font-size: 8vw;
    }
    
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-viewport.layout-slider .project-card {
        grid-template-columns: 1fr;
        height: auto;
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        transform: none !important;
        display: flex;
        flex-direction: column-reverse;
        gap: 32px;
        margin-bottom: 60px;
    }
    
    .projects-viewport.layout-slider {
        display: block;
        height: auto;
    }
    
    .projects-slider-hud {
        display: none !important; /* Slider controls not needed if they stack vertically on tablet/mobile */
    }
    
    .projects-viewport.layout-grid {
        grid-template-columns: 1fr;
    }
    
    .hud-side-bullets, 
    .hud-side-progress,
    .keyboard-tooltip-hud {
        display: none !important;
    }
    
    .hud-header {
        padding: 16px 24px;
    }
    
    .hud-nav-links {
        display: none; /* Hide header items in favor of mobile hamburger overlay */
    }
    
    .menu-content-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
        gap: 40px;
    }
    
    .menu-contact-info {
        padding-left: 0;
        border-left: none;
    }
    
    .menu-link {
        font-size: 8vw;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
