/* ==========================================================================
   Everest Corporate Stylesheet - Interactive IT Operations Hub (Optimized v2)
   ========================================================================== */

/* --- 1. Design System Tokens & CSS Variables --- */
:root {
    --bg-dark: #02040a;
    --bg-dark-accent: #050a14;
    --bg-card: rgba(10, 16, 30, 0.45);
    --bg-card-hover: rgba(14, 23, 44, 0.65);
    
    --primary: #0066ff;
    --primary-glow: rgba(0, 102, 255, 0.3);
    --cyan: #00d2ff;
    --cyan-glow: rgba(0, 210, 255, 0.3);
    --accent: #00f2fe;
    
    --text-white: #ffffff;
    --text-gray-light: #e2e8f0;
    --text-gray: #94a3b8;
    --text-gray-dark: #475569;
    
    --border-color: rgba(255, 255, 255, 0.035);
    --border-glow: rgba(0, 210, 255, 0.2);
    
    --glass-bg: rgba(5, 9, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-code: 'Courier New', Courier, monospace;
    
    --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 2. Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-gray-light);
    font-family: var(--font-ar);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Toggle */
html[lang="en"] body {
    font-family: var(--font-en);
}

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

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.15);
    border-radius: 3px;
    border: 1px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* Custom Focus Ring Indicator for WAI-ARIA Keyboard navigation */
*:focus-visible {
    outline: 2px dashed var(--cyan);
    outline-offset: 4px;
}

/* --- 3. Utilities & Structural Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 850;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.title-underline {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    border-radius: 2px;
    margin: 20px auto 0;
}

/* Obsidian Glass Panel Styling */
.card-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.02), transparent 70%);
    pointer-events: none;
}

.card-panel:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 45px rgba(0, 210, 255, 0.05);
    background-color: var(--bg-card-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyan), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-gray);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.align-start { text-align: start; }
.text-cyan { color: var(--cyan) !important; }
.text-blue { color: var(--primary) !important; }
.text-white { color: var(--text-white) !important; }
.text-gray { color: var(--text-gray) !important; }
.text-justify { text-align: justify; }

/* --- 4. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.sticky {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px var(--glass-shadow);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* makes dark logo visible on dark background */
    transition: var(--transition-smooth);
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-gray-light);
    padding: 10px 18px;
    border-radius: 8px;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--cyan);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-item:hover::after, .nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

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

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.lang-switch-btn:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-dark-accent);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    z-index: 1100;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: var(--transition-smooth);
}

[dir="rtl"] .mobile-drawer {
    right: auto;
    left: -320px;
    border-left: none;
    border-right: 1px solid var(--glass-border);
    box-shadow: 10px 0 40px rgba(0,0,0,0.6);
}

