html {
    font-size: 22px; /* Scales up all rem-based typography */
}

/* --- Design System & CSS Variables --- */
:root {
    --bg-dark: #08080c;
    --bg-card: rgba(18, 18, 26, 0.65);
    --bg-glass-border: rgba(255, 106, 0, 0.15);
    
    /* Neon Orange Accents */
    --orange-primary: #ff6a00;
    --orange-bright: #ff8c00;
    --orange-glow: rgba(255, 106, 0, 0.45);
    --orange-glow-heavy: rgba(255, 106, 0, 0.8);
    
    /* Text colors */
    --text-white: #ffffff;
    --text-gray: #a0a5b5;
    --text-muted: #626875;
    
    /* Fonts */
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 20px;
    padding: 20px;
}

/* --- Starry Futuristic Background --- */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.25;
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 106, 0, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 106, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

@keyframes backgroundShift {
    from { background-position: 0 0, 40px 60px, 130px 270px; }
    to { background-position: 550px 550px, 390px 410px, 380px 820px; }
}

/* --- Presentation Container & Slides --- */
.presentation-container {
    width: 98%;
    max-width: 1750px;
    height: 88vh;
    max-height: 960px;
    position: relative;
    z-index: 5;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- Premium Glassmorphism Card --- */
.card-glass {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--bg-glass-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 0 30px rgba(255, 106, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,106,0,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Badges and Texts --- */
.badge {
    align-self: flex-start;
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid var(--orange-primary);
    color: var(--orange-bright);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.glow-text-orange {
    color: var(--text-white);
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
    position: relative;
}

.glow-text-orange::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-primary), transparent);
    margin-top: 10px;
    border-radius: 2px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-top: 6px;
}

.instructions-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.editable {
    outline: none;
    transition: all 0.3s ease;
    border-bottom: 1px dashed transparent;
}

.editable:hover {
    border-bottom: 1px dashed var(--orange-primary);
    background: rgba(255, 106, 0, 0.05);
}

.editable:focus {
    border-bottom: 1px solid var(--orange-bright);
    background: rgba(255, 106, 0, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

/* --- Slide 1: Profile --- */
.profile-body {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: auto 0;
}

.profile-img-container {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    position: relative;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.glow-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid var(--orange-primary);
    box-shadow: 0 0 20px var(--orange-glow);
    animation: rotateGlow 8s linear infinite;
    z-index: 1;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); border-style: dashed; }
    100% { transform: rotate(360deg); border-style: dashed; }
}

.photo-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(8, 8, 12, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.profile-img-container:hover .photo-upload-overlay {
    opacity: 1;
}

.photo-upload-overlay i {
    font-size: 1.5rem;
    color: var(--orange-bright);
}

.photo-upload-overlay span {
    font-size: 0.8rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    border-color: var(--bg-glass-border);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.05);
}

.icon-orange {
    font-size: 1.8rem;
    color: var(--orange-bright);
    filter: drop-shadow(0 0 5px var(--orange-glow));
}

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

.info-text .label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.info-text .val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

/* --- Slide 2: Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 25px;
}

/* --- Partners / Companies Worked With Section --- */
.partners-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid rgba(255, 106, 0, 0.15);
    padding-top: 20px;
}

.glow-text-orange-sub {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 106, 0, 0.25);
    position: relative;
    margin-bottom: 5px;
}

.glow-text-orange-sub::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-primary), transparent);
    margin-top: 5px;
    border-radius: 2px;
}

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

.partner-item-card {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.partner-item-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange-primary);
    background: rgba(255, 106, 0, 0.03);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.1);
}

.partner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-item-card:hover .partner-glow {
    opacity: 1;
}

.partner-logo-wrapper {
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    transition: all 0.3s ease;
}

.partner-item-card:hover .partner-logo-wrapper {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 10px rgba(255, 106, 0, 0.1);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.85) contrast(1.1);
    transition: all 0.3s ease;
}

.partner-item-card:hover .partner-logo-img {
    filter: brightness(1) contrast(1);
    transform: scale(1.05);
}

