/* ==========================================================================
   SANAD Premium Style System
   Theme: Elegant Glassmorphic Dark
   Color Palette: Deep Indigo, Cobalt Blue, Gold Accent, Radiant Cyan
   Author: Mahmoud Salem (2026)
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(21, 28, 44, 0.45);
    --bg-card-hover: rgba(30, 41, 64, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Brand Colors */
    --primary: #0A2540;
    --accent-blue: #1a5296;
    --accent-blue-rgb: 26, 82, 150;
    --accent-gold: #d69f3d;
    --accent-gold-rgb: 214, 159, 61;
    --accent-purple: #8b5cf6;
    --accent-purple-rgb: 139, 92, 246;
    
    /* Text & Status Colors */
    --text-title: #ffffff;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;
    
    /* Font Stack */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* Animation Speeds */
    --transition-fast: 0.2s;
    --transition-normal: 0.35s;
    --transition-slow: 0.5s;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(15, 62, 122, 0.35) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(17, 24, 39, 0.8) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(214, 159, 61, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(15, 62, 122, 0.2) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.gradient-text {
    background: linear-gradient(135deg, var(--text-title) 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Glassmorphic Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast) ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    border: 1.5px solid rgba(214, 159, 61, 0.35);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-title);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    border-bottom: 2px solid var(--accent-gold);
    border-radius: 8px 8px 0 0;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-body);
    font-family: var(--font-en);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(214, 159, 61, 0.35);
    color: var(--text-title);
    transform: translateY(-1px);
}

/* Button UI system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: var(--font-ar);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #113663);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 82, 150, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214, 159, 61, 0.3);
    background: linear-gradient(135deg, #1d5fae, var(--accent-gold));
}

.btn-outline {
    background: transparent;
    color: var(--text-title);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    border: none;
}

.btn-success:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    background: #e11d48;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 82, 150, 0.25) 0%, transparent 70%);
    z-index: -1;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(214, 159, 61, 0.12) 0%, transparent 70%);
    z-index: -1;
}

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

.badge-premium {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(214, 159, 61, 0.1);
    border: 1px solid rgba(214, 159, 61, 0.25);
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 15.5px;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 580px;
}

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

/* Tablet Device Mockup */
.tablet-wrapper {
    position: relative;
    perspective: 1000px;
}

.tablet-bezel {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 3;
    background: #1e293b;
    border: 12px solid #0f172a;
    border-radius: 32px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    overflow: hidden;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.tablet-bezel:hover {
    transform: rotateY(-8deg) rotateX(4deg);
}

.tablet-camera {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #334155;
    border-radius: 50%;
    z-index: 10;
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mock Web Browser Styling */
.mock-browser-header {
    height: 38px;
    background: #1e293b;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #475569;
}

.mock-address-bar {
    flex: 1;
    height: 22px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--font-en);
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mock-quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    justify-content: space-between;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-fill {
    width: 40%;
    height: 100%;
    background: var(--accent-gold);
    border-radius: 2px;
}

.quiz-question-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.question-text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 12px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-body);
    transition: all var(--transition-fast) ease;
}

.quiz-option.selected {
    background: rgba(26, 82, 150, 0.15);
    border-color: var(--accent-blue);
    color: var(--text-title);
}

.option-check {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--success);
}

.quiz-option.selected .option-check {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.tablet-bottom-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 10px;
}

.tablet-secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--success);
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: sim-pulse 1.5s infinite;
}

@keyframes sim-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tablet-battery {
    font-family: var(--font-en);
}

/* Sections Structure */
.section-padding {
    padding: 100px 0;
}

.dark-section {
    background: rgba(11, 15, 25, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-body);
    max-width: 680px;
    margin: 0 auto 54px auto;
}

/* Components grid card layout */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.component-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 38px 28px;
    text-align: right;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(100px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 80%);
    pointer-events: none;
}

