/* Font Logic */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* Refined Palette - "Tech Premium" */
    --c-primary: #253A84;
    --c-primary-hover: #1E2F6B;
    --c-secondary: #6B6EA9;
    --c-accent: #3a86ff;

    /* Light Theme */
    --bg-body: #F5F5F7;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-body: #000000;
    --bg-surface: #121212;
    --bg-glass: rgba(20, 20, 20, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --text-main: #F5F5F7;
    --text-muted: #A1A1A6;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--c-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    /* More modern default */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.6;
}

/* Typography & Brand */
.brand-name {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.brand-q {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Navbar - Mobile Default (Sticky Top) */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    /* Glass base */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    /* Flex for mobile simple layout */
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

.nav-links {
    display: none;
    /* Hidden on mobile */
}

/* Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop Floating Pill Style */
@media (min-width: 769px) {
    .navbar {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1200px;
        height: 70px;
        border-radius: 100px;
        /* Floating Pill */
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-bottom: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        /* Soft diffuse shadow */
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        /* True centering */
        padding: 0 30px;
        /* Animation Entry */
        animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    [data-theme="dark"] .navbar {
        background: rgba(20, 20, 20, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .nav-brand {
        justify-self: start;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 2.5rem;
        list-style: none;
        justify-self: center;
    }

    .nav-actions {
        justify-self: end;
        gap: 1rem;
    }

    /* Hide Mobile Profile Icon on Desktop */
    .mobile-signin-btn {
        display: none !important;
    }
}

@keyframes navSlideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.nav-logo {
    height: 36px;
    /* Slightly larger */
    width: auto;
    object-fit: contain;
}

/* Professional Links */
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
    /* Subtle Pill Hover */
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Active Link Indicator (If needed, subtle logic) */
.nav-active {
    color: var(--text-main);
    font-weight: 600;
}

/* Icon Buttons */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s;
    font-size: 1.1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--c-accent);
    color: white;
    font-size: 9px;
    height: 14px;
    min-width: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg-surface);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lang-item {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.1s;
}

.lang-item:hover {
    background: var(--bg-body);
}

/* Mobile Icon */
.mobile-signin-btn {
    display: none;
    text-decoration: none;
}

/* Sign In Button */
.btn-signin {
    background-color: var(--c-primary);
    color: #FFFFFF;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-signin:hover {
    background-color: var(--c-primary-hover);
    transform: scale(1.02);
}

[data-theme="dark"] .btn-signin {
    background-color: #FFFFFF;
    color: #000000;
}

[data-theme="dark"] .btn-signin:hover {
    background-color: #E5E5E5;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding-bottom: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-top: 1px solid var(--border-subtle);
    z-index: 1000;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
    width: 60px;
    transition: color 0.2s;
}

.mobile-nav-item.active {
    color: var(--c-primary);
}

[data-theme="dark"] .mobile-nav-item.active {
    color: #FFFFFF;
}

.mobile-nav-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* =========================================
   NEW SECTIONS CSS 
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    /* Almost full viewport */
    background-image: url('../images/hero2.jpg');
    /* Using hero2 as user requested images from file */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* نبدأ بلون أساسي */
    background-color: rgba(37, 58, 132, 0.4);
    z-index: 1;
    /* زدنا الوقت إلى 15 ثانية لجعل التغير بطيئاً جداً وغير محسوس */
    animation: smoothPulse 15s ease-in-out infinite alternate;
}

@keyframes smoothPulse {
    0% {
        /* اللون الأزرق الأصلي */
        background-color: rgba(37, 58, 132, 0.4);
    }

    50% {
        /* درجة وسطية: أزرق أعمق قليلاً */
        background-color: rgba(28, 45, 100, 0.5);
    }

    100% {
        /* لون قريب جداً لكن يميل للزرقة السماوية الداكنة (يناسب الطاقة) */
        /* التغيير في الشفافية واللون طفيف جداً */
        background-color: rgba(30, 70, 140, 0.45);
    }
}

/* Floating Animation for Hero Content */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-static-title {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Typewriter CSS */
.typewriter-container {
    font-size: 2.5rem;
    font-weight: 600;
    min-height: 3rem;
    /* Prevent layout shift */
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter-text {
    color: #FFFFFF;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cursor {
    animation: blink 0.7s infinite;
    margin-left: 2px;
    font-weight: 100;
    color: var(--c-accent);
}

/* Bottom Fade Transition */
.hero-bottom-fade {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, transparent, var(--bg-surface));
    z-index: 1;
    pointer-events: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* CTA Button */
.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 10;
}

.cta-button.primary {
    background: var(--c-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.5);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* About Section Styles */
.about-section {
    padding: 6rem 1rem;
    position: relative;
    background: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    /* Center vertically with image */
    margin-bottom: 4rem;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

[data-direction="rtl"] .why-choose-image {
    order: 2;
    /* Ensure image stays visually consistent or swap if preferred */
}

.section-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4rem 0;
    width: 100%;
    opacity: 0.5;
}

.rounded-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rounded-img:hover {
    transform: scale(1.02);
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-direction="rtl"] .about-grid {
    direction: rtl;
    text-align: right;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

[data-direction="rtl"] .about-content .section-title {
    text-align: right;
}

.why-choose-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

[data-direction="rtl"] .why-choose-content .section-title {
    text-align: right;
}

.vision-mission-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.vm-block {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.vm-block:hover {
    transform: translateY(-5px);
}

.vm-block h3 {
    color: var(--c-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--c-accent);
    padding-left: 10px;
}

[data-direction="rtl"] .vm-block h3 {
    border-left: none;
    border-right: 4px solid var(--c-accent);
    padding-left: 0;
    padding-right: 10px;
}

/* Why Choose Us List */
.why-choose-list {
    list-style: none;
    /* No bullets */
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Increase gap for spacing */
}

.why-choose-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.why-choose-list li i {
    color: var(--c-accent);
    font-size: 1.8rem;
    background: rgba(58, 134, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
}

.why-choose-list li div strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.why-choose-list li div p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 968px) {

    .about-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .vision-mission-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image,
    .why-choose-image {
        order: -1;
        /* Show image first on mobile? Usually images between text looks better */
        margin-bottom: 2rem;
    }

    /* Let's keep typical flow: Text then image or Image then Text depending on story */
    /* For About: Text (top) -> Image (middle) -> V/M (bottom) might be too split.
       Let's stick to simple stacking: Column 1 then Column 2.
       .about-grid default is Text (col 1) Image (col 2). So Mobile: Text then Image.
       .why-choose-grid default is Image (col 1) Text (col 2). So Mobile: Image then Text.
    */
}




@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Blocks */
.section-block {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 800;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Mission Section */
.mission-section {
    background: var(--bg-surface);
}

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

.mission-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--c-accent);
}

.mission-card i {
    font-size: 2.5rem;
    color: var(--c-primary);
    transition: transform 0.3s, text-shadow 0.3s;
}

.mission-card:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(58, 134, 255, 0.6);
}

/* Solutions Section */
.solutions-section {
    background: var(--bg-body);
}

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

.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-body));
    border-color: var(--c-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--c-accent);
    font-size: 1.5rem;
    animation: float 4s ease-in-out infinite;
}

/* Projects Section */
.projects-section {
    background: var(--bg-surface);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.project-item {
    height: 250px;
    border-radius: 16px;
    background-color: var(--bg-body);
    /* Fallback */
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Using distinct placeholders if images aren't real yet */
.item-1 {
    background-image: url('../images/hero.jpg');
}

.item-2 {
    background-image: url('../images/hero2.jpg');
}

.item-3 {
    background-image: url('../images/hero3.jpg');
}

.project-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.project-item:hover::after {
    background: rgba(0, 0, 0, 0);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.cta-button.secondary.white {
    background: white;
    color: var(--c-primary);
}

/* Footer & Other */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 20px;
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Responsive Logic */
@media (max-width: 768px) {

    .nav-links,
    .btn-signin-desktop {
        display: none;
    }

    .mobile-signin-btn {
        display: flex;
    }

    .navbar {
        height: 56px;
        padding: 0 16px;
    }

    .nav-left {
        gap: 0;
    }

    .mobile-nav {
        display: flex;
    }

    .lang-menu {
        right: -50px;
    }

    [dir="rtl"] .lang-menu {
        left: -50px;
        right: auto;
    }

    /* Hero Responsive */
    .hero-static-title {
        font-size: 2.5rem;
    }

    .typewriter-container {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Padding Adjustments */
    .section-block {
        padding: 3rem 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* =========================================
   Modern About & Bento Grid Section
   ========================================= */

.modern-about-section {
    padding: 8rem 0;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

/* Typography Enhancements */
.section-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--c-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .section-title-large {
    background: linear-gradient(135deg, #ffffff 0%, var(--c-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(58, 134, 255, 0.1);
    color: var(--c-accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(58, 134, 255, 0.2);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--c-accent);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.section-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
}

/* Glass Cards (Vision/Mission) */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 30, 30, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--c-accent);
    box-shadow: 0 20px 40px rgba(58, 134, 255, 0.15);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(58, 134, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--c-accent);
    font-size: 1.8rem;
}

/* Immersive Banner */
.immersive-banner {
    position: relative;
    width: 100%;
    height: 500px;
    /* Large impactful height */
    border-radius: 30px;
    overflow: hidden;
    margin-top: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.immersive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.immersive-banner:hover .immersive-img {
    transform: scale(1.1);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Bento Grid Layout */
.why-choose-wrapper {
    margin-top: 8rem;
}

.bento-grid {
    display: grid;
    /* 3 columns default */
    grid-template-columns: 1fr 1fr 1fr;
    /* Auto rows */
    grid-auto-rows: min-content;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--c-accent);
}

/* Specific Card Sizes & Positions */

/* Large Feature: Top Left (2x2) */
.feature-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
    position: relative;
    padding: 0;
    /* Remove padding to let image fill */
}

/* Image Background only for large card */
.feature-large .card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-large:hover .card-bg-img {
    transform: scale(1.05);
}

/* Content overlay for Large card */
.feature-large .card-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(22, 22, 22, 0.75);
    /* Darker backdrop */
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.feature-large h4 {
    color: white;
    font-size: 1.5rem;
}

.feature-large p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-large .icon-box {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-accent);
}

/* Wide Feature: Bottom (Span 2) */
.feature-wide {
    grid-column: span 2;
}

.card-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

[data-direction="rtl"] .card-row {
    text-align: right;
}

/* Icon Box Style */
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(58, 134, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--c-accent);
    margin-bottom: 1rem;
}

.bento-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Grid for Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns tablet */
    }

    .feature-large {
        grid-column: span 2;
        /* Full width top */
        min-height: 350px;
    }

    .feature-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        /* 1 column mobile */
    }

    .feature-large,
    .feature-wide {
        grid-column: span 1;
    }

    .immersive-banner {
        height: 250px;
        margin-top: 2rem;
    }

    .section-title-large {
        font-size: 2.2rem;
    }
}

/* =========================================
   Next-Gen About & Feature Matrix Section
   ========================================= */

.about-future-section {
    position: relative;
    background: var(--bg-surface);
    overflow: hidden;
    padding-bottom: 8rem;
}

/* =========================================
   Single Box About Layout
   ========================================= */

.about-single-box-wrapper {
    padding-top: 4rem;
}

.about-box-card {
    background: var(--bg-body);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.about-box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Single Box About Layout (Fixed Flex)
   ========================================= */

.about-single-box-wrapper {
    padding-top: 4rem;
}

.about-box-card {
    background: var(--bg-body);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.about-box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Flex Container */
.box-row {
    display: flex;
    flex-wrap: nowrap;
    /* Force side-by-side on desktop */
    align-items: center;
    /* Center Vertically */
    min-height: 400px;
}

/* Visual Side - 40% Width */
.box-col-visual {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-surface);
    /* Distinct background for image area */
}

/* Inner Image Container */
.visual-inner {
    width: 100%;
    max-width: 350px;
    /* Constrain max width for "smaller" look */
    aspect-ratio: 4/3;
    /* Maintain a nice ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

.about-box-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-box-card:hover .about-box-img {
    transform: scale(1.05);
}

/* Content Side - 60% Width */
.box-col-content {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 3rem 4rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .box-row {
        flex-wrap: wrap;
        /* Stack on mobile */
        flex-direction: column;
    }

    .box-col-visual,
    .box-col-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 2rem;
    }

    .box-col-visual {
        order: -1;
        /* Image always top on mobile */
        padding-bottom: 0;
        background: transparent;
    }

    .visual-inner {
        max-width: 100%;
        /* Full width on mobile */
        aspect-ratio: 16/9;
    }
}

/* Content Side */
.about-box-content {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-simple {
    text-transform: uppercase;
    color: var(--c-accent);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.box-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.box-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.box-divider {
    height: 1px;
    background: var(--border-subtle);
    width: 100%;
    margin: 2rem 0;
}

.box-grid-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.box-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.point-icon {
    font-size: 1.5rem;
    color: var(--c-accent);
    margin-top: 5px;
}

.box-point h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.box-point p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .about-box-content {
        padding: 2.5rem;
    }

    .box-grid-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-box-visual {
        min-height: 300px;
    }
}

/* Typography */
.eyebrow-text {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.display-title {
    font-size: 4rem;
    /* Huge impact */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
}

/* Vision Mission Clean List */
.vision-mission-clean {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

.vm-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.vm-icon {
    width: 50px;
    height: 50px;
    background: rgba(58, 134, 255, 0.1);
    color: var(--c-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vm-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.vm-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Feature Matrix Grid */
.feature-matrix {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    /* Asymmetric grid */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.matrix-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Main Card (Image) */
.card-main {
    min-height: 500px;
    background: #000;
    position: relative;
}

.card-main img.card-bg-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.4s, transform 6s ease;
}

.card-main:hover img.card-bg-cover {
    opacity: 0.5;
    transform: scale(1.1);
}

.overlay-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    z-index: 2;
}

.icon-large {
    font-size: 3rem;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.overlay-dark h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.overlay-dark p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Small Grid (2x2) */
.matrix-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card-glass {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--c-accent);
}

.icon-accent {
    font-size: 2rem;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
}

.card-glass h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.card-glass p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .display-title {
        font-size: 3rem;
    }

    .feature-matrix {
        grid-template-columns: 1fr;
        /* Stack main card and small grid */
    }

    .card-main {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .about-split-wrapper {
        flex-direction: column;
    }

    .about-text-side {
        padding: 4rem 2rem;
    }

    .about-visual-side {
        min-height: 400px;
        order: -1;
        /* Image TOP on mobile */
    }

    .matrix-grid-small {
        grid-template-columns: 1fr;
        /* 1 column for small cards */
    }

    .display-title {
        font-size: 2.5rem;
    }
}