.text-logo-wrapper {
    background: rgba(255, 106, 0, 0.05);
    border: 1px dashed rgba(255, 106, 0, 0.2);
}

.partner-item-card:hover .text-logo-wrapper {
    background: rgba(255, 106, 0, 0.1);
    border-color: var(--orange-primary);
}

.partner-text-logo {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--orange-bright);
    text-shadow: 0 0 8px var(--orange-glow);
    font-family: var(--font-primary);
}

.partner-name {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.3;
}

.partner-item-card:hover .partner-name {
    color: var(--text-white);
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-primary);
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.12);
}

.project-card.highlight-card {
    border-color: rgba(255, 106, 0, 0.25);
    background: rgba(255, 106, 0, 0.02);
}

.project-card.highlight-card:hover {
    border-color: var(--orange-bright);
}

.project-icon {
    font-size: 1.25rem;
    color: var(--orange-primary);
    margin-bottom: 2px;
}

.project-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.project-card p {
    font-size: 0.65rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.project-tags {
    display: flex;
    gap: 4px;
    margin-top: auto;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.58rem;
    background: rgba(255, 106, 0, 0.1);
    color: var(--orange-bright);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 106, 0, 0.15);
}

/* --- Slide 3: Intro to ROVER --- */
.rover-intro-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.rover-intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rover-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 20px 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.feature-bullet i {
    color: var(--orange-bright);
    font-size: 1.1rem;
}

/* Rover graphical representation */
.rover-intro-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.rover-avatar-box {
    width: 320px;
    height: 320px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(255, 106, 0, 0.15);
    position: relative;
}

.rover-graphic {
    width: 200px;
    height: 150px;
    position: relative;
}

.rover-radar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--orange-primary);
    position: absolute;
    top: -40px;
    left: 20px;
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.rover-body-box {
    width: 140px;
    height: 60px;
    background: linear-gradient(135deg, #2a2a35, #1e1e24);
    border: 2px solid var(--orange-primary);
    border-radius: 12px;
    position: absolute;
    top: 40px;
    left: 30px;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
}

.rover-wheel {
    width: 34px;
    height: 34px;
    background: #0f0f15;
    border: 3px solid var(--orange-bright);
    border-radius: 50%;
    position: absolute;
    bottom: -17px;
    animation: spinWheel 4s linear infinite;
}

.wheel-1 { left: 10px; }
.wheel-2 { left: 53px; }
.wheel-3 { left: 96px; }

@keyframes spinWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rover-cam-mast {
    width: 8px;
    height: 50px;
    background: var(--orange-primary);
    position: absolute;
    top: -48px;
    left: 35px;
}

.rover-cam-head {
    width: 24px;
    height: 16px;
    background: #111;
    border: 2px solid var(--orange-bright);
    border-radius: 4px;
    position: absolute;
    top: -8px;
    left: -8px;
    animation: camLook 4s ease-in-out infinite alternate;
}

@keyframes camLook {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

.rover-arm {
    width: 60px;
    height: 6px;
    background: var(--text-gray);
    position: absolute;
    top: 20px;
    right: -25px;
    transform-origin: left center;
    transform: rotate(-30deg);
    animation: armMove 5s ease-in-out infinite alternate;
}

@keyframes armMove {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(10deg); }
}

/* --- Slide 4: Tech Specs --- */
.specs-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    margin: auto 0;
    align-items: center;
}

.spec-detail-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.spec-card:hover {
    border-color: var(--orange-primary);
    background: rgba(255, 106, 0, 0.03);
    transform: scale(1.02);
}

.spec-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 4px 0;
}

.spec-card p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.spec-visual-preview {
    display: flex;
    justify-content: center;
}

.blueprint-card {
    width: 100%;
    max-width: 380px;
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.05);
}

