/*
TemplateMo 596 Electric Xtra
Adapted for UPEG - RTL & Brand Colors
*/

@charset "utf-8";

/* Imports */
/* Local Fonts */
@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background-color: #128C7E;
}

.whatsapp-float i {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        left: 15px;
    }
}

/* CSS Document */

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

:root {
    --primary-color: #FF5E00;
    /* Orange */
    --secondary-color: #00B2FF;
    /* Cyan/Blue */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --nav-bg: rgba(10, 10, 10, 0.8);
    --nav-bg-scrolled: rgba(10, 10, 10, 0.95);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 94, 0, 0.2);
    --grid-color-1: rgba(255, 94, 0, 0.03);
    --grid-color-2: rgba(0, 178, 255, 0.03);
    --shape-opacity: 0.1;
    --gradient-overlay: none;

    /* New theme-aware variables */
    --text-bright: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-text: #ffffff;
    --footer-bg: rgba(0, 0, 0, 0.8);
    --heading-glow: #ffffff;
    --card-hover-bg: rgba(255, 94, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.03);
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 94, 0, 0.3);
    --grid-color-1: rgba(255, 94, 0, 0.08);
    --grid-color-2: rgba(0, 178, 255, 0.08);
    --shape-opacity: 0.15;
    --gradient-overlay: none;

    /* Light Mode Specific Overrides */
    --text-bright: #1a1a1a;
    --text-muted: rgba(0, 0, 0, 0.65);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-text: #1a1a1a;
    --footer-bg: rgba(240, 240, 240, 0.95);
    --heading-glow: var(--primary-color);
    --card-hover-bg: rgba(255, 94, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
}


body {
    font-family: 'Alexandria', 'Rajdhani', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Animated background with hexagon pattern */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, transparent 2%, var(--grid-color-1) 2%, var(--grid-color-1) 3%, transparent 3%),
        radial-gradient(circle at 75% 75%, transparent 2%, var(--grid-color-2) 2%, var(--grid-color-2) 3%, transparent 3%);
    background-size: 80px 80px;
    animation: grid-move 30s linear infinite;
    z-index: -2;
    transition: background-image 0.3s ease;
}

/* Animated shapes */
.shapes-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: var(--shape-opacity);
    transition: opacity 0.3s ease;
}

.shape-circle {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    /* LTR default, kept for randomness */
    animation: float-rotate 20s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(0, 178, 255, 0.2);
    top: 60%;
    right: 15%;
    animation: float-rotate 25s ease-in-out infinite reverse;
}

.shape-square {
    width: 150px;
    height: 150px;
    border: 2px solid var(--secondary-color);
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation: float-rotate 22s ease-in-out infinite;
}

@keyframes float-rotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translateY(20px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translateY(-10px) rotate(270deg) scale(1.05);
    }
}

/* Gradient overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
    animation: gradient-shift 10s ease-in-out infinite;
    transition: background 0.3s ease;
}

@keyframes gradient-shift {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

/* Floating particles */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.particle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

nav.scrolled {
    padding: 15px 50px;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 5px 30px rgba(255, 94, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Removed row-reverse to keep Logo on Right (Start) and Nav on Left (End) in RTL */
}

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

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-subtitle {
    font-size: 1.0rem;
    color: var(--text-color);
    font-weight: 300;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1);
        text-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
    }

    50% {
        filter: brightness(1.5);
        text-shadow: 0 0 40px rgba(255, 94, 0, 0.8);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-weight: 600;
    font-size: 16px;
    /* Slightly larger for Arabic */
    /* text-transform: uppercase; Arabic doesn't have uppercase */
    letter-spacing: 0;
    /* Arabic doesn't need much letter spacing */
    opacity: 0.7;
}

.nav-links a.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* In RTL, this means Right? No, physical Left. */
    right: 0;
    /* Make it fill normally */
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    border-color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(255, 94, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL: Start from right */
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.8);
}

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

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(255, 94, 0, 0.1);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.5);
}

.theme-toggle i {
    transition: all 0.3s ease;
    position: absolute;
    z-index: 1;
}

.theme-toggle i.fa-sun {
    display: block;
}

.theme-toggle i.fa-moon {
    display: none;
}

body.light-mode .theme-toggle i.fa-sun {
    display: none;
}