.component-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 26px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.purple-glow {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.gold-glow {
    background: rgba(214, 159, 61, 0.1);
    box-shadow: 0 4px 20px rgba(214, 159, 61, 0.15);
    color: var(--accent-gold);
}

.blue-glow {
    background: rgba(26, 82, 150, 0.1);
    box-shadow: 0 4px 20px rgba(26, 82, 150, 0.15);
    color: var(--accent-blue);
}

.card-title-text {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 14px;
}

.card-desc-text {
    font-size: 13.5px;
    color: var(--text-body);
    margin-bottom: 20px;
    min-height: 80px;
}

.card-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.card-bullets li {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Security Features List styling */
.features-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.features-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-shield-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-core {
    font-size: 80px;
    z-index: 5;
    filter: drop-shadow(0 10px 20px rgba(26, 82, 150, 0.4));
}

.shield-pulse-1, .shield-pulse-2, .shield-pulse-3 {
    position: absolute;
    border: 1px solid rgba(26, 82, 150, 0.3);
    border-radius: 50%;
    animation: shield-grow 4s infinite linear;
}

.shield-pulse-1 { width: 140px; height: 140px; animation-delay: 0s; }
.shield-pulse-2 { width: 180px; height: 180px; animation-delay: 1.3s; }
.shield-pulse-3 { width: 220px; height: 220px; animation-delay: 2.6s; }

@keyframes shield-grow {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.7; border-color: rgba(214, 159, 61, 0.4); }
    100% { transform: scale(1.4); opacity: 0; }
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.security-icon-bullet {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.security-item h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 6px;
}

.security-item p {
    font-size: 13px;
    color: var(--text-body);
}

/* Simulator Widget Styling */
.simulator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: right;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.sim-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sim-controls h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
}

.sim-controls p {
    font-size: 13.5px;
    color: var(--text-body);
    margin-bottom: 24px;
}

.sim-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.sim-status-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    direction: ltr;
}

.log-header {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.log-content {
    font-family: monospace;
    font-size: 11px;
    height: 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-row {
    color: var(--text-body);
}

.log-row.info { color: #38bdf8; }
.log-row.warning { color: var(--warning); }
.log-row.error { color: var(--danger); font-weight: bold; }
.log-row.success { color: var(--success); }

/* Simulator Device States */
.sim-device {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tablet-wrapper.mini {
    width: 100%;
    max-width: 380px;
}

.tablet-screen.normal-mode {
    background: #0f172a;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 60px) 1fr;
    gap: 16px;
    align-content: start;
}

.sim-screen-state {
    display: none;
    width: 100%;
    height: 100%;
}

.sim-screen-state.active {
    display: flex;
    flex-direction: column;
}

.tablet-screen.normal-mode .sim-screen-state.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 70px) 1fr;
    gap: 16px;
}

.sim-normal-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.sim-normal-app .app-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sim-normal-app span {
    font-size: 10px;
    color: var(--text-body);
    font-weight: 600;
}

.sim-instruction-text {
    grid-column: span 3;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    align-self: end;
}

/* Kiosk mode screen */
.kiosk-app-header {
    height: 30px;
    background: var(--primary);
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 9px;
    color: var(--text-title);
    font-weight: 700;
}

.secure-title {
    font-family: var(--font-en);
}

.kiosk-quiz-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.kiosk-alert-banner {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 8px;
    font-size: 9.5px;
    color: var(--warning);
    text-align: center;
}

.quiz-question-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.quiz-question-box span {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
}

.quiz-question-box p {
    font-size: 10.5px;
    color: var(--text-body);
    margin-top: 4px;
}

.kiosk-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 32px;
    background: #000000;
    font-size: 10px;
    color: #475569;
    border-top: 1px solid var(--border-color);
}

/* Violation Screen */
.violation-overlay {
    width: 100%;
    height: 100%;
    background: rgba(244, 63, 94, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--danger);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: violation-flash 1s infinite alternate;
}

@keyframes violation-flash {
    from { background-color: rgba(244, 63, 94, 0.15); }
    to { background-color: rgba(244, 63, 94, 0.3); }
}

.violation-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.violation-overlay h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
}

