:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --primary-color: #ff5e00;
    --primary-hover: #e05300;
    --secondary-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-ar);
    overflow-x: hidden;
}

/* English Override Class */
body.en-lang {
    font-family: var(--font-en);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: #a0a0a0;
}

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

/* Custom Cursor */
.cursor-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 94, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-hover .cursor-dot {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 94, 0, 0.1);
    mix-blend-mode: exclusion;
}
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.brand-logo {
    height: 60px; /* Slightly taller to make it prominent */
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 80px;
}

.dot-accent {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 15px var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.lang-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: none; /* Because of custom cursor */
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 94, 0, 0.4);
}

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

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

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
}

body.en-lang .hero-visual {
    right: auto;
    left: -10%;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 20%;
    left: 20%;
    animation: float 8s infinite alternate ease-in-out;
    opacity: 0.3;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #441a00;
    bottom: 10%;
    right: 10%;
    animation: float 10s infinite alternate-reverse ease-in-out;
    opacity: 0.5;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-image-float {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    z-index: 5;
    animation: float-img 6s infinite alternate ease-in-out;
}

@keyframes float-img {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    100% { transform: translate(-50%, -50%) translateY(-20px); }
}

/* Common Section Styles */
section {
    padding: 8rem 5%;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header h2 {
    font-size: 3rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,94,0,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 94, 0, 0.3);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    cursor: none;
}

.portfolio-img {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.bg-orange-hue { background: linear-gradient(45deg, #1f1f1f, #2d1303); }
.bg-dark-hue { background: linear-gradient(45deg, #111, #222); border: 1px solid #333;}
.bg-gradient-hue { background: linear-gradient(135deg, #381501, #0a0a0a); }
.bg-orange-dark { background: linear-gradient(45deg, #2b1101, #481d02); }

.mockup-text {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.portfolio-img:hover {
    transform: scale(0.98);
}

.portfolio-img:hover .mockup-text {
    color: var(--primary-color);
    transform: scale(1.1);
}

.portfolio-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-img:hover .portfolio-real-img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem 0;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 4rem;
    border-radius: 30px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--card-border);
    background: rgba(5,5,5,0.8);
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero h1 { font-size: 3rem; }
    .contact-container { grid-template-columns: 1fr; padding: 2rem; }
    .nav-links { display: none; /* Can add hamburger menu later */ }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; justify-content: center; }
    .hero-visual { display: none; }
    .hero-buttons { justify-content: center; }
    .section-header { align-items: center; text-align: center; }
}

/* Animations Triggered by JS */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #050505;
    display: flex; justify-content: center; align-items: center;
    z-index: 999999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo { width: 100px; animation: pulse 1.5s infinite alternate; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.7;} 100% { transform: scale(1.1); opacity: 1;} }

/* --- Advanced Cursor Text --- */
.cursor-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px; font-weight: bold;
    color: #fff;
    opacity: 0; transition: opacity 0.3s;
}
.cursor-view .cursor-dot { width: 80px; height: 80px; background-color: var(--primary-color); mix-blend-mode: normal; }
.cursor-view .cursor-outline { opacity: 0; }
.cursor-view .cursor-text { opacity: 1; }

/* --- Testimonials --- */
.testi-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}
.testi-slider::-webkit-scrollbar { height: 8px; }
.testi-slider::-webkit-scrollbar-thumb { background: rgba(255,94,0,0.3); border-radius: 4px; }
.testi-card {
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 20px;
    scroll-snap-align: start;
    position: relative;
    backdrop-filter: blur(10px);
}
.quote-icon { font-size: 3rem; color: rgba(255, 94, 0, 0.2); position: absolute; top: 1.5rem; right: 1.5rem; }
html[dir="ltr"] .quote-icon { right: auto; left: 1.5rem; }
.testi-card p:not(.role) { font-size: 1.1rem; color: #fff; margin-bottom: 2rem; line-height: 1.8; font-style: italic; }
.testi-card h4 { font-size: 1.2rem; color: var(--primary-color); }
.testi-card .role { font-size: 0.9rem; margin-top: 0.5rem; }

/* --- Lightbox Modal --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
    position: absolute; top: 30px; right: 50px; font-size: 50px; color: #fff; transition: 0.3s;
}
.lightbox-close:hover { color: var(--primary-color); transform: scale(1.1); }
html[dir="ltr"] .lightbox-close { right: auto; left: 50px; }
.lightbox-img { max-width: 90%; max-height: 80vh; border-radius: 10px; margin-bottom: 1.5rem; box-shadow: 0 10px 40px rgba(255,94,0,0.2); object-fit: contain; }
.lightbox-caption { color: var(--primary-color); font-size: 1.5rem; text-align: center;}

/* --- V3 Features --- */
/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255, 94, 0, 0.5); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 0%; height: 3px;
    background: var(--primary-color);
    z-index: 1000000;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Typing Effect */
.cursor-blink { animation: blink 1s infinite; color: var(--primary-color); margin-left: 2px;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Marquee */
.marquee-container {
    width: 100%; overflow: hidden; background: #0a0a0a; padding: 2rem 0;
    border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}
.marquee-track {
    display: flex; white-space: nowrap; width: 200%;
    animation: marquee-scroll 20s linear infinite;
    direction: ltr; /* English text should scroll LTR smoothly */
}
.marquee-track span {
    font-size: 3rem; font-weight: 800; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    padding: 0 2rem; letter-spacing: 2px; font-family: var(--font-en);
}
.marquee-track span:hover { color: var(--primary-color); -webkit-text-stroke: 0; transition: 0.3s; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Stats Counters */
.stats { padding: 5rem 5%; background: linear-gradient(180deg, var(--bg-color), #0a0a0a); }
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; text-align: center; }
.stat-item { background: var(--card-bg); padding: 3rem; border-radius: 20px; border: 1px solid var(--card-border); flex: 1; min-width: 200px; backdrop-filter: blur(10px); }
.stat-item h2 { font-size: 4rem; color: #fff; display: inline-block; }
.stat-item .plus { font-size: 3rem; color: var(--primary-color); font-weight: 800; vertical-align: top; }
.stat-item p { font-size: 1.2rem; color: #aaa; margin-top: 1rem; }

/* Ambient Glow */
#ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,94,0,0.08) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1; 
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    top: 50%; left: 50%;
}

/* Floating Shapes Drift Animation */
@keyframes drift {
    0% { margin-top: 0; margin-left: 0; }
    50% { margin-top: -30px; margin-left: 20px; }
    100% { margin-top: 0; margin-left: 0; }
}
.floating-shape { animation: drift 10s ease-in-out infinite; }

/* Whatsapp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}
html[dir="rtl"] .whatsapp-float { left: 30px; right: auto; bottom: 30px;}
html[dir="ltr"] .whatsapp-float { right: 30px; left: auto; bottom: 30px;}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
.whatsapp-float::after {
    content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-pulse 1.5s infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Neon SVG Shapes around Hero Text */
.neon-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    animation: drift 8s ease-in-out infinite alternate;
    color: var(--primary-color);
    filter: drop-shadow(0 0 15px rgba(255, 94, 0, 0.6));
    opacity: 0.8;
}
.neon-circle {
    width: 60px; height: 60px; border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px rgba(255, 94, 0, 0.4);
    top: 55%; right: 15%;
    filter: none; /* using box-shadow instead */
}
html[dir="rtl"] .neon-circle { right: 15%; left: auto; }
html[dir="ltr"] .neon-circle { left: 15%; right: auto; }

.neon-cross {
    width: 45px; height: 45px; 
    top: 30%; right: 75%;
    animation-delay: -2s;
}
html[dir="rtl"] .neon-cross { right: 75%; left: auto; }
html[dir="ltr"] .neon-cross { left: 75%; right: auto; }

.neon-triangle {
    width: 55px; height: 55px;
    top: 75%; right: 65%;
    animation-delay: -4s;
    animation-direction: alternate-reverse;
}
html[dir="rtl"] .neon-triangle { right: 65%; left: auto; }
html[dir="ltr"] .neon-triangle { left: 65%; right: auto; }

.neon-zigzag {
    width: 65px; height: 65px;
    top: 20%; right: 35%;
    animation-delay: -6s;
}
html[dir="rtl"] .neon-zigzag { right: 35%; left: auto; }
html[dir="ltr"] .neon-zigzag { left: 35%; right: auto; }

/* Ensure hero-content is above the neon shapes */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Portfolio Real Images */
.portfolio-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.portfolio-item:hover .portfolio-real-img {
    transform: scale(1.05);
}

/* --- Process Timeline --- */
.process { padding: 5rem 5%; background: var(--bg-color); }
.timeline { display: flex; flex-direction: column; position: relative; max-width: 800px; margin: 0 auto; padding: 2rem 0; width: 100%; }
.timeline-line { position: absolute; left: 50%; top: 0; width: 4px; height: 100%; background: var(--card-border); transform: translateX(-50%); border-radius: 4px; }
.timeline-item { position: relative; width: 50%; padding: 2rem 4rem; box-sizing: border-box; }

.timeline-item:nth-of-type(odd) { align-self: flex-start; text-align: right; }
.timeline-item:nth-of-type(even) { align-self: flex-end; text-align: left; }

.timeline-dot { position: absolute; top: 2rem; width: 50px; height: 50px; background: var(--card-bg); border: 4px solid var(--primary-color); border-radius: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; color: var(--primary-color); box-shadow: 0 0 15px rgba(255, 94, 0, 0.5); }
.timeline-item:nth-of-type(odd) .timeline-dot { right: -25px; left: auto; }
.timeline-item:nth-of-type(even) .timeline-dot { left: -25px; right: auto; }

.timeline-content { background: var(--card-bg); padding: 2rem; border-radius: 15px; border: 1px solid var(--card-border); transition: transform 0.3s, box-shadow 0.3s; }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 94, 0, 0.15); border-color: rgba(255, 94, 0, 0.3); }
.timeline-content h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.5rem; }

/* In RTL, odd items on the right side, even items on the left side */
html[dir="rtl"] .timeline-item:nth-of-type(odd) { align-self: flex-end; text-align: left; }
html[dir="rtl"] .timeline-item:nth-of-type(even) { align-self: flex-start; text-align: right; }

html[dir="rtl"] .timeline-item:nth-of-type(odd) .timeline-dot { left: -25px; right: auto; }
html[dir="rtl"] .timeline-item:nth-of-type(even) .timeline-dot { right: -25px; left: auto; }

@media (max-width: 768px) {
    .timeline-line { left: 30px; transform: translateX(0); }
    html[dir="rtl"] .timeline-line { right: 30px; left: auto; transform: translateX(0); }
    .timeline-item { width: 100%; padding-left: 80px; padding-right: 20px; text-align: left !important; }
    html[dir="rtl"] .timeline-item { padding-right: 80px; padding-left: 20px; text-align: right !important; }
    .timeline-item:nth-of-type(odd) .timeline-dot, .timeline-item:nth-of-type(even) .timeline-dot { left: 5px !important; right: auto !important; }
    html[dir="rtl"] .timeline-item:nth-of-type(odd) .timeline-dot, html[dir="rtl"] .timeline-item:nth-of-type(even) .timeline-dot { right: 5px !important; left: auto !important; }
}

/* --- FAQ Accordion --- */
.faq { padding: 5rem 5%; background: var(--card-bg); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-color); margin-bottom: 1rem; border-radius: 10px; border: 1px solid var(--card-border); overflow: hidden; transition: 0.3s; }
.faq-question { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.3s; user-select: none; }
.faq-question > *:first-child { flex: 1; }
.faq-question h3 { font-size: 1.2rem; font-weight: normal; margin: 0; }
.faq-icon { color: var(--primary-color); transition: transform 0.3s; font-size: 1.2rem; }
.faq-item.active .faq-question { background: rgba(255, 94, 0, 0.05); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease, margin 0.3s ease; padding: 0 2rem; background: var(--bg-color); }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 2rem 1.5rem 2rem; margin-top: 1rem;}
.faq-answer p { color: #ccc; line-height: 1.8; margin: 0; }

/* --- V5 Features --- */

/* Hide old nav links globally */
.nav-links { display: none !important; }

/* Fullscreen Menu */
.menu-btn { background: transparent; border: 1px solid var(--card-border); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 20px; font-size: 1.2rem; cursor: none; transition: 0.3s; z-index: 10000; }
.menu-btn:hover { background: var(--card-bg); color: var(--primary-color); border-color: var(--primary-color); }
.fullscreen-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
.fullscreen-menu.active { opacity: 1; visibility: visible; }
.menu-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5,5,5,0.95); backdrop-filter: blur(20px); }
.menu-close { position: absolute; top: 40px; right: 50px; font-size: 40px; color: #fff; background: none; border: none; cursor: none; transition: 0.3s; z-index: 10001; }
html[dir="ltr"] .menu-close { right: auto; left: 50px; }
.menu-close:hover { color: var(--primary-color); transform: scale(1.1); }
.menu-content { position: relative; z-index: 10000; text-align: center; transform: translateY(30px); transition: transform 0.5s ease; width: 100%; max-width: 800px; padding: 2rem; }
.fullscreen-menu.active .menu-content { transform: translateY(0); }
.mega-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.menu-link { font-size: 4rem; font-weight: 800; color: #fff; text-decoration: none; transition: 0.3s; position: relative; display: inline-block; -webkit-text-stroke: 1px transparent; }
.menu-link:hover { color: transparent; -webkit-text-stroke: 1px var(--primary-color); transform: scale(1.05); }

/* Client Marquee */
.clients-marquee { width: 100%; overflow: hidden; background: transparent; padding: 3rem 0 1rem 0; z-index: 2; position: relative;}
.clients-track { display: flex; white-space: nowrap; width: 200%; animation: clients-scroll 25s linear infinite; direction: ltr; }
.clients-track span { font-size: 2.5rem; font-weight: 800; color: rgba(255, 255, 255, 0.08); padding: 0 3rem; letter-spacing: 2px; font-family: var(--font-en); display: flex; align-items: center; gap: 15px; }
.clients-track span i { font-size: 2rem; color: rgba(255, 94, 0, 0.2); }
@keyframes clients-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Case Study Modal */
.case-study-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5,5,5,0.95); backdrop-filter: blur(15px); z-index: 100000; overflow-y: auto; overflow-x: hidden; opacity: 0; visibility: hidden; transition: 0.4s ease; padding: 4rem 5%; }
.case-study-modal.active { opacity: 1; visibility: visible; }
.cs-close { position: fixed; top: 30px; right: 50px; font-size: 40px; color: #fff; cursor: none; transition: 0.3s; z-index: 100001; background: var(--card-bg); width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid var(--card-border); }
html[dir="ltr"] .cs-close { right: auto; left: 50px; }
.cs-close:hover { color: var(--primary-color); border-color: var(--primary-color); }
.cs-container { max-width: 1000px; margin: 0 auto; background: var(--bg-color); border-radius: 20px; overflow: hidden; border: 1px solid var(--card-border); transform: translateY(50px); transition: transform 0.5s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.5);}
.case-study-modal.active .cs-container { transform: translateY(0); }
.cs-header { padding: 4rem; text-align: center; border-bottom: 1px solid var(--card-border); }
.cs-title { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.cs-category { font-size: 1.2rem; color: #aaa; text-transform: uppercase; letter-spacing: 2px; }
.cs-main-img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--card-border); }
.cs-details { display: flex; flex-direction: column; gap: 3rem; padding: 4rem; text-align: right; }
html[dir="ltr"] .cs-details { text-align: left; }
.cs-section h3 { font-size: 1.8rem; margin-bottom: 1rem; color: #fff; }
.cs-section p { font-size: 1.2rem; line-height: 1.8; color: #ccc; }

@media (max-width: 768px) {
    .menu-link { font-size: 2.5rem; }
    .cs-header, .cs-details { padding: 2rem; }
    .cs-title { font-size: 2rem; }
    .cs-close { top: 15px; right: 20px; width: 45px; height: 45px; font-size: 30px; }
    html[dir="ltr"] .cs-close { right: auto; left: 20px; }
}
