/* Font Logic */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

html[lang="ku"] body {
    font-family: 'Vazirmatn', sans-serif !important;
}

: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 (Floating Liquid Glass Top) */
.navbar {
    position: fixed;
    top: 35px;
    /* Detached from top */
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    height: 60px;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 100px;
    /* Fluid Pill Shape */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 10000 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .navbar {
    background: rgba(20, 20, 20, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.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 - Active from 1025px up */
@media (min-width: 1025px) {
    .navbar {
        position: fixed;
        top: 40px;
        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: 1.5rem;
        /* Reduced gap for better fit */
        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.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.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);
}

.pulse-animation {
    animation: cartPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.flying-cart-item {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
    background: var(--c-accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

/* Flag Icons */
.flag-icon-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
}

.hide-on-mobile {
    display: block;
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }

    .hide-on-desktop {
        display: block !important;
    }
}

.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);
}

@media (max-width: 1024px) {
    .mobile-signin-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 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 (Bottom Bar) */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    height: 65px;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    z-index: 10001 !important;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
}

@media (max-width: 1024px) {
    .mobile-nav {
        display: flex;
    }
}

[data-theme="dark"] .mobile-nav {
    background: rgba(25, 25, 25, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.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: 700;
    gap: 3px;
    height: 50px;
    width: 65px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-item.active {
    color: var(--c-primary);
    background: rgba(37, 58, 132, 0.08);
    /* Subtle background for active */
}

[data-theme="dark"] .mobile-nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* =========================================
   NEW SECTIONS CSS 
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    padding-top: 120px;
    /* Space for floating navbar */
    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);
}

/* Pricing / Solutions Section */
.solutions-section {
    background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-body) 200px, var(--bg-body) 100%);
    padding: 8rem 0;
}

[data-theme="dark"] .solutions-section {
    background: #000;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.pricing-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
}

[data-theme="dark"] .pricing-card {
    background: #121212;
    border-color: rgba(37, 58, 132, 0.3);
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: var(--c-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 0 40px rgba(37, 58, 132, 0.2);
}

.card-img-top {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pricing-card:hover .card-img-top img {
    transform: scale(1.1);
}

.card-body-pricing {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.plan-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    text-align: right;
    /* RTL Default as per image */
}

[dir="ltr"] .features-list {
    text-align: left;
}

.feature-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

[dir="rtl"] .feature-line {
    flex-direction: row-reverse;
    text-align: right;
}

.feature-line i {
    color: var(--c-accent);
    margin-top: 3px;
    font-size: 1.1rem;
}

.price-tag {
    margin-top: auto;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--c-accent);
    margin-bottom: 2rem;
}

.price-currency {
    font-size: 0.9rem;
    margin-left: 8px;
    opacity: 0.8;
}

/* Plan Button */
.btn-plan {
    width: 100%;
    padding: 14px;
    border-radius: 100px;
    border: none;
    background: var(--c-primary);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-plan:hover {
    background: var(--c-primary-hover);
    transform: scale(1.02);
}

.center-btn-row {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.btn-view-all {
    padding: 14px 40px;
    border-radius: 100px;
    border: 2px solid var(--c-primary);
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-view-all:hover {
    background: var(--c-primary);
    color: white;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
}

/* Services / Benefits Section */
.benefits-section {
    background: var(--bg-surface);
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1250px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.service-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-subtle);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--c-accent);
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.service-card:hover .service-img {
    transform: scale(1.1);
    opacity: 0.6;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.service-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem;
    color: white;
    text-align: right;
    /* RTL Default */
}

[dir="ltr"] .service-content {
    text-align: left;
}

.service-tag {
    color: var(--c-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    display: block;
}

.service-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.service-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 400px;
    }
}

/* Merged Services & Projects */
.services-projects-merged {
    background: linear-gradient(to bottom, var(--bg-body) 0%, var(--bg-surface) 200px, var(--bg-surface) 100%);
    padding: 8rem 0;
}

/* Projects Section Styles (Within Merged) */
.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);
}