.violation-overlay p {
    font-size: 11px;
    color: #fca5a5;
    margin-bottom: 16px;
}

.violation-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 6px;
}

.violation-details .mono {
    font-family: monospace;
    font-size: 9px;
    color: var(--text-body);
}

/* Quick Hub Navigation Cards styling */
.hub-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hub-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.hub-card h3 {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
}

.hub-card p {
    font-size: 12.5px;
    color: var(--text-body);
    margin-bottom: 20px;
    flex-grow: 1;
}

.hub-url {
    font-family: var(--font-en);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* Card Specific Brand Colors */
.purple-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}
.purple-card:hover .hub-url { color: var(--accent-purple); }

.gold-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(214, 159, 61, 0.2);
}
.gold-card:hover .hub-url { color: var(--accent-gold); }

.blue-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(26, 82, 150, 0.2);
}
.blue-card:hover .hub-url { color: var(--accent-blue); }

/* Footer */
.footer {
    background: #05070c;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.footer-desc {
    font-size: 13.5px;
    color: var(--text-body);
    max-width: 500px;
}

.footer-divider {
    width: 100%;
    max-width: 600px;
    height: 1.5px;
    background: var(--border-color);
    margin: 20px 0;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* Technical Deep Dive Section */
.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tech-tab-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-body);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ar);
    transition: all var(--transition-fast) ease;
}

.tech-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(214, 159, 61, 0.35);
    color: var(--text-title);
}

.tech-tab-btn.active {
    background: rgba(26, 82, 150, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-title);
    box-shadow: 0 4px 15px rgba(214, 159, 61, 0.15);
}

.tech-tab-content {
    display: none;
    animation: fadeIn var(--transition-normal) ease;
    text-align: right;
}

.tech-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.code-card {
    background: #05070c;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-family: monospace;
    font-size: 12.5px;
    line-height: 1.5;
    overflow-x: auto;
    text-align: left;
    direction: ltr;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.code-title {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.code-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.code-dots .red { background: #ef4444; }
.code-dots .yellow { background: #f59e0b; }
.code-dots .green { background: #10b981; }

.code-content {
    color: #e2e8f0;
}

.code-comment { color: #64748b; font-style: italic; }
.code-keyword { color: #f43f5e; font-weight: bold; }
.code-class { color: #38bdf8; }
.code-function { color: #fbbf24; }
.code-string { color: #34d399; }

.tech-mechanics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mechanic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition-fast) ease;
    display: flex;
    gap: 16px;
}

.mechanic-card:hover {
    border-color: var(--border-hover);
    transform: translateX(-4px);
    background: var(--bg-card-hover);
}

html.ltr-mode .mechanic-card:hover {
    transform: translateX(4px);
}

.mechanic-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mechanic-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 6px;
}

.mechanic-info p {
    font-size: 12.5px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Responsive CSS Overrides */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .simulator-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .header-container {
        height: 70px;
    }
    
    .nav-menu {
        display: none; /* Mobile menu hidden by default */
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .component-card {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   English / LTR Override Layout Configuration
   ========================================================================== */
html.ltr-mode {
    font-family: var(--font-en);
    direction: ltr;
}

html.ltr-mode body {
    direction: ltr;
}

html.ltr-mode .logo-text,
html.ltr-mode .component-card,
html.ltr-mode .features-content,
html.ltr-mode .simulator-wrapper,
html.ltr-mode .quiz-question-box,
html.ltr-mode .hub-card {
    text-align: left;
}

html.ltr-mode .nav-link.active {
    border-bottom: 2px solid var(--accent-gold);
    border-radius: 8px 8px 0 0;
}

html.ltr-mode .hub-url {
    align-self: flex-end;
}

html.ltr-mode .sim-status-log {
    text-align: left;
}

html.ltr-mode .tech-tab-content,
html.ltr-mode .mechanic-info {
    text-align: left;
}