body.light-mode .theme-toggle i.fa-moon {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-short {
    padding-top: 180px;
    padding-bottom: 80px;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-services {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-solutions {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-projects {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-works {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-contact {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    animation: fade-in-up 1s ease-out;
    z-index: 10;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Text Rotator Styles */
.text-rotator {
    position: relative;
    min-height: 150px;
    /* Increased for Arabic lines */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text-set {
    position: absolute;
    width: 100%;
    opacity: 0;
    display: none;
}

.text-set.active {
    opacity: 1;
    display: block;
}

.glitch-text {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0;
    /* Normal for Arabic */
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: charFlyIn 0.5s ease-out forwards;
}

@keyframes charFlyIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.char.out {
    animation: charFlyOut 0.3s ease-in forwards;
}

@keyframes charFlyOut {
    to {
        opacity: 0;
        transform: translateY(-30px) rotateX(90deg);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
    opacity: 0;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.subtitle.visible {
    animation: subtitleFade 0.8s ease-out 0.5s forwards;
}

@keyframes subtitleFade {
    to {
        opacity: 0.8;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    right: 0;
    /* Changed for RTL alignment */
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
    text-shadow: -2px 0 var(--primary-color);
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary-color);
    z-index: -1;
    text-shadow: 2px 0 var(--secondary-color);
}

@keyframes glitch-1 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(33% 0 33% 0);
        transform: translate(-2px);
    }

    40% {
        clip-path: inset(66% 0 0 0);
        transform: translate(2px);
    }

    60% {
        clip-path: inset(0 0 66% 0);
        transform: translate(1px);
    }

    80% {
        clip-path: inset(25% 0 50% 0);
        transform: translate(-1px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(50% 0 25% 0);
        transform: translate(2px);
    }

    40% {
        clip-path: inset(0 0 75% 0);
        transform: translate(-2px);
    }

    60% {
        clip-path: inset(75% 0 0 0);
        transform: translate(-1px);
    }

    80% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(1px);
    }
}

.cta-container {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 100;
}

.cta-button {
    padding: 12px 30px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.1em; */
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-weight: 700;
    border-radius: 5px;
}

.cta-primary {
    background: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 94, 0, 0.8);
    }
}

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 20px rgba(255, 94, 0, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-secondary:hover {
    background: rgba(255, 94, 0, 0.1);
    color: var(--text-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.4), inset 0 0 30px rgba(255, 94, 0, 0.2);
    border-color: var(--primary-color);
}

/* Features Section with Tabs */
.features {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin: 0 auto 60px auto;
    color: var(--primary-color);
    padding: 15px 40px;
    display: block;
    width: fit-content;
    line-height: 1.2;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 20px rgba(255, 94, 0, 0.3);
}

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

.feature-tabs {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tab-item {
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.tab-item:hover {
    background: rgba(255, 94, 0, 0.1);
    border-color: rgba(255, 94, 0, 0.3);
}

.tab-item.active {
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.3);
}

.tab-link {
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.tab-link:hover {
    background: rgba(255, 94, 0, 0.1);
    border-color: rgba(255, 94, 0, 0.3);
    color: var(--text-primary);
}

.tab-icon {
    font-size: 1.5rem;
}

.feature-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
    min-height: 400px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.content-panel h3 {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding: 10px;
    display: inline-block;
    line-height: 1.5;
}

.panel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.panel-layout:has(.panel-image) {
    grid-template-columns: 1fr 1fr;
}

.panel-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
}

.panel-layout:has(.panel-image) .panel-text {
    margin: 0;
    text-align: right;
}

.panel-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.panel-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.panel-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .panel-layout {
        grid-template-columns: 1fr;
    }

    .panel-image {
        order: -1;
        margin-bottom: 20px;
    }

    .panel-text {
        text-align: center;
        margin: 0 auto;
    }
}

.content-panel p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 10px 0;
    padding-right: 30px;
    /* RTL */
    position: relative;
    opacity: 0.9;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    right: 0;
    /* RTL */
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    padding: 10px;
    display: inline-block;
    line-height: 1.5;
}

.about-text p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 94, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 0 60px rgba(255, 94, 0, 0.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Stats Section (Added from UPEG original, styled for Electric Xtra) */
.stats-section {
    padding: 60px 20px;
    background: rgba(255, 94, 0, 0.05);
    /* Slight purple tint */
    border-top: 1px solid rgba(255, 94, 0, 0.2);
    border-bottom: 1px solid rgba(255, 94, 0, 0.2);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    border: none !important;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

.stat-item .counter {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 500;
}

/* FAQ Section (Added styled) */
.faq-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 94, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 94, 0, 0.1);
}

.faq-question {
    padding: 1.75rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 94, 0, 0.08);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Alexandria';
    line-height: 1.6;
    color: var(--text-bright);
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 2rem 1.75rem 2rem;
}

.faq-answer p {
    opacity: 0.85;
    font-size: 1.1rem;
    line-height: 1.9;
    margin: 0;
    color: var(--text-muted);
    font-weight: 400;
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
    /* text-transform: uppercase; */
    font-size: 0.9rem;
    letter-spacing: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 94, 0, 0.3);
    color: var(--input-text);
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Alexandria', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.3);
    background: var(--input-bg);
    filter: brightness(1.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Alexandria', 'Orbitron', monospace;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.5);
}

.contact-info {
    padding: 40px;
}

.contact-info h3 {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    padding: 10px;
    display: inline-block;
    line-height: 1.5;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-details p {
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 94, 0, 0.2);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px currentColor;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 10px 40px rgba(255, 94, 0, 0.7);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Services Page Grid */
.services-section {
    padding: 40px 20px 80px;
    /* Significantly reduced top padding for better flow from hero */
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 10px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-hover-bg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 94, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.4s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 20px var(--primary-color);
    color: var(--primary-color);
}

.service-title {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-bright);
    position: relative;
    padding-bottom: 15px;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL */
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 100px;
    background: var(--primary-color);
}

.service-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.service-features li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.service-features li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.service-card:hover .service-features li {
    color: var(--text-bright);
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    align-self: flex-start;
    /* align left in RTL? No align right in RTL is default flex-start */
}

.service-link:hover {
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.service-link i {
    margin-right: 5px;
    /* RTL flip needed? margin-left in RTL? */
    transition: transform 0.3s ease;
}

/* In RTL, margin-right pushes icon away from text if icon is on right?
   Wait, usually icon is on left of text "Read More ->" 
   In RTL "<- More Read" icon on left.
   If icon is `fa-arrow-left`.
*/

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        /* Mobile menu comes from left */
        right: auto;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--nav-bg-scrolled);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        padding-top: 100px;
        /* Space for close button/toggle */
        transition: left 0.3s ease;
        border-right: 1px solid var(--primary-color);
        border-left: none;
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
        /* Ensure toggle is above menu */
    }

    .hero-content {
        padding: 0 20px;
    }

    .glitch-text {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .text-rotator {
        min-height: 150px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .feature-tabs {
        display: block;
        padding: 20px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .tab-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: column;
    }

    .about-graphic {
        width: 200px;
        height: 200px;
    }

    .shape-circle,
    .shape-triangle,
    .shape-square {
        transform: scale(0.6);
    }
}

/* Additional Light Mode Refinement */
body.light-mode .subtitle {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .glitch-text {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

body.light-mode .scanlines {
    opacity: 0.02;
}

body.light-mode .particle::before {
    box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: var(--text-muted);
}

body.light-mode .submit-btn {
    box-shadow: 0 5px 20px rgba(255, 94, 0, 0.3);
}

body.light-mode .footer-links a {
    color: var(--primary-color);
}

body.light-mode .footer-links a:hover {
    color: var(--secondary-color);
}

/* Light Mode - Stats Section Refinement */
body.light-mode .stats-section {
    background: rgba(255, 94, 0, 0.03);
    border-color: var(--border-color);
}

body.light-mode .stat-item .counter {
    text-shadow: none;
}

@media (max-width: 768px) {
    body.light-mode .nav-links {
        background: var(--nav-bg-scrolled);
        border-right-color: var(--border-color);
    }
}

/* Project Specific Styles */
.project-card {
    padding: 0;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--card-hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.project-card:hover .project-image-placeholder {
    background: var(--primary-color);
    color: white;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card .service-title,
.project-card .service-desc {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 15px;
}

.project-card .service-title::after {
    right: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px 20px;
}

.project-tags span {
    background: rgba(255, 94, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 94, 0, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
    background: var(--primary-color);
    color: white;
}

/* Light Mode Project Support */
body.light-mode .project-image-placeholder {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .project-tags span {
    background: rgba(255, 94, 0, 0.05);
}

/* Terms Page Styles */
.terms-section {
    padding: 40px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.content-container {
    width: 100%;
}

.terms-content {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.terms-section .terms-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.terms-section .terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-section h2 {
    font-family: 'Alexandria', 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.terms-section h2 i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.terms-section p {
    line-height: 1.8;
    color: var(--text-bright);
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.terms-list {
    list-style: none;
    margin: 20px 0;
    padding-right: 20px;
}

.terms-list li {
    padding: 12px 0;
    padding-right: 30px;
    position: relative;
    color: var(--text-bright);
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.terms-list li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.terms-list li:hover {
    opacity: 1;
    padding-right: 35px;
    color: var(--primary-color);
}

.terms-update {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 94, 0, 0.05);
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 10px;
    text-align: center;
}

.terms-update p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.terms-update strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Light Mode Terms Styles */
body.light-mode .terms-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .terms-section .terms-section {
    border-color: var(--border-color);
}

body.light-mode .terms-update {
    background: rgba(255, 94, 0, 0.03);
    border-color: var(--border-color);
}

/* Responsive Terms */
@media (max-width: 768px) {
    .terms-section {
        padding: 20px 15px 40px;
    }

    .terms-content {
        padding: 25px;
    }

    .terms-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .terms-section h2 i {
        font-size: 1.2rem;
    }

    .terms-section p {
        font-size: 1rem;
    }

    .terms-list li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    /* FAQ Responsive */
    .faq-section {
        padding: 60px 15px;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .faq-answer p {
        font-size: 1rem;
        line-height: 1.8;
    }
}