:root {
    --primary: #3b82f6;
    /* Tech Blue */
    --primary-dark: #1e40af;
    --accent: #FFC857;
    /* Golden Yellow for CTAs stays to maintain contrast */
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

:root.dark-mode {
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Specific Overrides */
body.dark-mode .header {
    background-color: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid #334155;
}

body.dark-mode .product-card,
body.dark-mode .service-card,
body.dark-mode .feature-card,
body.dark-mode .blog-card,
body.dark-mode .modal-content,
body.dark-mode .quantity-control,
body.dark-mode .quantity-control input {
    background-color: var(--bg-white);
    border-color: #334155 !important;
    color: var(--text-dark);
}

body.dark-mode .quantity-control .qty-btn {
    background-color: #334155;
    color: var(--text-dark);
}

body.dark-mode .product-card:hover,
body.dark-mode .service-card:hover,
body.dark-mode .feature-card:hover {
    background-color: #334155 !important;
}

body.dark-mode .section-title p {
    color: var(--text-light);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .mobile-menu {
    background-color: var(--bg-white);
}

body.dark-mode .mobile-menu-links a {
    border-bottom-color: #334155;
    color: var(--text-dark) !important;
    /* Ensure visibility */
}

body.dark-mode .mobile-menu-header {
    border-bottom-color: #334155 !important;
}

body.dark-mode .mobile-menu .logo {
    color: var(--primary) !important;
}

body.dark-mode .mobile-menu .logo span {
    color: var(--accent) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    font-variant-numeric: lining-nums;
    -webkit-font-feature-settings: "lnum" 1;
    font-feature-settings: "lnum" 1;
}

/* Force English Numbers for specific fields */
input[type="number"],
input[type="date"],
input[type="tel"],
select,
option,
.product-price,
.order-amount,
#totalPrice,
#oldPrice,
.badge,
.qty-btn,
#quantity,
.inv-total,
.order-main-info h4 {
    font-family: 'Arial', 'Inter', sans-serif !important;
    font-variant-numeric: lining-nums;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.3s, color 0.3s;
    touch-action: auto;
}

/* Toggle Switch Style */
.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

body.dark-mode .toggle-switch {
    background-color: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    transition: 0.3s;
}

body.dark-mode .toggle-switch::after {
    transform: translateX(20px);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.full-width {
    width: 100%;
}

/* Ticker Styles */
.ticker-wrap {
    width: 100%;
    background-color: #FFC857;
    /* Warning Yellow */
    overflow: hidden;
    height: 40px;
    padding-left: 100%;
    /* Start off-screen */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    /* Highest priority */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker__item {
    padding: 0 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1F2937;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(100%, 0, 0);
    }

    /* Move right (RTL) */
}

/* Header Adjustment */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 15px;
    }

    .nav-btn {
        display: flex !important;
        align-items: center;
        gap: 8px;
        background: var(--primary);
        color: #fff !important;
        padding: 8px 18px;
        border-radius: 50px;
        font-weight: 700 !important;
        font-size: 0.9rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .nav-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

/* Hero Section */
.hero {
    height: 75vh;
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=3870&auto=format&fit=crop');
    /* Tech office / Laptop image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Trust Bar (New) */
.trust-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 25px 0;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-md);
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.trust-item i {
    color: var(--accent);
    font-size: 1.3rem;
}

/* Products Section */
/* Tech Stack Section Base */
.tech-stack {
    padding: 100px 0;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Tech Stack Cards Styling */
.tech-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: default;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .tech-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.tech-card i {
    font-size: 3rem;
    color: var(--primary);
    transition: 0.3s;
}

.tech-card span {
    font-weight: 700;
    color: var(--text-light);
}

.tech-card:hover {
    background: var(--bg-white);
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.tech-card:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.tech-card:hover span {
    color: var(--text-dark);
}

/* Project Estimator Styling */
.estimator-section {
    padding: 100px 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

.estimator-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 50px;
    flex-wrap: wrap;
}

.estimator-content {
    flex: 2;
    min-width: 320px;
}

.est-group {
    margin-bottom: 40px;
}

.est-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Radio Cards */
.est-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    align-items: stretch;
    /* ظ„ط¶ظ…ط§ظ† طھط³ط§ظˆظٹ ط§ظ„ط·ظˆظ„ طھظ„ظ‚ط§ط¦ظٹط§ظ‹ */
}

.est-card input[type="radio"] {
    display: none;
}

.est-card-inner {
    background: var(--bg-white);
    padding: 20px 10px;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 120px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .est-card-inner {
    border-color: rgba(255, 255, 255, 0.1);
}

.est-card-inner i {
    font-size: 2rem;
    color: var(--primary);
}

.est-card-inner span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.est-card input:checked+.est-card-inner {
    border-color: var(--accent);
    background: #f5f3ff;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.1);
}

.est-card input:checked+.est-card-inner i,
.est-card input:checked+.est-card-inner span {
    color: var(--accent);
}

/* Checkbox Buttons */
.est-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.est-check-item input {
    display: none;
}

.est-check-btn {
    background: var(--bg-white);
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .est-check-btn {
    border-color: rgba(255, 255, 255, 0.1);
}

.est-check-btn i {
    color: var(--primary);
    font-size: 1.1rem;
}

.est-check-item input:checked+.est-check-btn {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.est-check-item input:checked+.est-check-btn i {
    color: white;
}

/* Result Card */
.est-result-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 30px;
    color: var(--text-dark);
    position: sticky;
    top: 100px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .est-result-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.est-result-header {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1rem;
}

.est-price-wrap {
    margin-bottom: 20px;
}

.est-price-wrap span {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    /* ط§ط³طھط®ط¯ط§ظ… ط§ظ„ظ„ظˆظ† ط§ظ„ط£ط²ط±ظ‚ ظ„ط²ظٹط§ط¯ط© ط§ظ„ظˆط¶ظˆط­ ظپظٹ ط§ظ„ظپط§طھط­ */
}

body.dark-mode .est-price-wrap span {
    color: var(--accent);
    /* ط§ظ„ط¹ظˆط¯ط© ظ„ظ„ط°ظ‡ط¨ظٹ ظپظٹ ط§ظ„ط؛ط§ظ…ظ‚ ظ„ظ„ظپط®ط§ظ…ط© */
}

.est-price-wrap small {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-right: 5px;
}

.est-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.est-btn {
    width: 100%;
}

.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .product-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 320px;
    width: 100%;
    object-fit: cover;
    background: var(--bg-light);
}

/* Phone Mockup Styling */
.phone-mockup-container {
    padding: 0;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
}

.phone-frame {
    width: 160px;
    height: 280px;
    background: #111;
    border-radius: 25px;
    border: 8px solid #333;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* طھظ…طھ ط¥ط²ط§ظ„ط© ط§ظ„ط£ظ†ظٹظ…ظٹط´ظ† ظ„ظٹط¨ظ‚ظ‰ ط§ظ„ط¬ظˆط§ظ„ ط«ط§ط¨طھط§ظ‹ */
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: #333;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ط§ظ„ط¹ظˆط¯ط© ظ„ظ€ contain ظ„طھط¸ظ‡ط± ط§ظ„ظ„ط¹ط¨ط© ظƒط§ظ…ظ„ط© */
    object-position: center;
    background: #000;
    opacity: 1 !important;
    /* ظ„ط¶ظ…ط§ظ† ط¨ظ‚ط§ط، ط§ظ„ط´ط§ط´ط© ظ…ط¶ظٹط¦ط© */
}

/* Laptop Mockup Styling */
.laptop-mockup-container {
    padding: 0;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 320px;
}

.laptop-frame {
    width: 320px;
    height: 200px;
    background: #111;
    border-radius: 12px;
    border: 10px solid #27272a;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2;
}

.laptop-screen {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laptop-base {
    width: 380px;
    height: 12px;
    background: #3f3f46;
    border-radius: 0 0 15px 15px;
    margin-top: -6px;
    position: relative;
    z-index: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info .btn {
    margin-top: auto;
    /* ط¯ظپط¹ ط§ظ„ط£ط²ط±ط§ط± ظ„ظ„ط£ط³ظپظ„ ط¯ط§ط¦ظ…ط§ظ‹ */
    width: 100%;
    text-align: center;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    /* ظٹطھط¨ط¹ ط§ظ„ط«ظٹظ… ط§ظ„ط¢ظ† */
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
}

.product-details {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge {
    padding: 4px 8px;
    background-color: #F3F4F6;
    border-radius: 6px;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #1F2937;
    /* Dark Gray */
    color: #F3F4F6;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

/* Underline decoration for headings */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

/* Social Brand Colors on Hover */
.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.snapchat:hover {
    background-color: #FFFC00;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 252, 0, 0.4);
}

.social-btn.email:hover {
    background-color: #ea4335;
    color: #fff;
    box-shadow: 0 0 15px rgba(234, 67, 53, 0.4);
}

#policyContent h4 {
    margin: 15px 0 10px;
    color: var(--primary);
}

body.dark-mode #policyContent h4 {
    color: var(--primary) !important;
}

#policyContent p {
    margin-bottom: 10px;
}

body.dark-mode #policyContent,
body.dark-mode #policyContent p,
body.dark-mode #policyContent li,
body.dark-mode #policyContent span,
body.dark-mode #policyContent div {
    color: var(--text-dark) !important;
    /* Override inline styles */
}

body.dark-mode #policyContent strong {
    color: white !important;
}

/* Article Modal Dark Mode Fix */
body.dark-mode #articleContent {
    color: var(--text-dark) !important;
}

body.dark-mode #articleContent h2,
body.dark-mode #articleContent h3,
body.dark-mode #articleContent h4,
body.dark-mode #articleContent h5,
body.dark-mode #articleContent h6 {
    color: white !important;
}

body.dark-mode #articleContent p,
body.dark-mode #articleContent li,
body.dark-mode #articleContent span,
body.dark-mode #articleContent div {
    color: #cbd5e1 !important;
    /* Lighter text for readability */
}

body.dark-mode #articleContent strong,
body.dark-mode #articleContent b {
    color: white !important;
}

/* Specific fix for the tips box background in dark mode */
body.dark-mode #articleContent p[style*="background"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 0 15px rgba(214, 36, 159, 0.4);
}

.social-btn.twitter:hover {
    background-color: #000000;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border: 1px solid #333;
}

/* Location Styles */
.location-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #D1D5DB;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.map-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F3F4F6;
    transition: 0.2s;
}