.mobile-drawer.open { right: 0; }
[dir="rtl"] .mobile-drawer.open { right: auto; left: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close-btn {
    font-size: 2.2rem;
    color: var(--text-gray);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.drawer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-item {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    display: block;
    border: 1px solid transparent;
}

.drawer-item:hover {
    background-color: var(--bg-card);
    color: var(--cyan);
    border-color: var(--border-color);
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- 5. Hero Section & Interactive Console --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 130px;
    overflow: hidden;
}

.hero-glow-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.hero-glow-blob.blog-1 { background-color: var(--primary); top: -5%; left: -10%; }
.hero-glow-blob.blog-2 { background-color: var(--cyan); bottom: 10%; right: -10%; }

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    flex-grow: 1;
    padding-bottom: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

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

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

/* Tech Console Emulator */
.tech-console {
    background: rgba(4, 7, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.console-header {
    background: #090e21;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.console-buttons { display: flex; gap: 6px; }
.dot-btn { width: 10px; height: 10px; border-radius: 50%; }
.dot-btn.red { background-color: #ef4444; }
.dot-btn.yellow { background-color: #f59e0b; }
.dot-btn.green { background-color: #10b981; }

.console-title {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-gray);
}

.console-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.status-pulse-dot.running {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: statusPulse 1s infinite ease-in-out;
}

.status-pulse-dot.success {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.status-text {
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-gray);
}

.console-body {
    padding: 24px;
}

.console-terminal-lines {
    font-family: var(--font-code);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    height: 120px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-inline-end: 4px;
}

.console-terminal-lines .line {
    color: var(--text-gray);
}

.console-terminal-lines .line.success { color: #10b981; }
.console-terminal-lines .line.cmd { color: var(--text-white); font-weight: bold; }
.console-terminal-lines .line.err { color: #ef4444; }

.console-visual-canvas {
    background-color: rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.console-svg {
    width: 100%;
    height: auto;
    display: block;
}

#consoleVisualArea, #consoleVisualLine {
    transition: d 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-indicator {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), cx 0.8s, cy 0.8s;
}

/* Console Control Buttons */
.console-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.console-action-btn {
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    color: var(--text-gray-light);
    border-radius: 8px;
    padding: 10px 16px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-terminal-arrow {
    color: var(--cyan);
}

.console-action-btn:hover {
    background-color: rgba(0, 210, 255, 0.04);
    border-color: rgba(0, 210, 255, 0.3);
    color: var(--text-white);
    transform: translateX(4px);
}

[dir="rtl"] .console-action-btn:hover {
    transform: translateX(-4px);
}

.console-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    background-color: transparent !important;
    border-color: var(--border-color) !important;
}

/* Hero Stats Ribbon */
.hero-ribbon {
    width: 100%;
    background-color: var(--bg-dark-accent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 36px 0;
    z-index: 2;
}

.ribbon-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ribbon-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ribbon-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ribbon-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.ribbon-arrow {
    color: var(--text-gray-dark);
}

[dir="rtl"] .ribbon-arrow {
    transform: rotate(180deg);
}

/* --- 6. About Section & Scroll-Linked Climbing path --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: stretch;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
}

.card-panel-title {
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--text-white);
}

.about-p {
    font-size: 1.05rem;
    color: var(--text-gray-light);
}

.brand-identity-concept {
    display: flex;
    gap: 24px;
    background: rgba(0, 102, 255, 0.02);
    border: 1px solid rgba(0, 102, 255, 0.05);
    border-radius: 14px;
    padding: 24px;
}

.identity-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    min-width: 150px;
    text-align: center;
}

.identity-badge .badge-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan);
}

.identity-badge .badge-sub {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 700;
}

.identity-desc-box { display: flex; flex-direction: column; justify-content: center; }
.identity-desc-box h4 { font-size: 1.05rem; color: var(--text-white); margin-bottom: 6px; }
.identity-desc-box p { font-size: 0.9rem; color: var(--text-gray); }

.about-climb-progress {
    display: flex;
    gap: 24px;
}

.climb-svg-wrapper {
    width: 60px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.climb-svg {
    width: 100%;
    height: 100%;
}

.about-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.about-cards-container .card-panel {
    padding: 30px;
}

.about-cards-container h3 {
    font-size: 1.45rem;
    font-weight: 850;
    color: var(--text-white);
    margin-bottom: 12px;
}

.about-cards-container p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* --- 7. Domain Explorer (Services Redesign) --- */
.explorer-dashboard {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    align-items: stretch;
}

.explorer-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-inline-end: 1px solid var(--border-color);
    padding-inline-end: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Tab button controls */
.explorer-tab-btn {
    background: transparent;
    border: none;
    border-inline-start: 3px solid transparent;
    padding: 12px 18px;
    text-align: start;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
    width: 100%;
}

[dir="rtl"] .explorer-tab-btn {
    border-radius: 10px 0 0 10px;
    text-align: start;
}

.tab-number {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-gray-dark);
    transition: var(--transition-smooth);
}

.tab-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

/* Tab Active states */
.explorer-tab-btn.active {
    background: rgba(255, 255, 255, 0.02);
    border-inline-start-color: var(--cyan);
}

.explorer-tab-btn.active .tab-number { color: var(--cyan); }
.explorer-tab-btn.active .tab-title { color: var(--text-white); font-weight: 800; }

.explorer-tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.01);
    border-inline-start-color: var(--text-gray-dark);
}

.explorer-tab-btn:hover:not(.active) .tab-title { color: var(--text-gray-light); }

/* Highlight variations */
.explorer-tab-btn.highlight-btn-cyan.active {
    border-inline-start-color: var(--accent);
    background: rgba(0, 210, 255, 0.04);
}
.explorer-tab-btn.highlight-btn-cyan.active .tab-number { color: var(--accent); }

.explorer-tab-btn.highlight-btn-blue.active {
    border-inline-start-color: var(--primary);
    background: rgba(0, 102, 255, 0.04);
}
.explorer-tab-btn.highlight-btn-blue.active .tab-number { color: var(--primary); }

/* Dynamic panel transitions */
.explorer-viewport {
    min-height: 480px;
    position: relative;
    padding: 44px;
}

.explorer-panel {
    display: none;
    opacity: 0;
    will-change: opacity, transform;
}

.explorer-panel.active {
    display: block;
    opacity: 1;
    animation: panelFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.panel-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.panel-meta {
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-gray-dark);
    margin-bottom: 16px;
    display: block;
    letter-spacing: 0.05em;
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--text-white);
    margin-bottom: 16px;
}

.panel-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.panel-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-gray-light);
}

.bullet-svg {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--cyan);
    flex-shrink: 0;
}

.panel-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-canvas {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.bg-gradient-blue { background: radial-gradient(circle at center, rgba(0, 102, 255, 0.05) 0%, transparent 80%); }
.bg-gradient-cyan { background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 80%); }

.graphic-svg {
    width: 100%;
    height: 100%;
}

.pulse-node {
    animation: nodePulse 3s infinite ease-in-out;
    transform-origin: center;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* --- 8. Process Flow & Timelines --- */
.process-flow-diagram {
    position: relative;
    margin-top: 60px;
    padding: 20px 0;
}

.diagram-progress-line {
    position: absolute;
    top: 50px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), var(--cyan), var(--primary), var(--border-color));
    opacity: 0.4;
    z-index: 1;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    background: #050a14;
}

.step-num-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: var(--transition-bounce);
}

.process-step:hover .step-num-badge {
    border-color: var(--cyan);
    background-color: var(--cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

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

/* --- 9. IT Logistics (Interactive Device Journey) --- */
.logistics-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: stretch;
}

.logistics-content h3 {
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--text-white);
    margin-bottom: 16px;
}

.logistics-status-card {
    background: rgba(0,0,0,0.2);
    border: 1px dashed rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    min-height: 120px;
    transition: var(--transition-smooth);
}

.logistics-status-card.active-update {
    animation: statusFlash 0.5s ease;
}

@keyframes statusFlash {
    0%, 100% { border-color: rgba(255,255,255,0.05); }
    50% { border-color: var(--cyan); }
}

.logistics-status-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.logistics-status-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
}

