:root {
    --bg-color: #010c28;
    --card-bg: rgba(23, 70, 234, 0.05);
    --card-hover: rgba(23, 70, 234, 0.15);
    --primary: #1746ea;
    --primary-hover: #4675ff;
    --secondary: #02219e;
    --text-main: #FFFFFF;
    --text-muted: #a0b3db;
    --border-color: rgba(70, 117, 255, 0.1);
    --border-light: rgba(70, 117, 255, 0.25);
    --transition: all 0.3s ease;
    --font-family: 'IBM Plex Sans Arabic', sans-serif;
    --fade-bg-start: rgba(2, 13, 43, 0);
    --fade-bg-end: rgba(2, 13, 43, 0);
}

/* ================================================
   WebGL Fluid Canvas — Hero Section Background
   ================================================ */
.hero-fluid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Ensure hero content sits above the fluid canvas */
.hero-container,
.stats-container,
.scroll-down {
    position: relative;
    z-index: 2;
}

/* ================================================
   Particle Canvas — Posters & Clients Sections
   ================================================ */
#posters,
#clients {
    position: relative;
    overflow: hidden;
}

.section-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure posters/clients content is above particles */
#posters .section-container,
#clients .section-container,
#posters .marquee-container,
#clients .marquee-container {
    position: relative;
    z-index: 2;
}

/* ================================================
   Logo pulse glow — Hero logo area
   ================================================ */
.logo-img-large {
    filter: drop-shadow(0 0 18px rgba(23, 70, 234, 0.45));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(23, 70, 234, 0.45)); }
    50%       { filter: drop-shadow(0 0 38px rgba(70, 117, 255, 0.75)); }
}

/* Poster card hover lift (richer) */
.poster-card {
    transition: transform 0.4s cubic-bezier(0.2,0,0,1),
                box-shadow 0.4s cubic-bezier(0.2,0,0,1),
                border-color 0.4s ease !important;
}
.poster-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 24px 48px rgba(23, 70, 234, 0.35) !important;
    border-color: var(--primary) !important;
}


/* Poster card image shimmer on load */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.poster-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(70,117,255,0.06) 50%, transparent 100%);
    background-size: 800px 100%;
    animation: shimmer 2.5s infinite linear;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

/* ===================================== */


.poster-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* Enhanced Footer */
.site-footer {
    background: linear-gradient(to bottom, var(--bg-color), var(--card-bg));
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-light);
}

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

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    height: 85px;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
}

.footer-contact {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-main);
}

.f-contact-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.f-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.f-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.f-item a {
    color: var(--text-muted);
    transition: var(--transition);
}

.f-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .footer-top {
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   ركن شعارات عملائنا (Clients Logos Glass Cards)
   كارت زجاجي شفاف أبيض في الدارك مود، وكارت شفاف كحلي في اللايت مود
   ========================================================================== */
.marquee-item.client-logo {
    width: 220px !important;
    height: 120px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.1rem 1.6rem !important;
    margin: 0 12px !important;
    border-radius: 22px !important;
    /* كارت زجاجي شفاف أبيض للدارك مود بحواف مشطوفة فاخرة */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.marquee-item.client-logo:hover {
    transform: translateY(-7px) scale(1.04) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.48), 0 0 24px rgba(255, 255, 255, 0.25), inset 0 1px 2px 0 rgba(255, 255, 255, 0.6) !important;
    z-index: 5 !important;
}

/* كارت أبيض زجاجي شفاف في اللايت مود (Frosted White Glass for Light Mode)
   تصميم زجاجي أبيض شفاف فخم مع حواف نقية، مع ظل كونتور ناعم للشعارات البيضاء لضمان بروزها */
[data-theme="light"] .marquee-item.client-logo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.45) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 22px !important;
    box-shadow: 
        0 10px 30px -4px rgba(1, 12, 40, 0.08),
        0 4px 12px rgba(1, 12, 40, 0.04),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(23, 70, 234, 0.08) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