.close-modal:hover {
    background: #E5E7EB;
    color: var(--text-dark);
}

.modal-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 15px;
    text-align: center;
}

.modal-header h3 {
    font-weight: 800;
    color: var(--primary);
}

body.dark-mode .modal-header {
    border-bottom-color: #334155;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #F9FAFB;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 95, 45, 0.1);
}

/* Success Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.hidden {
    display: none;
}

.success-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Quantity Controls */
.quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border: none;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--primary);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    background: #D1D5DB;
}

.quantity-control input {
    width: 70px;
    text-align: center;
    border: none;
    background: white;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    -moz-appearance: textfield;
    appearance: none;
}

/* Hide spin buttons for Chrome, Safari, Edge, and Opera */
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control input:focus {
    outline: none;
    box-shadow: none;
}

/* Reveal Animation */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Services Section Styling */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 24px;
    /* More rounded for modern look */
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .service-card {
    background: rgba(30, 41, 59, 0.7);
    /* Transparent Slate */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Futuristic Neon Glow for Dark Mode */
body.dark-mode .service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

body.dark-mode .service-card:hover::after {
    opacity: 1;
}

body.dark-mode .service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.service-card .btn {
    width: 100%;
}

.service-price-tag {
    background: #f0fdf4;
    color: #166534;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    /* ط³ط­ط¨ ط§ظ„ط³ط¹ط± ظˆط§ظ„ط²ط± ظ„ظ„ط£ط³ظپظ„ ظ…ط¹ط§ظ‹ */
    margin-bottom: 15px;
    display: inline-block;
    align-self: center;
    /* طھظ…ط±ظƒط² ط§ظ„ط¹ط±ط¶ ط¨ط¹ظٹط¯ط§ظ‹ ط¹ظ† ط§ظ…طھط¯ط§ط¯ ط§ظ„ط¹ط±ط¶ ط§ظ„ظƒط§ظ…ظ„ */
}

body.dark-mode .service-price-tag {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

/* Comparison Section Styling */
.comparison-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.comp-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comp-table th,
.comp-table td {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .comp-table th,
body.dark-mode .comp-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-table th {
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
}

.comp-table tr th:first-child {
    background: transparent;
    color: var(--text-dark);
}

.comp-feature-name {
    text-align: right !important;
    font-weight: 700;
    color: var(--text-dark);
    width: 30%;
}

.comp-vs {
    width: 35%;
}

.comp-mttech {
    background: rgba(59, 130, 246, 0.05);
    /* ط®ظپظٹط© ط²ط±ظ‚ط§ط، ط®ظپظٹظپط© ظ„طھظ…ظٹظٹط²ظƒ */
    font-weight: 700;
    color: var(--primary);
}

body.dark-mode .comp-mttech {
    background: rgba(59, 130, 246, 0.1);
}

.check-icon {
    color: #10b981;
    font-size: 1.2rem;
}

.cross-icon {
    color: #ef4444;
    font-size: 1.2rem;
}

@media (max-width: 768px) {

    .comp-table th,
    .comp-table td {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .comp-table th {
        font-size: 1rem;
    }
}

/* FAQ Section Base */
.faq-section {
    padding: 80px 0;
}

.faq-item {
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md);
}

/* Feature Card Hover Effect */
.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-white) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .trust-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Affiliate Section Styles */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.affiliate-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.affiliate-image-wrap {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affiliate-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.affiliate-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.affiliate-price {
    color: #059669;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.store-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--text-dark);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-bottom-right-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.buy-btn {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Orders & Invoice Section (Styles moved to .nav-btn) */
.orders-modal-content {
    max-width: 600px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.order-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
    background: white;
}

.order-main-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.order-main-info span {
    font-size: 0.85rem;
    color: #64748b;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.completed {
    background: #D1FAE5;
    color: #065F46;
}

.order-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.delete-btn {
    background: #FEE2E2;
    color: #EF4444;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #EF4444;
    color: white;
    transform: scale(1.1);
}

.order-amount {
    font-weight: 800;
    color: var(--primary);
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

/* Invoice Card */
.back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
}

.invoice-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 25px;
}

.invoice-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.invoice-info span {
    font-size: 0.85rem;
    color: #64748b;
}

.inv-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.inv-row span {
    color: #64748b;
}

.inv-total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.invoice-footer {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.qr-placeholder {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 700;
}

.qr-placeholder i {
    font-size: 3rem;
    opacity: 0.1;
}

@media print {
    @page {
        size: auto;
        margin: 0mm;
    }

    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide everything except orders modal */
    body>*:not(#ordersModal) {
        display: none !important;
    }

    #ordersModal {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .orders-modal-content {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        padding: 20px !important;
        margin: 0 !important;
        border: none !important;
        transform: none !important;
    }

    /* Hide UI elements */
    #ordersList,
    .back-btn,
    .close-modal,
    .btn-primary,
    button {
        display: none !important;
    }

    #invoiceView {
        display: block !important;
    }

    #invoiceCard {
        border: 1px solid #1a3c1e !important;
        box-shadow: none !important;
        padding: 30px !important;
        width: 100% !important;
        margin: 0 !important;
        background: white !important;
    }
}

@media (max-width: 768px) {
    .orders-nav-link {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* Auth Section */

.auth-modal-content {
    max-width: 450px;
}

.profile-info-box {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.profile-info-box h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.profile-info-box p {
    color: #64748b;
    font-size: 0.9rem;
}

/* AdSense Placeholder Styles */
#mtech-ads-wrapper {
    margin: 40px auto !important;
    padding: 0 20px;
}

.google-ads-slot {
    transition: 0.3s;
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-ads-slot:hover {
    border-color: var(--primary) !important;
}

/* Success Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.overlay.hidden {
    display: none !important;
}

.success-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Mobile Responsive Fixes (Added for Stability) --- */
/* --- MAJOR MOBILE LAYOUT OVERHAUL --- */
@media (max-width: 768px) {

    /* 1. Global Reset for Mobile Stability */
    body {
        width: 100%;
    }

    html {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. Force Reduced Padding on ALL Sections to kill white space */
    section,
    .features-section,
    .about-section,
    .services-section,
    .hero {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* 3. AdSense Specific - Collapse if empty */
    .adsense-display-section,
    .adsense-multiplex-section {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    .adsense-display-section .container,
    .adsense-multiplex-section .container {
        padding: 0 !important;
    }

    /* 4. Container Fluid Fix */
    .container {
        width: 100%;
        padding: 0 15px;
        overflow: visible;
    }

    /* 5. Header & Navigation - Horizontal Scroll (Instagram Story Style) */
    .header .container {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 5px;
    }

    .logo {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .nav {
        display: flex;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        padding-bottom: 10px;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling */
    }

    /* Hide Scrollbar visually but keep functionality */
    .nav::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }

    .nav-btn,
    .header .btn-primary,
    #authContainer a {
        white-space: nowrap;
        /* Prevent text breaking */
        flex-shrink: 0;
        /* Prevent pressing */
        font-size: 0.85rem;
        padding: 8px 15px;
        border-radius: 20px;
        background: #f1f5f9;
        color: var(--text-dark);
        border: 1px solid #e2e8f0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        height: auto;
    }

    /* Highlight CTA */
    .header .btn-primary {
        background: var(--primary);
        color: white;
        border: none;
    }

    /* Show icons again */
    .nav-btn i,
    #authContainer i {
        display: inline-block !important;
        font-size: 0.9rem;
    }

    /* 6. Typography & Grids */
    .hero {
        background-position: center center !important;
        background-attachment: scroll !important;
        min-height: auto;
        /* Remove fixed height */
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 5px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .services-grid,
    .features-grid,
    .blog-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .modal-content {
        width: 95% !important;
        margin: 10px auto;
        padding: 20px 15px;
    }
}

/* --- Hamburger Menu & Sidebar Styles (New) --- */
.menu-toggle {
    display: none;
    /* Hidden on Desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen right */
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    /* Highest priority */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 80px;
    /* Ensure bottom items are reachable */
}

.mobile-menu.active {
    right: 0;
    /* Slide in */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.mobile-menu-header .logo {
    font-size: 1.5rem;
    margin: 0;
    text-align: right;
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    color: #ef4444;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-links a {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(-5px);
}

.mobile-menu-links i {
    width: 25px;
    text-align: center;
    color: var(--primary);
}

/* --- OVERRIDE MOBILE LAYOUT --- */
@media (max-width: 768px) {

    /* 1. Header Layout: Hamburger - Logo */
    .header .container {
        flex-direction: row;
        /* Horizontal layout */
        justify-content: space-between;
        /* Space them out */
        align-items: center;
        padding: 10px 20px;
        flex-wrap: nowrap;
    }

    /* 2. Show Hamburger Button */
    .menu-toggle {
        display: block;
    }

    /* 3. Hide ALL Desktop Nav Elements */
    .nav,
    .header .btn-primary,
    #authContainer,
    .header .nav-btn {
        display: none !important;
    }

    /* 4. Fix Hero Text Visibility */
    .hero {
        padding-top: 20px !important;
        /* Give space for text */
        background-position: center bottom !important;
        /* Show more of the image bottom/center */
        min-height: 400px;
    }

    .hero-content {
        padding-top: 10px;
    }

    /* 5. Force Spacing Reduction */
    section,
    .features-section,
    .about-section,
    .services-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* 6. Collapse AdSpace */
    .adsense-display-section,
    .adsense-multiplex-section {
        padding: 0 !important;
        min-height: 0;
    }
}

/* --- Dark Mode Component Overrides (Fix Text/Bg Issues) --- */
body.dark-mode section,
body.dark-mode .features-section,
body.dark-mode .services-section,
body.dark-mode .products-section,
body.dark-mode .blog-section,
body.dark-mode .about-section,
body.dark-mode .affiliate-section-bar,
body.dark-mode .multiplex-ads {
    background-color: var(--bg-light) !important;
    background: var(--bg-light) !important;
    /* Force override inline styles */
    border-color: #334155 !important;
    color: var(--text-dark) !important;
}

body.dark-mode .section-title h2,
body.dark-mode .section-title h3,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: var(--text-dark) !important;
}

body.dark-mode .section-title p {
    color: var(--text-light) !important;
}

/* Affiliate Cards Dark Mode */
body.dark-mode .affiliate-card,
body.dark-mode .service-card,
body.dark-mode .feature-card,
body.dark-mode .blog-card,
/* Added blog card for consistency */
body.dark-mode .product-card {
    /* Added product card for consistency */
    background-color: var(--bg-white) !important;
    background: var(--bg-white) !important;
    /* Force override inline styles */
    border: 1px solid #334155 !important;
    color: var(--text-dark) !important;
    box-shadow: none !important;
    /* Optional: Remove shadow in dark mode for cleaner look */
}

/* Ensure text inside these cards is visible */
body.dark-mode .feature-card h3,
body.dark-mode .feature-card p,
body.dark-mode .service-card h3,
body.dark-mode .service-card p,
body.dark-mode .blog-card h3,
body.dark-mode .blog-card p,
body.dark-mode .product-card h3,
body.dark-mode .product-card p {
    color: var(--text-dark) !important;
}

/* Specific text color for descriptions if needed slightly lighter */
body.dark-mode .feature-card p,
body.dark-mode .service-card p,
body.dark-mode .blog-card p,
body.dark-mode .product-card .product-details {
    color: var(--text-light) !important;
}

body.dark-mode .affiliate-card h4 {
    color: var(--text-dark) !important;
}

body.dark-mode .affiliate-price {
    color: var(--accent) !important;
}

body.dark-mode .store-badge {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Affiliate Card Base Styles (Ensure they exist if missing) */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.affiliate-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.store-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    z-index: 2;
}

.affiliate-image-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.affiliate-image-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.affiliate-info h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.affiliate-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.buy-btn {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.affiliate-card:hover .buy-btn {
    background: var(--primary);
    color: white;
}

/* --- Legendary & Professional Enhancements --- */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 999999;
    transition: width 0.1s ease;
    pointer-events: none;
    /* Prevent interception of touches */
}

/* Glassmorphism Header on Scroll */
.header.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 10px 0 !important;
}

body.dark-mode .header.scrolled {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-question i {
    transition: 0.3s;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 25px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 25px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Float Animation */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: floating 3s ease-in-out infinite;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .stat-item h2 {
        font-size: 2.2rem;
    }
}

.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Aligned left for RTL layout */
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-ring 2s infinite;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.floating-contact-btn i {
    transition: transform 0.3s ease;
}

.floating-contact-btn:hover i {
    transform: rotate(15deg);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}


/* --- Smart Notification Bar --- */
.smart-notification-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    /* Above header */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.smart-notification-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
    margin-right: 5px;
}

.smart-notification-bar .close-notification {
    position: absolute;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.smart-notification-bar .close-notification:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Adjust body padding and header top position when notification is active */
body.has-notification {
    padding-top: 40px;
    /* Adjust based on notification height */
}

body.has-notification .header {
    top: 40px;
}


/* --- Hover Glow Effects --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease-in-out;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Service Card Subtle Outer Glow */
.service-card {
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .service-card:hover {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.6);
}

/* Testimonial Carousel Setup */
.testimonials-section {
    padding: 60px 0;
    background: var(--bg-white);
    /* Removed overflow: hidden so shadows aren't sharply cut off */
}

.testimonials-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 10px;
    /* Extra top/bottom padding for hover shadow */
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .testimonial-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    /* Larger font size for the initial */
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Added Hover FX */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}
/* --- LTR specific styles (English Version) --- */
html[dir="ltr"] body {
    text-align: left;
}
html[dir="ltr"] .nav {
    margin-right: 0;
    margin-left: auto;
}
html[dir="ltr"] .nav-links {
    gap: 30px;
}
html[dir="ltr"] .hero-content {
    text-align: left;
}
html[dir="ltr"] .section-title {
    text-align: center;
}
html[dir="ltr"] .service-card {
    text-align: left;
}
html[dir="ltr"] .benefit-content h3::before {
    right: auto;
    left: -25px;
}
html[dir="ltr"] .about-section,
html[dir="ltr"] .testimonials-section,
html[dir="ltr"] .footer {
    text-align: left;
}
html[dir="ltr"] .testimonial-author {
    flex-direction: row;
}

/* Language Switcher Link */
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: transparent;
    color: var(--text-dark);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    margin-right: 15px; /* Spacing in RTL */
}
html[dir="ltr"] .lang-switcher-btn {
    margin-right: 0;
    margin-left: 15px; /* Spacing in LTR */
}
.lang-switcher-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}
body.dark-mode .lang-switcher-btn {
    color: var(--text-light);
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .lang-switcher-btn:hover {
    background: rgba(255,255,255,0.05);
}

/* --- Project Estimator Styles --- */
.estimator-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.estimator-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 968px) {
    .estimator-container {
        grid-template-columns: 1fr;
    }
}

.estimator-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
}

.estimator-group {
    margin-bottom: 40px;
}

.group-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

html[dir="ltr"] .group-title::after {
    right: auto;
    left: 0;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.estimator-option {
    cursor: pointer;
    position: relative;
}

.estimator-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-inner {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.option-inner i {
    font-size: 2rem;
    color: var(--text-light);
}

.option-inner span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.estimator-option input:checked + .option-inner {
    background: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25);
    transform: translateY(-5px);
}

.estimator-option input:checked + .option-inner i {
    color: var(--primary);
    transform: scale(1.1);
}

.estimator-option:hover .option-inner {
    border-color: rgba(59, 130, 246, 0.3);
}

/* Features Grid */
.features-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.check-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: 0.3s;
    border: 2px solid transparent;
}

.estimator-option input:checked + .check-content {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* Sticky Result Card */
.result-box-sticky {
    position: sticky;
    top: 100px;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(30, 64, 175, 0.3);
}

.result-box-sticky h3 {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-display {
    font-size: 4rem;
    font-weight: 900;
    margin: 20px 0;
    line-height: 1;
}

.price-display small {
    font-size: 1.25rem;
    margin-right: 5px;
}

.result-footer-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 30px;
    display: block;
}

.btn-white {
    background: white;
    color: var(--primary);
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-white:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