.blueprint-header {
    font-size: 0.85rem;
    color: var(--orange-bright);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 106, 0, 0.2);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.blueprint-body {
    height: 220px;
    position: relative;
    border: 1px dashed rgba(255, 106, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blueprint CSS Rover representation */
.bp-visual-rover {
    position: relative;
    width: 180px;
    height: 110px;
    opacity: 0.8;
}

.bp-chassis {
    width: 110px;
    height: 45px;
    background: transparent;
    border: 2px solid #555;
    position: absolute;
    top: 30px;
    left: 35px;
}

.bp-wheel {
    width: 25px;
    height: 25px;
    border: 2px solid var(--orange-primary);
    border-radius: 50%;
    position: absolute;
    bottom: -13px;
}

.bp-wheel.w1 { left: 5px; }
.bp-wheel.w2 { left: 40px; }
.bp-wheel.w3 { left: 75px; }

.bp-mast {
    width: 4px;
    height: 35px;
    background: #555;
    position: absolute;
    top: -35px;
    left: 20px;
}

.bp-mast::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 16px;
    height: 10px;
    border: 1px solid var(--orange-primary);
    background: #000;
}

.bp-arm-joint {
    width: 40px;
    height: 4px;
    background: #555;
    position: absolute;
    top: 15px;
    right: -20px;
    transform: rotate(-20deg);
}

.bp-line {
    position: absolute;
    font-size: 0.7rem;
    color: var(--orange-bright);
    background: rgba(8, 8, 12, 0.9);
    padding: 2px 6px;
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 4px;
}

.bp-cam { top: 10px; left: 10px; }
.bp-sensors { top: 90px; left: 10px; }
.bp-arm { top: 10px; right: 10px; }
.bp-drive { bottom: 10px; right: 10px; }

/* --- Slide 5: Mission Tasks --- */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto 0;
}

.task-step {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 24px 30px;
    border-radius: 18px;
    align-items: center;
    transition: all 0.3s ease;
}

.task-step:hover {
    border-color: var(--bg-glass-border);
    transform: translateX(-5px);
    background: rgba(255, 106, 0, 0.02);
}

.task-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--orange-primary);
    opacity: 0.8;
    text-shadow: 0 0 10px var(--orange-glow);
    min-width: 60px;
}

.task-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-white);
}

.task-step p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* --- Slide 6: Dashboard Simulation --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    height: calc(100% - 100px);
    margin-top: 15px;
}

.dash-panel {
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255, 106, 0, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live Camera Feed Panel */
.camera-feed-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.camera-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.1) 50%),
                linear-gradient(90deg, rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.1) 50%);
    background-size: 8px 8px;
    z-index: 5;
    pointer-events: none;
}

.camera-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 106, 0, 0.2);
    border: 1px solid var(--orange-primary);
    color: var(--orange-bright);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 6;
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.mock-terrain {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #e05e00 0%, #4a2100 80%);
    position: relative;
    overflow: hidden;
}

.rover-shadow {
    width: 80px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(5px);
}

.mock-terrain::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background-image: 
        radial-gradient(#ff8c00 1px, transparent 1px),
        radial-gradient(#ff6a00 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.2;
    animation: terrainScroll 10s linear infinite;
}

@keyframes terrainScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(30px); }
}

/* Control Pad */
.control-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.ctrl-row {
    display: flex;
    gap: 8px;
    direction: ltr;
}

.btn-ctrl {
    width: 46px;
    height: 46px;
    background: rgba(255, 106, 0, 0.05);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 10px;
    color: var(--orange-bright);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-ctrl:hover {
    background: var(--orange-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--orange-glow);
    transform: scale(1.05);
}

.btn-ctrl:active {
    transform: scale(0.95);
}

.terminal-log {
    background: #050508;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.75rem;
    height: 70px;
    overflow-y: auto;
    direction: ltr;
    text-align: left;
}

.system-msg {
    color: #00ff66;
    margin-bottom: 4px;
}

.user-cmd-msg {
    color: var(--orange-bright);
    margin-bottom: 4px;
}

/* Right Sensors Panel */
.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.telemetry-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

.t-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.t-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 4px;
}