[data-theme="light"] .marquee-item.client-logo:hover {
    transform: translateY(-7px) scale(1.04) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
    border-color: rgba(23, 70, 234, 0.35) !important;
    box-shadow: 
        0 18px 40px -4px rgba(23, 70, 234, 0.14),
        0 0 20px rgba(23, 70, 234, 0.12),
        inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
}

/* تنسيق صور الشعارات داخل الكروت الزجاجية */
.marquee-item.client-logo img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.35s ease !important;
    display: block;
}

.marquee-item.client-logo:hover img {
    transform: scale(1.05) !important;
}

/* في الوضع الفاتح: حماية الشعارات البيضاء بظل كونتور ناعم يبرز حدودها وتفاصيلها ويمنع اندماجها مع الكارت الأبيض */
[data-theme="light"] .marquee-item.client-logo img {
    filter: drop-shadow(0 2px 8px rgba(1, 12, 40, 0.42)) drop-shadow(0 1px 2px rgba(1, 12, 40, 0.25)) !important;
}

/* ====================================
   حاوية التمرير التلقائي المستمر في لوب لانهائي (Infinite Marquee Loop)
   ==================================== */
.marquee-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden !important;
    position: relative;
    padding: 1.5rem 0;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    direction: ltr !important;
}

/* إلغاء أي ضباب أو تدرج جانبي على الأطراف نهائياً */
.marquee-container::before,
.marquee-container::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.marquee-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ====================================
   مسار الحركة (Track) - حركة مستمرة فائقة الانسيابية
   ==================================== */
.marquee-track,
#posters-marquee-track,
#clients-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    min-width: 100%;
    gap: 1.5rem;
    padding: 0.5rem 0;
    align-items: stretch;
    will-change: transform;
}

/* أنيميشن اللوب التلقائي المستمر */
.posters-marquee-animated {
    animation: satreenMarqueeScroll 45s linear infinite !important;
}

.clients-marquee-animated {
    animation: satreenMarqueeScroll 35s linear infinite !important;
}

/* إيقاف مؤقت عند وضع مؤشر الفأرة للراحة والتمعن */
.marquee-container:hover .marquee-track {
    animation-play-state: paused !important;
}

@keyframes satreenMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* تأثيرات التفاعل عند التحويم على البطاقات */
.marquee-container .marquee-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.marquee-container .marquee-item:hover,
.marquee-container .client-logo:hover,
.marquee-container .poster-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* بطاقة البوستر تحتفظ باتجاهها العربي داخل الحاوية */
.poster-card {
    direction: rtl;
    text-align: right;
}

/* تأثير shimmer لصور التصاميم */
.marquee-container .poster-image-container::before {
    animation: shimmer 2.5s infinite linear;
}

/* ضمان ظهور البطاقات فورياً دون حجب */
.marquee-container .animate-fade-up,
.marquee-container .animate-fade-in {
    opacity: 1 !important;
}

/* أسهم التنقل اليدوي الأنيقة */
.manual-nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-arrow-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(23, 70, 234, 0.12);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0;
    line-height: 1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.nav-arrow-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 70, 234, 0.4);
}

.nav-arrow-btn:active {
    transform: scale(0.90);
    box-shadow: none;
}