/* =========================================
   Professional Contact Section (Minimalist Redesign)
   ========================================= */
.contact-section {
    background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-body) 200px, var(--bg-body) 100%);
    padding: 10rem 0;
    position: relative;
}

.contact-wrapper {
    display: flex;
    gap: 8rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Info Column */
.contact-info-side {
    flex: 1;
    text-align: right;
    /* Default RTL */
}

[dir="ltr"] .contact-info-side {
    text-align: left;
}

.contact-header-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.contact-header-content .lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 500px;
}

.info-details-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

[dir="ltr"] .info-item {
    flex-direction: row;
}

[dir="rtl"] .info-item {
    flex-direction: row;
    /* Keep icon on the right/start of text flow */
}

.info-text-minimal p.phone-number {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

[dir="rtl"] .info-text-minimal p.phone-number {
    text-align: right;
    width: 100%;
}

.info-icon-minimal {
    font-size: 1.4rem;
    color: var(--c-accent);
    margin-top: 5px;
    width: 24px;
    text-align: center;
}

.info-text-minimal h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.info-text-minimal p {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Social Row */
.contact-social-minimal {
    margin-top: 5rem;
}

.social-links-minimal {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    /* RTL */
}

[dir="ltr"] .social-links-minimal {
    justify-content: flex-start;
}

[dir="rtl"] .social-links-minimal {
    justify-content: flex-start;
    /* Since container is align right, start means right */
}

.social-link-item {
    color: var(--text-muted);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    color: var(--c-accent);
    transform: translateY(-5px);
}

/* Form Card Side */
.contact-form-side {
    flex: 1.2;
}

.form-card-premium {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 4.5rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .form-card-premium {
    background: rgba(40, 40, 40, 0.2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.form-group-minimal {
    margin-bottom: 2.5rem;
    text-align: right;
    /* RTL */
}

[dir="ltr"] .form-group-minimal {
    text-align: left;
}

.form-group-minimal label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.form-group-minimal input,
.form-group-minimal textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    font-size: 1.15rem;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-group-minimal input:focus,
.form-group-minimal textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    padding-bottom: 1.5rem;
}

.submit-btn-premium {
    width: 100%;
    height: 65px;
    background: var(--c-accent);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn-premium:hover {
    background: var(--c-primary);
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(58, 134, 255, 0.25);
}

.submit-btn-premium i {
    transition: transform 0.3s ease;
}

[dir="rtl"] .submit-btn-premium i {
    transform: rotate(180deg);
}

[dir="rtl"] .submit-btn-premium:hover i {
    transform: rotate(180deg) translateX(8px);
}

[dir="ltr"] .submit-btn-premium:hover i {
    transform: translateX(8px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 6rem;
        padding: 0 1.5rem;
    }

    .contact-info-side {
        text-align: center;
        width: 100%;
    }

    .info-item {
        justify-content: center;
    }

    .social-links-minimal {
        justify-content: center;
    }

    .form-card-premium {
        padding: 3rem 1.5rem;
    }

    .contact-header-content h2 {
        font-size: 2.8rem;
    }
}

/* Footer & Other */
.footer {
    background: linear-gradient(to bottom, var(--bg-body) 0%, var(--bg-surface) 100px, var(--bg-surface) 100%);
    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: 1024px) {

    .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 & Layout Fixes */
    .section-block {
        padding: 4rem 1rem;
    }

    main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        /* Main doesn't need it if footer has it */
    }

    .footer {
        padding-bottom: 120px !important;
        /* Space for floating bottom nav + extra breathing room */
    }
}

@media (min-width: 1025px) {
    .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;
    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;
    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;
}

/* Merged Info Section Styles */
.info-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.info-toggle-pill {
    display: inline-flex;
    background: var(--bg-body);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}

.toggle-btn {
    padding: 12px 30px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.toggle-btn.active {
    background: var(--c-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 58, 132, 0.3);
}

.info-pane {
    display: none;
}

.info-pane.active {
    display: block;
    animation: fadeInSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .toggle-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =========================================
   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;
    }
}

.pulse-animation {
    animation: pulse 0.5s ease;
}

.pulse-animation {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   Universal Mobile & Tablet Optimization 
   (Apple Liquid Glass Theme)
   ========================================= */

/* Prevent zooming & Ensure perfect fit */
html,
body {
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    /* Prevent zooming gestures but allow scrolling */
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 1024px) {

    /* Global Typography Refinements for Small Screens */
    :root {
        --display-fs: 2.8rem;
        --title-fs: 2rem;
        --body-fs: 1.05rem;
    }

    .display-title,
    .hero-static-title {
        font-size: var(--display-fs) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.03em !important;
    }

    .section-title,
    .section-title-large {
        font-size: var(--title-fs) !important;
        line-height: 1.2 !important;
    }

    .lead-text,
    .section-desc,
    .box-desc {
        font-size: var(--body-fs) !important;
        line-height: 1.6 !important;
        padding: 0 10px;
    }

    /* Container Spacing Logic */
    .section-block {
        padding: 4rem 1.2rem !important;
    }

    .container {
        padding: 0 15px !important;
    }

    /* Liquid Glass Component Overrides */
    .card-glass,
    .form-card-premium,
    .glass-card,
    .navbar,
    .mobile-nav,
    .form-card-glass {
        backdrop-filter: blur(25px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    }

    [data-theme="dark"] .card-glass,
    [data-theme="dark"] .form-card-premium,
    [data-theme="dark"] .glass-card,
    [data-theme="dark"] .navbar {
        background: rgba(20, 20, 20, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    /* Section Specific Adjustments */

    /* 1. Hero Mobile */
    .hero-section {
        height: 85vh !important;
        padding-top: 0;
    }

    .typewriter-container {
        font-size: 1.8rem !important;
        min-height: 2.5rem;
    }

    /* 2. Bento Grid & Feature Matrix */
    .bento-grid,
    .feature-matrix {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .feature-large {
        min-height: 350px !important;
    }

    .matrix-grid-small {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* 3. Pricing Cards Mobile */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .pricing-card {
        border-radius: 24px !important;
    }

    /* 4. Contact Form Mobile Redesign (Pro Full-Width) */
    .contact-wrapper {
        gap: 3rem !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .contact-info-side {
        padding: 0 1rem !important;
    }

    .form-card-premium {
        padding: 3.5rem 1.5rem !important;
        border-radius: 0 !important;
        /* Full width edge-to-edge look */
        width: 100vw !important;
        margin-left: -1.2rem !important;
        /* Counteract container padding if any */
        background: var(--bg-surface) !important;
        box-shadow: none !important;
        border-right: none !important;
        border-left: none !important;
        border-top: 1px solid var(--border-subtle) !important;
        border-bottom: 1px solid var(--border-subtle) !important;
    }

    /* Alternatively, if user wants it large but still appearing as a card, we use 95% width */
    .form-card-premium {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 3.5rem 1.5rem !important;
        border-radius: 35px !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid var(--border-subtle) !important;
    }

    [data-theme="dark"] .form-card-premium {
        background: rgba(25, 25, 25, 0.7) !important;
        backdrop-filter: blur(30px) !important;
    }

    .form-group-minimal {
        margin-bottom: 1.5rem !important;
    }

    .form-group-minimal label {
        margin-bottom: 0.6rem !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
    }

    .form-group-minimal input,
    .form-group-minimal textarea {
        background: rgba(0, 0, 0, 0.03) !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: 18px !important;
        padding: 18px 22px !important;
        font-size: 1.1rem !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        color: var(--text-main) !important;
    }

    [data-theme="dark"] .form-group-minimal input,
    [data-theme="dark"] .form-group-minimal textarea {
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .form-group-minimal input:focus,
    .form-group-minimal textarea:focus {
        background: var(--bg-surface) !important;
        border-color: var(--c-accent) !important;
        box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.1) !important;
        padding-bottom: 14px !important;
        /* Override desktop dynamic padding */
    }

    .submit-btn-premium {
        border-radius: 14px !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        height: 60px !important;
    }

    /* RTL Alignment Fixes for Mobile */
    [dir="rtl"] .info-item {
        text-align: right;
    }

    [dir="rtl"] .info-text-minimal {
        width: 100%;
    }

    /* Smooth Transition Blocks */
    .hero-bottom-fade {
        height: 200px !important;
    }

    /* Fix Button Tap Targets */
    .cta-button,
    .btn-plan,
    .submit-btn-premium {
        min-height: 58px;
        display: math;
        align-items: center;
        justify-content: center;
    }

    /* Prevent text overflow on small phones */
    @media (max-width: 380px) {
        :root {
            --display-fs: 2.2rem;
            --title-fs: 1.7rem;
        }

        .hero-subtitle {
            font-size: 1rem !important;
        }
    }
}

/* Specific Tablet Landscape Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-matrix {
        grid-template-columns: 1fr 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

   

/* =========================================
   ROBUST NAVBAR OFFSET SYSTEM
   ========================================= */
:root {
    --nav-height-desktop: 100px;
    --nav-height-mobile: 85px;
    --nav-breathing-room: 100px;
}

.profile-main {
    padding-top: 40px !important;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .profile-main {
        padding-top: calc(var(--nav-height-mobile) + var(--nav-breathing-room) + 20px) !important;
    }
}

/* =========================================
   PROFILE & DASHBOARD STYLES
   ========================================= */

/* REFINED PROFILE & DASHBOARD WAS HERE - MOVED TO OFFSET SYSTEM */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 1. Header Card */
.profile-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    cursor: pointer;
}

.avatar-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-body);
    box-shadow: 0 0 0 2px var(--c-primary);
    transition: all 0.3s ease;
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--c-primary);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-surface);
    transition: transform 0.2s;
    z-index: 2;
}

.user-info-text {
    width: 100%;
    max-width: 400px;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    font-size: 1rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 2. Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-link.active {
    background: var(--c-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 58, 132, 0.2);
}

/* 3. Content Area */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow-soft);
}

/* 3. Utility Components (Restored) */
.section-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.q-form-group {
    margin-bottom: 24px;
    position: relative;
}

.q-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.q-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.q-input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.q-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background: var(--bg-body);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

[dir="rtl"] .q-input {
    padding: 12px 45px 12px 16px;
}

[dir="rtl"] .q-input-icon {
    left: auto;
    right: 16px;
}

.q-input:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(37, 58, 132, 0.1);
}

.q-input:focus+.q-input-icon {
    color: var(--c-primary);
}

.q-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.q-btn-primary {
    background: var(--c-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE PROFILE (MOBILE FIRST)
   ========================================= */
@media (max-width: 768px) {
    /* profile-main padding handled by global offset system above */

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    .user-name {
        font-size: 1.4rem;
    }

    .user-email {
        font-size: 0.9rem;
    }

    .profile-main {
        padding-top: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        overflow-x: hidden;
        background: var(--bg-body);
    }

    .profile-container {
        width: 100%;
        max-width: 100%;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    /* Transform Sidebar into Horizontal Tabs */
    .sidebar-card {
        position: static;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .sidebar-menus {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 5px 16px 15px;
        margin: 0 -16px;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE/Edge */
    }

    .sidebar-menus::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .sidebar-link {
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 12px 20px;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: 100px;
        font-size: 0.9rem;
    }

    .sidebar-link i {
        font-size: 1rem;
    }

    .sidebar-link.active {
        background: var(--c-primary);
        border-color: var(--c-primary);
    }

    .profile-header-card,
    .content-card {
        border-radius: 20px;
        border: 1px solid var(--border-subtle);
        padding: 25px 20px;
        width: 100%;
        background: var(--bg-surface);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    .q-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}