.systems-switches {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.btn-switch {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-gray);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-switch.active {
    background: var(--orange-primary);
    border-color: var(--orange-bright);
    color: #fff;
    box-shadow: 0 0 10px var(--orange-glow);
}

/* Radar Scan */
.rover-status-radar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.01);
    padding: 10px;
    border-radius: 12px;
    border: 1px dashed rgba(255,106,0,0.1);
}

.radar-scan {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #09090e;
    border: 1.5px solid var(--orange-primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.radar-beam {
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, var(--orange-glow-heavy) 0%, transparent 80%);
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom right;
    animation: radarSweep 3s linear infinite;
}

.radar-blip {
    width: 4px;
    height: 4px;
    background: var(--orange-bright);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 8px var(--orange-bright);
    opacity: 0;
}

.blip-1 { top: 15px; left: 20px; animation: blipFade 3s infinite 0.5s; }
.blip-2 { top: 35px; left: 40px; animation: blipFade 3s infinite 1.8s; }

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blipFade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: 0; }
}

.radar-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* --- Navigation Controls & Dots --- */
.nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 98%;
    max-width: 1750px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: var(--orange-primary);
    border-color: var(--orange-bright);
    box-shadow: 0 0 20px var(--orange-glow);
    transform: scale(1.08);
}

.nav-btn:active {
    transform: scale(0.95);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--orange-primary);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--orange-glow);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .presentation-container {
        height: auto;
        max-height: none;
    }
    .card-glass {
        padding: 24px;
        height: auto;
    }
    .profile-body, .rover-intro-container, .specs-container, .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .profile-body {
        flex-direction: column;
    }
    .design-btn {
        right: 165px;
        top: 20px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .lang-btn {
        right: 20px;
        top: 20px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .fullscreen-btn {
        left: 20px;
        top: 20px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    body {
        overflow-y: auto;
        height: auto;
        padding: 40px 10px;
    }
}

@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Centered Profile Slide Styling --- */
.profile-centered-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.profile-centered-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-centered-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 0 20px var(--orange-glow);
    margin-top: 20px;
}

.profile-centered-title {
    font-size: 1.4rem;
    color: var(--orange-bright);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -5px;
}

.profile-centered-info {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* --- Floating Fullscreen Toggle Button --- */
.fullscreen-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18, 18, 26, 0.7);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.fullscreen-btn:hover {
    background: var(--orange-primary);
    border-color: var(--orange-bright);
    box-shadow: 0 0 15px var(--orange-glow);
    transform: scale(1.1);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

/* --- Modal Overlay & Content --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay .modal-content {
    width: 92%;
    max-width: 1200px;
    height: 75vh;
    max-height: 640px;
    overflow-y: auto;
    border: 1px solid rgba(255, 106, 0, 0.4);
    box-shadow: 0 0 22px rgba(255, 106, 0, 0.22);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.modal-overlay .modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    z-index: 100;
}

.modal-close:hover {
    color: var(--orange-bright);
    transform: scale(1.1);
}

.modal-body {
    margin-top: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    font-size: 0.78rem;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-section-title {
    font-size: 0.95rem;
    color: var(--text-white);
    margin: 18px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content .glow-text-orange {
    font-size: 1.35rem;
}

.modal-content .glow-text-orange::after {
    height: 3px;
    width: 40px;
    margin-top: 6px;
}

.modal-content .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-bottom: 6px;
}

/* Adjust projects grid to fit 4 cards beautifully */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: auto 0;
}

@media (max-width: 1280px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Robotics Modal & 3D Viewer Layout --- */
.robotics-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    height: 100%;
    align-items: stretch;
}

.robotics-info {
    overflow-y: auto;
    padding-left: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange-primary) rgba(255, 255, 255, 0.05);
}

.robotics-info::-webkit-scrollbar {
    width: 6px;
}

.robotics-info::-webkit-scrollbar-thumb {
    background-color: var(--orange-primary);
    border-radius: 3px;
}