.marquee-item {
    width: 280px;
    height: 280px;
    margin: 0 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    flex-shrink: 0;
    background-color: #1a2238;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.marquee-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
    z-index: 2;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .marquee-container {
        padding: 1rem 0.75rem;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    .marquee-track {
        gap: 0.75rem;
        padding: 0.25rem;
    }
    .marquee-item {
        width: 200px;
        height: 200px;
        margin: 0 0.25rem;
    }
    .marquee-item.poster-card {
        width: 260px !important;
        max-width: 80vw !important;
        height: auto !important;
    }
    .marquee-item.client-logo {
        width: 170px !important;
        height: 95px !important;
        padding: 0.75rem 1.1rem !important;
        border-radius: 14px !important;
        margin: 0 8px !important;
    }
    .manual-nav-arrows {
        display: inline-flex !important;
        gap: 0.5rem;
    }
    .nav-arrow-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 0.85rem !important;
    }
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.btn-login {
    background: rgba(23, 70, 234, 0.1);
    color: var(--primary-hover);
    border: 1px solid rgba(23, 70, 234, 0.3);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-login:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(23, 70, 234, 0.4);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Navbar - Professional Floating Glass Pill */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: transparent;
}

.navbar.scrolled {
    padding: 0;
    top: 15px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.navbar.scrolled .nav-container {
    background-color: rgba(6, 11, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar.scrolled .logo-img-small {
    height: 45px; /* shrink on scroll */
}

.logo-img-small {
    height: 65px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-small {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem; /* tight gap because of pill bg */
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    text-align: right;
}

.hero-logo-large {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-color));
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    background-color: var(--card-bg);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
    z-index: 2;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.stat-box:not(:last-child) {
    border-left: 1px solid var(--border-light);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scroll-down {
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: var(--card-hover);
    border-color: rgba(37, 99, 235, 0.3);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects */
.projects-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
}

.project-img {
    height: 200px;
    background-color: #1a2238;
    position: relative;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a2238, #2a3352);
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 700;
}

.project-info {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-info h3 {
    font-size: 1.2rem;
}

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

.blog-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
}

.blog-img {
    height: 200px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-category {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Process timeline and ideas sections */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.process-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}
.process-step.active,
.process-step:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--primary);
}
.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.14);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}
.process-step h4 {
    margin-bottom: 0.6rem;
}
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.idea-card {
    min-height: 220px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.75rem;
}
.idea-card p {
    color: var(--text-muted);
}

/* Dual Section (About & Contact) */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.dual-section .section {
    padding: 0;
    margin: 0;
}

.dual-section .section-header {
    text-align: right;
    margin-bottom: 2rem;
}

/* About */
.about-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.video-placeholder {
    height: 200px;
    background: linear-gradient(45deg, #1a2238, #2a3352);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.a-stat {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.a-stat h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.a-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.submit-btn {
    width: 100%;
    border-radius: 8px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.c-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: 12px;
}

.c-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.c-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.c-text p {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-light);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

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

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    .dual-section {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    .dual-section .section-header {
        text-align: center;
    }
    .stats-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    .stat-box:not(:last-child) {
        border-left: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 1rem;
    }
    .menu-btn {
        display: block;
        z-index: 1001;
        position: relative;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--bg-color);
        padding: 6rem 2rem 2rem;
        text-align: right;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border-light);
        overflow-y: auto;
    }
    [data-theme="light"] .nav-links {
        background-color: var(--card-bg);
    }
    [dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
        text-align: left;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: none;
        border-right: 1px solid var(--border-light);
    }
    .nav-links.active {
        right: 0;
    }
    [dir="ltr"] .nav-links.active {
        left: 0;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }
    .nav-links a:hover, .nav-links a.active {
        background-color: rgba(23, 70, 234, 0.1);
    }
}

@media (max-width: 768px) {
    .nav-actions .btn-login {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.4;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-content {
        text-align: center;
    }
    [dir="ltr"] .hero-content {
        text-align: center;
    }
    .logo-img-large {
        height: 250px;
        margin-top: 1rem;
    }
    .process-timeline,
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    .idea-card,
    .process-step {
        width: 100%;
    }
    .section {
        padding: 3rem 1.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Animations */
@-webkit-keyframes fadeUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 30px, 0);
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 30px, 0);
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up {
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
}
.animate-fade-up.show {
    -webkit-animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 1;
}

.animate-fade-in {
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
}
.animate-fade-in.show {
    -webkit-animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 1;
}

/* Auth Pages (Login) & Professional Polish */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(23, 70, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    box-shadow: 0 8px 25px rgba(23, 70, 234, 0.5);
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.auth-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-header {
    margin-bottom: 2.5rem;
}

.logo-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(23, 70, 234, 0.2);
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group.has-icon .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    padding-right: 3rem;
    background-color: rgba(1, 12, 40, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(23, 70, 234, 0.05);
    box-shadow: 0 0 0 4px rgba(23, 70, 234, 0.1);
}

.show-password {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.show-password:hover {
    color: var(--text-main);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.forgot-pass {
    color: var(--primary);
    font-weight: 500;
}

.forgot-pass:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.auth-footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Logo Image Styles */
.logo-img-small {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img-large {
    height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    animation: float 10s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(23, 70, 234, 0.3));
}

/* Dashboard Layout */
.dashboard-page {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    right: 0;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 0 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.sidebar-logo img {
    height: 50px; /* appropriately sized for sidebar */
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: rgba(23, 70, 234, 0.1);
    color: var(--primary);
    border-right: 4px solid var(--primary);
}

.sidebar-nav li a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-bottom {
    padding: 0 2rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

.logout-btn:hover {
    color: #f87171;
}

/* Main Dashboard Content */
.dashboard-main {
    flex: 1;
    margin-right: 260px; /* offset for fixed sidebar in RTL */
    padding: 2rem 3rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-welcome h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.header-welcome p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    padding-right: 2.5rem;
    color: var(--text-main);
    font-family: inherit;
    width: 250px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.dashboard-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dashboard-content.show {
    opacity: 1;
    transform: translateY(0);
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.dash-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(23, 70, 234, 0.3);
}

.dash-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(23, 70, 234, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dash-stat-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

.dash-stat-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.dash-lower-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dash-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.1rem;
}

.dash-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
}

.chart-placeholder {
    height: 250px;
    background: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255, 255, 255, 0.05) 40px, rgba(255, 255, 255, 0.05) 41px);
    position: relative;
    display: flex;
    align-items: flex-end;
}

.chart-line-bg {
    width: 100%;
    height: 80%;
    background: linear-gradient(180deg, rgba(23, 70, 234, 0.4) 0%, transparent 100%);
    border-top: 3px solid var(--primary);
    clip-path: polygon(0 40%, 20% 60%, 40% 30%, 60% 80%, 80% 20%, 100% 50%, 100% 100%, 0% 100%);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.project-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.p-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.p-info {
    flex: 1;
}

.p-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.p-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.p-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}

.p-status.completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.p-status.in-progress {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

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

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .dashboard-main {
        margin-right: 0;
        padding: 1.5rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.auth-logo {
    height: 250px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Creative Glow Orbs & Animations */
.hero {
    position: relative;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    -webkit-filter: blur(50px);
    z-index: 1;
    pointer-events: none;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    -webkit-animation: drift 15s infinite alternate ease-in-out;
    animation: drift 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(23, 70, 234, 0.15);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(70, 117, 255, 0.15);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@-webkit-keyframes drift {
    0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    100% { -webkit-transform: translate3d(30px, 50px, 0); transform: translate3d(30px, 50px, 0); }
}

@keyframes drift {
    0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    100% { -webkit-transform: translate3d(30px, 50px, 0); transform: translate3d(30px, 50px, 0); }
}

@media (max-width: 768px) {
    .glow-orb {
        filter: blur(25px);
        -webkit-filter: blur(25px);
        -webkit-animation: none;
        animation: none;
        opacity: 0.5;
    }
}

/* Enhanced Creative Hover Effects */
.service-card:hover, .project-card:hover, .stat-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(23, 70, 234, 0.2);
    border-color: rgba(23, 70, 234, 0.5);
}

.highlight {
    background: linear-gradient(135deg, #fff, var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(23, 70, 234, 0.3);
}

/* Dashboard Polish */
.sidebar-logo img {
    height: 70px;
}

.dash-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(23, 70, 234, 0.15);
    border-color: var(--primary);
}

.project-list-item {
    transition: var(--transition);
}

.project-list-item:hover {
    background-color: rgba(23, 70, 234, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
}

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

/* Language Toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* Aesthetic About & Contact Sections */
.full-viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-grid-aesthetic {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-images-grid {
    position: relative;
    height: 500px;
}

.img-main {
    width: 80%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    right: 0;
    top: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.img-sub {
    width: 60%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    border: 8px solid var(--bg-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.about-images-grid:hover .img-main {
    transform: translateY(-10px);
}
.about-images-grid:hover .img-sub {
    transform: translateY(-5px);
}

.about-text-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-services-list {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.about-services-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.about-services-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-stats-row {
    display: flex;
    gap: 2rem;
}

.a-stat-modern {
    background: rgba(23, 70, 234, 0.05);
    border: 1px solid rgba(23, 70, 234, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    flex: 1;
    transition: var(--transition);
}

.a-stat-modern:hover {
    transform: translateY(-5px);
    background: rgba(23, 70, 234, 0.1);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(23,70,234,0.1);
}

.a-stat-modern h4 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-standalone {
    background: linear-gradient(to bottom, var(--bg-color), var(--card-bg));
}

@media (max-width: 992px) {
    .about-grid-aesthetic {
        grid-template-columns: 1fr;
    }
    .about-images-grid {
        height: 400px;
        order: -1; /* Image goes above text on mobile */
    }
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 0.5rem;
    }
    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .about-stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    .img-main {
        width: 90%;
        height: 300px;
    }
    .img-sub {
        width: 70%;
        height: 200px;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(247, 0, 0, 0.2);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-color: #f8faff;
    --card-bg: #ffffff;
    --card-hover: #f0f4ff;
    --primary: #1746ea;
    --primary-hover: #1235b3;
    --secondary: #02219e;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.15);
    --fade-bg-start: rgba(20, 10, 10, 0);
    --fade-bg-end: rgba(255, 255, 255, 0);
}

/* Enhancements for Light Theme */
[data-theme="light"] .navbar.scrolled .nav-container {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .nav-links a:hover, 
[data-theme="light"] .nav-links a.active {
    color: var(--primary);
}
[data-theme="light"] .service-card,
[data-theme="light"] .project-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .a-stat-modern,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .contact-info-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .lang-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .lang-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .glow-orb.orb-1 {
    background: radial-gradient(circle, rgba(23,70,234,0.15) 0%, rgba(23,70,234,0) 70%);
}
[data-theme="light"] .glow-orb.orb-2 {
    background: radial-gradient(circle, rgba(2,33,158,0.1) 0%, rgba(2,33,158,0) 70%);
}
[data-theme="light"] .img-sub {
    border-color: #ffffff;
}

/* English LTR Adjustments */
[dir="ltr"] .hero-content {
    text-align: left;
}
[dir="ltr"] .section-header.text-right {
    text-align: left;
}

@media (max-width: 992px) {
    [dir="ltr"] .hero-content {
        text-align: center;
    }
}

/* Posters Grid & Premium Instagram-Style Card Styling */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.poster-card {
    background: #0b1530;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 90vw;
    height: auto;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

[data-theme="light"] .poster-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.poster-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(23, 70, 234, 0.25);
    border-color: var(--primary);
}

.poster-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    direction: ltr; /* Always standard left-to-right instagram style */
}

[data-theme="light"] .poster-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.poster-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    border: 1.5px solid var(--primary);
    background: #020c28;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.poster-author-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.poster-author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.poster-verified {
    color: #3897f0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.poster-more {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.poster-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #1a2238;
}

.poster-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover .poster-image-container img {
    transform: scale(1.05);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 12, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.poster-image-container:hover .poster-overlay {
    opacity: 1;
}

.btn-view-design {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(23, 70, 234, 0.4);
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-image-container:hover .btn-view-design {
    transform: translateY(0);
}

.poster-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem 0.5rem;
    direction: ltr; /* Always left-to-right */
}

.poster-actions-left {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
}

.action-btn:hover {
    transform: scale(1.15);
    color: var(--primary-hover);
}

.action-btn .fa-heart:hover {
    color: #ed4956;
}

.poster-caption {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-main);
    text-align: right;
}

[dir="ltr"] .poster-caption {
    text-align: left;
}

.poster-caption strong {
    margin-left: 0.25rem;
    color: var(--text-main);
}

[dir="ltr"] .poster-caption strong {
    margin-left: 0;
    margin-right: 0.25rem;
}

.poster-caption span {
    color: var(--text-muted);
}

/* Full Screen Width Marquee Box Styles */
#posters, #clients {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#posters .section-container,
#clients .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#posters .marquee-container,
#clients .marquee-container {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

@media (max-width: 768px) {
    .marquee-item.poster-card {
        width: 250px;
    }
}