/* Nav indicator dots below description */
.journey-steps-selector {
    display: flex;
    gap: 12px;
}

.selector-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-gray-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.selector-dot-btn.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    width: 24px;
    border-radius: 5px;
}

/* Interactive SVG pathway grid on right */
.logistics-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-device-flow {
    width: 100%;
    max-width: 240px;
    display: flex;
    justify-content: center;
}

.logistics-flow-svg {
    width: 100%;
    height: auto;
}

/* Clickable nodes */
.interactive-node {
    cursor: pointer;
    outline: none;
}

.interactive-node .node-bg {
    fill: #080d1a;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.interactive-node .node-svg-icon {
    color: var(--text-gray-dark);
    transition: var(--transition-smooth);
}

.interactive-node .node-center-dot {
    fill: transparent;
    transition: var(--transition-smooth);
}

/* Node Active/Hover styles */
.interactive-node:hover .node-bg, .interactive-node.active .node-bg {
    stroke: var(--cyan);
    fill: #0b152d;
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.interactive-node:hover .node-svg-icon, .interactive-node.active .node-svg-icon {
    color: var(--text-white);
}

.interactive-node.active .node-center-dot {
    fill: var(--cyan);
}

#logisticsRouteLineActive {
    transition: stroke-dasharray 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 10. Values Section --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 44px 30px;
}

.value-icon { font-size: 2.8rem; margin-bottom: 20px; }
.value-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--text-white); margin-bottom: 12px; }
.value-card p { font-size: 0.95rem; color: var(--text-gray); }