.robotics-viewer-container {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: 16px;
    height: 100%;
    min-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.loading-overlay-model {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 12, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: var(--text-gray);
    font-size: 0.95rem;
    text-align: center;
    padding: 30px;
    transition: opacity 0.4s ease;
}

/* Adjust layout on smaller screens */
@media (max-width: 1024px) {
    .robotics-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 30px;
    }
    .robotics-viewer-container {
        min-height: 380px;
        height: 380px;
    }
}

/* --- Video Background styling --- */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38; /* Subtle background opacity */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(8, 8, 12, 0.3) 0%, rgba(8, 8, 12, 0.8) 100%);
}

/* --- Modal Tabs Styling --- */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal-tab-btn {
    background: rgba(255, 106, 0, 0.05);
    border: 1px solid rgba(255, 106, 0, 0.25);
    color: var(--text-gray);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-tab-btn:hover {
    background: rgba(255, 106, 0, 0.15);
    color: var(--text-white);
    border-color: var(--orange-primary);
}

.modal-tab-btn.active {
    background: var(--orange-primary);
    color: var(--text-white);
    border-color: var(--orange-bright);
    box-shadow: 0 0 15px var(--orange-glow);
}

.tab-panel {
    display: none;
    height: 100%;
}

.tab-panel.active {
    display: block;
}

/* --- Observatory Gallery Styling --- */
.observatory-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 360px;
}

.observatory-main-media {
    position: relative;
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 280px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.gallery-media-el,
.observatory-main-media #mars-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.observatory-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    padding: 3px 0;
}

.thumb-item {
    position: relative;
    width: 60px;
    height: 44px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
    flex-shrink: 0;
}

.thumb-item img, .thumb-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--orange-bright);
    transform: scale(1.05);
    box-shadow: 0 0 8px var(--orange-glow);
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    font-size: 0.75rem;
    z-index: 2;
    background: rgba(255, 106, 0, 0.8);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* --- Slide Specs Tab Custom Styling --- */
.specs-tab-btn {
    background: rgba(255, 106, 0, 0.05);
    border: 1px solid rgba(255, 106, 0, 0.25);
    color: var(--text-gray);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.specs-tab-btn:hover {
    background: rgba(255, 106, 0, 0.15);
    color: var(--text-white);
    border-color: var(--orange-primary);
}

.specs-tab-btn.active {
    background: var(--orange-primary);
    color: var(--text-white);
    border-color: var(--orange-bright);
    box-shadow: 0 0 15px var(--orange-glow);
}

.specs-desc-card {
    display: none;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    animation: specsFadeIn 0.4s ease forwards;
}

.specs-desc-card.active {
    display: block;
}

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

.roadmap-card:hover {
    background: rgba(255, 106, 0, 0.03) !important;
    border-color: rgba(255, 106, 0, 0.4) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 106, 0, 0.15);
}

.lang-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 106, 0, 0.4);
    color: var(--orange-bright);
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    background: var(--orange-bright);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.5);
    transform: translateY(-2px);
}

.design-btn {
    position: fixed;
    top: 25px;
    right: 180px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 106, 0, 0.4);
    color: var(--orange-bright);
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.design-btn:hover {
    background: var(--orange-bright);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.5);
    transform: translateY(-2px);
}

/* RTL and LTR dynamic text alignments */
html[dir="rtl"] .text-align-dir {
    text-align: right;
    direction: rtl;
}

html[dir="ltr"] .text-align-dir {
    text-align: left;
    direction: ltr;
}

/* Ensure slide layout elements flip columns appropriately based on dir */
html[dir="rtl"] .rover-intro-container,
html[dir="rtl"] .specs-container {
    direction: rtl;
}

html[dir="ltr"] .rover-intro-container,
html[dir="ltr"] .specs-container {
    direction: ltr;
}

/* Flipping order of columns in English (LTR) so text stays on left, media stays on right! */
html[dir="ltr"] .rover-intro-container {
    grid-template-columns: 1.2fr 1fr !important;
}

html[dir="ltr"] .specs-container {
    grid-template-columns: 1.2fr 1fr !important;
}