/* --- 11. Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
}

.contact-info h3, .contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--text-white);
    margin-bottom: 16px;
}

.contact-info-desc { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 36px; }

.info-details-list { display: flex; flex-direction: column; gap: 28px; }
.info-detail-item { display: flex; gap: 20px; }

.info-icon {
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-detail-item h4 { font-size: 1.05rem; font-weight: 800; color: var(--text-white); margin-bottom: 6px; }
.info-detail-item p { font-size: 0.9rem; color: var(--text-gray); }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--text-gray-light); }

.form-group input, .form-group textarea {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.12);
}

.form-status { font-size: 0.9rem; text-align: center; min-height: 24px; font-weight: 700; }
.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* --- 12. Footer Section --- */
.footer {
    background-color: #010206;
    border-top: 1px solid var(--border-color);
    padding: 100px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    padding-bottom: 70px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.footer-desc { font-size: 0.92rem; color: var(--text-gray); max-width: 480px; }
.footer-branding { font-size: 0.85rem; font-weight: 800; color: var(--cyan); letter-spacing: 0.05em; }

.footer-links-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.footer-col-title { font-size: 1rem; font-weight: 800; color: var(--text-white); margin-bottom: 24px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-links-col a { font-size: 0.9rem; color: var(--text-gray); }
.footer-links-col a:hover { color: var(--cyan); padding-inline-start: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 30px 0;
    background-color: #000;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-gray-dark);
}

/* ==========================================================================
   13. Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
    .section { padding: 90px 0; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content { align-items: center; }
    .hero-title { font-size: 3.2rem; }
    .tech-console { margin: 0 auto; }
    
    .about-grid, .explorer-dashboard, .logistics-grid, .contact-grid, .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .explorer-tabs-container {
        flex-direction: row;
        border-inline-end: none;
        border-bottom: 1px solid var(--border-color);
        padding-inline-end: 0;
        padding-bottom: 16px;
        max-height: none;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .explorer-tab-btn {
        border-inline-start: none;
        border-bottom: 3px solid transparent;
        border-radius: 0 !important;
        width: auto;
    }
    
    .explorer-tab-btn.active {
        border-bottom-color: var(--cyan);
    }
    
    .diagram-progress-line { display: none; }
    .process-flow { flex-direction: column; gap: 30px; }
    .process-step { align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .ribbon-container { justify-content: center; gap: 30px; }
    .ribbon-arrow { display: none; }
    .brand-identity-concept { flex-direction: column; gap: 20px; }
    .identity-badge { width: 100%; }
    .form-row-2 { grid-template-columns: 1fr; gap: 24px; }
    .footer-links-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   14. WAI-ARIA / OS Accessibility - Reduced Motion Config
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    .status-pulse-dot.running,
    .pulse-node,
    .console-chart-path {
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
}

/* ==========================================================================
   15. Light Mode / Day Mode Custom Properties & Overrides
   ========================================================================== */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-dark-accent: #ffffff;
    --bg-card: rgba(241, 245, 249, 0.75);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    
    --primary: #0052cc;
    --primary-glow: rgba(0, 82, 204, 0.12);
    --cyan: #008fa3;
    --cyan-glow: rgba(0, 143, 163, 0.12);
    --accent: #00778f;
    
    --text-white: #0f172a;
    --text-gray-light: #1e293b;
    --text-gray: #475569;
    --text-gray-dark: #cbd5e1;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 82, 204, 0.2);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: rgba(15, 23, 42, 0.05);
}

body.light-mode .logo-img {
    filter: none; /* Show original colors of dark logo on light background */
}

/* Light mode specific component overrides */
body.light-mode #climbRoute {
    stroke: rgba(0, 0, 0, 0.06);
}

body.light-mode #logisticsRouteLine {
    stroke: rgba(0, 0, 0, 0.05);
}

body.light-mode .interactive-node .node-bg {
    fill: #ffffff;
    stroke: rgba(0, 0, 0, 0.08);
}

body.light-mode .interactive-node:hover .node-bg,
body.light-mode .interactive-node.active .node-bg {
    fill: #f1f5f9;
}

body.light-mode .step-num-badge {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--primary);
}

body.light-mode .process-step:hover .step-num-badge {
    color: #ffffff;
}

body.light-mode .tech-console {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

body.light-mode .console-header {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

body.light-mode .console-title {
    color: #475569;
}

body.light-mode .console-terminal-lines {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 10px;
    border-radius: 8px;
}

body.light-mode .console-visual-canvas {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

body.light-mode .console-action-btn {
    background-color: rgba(0,0,0,0.015);
    color: #475569;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .console-action-btn:hover {
    background-color: rgba(0, 82, 204, 0.04);
    border-color: rgba(0, 82, 204, 0.2);
    color: var(--primary);
}

body.light-mode .console-action-btn:disabled {
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background-color: #ffffff;
}

body.light-mode .info-icon {
    background-color: rgba(0,0,0,0.02);
}

body.light-mode .mobile-drawer {
    background-color: #ffffff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
}

body.light-mode .drawer-item:hover {
    background-color: #f1f5f9;
}

body.light-mode .footer {
    background-color: #f1f5f9;
}

body.light-mode .footer-bottom {
    background-color: #e2e8f0;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

body.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 82, 204, 0.1);
}
