﻿/* 
Theme Name: Al-Ittihad V17 - Clean Professional
Description: Fresh, minimal, premium tech company design.
Version: 17.0
*/

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ========================================
   1. DESIGN TOKENS (Variables)
   Light Mode = Default | Dark Mode = .dark-mode class
======================================== */
:root {
    /* LIGHT MODE (Default) */
    --color-bg: #f8f9fc;
    --color-bg-light: #ffffff;
    --color-primary: #0099a8;
    --color-accent: #c4941f;
    --color-text: #1a1a2e;
    --color-text-muted: #5a6677;
    --color-footer-bg: #1a202c;
    /* Card Background for Light Mode */
    --color-card: #ffffff;
    /* Matches Light Mode Footer Override */
    --color-border: rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Sizing */
    --container-max: 1200px;
    --header-height: 100px;

    /* Typography */
    --font-family: 'Tajawal', sans-serif;
    --font-size-xl: clamp(2.5rem, 5vw, 4rem);
    --font-size-lg: clamp(1.5rem, 3vw, 2rem);
    --font-size-md: 1.125rem;
    --font-size-sm: 0.875rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

/* DARK MODE */
body.dark-mode {
    --color-bg: #0a0f14;
    --color-bg-light: #111820;
    --color-primary: #00d4df;
    --color-accent: #d4a73a;
    --color-text: #ffffff;
    --color-text-muted: #7a8a9a;
    --color-footer-bg: #0a0e17;
    /* Card Background for Dark Mode */
    --color-card: #1a1a2e;
    /* Matches Dark Mode Footer */
    --color-border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   2. BASE RESET & TYPOGRAPHY
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    direction: rtl;
    overflow-x: hidden;
    /* Double safety */
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   3. LAYOUT UTILITIES
======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: auto;
}

.site-main {
    position: relative;
}

.text-center {
    text-align: center;
}

/* ========================================
   4. HEADER - Premium Glassmorphism
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 223, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Fix for WP Admin Bar */
/* 
body.admin-bar .site-header {
    top: 32px;
} 
*/

/* Admin bar fix - User requested header at top 0 */
@media screen and (max-width: 782px) {
    /* body.admin-bar .site-header { top: 0; }  - Defaulting to standard 0 via main layout */
}

/* Light mode header */
body:not(.dark-mode) .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 992px) {
    .header-inner {
        padding: 0 var(--spacing-md);
    }
}

/* Logo */
.logo-reactor a {
    display: flex;
    align-items: center;
}

#reactor-logo {
    width: auto;
    height: auto;
    max-height: 85px;
    max-width: 300px;
    object-fit: contain;
}

@media (max-width: 768px) {
    #reactor-logo {
        width: 200px;
    }
}

/* Navigation */
.main-navigation .nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.main-navigation .nav-menu li a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation .nav-menu li a:hover {
    color: var(--color-primary);
}

.main-navigation .nav-menu li a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children>a i {
    font-size: 0.8em;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover>a i {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 240px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: translateY(10px);
}

.sub-menu li {
    display: block;
    margin-bottom: 5px;
}

.sub-menu li:last-child {
    margin-bottom: 0;
}

.sub-menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sub-menu li a::after {
    display: none;
}

.sub-menu li a:hover {
    background: rgba(0, 212, 223, 0.1);
    color: var(--color-primary);
    transform: translateX(-5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000001;
    position: relative;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    /* Use text color by default for better compatibility */
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Force White bars only on dark backgrounds/Home Hero if needed, OR Handle via Dark Mode */
/* Defaulting to text color handles Light (Dark Text) and Dark (White Text) modes automatically */

.mobile-menu-toggle.active .bar {
    background-color: #fff;
    /* Ensure visible against drawer */
}

body:not(.dark-mode) .mobile-menu-toggle.active .bar {
    background-color: #000;
}

/* Open State Animation for Hamburger */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Header Drawer - Desktop Layout */
.header-menu-drawer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-actions-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-menu-drawer {
        position: fixed;
        top: 0 !important;
        right: 0;
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        /* Dynamic Viewport Height */
        width: 90%;
        /* 90% Width as requested */
        max-width: 400px;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(105%);
        /* Hidden off-screen right */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000000;
        /* Higher than toggle but below it when active */
        overflow-y: auto;
        visibility: hidden;
        display: flex;
    }

    .header-menu-drawer.active {
        transform: translateX(0);
        visibility: visible;
        /* Slide in */
    }

    /* Adjust Navigation inside Drawer */
    .main-navigation {
        width: 100%;
        display: block !important;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        list-style: none !important;
        margin: 0;
        padding: 0;
        display: flex !important;
    }

    .main-navigation .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .main-navigation .nav-menu li a {
        padding: 15px 0;
        font-size: 1.1rem;
        display: block;
        color: #ffffff !important;
        /* Force visibility */
        text-decoration: none;
    }

    .main-navigation .nav-menu li a:hover {
        color: var(--color-accent) !important;
        padding-right: 10px;
        /* Slide effect */
    }

    .main-navigation .nav-menu li a::after {
        display: none;
    }

    /* Submenu in Drawer */
    .sub-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        /* Slight highlight */
        box-shadow: none;
        border: none;
        padding-right: 20px;
        display: none;
    }

    .menu-item-has-children:hover .sub-menu {
        display: block;
    }

    /* Actions in Drawer */
    .header-actions-mobile {
        width: 100%;
        flex-direction: column-reverse;
        align-items: flex-start;
        margin-top: 30px;
        gap: 20px;
    }

    .header-cta {
        width: 100%;
    }

    .header-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .theme-toggle {
        background: var(--color-bg-alt);
        padding: 10px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Light Mode Mobile Drawer */
    body:not(.dark-mode) .header-menu-drawer {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }

    body:not(.dark-mode) .main-navigation .nav-menu li a {
        color: #1a1a2e !important;
    }

    body:not(.dark-mode) .main-navigation .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}




/* Light Mode Dropdown */
body:not(.dark-mode) .sub-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .sub-menu li a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-primary);
}

/* Header CTA */
.header-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 24px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #000;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.header-cta .btn:hover {
    background: #e5b84a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 167, 58, 0.3);
}

/* ========================================
   5. HERO SECTION - Premium Design
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 223, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 167, 58, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 223, 0.03) 0%, transparent 70%),
        var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Hexagon Pattern Overlay - Brand Identity */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d4a73a' fill-opacity='0.05'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* Animated particles background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background-image:
        radial-gradient(3px 3px at 20% 30%, rgba(0, 212, 223, 0.5) 50%, transparent 50%),
        radial-gradient(3px 3px at 40% 70%, rgba(212, 167, 58, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 60% 20%, rgba(0, 212, 223, 0.4) 50%, transparent 50%),
        radial-gradient(3px 3px at 80% 50%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        radial-gradient(2px 2px at 10% 80%, rgba(0, 212, 223, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 10%, rgba(212, 167, 58, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 50%, rgba(0, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(3px 3px at 30% 90%, rgba(212, 167, 58, 0.35) 50%, transparent 50%);
    background-size: 150px 150px;
    animation: particles-float 6s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes particles-float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    25% {
        transform: translateY(-30px) translateX(15px) scale(1.02);
    }

    50% {
        transform: translateY(-50px) translateX(0) scale(1);
    }

    75% {
        transform: translateY(-30px) translateX(-15px) scale(1.02);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(0, 212, 223, 0.1);
    border: 1px solid rgba(0, 212, 223, 0.2);
    border-radius: 50px;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, var(--font-size-xl));
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, #00f5ff 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 14px 32px;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: #000;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #1be5f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 223, 0.25);
}

/* Shine Effect Animation */
.btn-shine {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s;
}

.btn-shine:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 14px 32px;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-logo-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 212, 223, 0.2));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

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

/* Decorative Rings - Multiple */
.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 1px solid rgba(0, 212, 223, 0.2);
    border-radius: 50%;
    animation: pulse-ring 3s ease-out infinite;
}

.hero-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    border: 1px dashed rgba(212, 167, 58, 0.15);
    border-radius: 50%;
    animation: rotate-ring 20s linear infinite;
}

.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 180%;
    border: 1px solid rgba(0, 212, 223, 0.08);
    border-radius: 50%;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

@keyframes rotate-ring {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   6. SERVICES SECTION
======================================== */
.services {
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

/* Motherboard Circuit Pattern - Ghostly Background */
.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23d4a73a' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M10 10h80v80H10z'/%3E%3Cpath d='M30 10v20h40V10'/%3E%3Cpath d='M10 50h20v30H10'/%3E%3Cpath d='M70 50h20v30H70'/%3E%3Cpath d='M40 70h20v20'/%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3Ccircle cx='70' cy='30' r='3'/%3E%3Ccircle cx='50' cy='50' r='4'/%3E%3Ccircle cx='30' cy='70' r='3'/%3E%3Ccircle cx='70' cy='70' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Ghostly Hexagonal Shield - Left Side (Brand Identity) */
.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background:
        linear-gradient(135deg, transparent 30%, rgba(212, 167, 58, 0.08) 50%, transparent 70%),
        linear-gradient(225deg, transparent 30%, rgba(0, 212, 223, 0.05) 50%, transparent 70%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid rgba(212, 167, 58, 0.15);
    pointer-events: none;
    animation: shield-pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes shield-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.05);
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: block;
}

/* Golden hexagon accent after section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    margin: var(--spacing-sm) auto 0;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Circuit board pattern lines - Motherboard style */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 60px;
    background:
        linear-gradient(90deg, transparent 49%, rgba(212, 167, 58, 0.1) 49%, rgba(212, 167, 58, 0.1) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 223, 0.08) 49%, rgba(0, 212, 223, 0.08) 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--color-bg), var(--color-bg)),
        linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 223, 0.15);
}

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

/* Hexagonal Wrapper - Creates the visible border */
.hex-wrapper {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(212, 167, 58, 0.5));
}

/* Inner hexagonal icon */
.service-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-primary);
    background: var(--color-bg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}

.service-card:hover .hex-wrapper {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(212, 167, 58, 0.9));
}

/* Hover - Glassmorphism effect on gradient */
.service-card:hover .service-icon {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.25) 100%);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Light mode hover - lighter glass effect */
body:not(.dark-mode) .service-card:hover .service-icon {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    color: #1a1a2e;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

@keyframes border-glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

/* Premium Glassmorphism Pricing Tables */
#pricing {
    position: relative;
    overflow: hidden;
    background: #0f1420;
    /* Darker background to make glass pop */
}

/* Background decoration for glass effect */
#pricing::before,
#pricing::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

#pricing::before {
    background: var(--color-primary);
    top: -200px;
    left: -200px;
}

#pricing::after {
    background: var(--color-accent);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

.pricing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Shine effect on hover */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Featured Card Special Styles */
.pricing-card.featured {
    background: rgba(212, 167, 58, 0.05);
    border: 1px solid rgba(212, 167, 58, 0.3);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 167, 58, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(212, 167, 58, 0.2);
    border-color: var(--color-accent);
}

.pricing-badge {
    background: linear-gradient(135deg, var(--color-accent), #d69e18);
    color: #000;
    font-weight: 800;
    padding: 8px 25px;
    border-radius: 0 0 15px 15px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(212, 167, 58, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
    white-space: nowrap;
}

/* Content Styling */
.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.price-tag {
    position: relative;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-tag .amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
}

.pricing-card.featured .price-tag .amount {
    background: linear-gradient(to right, #fff, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-tag .period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: normal;
    display: block;
    margin-top: 10px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: right;
    /* RTL */
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 18px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    transition: transform 0.2s;
}

.pricing-features li:hover {
    transform: translateX(-5px);
    color: #fff;
}

.pricing-features li i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    /* Default icon color */
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-card.featured .pricing-features li i {
    background: rgba(212, 167, 58, 0.2);
    color: var(--color-accent);
}

.pricing-card .btn {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
}

.pricing-card .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pricing-card .btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.pricing-card.featured .btn {
    background: linear-gradient(135deg, var(--color-accent), #cfa030);
    box-shadow: 0 10px 30px rgba(212, 167, 58, 0.3);
    color: #000;
}

.pricing-card.featured .btn:hover {
    background: linear-gradient(135deg, #e0b040, #d69e18);
    box-shadow: 0 15px 40px rgba(212, 167, 58, 0.4);
    transform: translateY(-3px);
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

/* Light Mode Overrides for Pricing */
body:not(.dark-mode) #pricing {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body:not(.dark-mode) .pricing-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

body:not(.dark-mode) .pricing-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .price-tag .amount {
    background: linear-gradient(to right, #1a202c, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:not(.dark-mode) .price-tag .period,
body:not(.dark-mode) .pricing-features li {
    color: #4a5568;
}

body:not(.dark-mode) .pricing-features li i {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .pricing-card.featured {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--color-accent);
}

body:not(.dark-mode) .pricing-card .btn-outline {
    color: #1a202c;
    border-color: rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .pricing-card .btn-outline:hover {
    background: #1a202c;
    color: #fff;
}


/* FAQ Accordion */
.faq-item {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-header {
    background: rgba(0, 212, 223, 0.05);
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-item.active .faq-body {
    padding: 20px;
    max-height: 500px;
    /* Arbitrary large height */
    border-top: 1px solid var(--color-border);
}

/* SEO Content Box */
.seo-content-box {
    background: var(--color-bg-light);
    border-left: 5px solid var(--color-accent);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

/* Light background pattern for SEO box */
.seo-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(225deg, rgba(196, 148, 31, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

body.dark-mode .seo-content-box {
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--color-accent);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

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

/* ========================================
   7. STATS SECTION
======================================== */
.stats {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ========================================
   8. WHY US SECTION
======================================== */
.why-us {
    background: var(--color-bg-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.why-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.why-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--color-accent);
    background: rgba(212, 167, 58, 0.1);
    border-radius: var(--radius-sm);
}

.why-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.why-content p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ========================================
   9. PROCESS SECTION
======================================== */
.process {
    background: var(--color-bg);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}

.process-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.process-step p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ========================================
   10. CTA SECTION
======================================== */
.cta-section {
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(212, 167, 58, 0.1) 0%, transparent 60%),
        var(--color-bg);
}

.cta-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   11. FOOTER
======================================== */
.site-footer {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ========================================
   12. RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: var(--spacing-md);
    }

    .hero-logo-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto var(--spacing-lg);
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   13. THEME TOGGLE
======================================== */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    transition: var(--transition);
    margin-left: 10px;
}

.theme-toggle:hover {
    background: var(--color-border);
    border-color: var(--color-primary);
}

.theme-toggle i {
    font-size: 1rem;
}

/* Hide sun in light mode, show moon */
.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline-block;
}

/* Show sun in dark mode, hide moon */
body.dark-mode .theme-toggle .fa-sun {
    display: inline-block;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

/* ========================================
   11. NEW PREMIUM FOOTER (OVERRIDE)
   ======================================== */
.site-footer {
    background: #0a0e17;
    color: #fff;
    position: relative;
    border-top: none;
    padding-bottom: 0px !important;
    /* Reset padding */
    text-align: right;
    /* RTL Alignment */
}

/* ========================================
   12. SPECIAL COMPONENTS
   ======================================== */
/* ========================================
   12. SPECIAL COMPONENTS
   ======================================== */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    direction: ltr;
    /* Force LTR Layout for correct sliding */
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth Modern Easing */
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    /* Preventing flex squashing */
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    direction: rtl;
    /* Restore RTL for Text */
}

/* Premium Card Design */
.t-card {
    background: rgba(30, 40, 50, 0.6);
    /* High Contrast for Visibility */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Stronger Border */
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    max-width: 750px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.t-card::before {
    /* Gradient Top Border */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.t-quote-icon {
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: serif;
    line-height: 1;
}

.t-text {
    font-size: 1.4rem;
    color: #ffffff;
    /* Pure White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.t-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 20px;
}

.t-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

.t-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

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

.t-stars {
    margin-left: auto;
    /* Push to left in RTL */
    color: #c4941f;
    /* Gold */
    font-size: 1rem;
    letter-spacing: 2px;
}

.slider-nav {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    display: block;
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid var(--color-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

/* Brand Column */
.footer-logo {
    max-width: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 223, 0.3));
}

.footer-desc {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Social Icons (Glassmorphism) */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-icons a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 212, 223, 0.5);
    transform: translateY(-5px);
}

/* Headings */
.footer-heading {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a::before {
    content: '\f104';
    /* FontAwesome Chevron Left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 10px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #a0a0a0;
}

.contact-list li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 5px;
}

.contact-list a {
    color: #a0a0a0;
    text-decoration: none;
    transition: 0.3s;
}

.contact-list a:hover {
    color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
}

/* Light Mode Overrides for Footer */
body:not(.dark-mode) .site-footer {
    background: #1a202c;
    /* Keeping footer dark even in light mode looks professional */
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-col {
        grid-column: span 2;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-links,
    .contact-list {
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-col {
        grid-column: span 1;
    }
}

/* =========================================
   TESTIMONIAL SLIDER STRUCTURE
   ========================================= */
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    /* Hide overflow slides */
    direction: ltr;
    /* Ensure sliding logic works LTR (TranslateX) even in RTL site */
}

.testimonial-track {
    display: flex;
    /* Horizontal alignment */
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-slide {
    min-width: 100%;
    /* Each slide takes full container width */
    box-sizing: border-box;
    padding: 20px;
    flex-shrink: 0;
    /* CRITICAL FIX: Prevent squeezing */
}

/* Dots Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    background: #dde1e7;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-nav .dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Dark Mode Dots */
body.dark-mode .slider-nav .dot {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .slider-nav .dot.active {
    background: var(--color-primary);
}

/* =========================================
   SERVICE PAGE (SINGLE PRODUCT) REDESIGN
   ========================================= */
.service-hero {
    min-height: 80vh;
    padding: 150px 0 100px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95), var(--color-bg));
    position: relative;
    overflow: hidden;
}

.service-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-price-block {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 40px;
}

.service-price-block .currency {
    font-size: 2.5rem;
    vertical-align: super;
}

.service-price-block .period {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: normal;
}

.service-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

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

.spec-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.service-actions .btn-large {
    display: inline-block;
    /* Ensure it takes box model */
    background: var(--color-accent);
    /* Gold/Yellow */
    color: #000;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(212, 167, 58, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    position: relative;
    z-index: 10;
}

.service-actions .btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 167, 58, 0.5);
    background: #e5b84a;
}

.money-back {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Domain Checker */
.domain-checker-section {
    padding: 80px 0;
    background: var(--color-bg-light);
}

.domain-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.domain-box .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 223, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.domain-form {
    flex: 1;
    display: flex;
    gap: 10px;
}

.domain-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-text);
}

.domain-form button {
    padding: 0 35px;
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Upsell Grid */
.upsell-section {
    padding: 100px 0;
}

.upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.upsell-card {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid transparent;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.upsell-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upsell-card .card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.link-arrow {
    position: absolute;
    bottom: 30px;
    left: 30px;
    opacity: 0;
    transition: 0.3s;
    color: var(--color-accent);
}

/* =========================================
   SMART CHECKOUT - SAFE & CLEAN DESIGN
   ========================================= */

/* 1. SECTION CONTAINERS (CARDS) */
#customer_details,
#order_review {
    background: rgba(30, 41, 59, 0.4);
    /* Dark Blue-Grey / Glass */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

#order_review {
    background: #161f2e;
    /* Slightly darker for contrast */
    border-color: var(--color-accent);
}

/* 2. TYPOGRAPHY */
.woocommerce-billing-fields h3,
#order_review_heading {
    font-size: 1.4rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: block !important;
}

/* 3. INPUT FIELDS (Dark Mode Safe) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    min-height: 50px;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 223, 0.2) !important;
}

.woocommerce form .form-row label {
    color: #cbd5e1;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

/* 4. ORDER TABLE */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.woocommerce-checkout-review-order-table .product-name {
    color: #e2e8f0;
    font-weight: 500;
}

.woocommerce-checkout-review-order-table .amount {
    color: var(--color-accent);
    /* Gold/Accent */
    font-weight: 700;
}

.woocommerce-checkout-review-order-table tfoot th {
    font-weight: normal;
}

/* 5. PAYMENT SECTION */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.wc_payment_methods {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.wc_payment_method label {
    color: #fff !important;
    font-weight: 600;
    margin-right: 10px;
    cursor: pointer;
}

.payment_box {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    padding: 20px !important;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px !important;
}

/* Place Order Button */
#place_order {
    background: linear-gradient(135deg, var(--color-primary), #00b8c2) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 18px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    border: none !important;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 212, 223, 0.2);
    transition: transform 0.2s;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 223, 0.4);
}

/* Remove Icon (Trash) */
.remove-item-checkout {
    color: #ef4444;
    font-size: 1.1rem;
    margin-right: 10px;
    transition: color 0.2s;
}

.remove-item-checkout:hover {
    color: #dc2626;
}

/* =========================================
   MULTI-STEP CHECKOUT STYLES
   ========================================= */

/* Step Tracker (Progress Bar) */
.checkout-steps-tracker {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-steps-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.step-node {
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin: 0 50px;
    /* Space nodes */
    transition: all 0.3s ease;
}

.step-node.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 212, 223, 0.3);
}

.step-node.completed {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.step-label {
    position: absolute;
    top: 50px;
    width: 150px;
    text-align: center;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Step Visibility */
.checkout-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.checkout-step.active-step {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons */
.step-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next-step,
.btn-prev-step {
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: 0.3s;
}

.btn-next-step {
    background: var(--color-primary);
    color: #fff;
    margin-right: auto;
    /* Push to left in RTL */
}

.btn-next-step:hover {
    background: #00b8c2;
    transform: translateY(-2px);
}

.btn-prev-step {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-prev-step:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Select2 Dropdown Dark Mode Fix */
.select2-dropdown {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.select2-search__field {
    background-color: #0f172a !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.select2-results__option {
    color: #cbd5e1 !important;
}

.select2-results__option--highlighted {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

.select2-container--default .select2-selection--single {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 50px !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #cbd5e1 !important;
    padding-right: 15px !important;
}

/* ========================================
   18. LIGHT MODE CHECKOUT REFINEMENTS
   Ensures the Multi-step checkout pops in Light Mode
======================================== */
body:not(.dark-mode) .checkout-step {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft diffuse shadow */
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: 30px;
    /* Ensure padding inside the card */
    margin-bottom: 30px;
}

/* Increase contrast for Inputs in Light Mode */
body:not(.dark-mode) .woocommerce form .form-row input.input-text,
body:not(.dark-mode) .woocommerce form .form-row textarea,
body:not(.dark-mode) .select2-container--default .select2-selection--single {
    background-color: #ffffff;
    border: 1px solid #d1d5db !important;
    /* Grey line for definition */
    color: #1f2937 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle inner depth */
}

body:not(.dark-mode) .woocommerce form .form-row input.input-text:focus,
body:not(.dark-mode) .woocommerce form .form-row textarea:focus,
body:not(.dark-mode) .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 223, 0.15);
    /* Focus ring */
}

/* Tracker Improvements for Light Background */
body:not(.dark-mode) .checkout-steps-tracker .step-node {
    background: #f3f4f6;
    /* Light grey inactive */
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

body:not(.dark-mode) .checkout-steps-tracker .step-node.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 212, 223, 0.3);
}

body:not(.dark-mode) .checkout-steps-tracker .step-node.completed {
    background: #10b981;
    /* Success Green */
    color: #fff;
    border-color: #10b981;
}

/* Order Review Table Contrast */
body:not(.dark-mode) table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

body:not(.dark-mode) table.shop_table th {
    background: #f9fafb;
    color: #111827;
    font-weight: 700;
}

body:not(.dark-mode) table.shop_table td {
    background: #ffffff;
    border-top: 1px solid #e5e7eb !important;
    color: #374151;
}

/* Payment Box */
body:not(.dark-mode) #payment {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

body:not(.dark-mode) #payment ul.payment_methods li {
    border-bottom: 1px solid #e5e7eb;
}

/* Labels in Light Mode */
body:not(.dark-mode) .woocommerce form .form-row label {
    color: #374151;
    font-weight: 600;
}

/* Consultation CTA Button Styles */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 212, 223, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 25px rgba(0, 212, 223, 0.5);
        transform: scale(1.05);
    }
}

.btn-consultation-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 212, 223, 0.5) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn-consultation-cta {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .btn-consultation-cta span {
        display: none;
    }

    .btn-consultation-cta i {
        margin: 0 !important;
    }
}

/* =========================================
   SINGLE PRODUCT PAGE - LIGHT MODE STYLES
   ========================================= */

/* Service Hero - Light Mode */
body:not(.dark-mode) .service-hero {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8f4f8 50%, #fff9f0 100%) !important;
}

body:not(.dark-mode) .service-hero .service-title {
    color: #1a1a2e !important;
    text-shadow: none !important;
}

body:not(.dark-mode) .service-hero .service-price-block {
    color: #1a1a2e !important;
}

body:not(.dark-mode) .service-hero .service-price-block .currency,
body:not(.dark-mode) .service-hero .service-price-block .amount {
    color: #0099a8 !important;
    text-shadow: none !important;
}

body:not(.dark-mode) .service-hero .service-price-block .period {
    color: #5a6677 !important;
}

/* Specs Grid - Light Mode */
body:not(.dark-mode) .service-specs-grid .spec-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    color: #1a1a2e !important;
}

body:not(.dark-mode) .service-specs-grid .spec-item i {
    color: #0099a8 !important;
}

/* CTA Button - Light Mode */
body:not(.dark-mode) .service-hero .btn-shine {
    background: linear-gradient(135deg, #c4941f, #d4a73a) !important;
    color: #000 !important;
    box-shadow: 0 8px 25px rgba(196, 148, 31, 0.3) !important;
}

body:not(.dark-mode) .service-hero .btn-shine:hover {
    box-shadow: 0 12px 35px rgba(196, 148, 31, 0.5) !important;
    transform: translateY(-3px) !important;
}

body:not(.dark-mode) .service-hero .money-back {
    color: #5a6677 !important;
}

body:not(.dark-mode) .service-hero .money-back i {
    color: #0099a8 !important;
}

/* Domain Checker - Light Mode */
body:not(.dark-mode) .domain-checker-section {
    background: #1a202c !important;
}

body:not(.dark-mode) .domain-checker-section .domain-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.dark-mode) .domain-checker-section h3,
body:not(.dark-mode) .domain-checker-section p {
    color: #ffffff !important;
}

body:not(.dark-mode) .domain-checker-section .icon-box i {
    color: #00d4df !important;
}

body:not(.dark-mode) .domain-checker-section input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body:not(.dark-mode) .domain-checker-section input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Upsell Section - Light Mode */
body:not(.dark-mode) .upsell-section {
    background: #f4f8fb !important;
}

body:not(.dark-mode) .upsell-section .section-title {
    color: #1a1a2e !important;
}

body:not(.dark-mode) .upsell-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body:not(.dark-mode) .upsell-card:hover {
    border-color: #0099a8 !important;
    box-shadow: 0 10px 30px rgba(0, 153, 168, 0.15) !important;
    transform: translateY(-5px) !important;
}

body:not(.dark-mode) .upsell-card h3 {
    color: #1a1a2e !important;
}

body:not(.dark-mode) .upsell-card p {
    color: #5a6677 !important;
}

body:not(.dark-mode) .upsell-card .card-icon i {
    color: #0099a8 !important;
}

body:not(.dark-mode) .upsell-card .link-arrow i {
    color: #c4941f !important;
}

/* Hero Background Overlay - Light Mode */
body:not(.dark-mode) .service-hero .hero-bg-overlay {
    background: transparent !important;
    opacity: 0 !important;
}

/* =========================================
   FOOTER CONTACT LIST - FIX ALIGNMENT
   ========================================= */

.contact-col .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-col .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.contact-col .contact-list li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-col .contact-list li span,
.contact-col .contact-list li a {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-col .contact-list li a:hover {
    color: var(--color-primary);
}

/* LTR Direction Fix for English */
body.lang-en .contact-col .contact-list li {
    flex-direction: row;
}

body.lang-en .contact-col .contact-list li i {
    margin-left: 0;
    margin-right: 0;
}

/* =========================================
   FOOTER CONTACT LIST - FORCE FIX
   ========================================= */

.site-footer .contact-col ul.contact-list,
.site-footer .contact-col .contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer .contact-col ul.contact-list li,
.site-footer .contact-col .contact-list li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
    flex-wrap: nowrap !important;
}

.site-footer .contact-col ul.contact-list li i,
.site-footer .contact-col .contact-list li i {
    color: var(--color-accent) !important;
    font-size: 1.2rem !important;
    width: 24px !important;
    min-width: 24px !important;
    flex-shrink: 0 !important;
    line-height: 1.6 !important;
}

.site-footer .contact-col ul.contact-list li span,
.site-footer .contact-col ul.contact-list li a,
.site-footer .contact-col .contact-list li span,
.site-footer .contact-col .contact-list li a {
    flex: 1 !important;
    color: var(--color-text-muted) !important;
    line-height: 1.6 !important;
}

/* Fix for LTR (English) */
html[dir='ltr'] .site-footer .contact-col .contact-list li,
body.lang-en .site-footer .contact-col .contact-list li {
    flex-direction: row !important;
    text-align: left !important;
}

/* Fix for RTL (Arabic) */
html[dir='rtl'] .site-footer .contact-col .contact-list li,
body.lang-ar .site-footer .contact-col .contact-list li {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

/* =========================================
   FOOTER CONTACT LIST - FINAL FIX
   ========================================= */

/* Override previous broken styles */
html[dir='rtl'] .site-footer .contact-col .contact-list li,
body.lang-ar .site-footer .contact-col .contact-list li {
    flex-direction: row !important;
    text-align: right !important;
    justify-content: flex-start !important;
}

html[dir='rtl'] .site-footer .contact-col .contact-list li i {
    order: 0 !important;
    margin-left: 12px !important;
    margin-right: 0 !important;
}

html[dir='rtl'] .site-footer .contact-col .contact-list li span,
html[dir='rtl'] .site-footer .contact-col .contact-list li a {
    order: 1 !important;
}

/* English - LTR */
html[dir='ltr'] .site-footer .contact-col .contact-list li {
    flex-direction: row !important;
    text-align: left !important;
}

html[dir='ltr'] .site-footer .contact-col .contact-list li i {
    margin-right: 12px !important;
    margin-left: 0 !important;
}

/* =========================================
   FOOTER - RESPONSIVE MOBILE STYLES
   ========================================= */

/* Footer Grid - Tablet */
@media (max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }

    .site-footer .brand-col {
        grid-column: span 2;
        text-align: center;
    }

    .site-footer .brand-col .social-icons {
        justify-content: center;
    }
}

/* Footer Grid - Mobile */
@media (max-width: 768px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    .site-footer .brand-col {
        grid-column: span 1;
    }

    .site-footer .footer-col {
        text-align: center;
    }

    .site-footer .footer-logo {
        margin: 0 auto 20px !important;
    }

    .site-footer .footer-heading {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
    }

    .site-footer .footer-heading::after {
        margin: 10px auto 0 !important;
    }

    .site-footer .footer-links {
        text-align: center !important;
    }

    .site-footer .footer-links li {
        margin-bottom: 12px !important;
    }

    .site-footer .footer-links a {
        display: inline-block !important;
        padding: 8px 0 !important;
    }

    /* Contact List Mobile */
    .site-footer .contact-col .contact-list li {
        justify-content: center !important;
        text-align: center !important;
        flex-wrap: wrap !important;
    }

    .site-footer .contact-col .contact-list li i {
        margin: 0 0 8px 0 !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 1.5rem !important;
    }

    .site-footer .contact-col .contact-list li span,
    .site-footer .contact-col .contact-list li a {
        width: 100% !important;
        text-align: center !important;
    }

    /* Social Icons Mobile */
    .site-footer .social-icons {
        justify-content: center !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    .site-footer .social-icons a {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }

    /* Footer Bottom Mobile */
    .site-footer .footer-bottom {
        padding: 20px 0 !important;
    }

    .site-footer .footer-bottom .bottom-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .site-footer .footer-bottom p {
        font-size: 0.9rem !important;
    }
}

/* Footer Grid - Small Mobile */
@media (max-width: 480px) {
    .site-footer .container {
        padding: 60px 20px 20px !important;
    }

    .site-footer .footer-desc {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .site-footer .footer-links a {
        font-size: 1rem !important;
    }
}

/* =========================================
   FOOTER - PROFESSIONAL MOBILE REDESIGN
   ========================================= */

/* Reset previous mobile styles */
@media (max-width: 768px) {

    /* Footer Container */
    .site-footer .container {
        padding: 50px 20px 20px !important;
    }

    /* Main Footer Grid - 2 columns for Services & Links */
    .site-footer .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Brand Section - Full Width, Centered */
    .site-footer .brand-col {
        text-align: center !important;
        padding-bottom: 25px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 10px !important;
    }

    .site-footer .brand-col .footer-logo {
        width: 80px !important;
        margin: 0 auto 15px !important;
        display: block !important;
    }

    .site-footer .brand-col .footer-desc {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        max-width: 300px !important;
        margin: 0 auto 20px !important;
    }

    .site-footer .brand-col .social-icons {
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .site-footer .brand-col .social-icons a {
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        transition: all 0.3s !important;
    }

    /* Services & Links - Side by Side */
    .site-footer .footer-col:nth-child(2),
    .site-footer .footer-col:nth-child(3) {
        display: inline-block !important;
        width: 48% !important;
        vertical-align: top !important;
        text-align: right !important;
    }

    /* Two Column Wrapper */
    .site-footer .footer-grid {
        display: block !important;
    }

    .site-footer .footer-col:nth-child(2) {
        float: right !important;
        padding-left: 10px !important;
    }

    .site-footer .footer-col:nth-child(3) {
        float: left !important;
        padding-right: 10px !important;
    }

    /* Footer Headings Mobile */
    .site-footer .footer-heading {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        color: var(--color-primary) !important;
    }

    .site-footer .footer-heading::after {
        width: 30px !important;
        height: 2px !important;
    }

    /* Footer Links Mobile */
    .site-footer .footer-links {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .site-footer .footer-links li {
        margin-bottom: 8px !important;
    }

    .site-footer .footer-links a {
        font-size: 0.85rem !important;
        color: var(--color-text-muted) !important;
        transition: color 0.3s !important;
    }

    .site-footer .footer-links a:hover {
        color: var(--color-primary) !important;
    }

    /* Contact Section - Full Width */
    .site-footer .contact-col {
        clear: both !important;
        width: 100% !important;
        text-align: center !important;
        padding-top: 25px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 25px !important;
    }

    .site-footer .contact-col .footer-heading {
        text-align: center !important;
    }

    .site-footer .contact-col .footer-heading::after {
        margin: 8px auto 0 !important;
    }

    /* Contact List - Horizontal Cards */
    .site-footer .contact-col .contact-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .site-footer .contact-col .contact-list li {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        padding: 15px 10px !important;
        border-radius: 10px !important;
        margin: 0 !important;
    }

    .site-footer .contact-col .contact-list li i {
        font-size: 1.3rem !important;
        width: auto !important;
        margin: 0 !important;
    }

    .site-footer .contact-col .contact-list li span,
    .site-footer .contact-col .contact-list li a {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Footer Bottom Mobile */
    .site-footer .footer-bottom {
        clear: both !important;
        margin-top: 20px !important;
        padding: 15px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .site-footer .footer-bottom .bottom-content {
        text-align: center !important;
    }

    .site-footer .footer-bottom p {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }
}

/* LTR English Mobile Fix */
html[dir='ltr'] .site-footer .footer-col:nth-child(2) {
    float: left !important;
    padding-right: 10px !important;
    padding-left: 0 !important;
    text-align: left !important;
}

html[dir='ltr'] .site-footer .footer-col:nth-child(3) {
    float: right !important;
    padding-left: 10px !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* =========================================
   FOOTER - TEXT ALIGNMENT & SIZE FIX
   ========================================= */

/* Arabic RTL - Text to Right, Bigger & Bold */
@media (max-width: 768px) {

    html[dir='rtl'] .site-footer .footer-col:nth-child(2),
    html[dir='rtl'] .site-footer .footer-col:nth-child(3),
    body.lang-ar .site-footer .footer-col:nth-child(2),
    body.lang-ar .site-footer .footer-col:nth-child(3) {
        text-align: right !important;
    }

    html[dir='rtl'] .site-footer .footer-links,
    body.lang-ar .site-footer .footer-links {
        text-align: right !important;
    }

    html[dir='rtl'] .site-footer .footer-links a,
    body.lang-ar .site-footer .footer-links a {
        font-size: 1rem !important;
        font-weight: 600 !important;
        display: block !important;
        padding: 6px 0 !important;
    }

    html[dir='rtl'] .site-footer .footer-heading::after,
    body.lang-ar .site-footer .footer-heading::after {
        margin: 8px 0 0 auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    /* English LTR - Text to Left */
    html[dir='ltr'] .site-footer .footer-col:nth-child(2),
    html[dir='ltr'] .site-footer .footer-col:nth-child(3),
    body.lang-en .site-footer .footer-col:nth-child(2),
    body.lang-en .site-footer .footer-col:nth-child(3) {
        text-align: left !important;
    }

    html[dir='ltr'] .site-footer .footer-links,
    body.lang-en .site-footer .footer-links {
        text-align: left !important;
    }

    html[dir='ltr'] .site-footer .footer-links a,
    body.lang-en .site-footer .footer-links a {
        font-size: 1rem !important;
        font-weight: 600 !important;
        display: block !important;
        padding: 6px 0 !important;
    }

    html[dir='ltr'] .site-footer .footer-heading::after,
    body.lang-en .site-footer .footer-heading::after {
        margin: 8px auto 0 0 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
    }

    /* All - Bold Links */
    .site-footer .footer-links a {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

    /* Heading Size */
    .site-footer .footer-heading {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    /* Book Consultation Link */
    .site-footer .footer-col a[style*='color: var(--color-primary)'] {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }
}

/* Desktop - Also apply bold */
.site-footer .footer-links a {
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

.site-footer .footer-links a:hover {
    color: var(--color-primary) !important;
    padding-right: 5px !important;
}

html[dir='ltr'] .site-footer .footer-links a:hover {
    padding-right: 0 !important;
    padding-left: 5px !important;
}

/* =========================================
   FOOTER CTA BUTTON - MOBILE STYLES
   ========================================= */

/* CTA Button Hover */
.footer-cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(0, 212, 223, 0.4) !important;
}

/* Mobile CTA Button */
@media (max-width: 768px) {
    .site-footer .footer-cta-section {
        padding: 25px 15px !important;
        margin-top: 15px !important;
        clear: both !important;
    }

    .site-footer .footer-cta-btn {
        width: 100% !important;
        max-width: 300px !important;
        padding: 18px 30px !important;
        font-size: 1rem !important;
    }
}

/* =========================================
   ABOUT PAGE - TIMELINE MOBILE FIX
   ========================================= */

@media (max-width: 768px) {

    /* Hide the timeline vertical line on mobile */
    .story-section .timeline>div[style*="position: absolute"][style*="width: 4px"] {
        display: none !important;
    }

    /* Timeline Items - Stack vertically */
    .story-section .timeline-item {
        flex-direction: column !important;
        margin-bottom: 30px !important;
        gap: 0 !important;
    }

    /* Both sides become full width */
    .story-section .timeline-item>div {
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
    }

    /* Hide the empty divs */
    .story-section .timeline-item>div:empty {
        display: none !important;
    }

    /* Hide timeline dots on mobile */
    .story-section .timeline-item>div[style*="position: absolute"][style*="border-radius: 50%"] {
        display: none !important;
    }

    /* Timeline cards */
    .story-section .timeline-item>div>div {
        text-align: center !important;
        margin: 0 !important;
        padding: 25px !important;
    }

    .story-section .timeline-item h3 {
        font-size: 1.3rem !important;
    }

    .story-section .timeline-item p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    /* Year badge centered */
    .story-section .timeline-item span[style*="background: var(--color-primary)"],
    .story-section .timeline-item span[style*="background: var(--color-accent)"],
    .story-section .timeline-item span[style*="background: linear-gradient"] {
        display: inline-block !important;
    }
}

/* Also fix the absolute positioned elements */
@media (max-width: 768px) {
    .timeline>div[style*="position: absolute"] {
        display: none !important;
    }

    .timeline-item>div[style*="position: absolute"] {
        display: none !important;
    }
}

/* =========================================
   ABOUT PAGE - TIMELINE MOBILE - SIDE LINE
   ========================================= */

@media (max-width: 768px) {

    /* Show timeline line but on the side */
    .story-section .timeline>div[style*="position: absolute"][style*="width: 4px"] {
        display: block !important;
        right: auto !important;
        left: 20px !important;
        transform: none !important;
        width: 3px !important;
    }

    /* RTL - Line on right side */
    html[dir='rtl'] .story-section .timeline>div[style*="position: absolute"][style*="width: 4px"] {
        left: auto !important;
        right: 20px !important;
    }

    /* Timeline Items */
    .story-section .timeline-item {
        flex-direction: row !important;
        margin-bottom: 30px !important;
        gap: 20px !important;
        padding-left: 50px !important;
        padding-right: 15px !important;
        position: relative !important;
    }

    html[dir='rtl'] .story-section .timeline-item {
        padding-left: 15px !important;
        padding-right: 50px !important;
    }

    /* Hide empty divs and show only content */
    .story-section .timeline-item>div:first-child:empty,
    .story-section .timeline-item>div:nth-child(2):empty {
        display: none !important;
    }

    .story-section .timeline-item>div:not(:empty) {
        flex: 1 !important;
        width: 100% !important;
        text-align: right !important;
        padding: 0 !important;
    }

    html[dir='ltr'] .story-section .timeline-item>div:not(:empty) {
        text-align: left !important;
    }

    /* Timeline Dots - Position on the line */
    .story-section .timeline-item>div[style*="position: absolute"][style*="border-radius: 50%"] {
        display: block !important;
        right: auto !important;
        left: 12px !important;
        transform: translateY(-50%) !important;
        top: 30px !important;
        width: 16px !important;
        height: 16px !important;
    }

    html[dir='rtl'] .story-section .timeline-item>div[style*="position: absolute"][style*="border-radius: 50%"] {
        left: auto !important;
        right: 12px !important;
    }

    /* Timeline cards - full width */
    .story-section .timeline-item>div>div[style*="background"] {
        text-align: right !important;
        margin: 0 !important;
        padding: 20px !important;
        border-radius: 15px !important;
    }

    html[dir='ltr'] .story-section .timeline-item>div>div[style*="background"] {
        text-align: left !important;
    }

    /* Show dots */
    .timeline>div[style*="position: absolute"] {
        display: block !important;
    }

    .timeline-item>div[style*="position: absolute"] {
        display: block !important;
    }
}

/* =========================================
   SERVICE PAGES - HERO IMAGE BLEND EDGES
   ========================================= */

/* Hero Image Fade/Blend Effect */
.service-hero .hero-image,
.hero-section .hero-image,
.service-hero img,
.hero-visual img,
.hero-image-wrapper img {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* RTL - Reverse gradient for Arabic */
html[dir='rtl'] .service-hero .hero-image,
html[dir='rtl'] .hero-section .hero-image,
html[dir='rtl'] .service-hero img,
html[dir='rtl'] .hero-visual img,
html[dir='rtl'] .hero-image-wrapper img {
    mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Alternative: Softer Blend for all service images */
.page-template img[style*="border-radius"],
.service-page-hero img,
section[class*="hero"] img:not(.footer-logo):not(.navbar-logo) {
    mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 100%);
}

/* Specific fix for service hero images */
.hero-content+div img,
.hero-visual img,
.col-visual img {
    mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
}

html[dir='rtl'] .hero-content+div img,
html[dir='rtl'] .hero-visual img,
html[dir='rtl'] .col-visual img {
    mask-image: linear-gradient(to left, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 0%, black 70%, transparent 100%);
}

/* =========================================
   TESTIMONIALS SLIDER - RESPONSIVE MOBILE
   ========================================= */

/* Slider Container */
.testimonial-slider {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Testimonial Card - Base */
.t-card {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.t-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.t-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.t-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.t-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.t-info span {
    font-size: 0.85rem;
}

.t-stars {
    margin-left: auto;
}

.t-stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Slider Navigation Dots */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-nav .dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */

@media (max-width: 768px) {

    .testimonial-section,
    .testimonial-section-en {
        padding: 60px 0 !important;
    }

    .testimonial-section .section-title,
    .testimonial-section-en .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 30px !important;
    }

    .testimonial-slide {
        padding: 0 10px !important;
    }

    .t-card {
        padding: 25px 20px !important;
        min-height: auto !important;
        border-radius: 15px !important;
    }

    .t-quote-icon {
        font-size: 1.5rem !important;
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
    }

    html[dir='rtl'] .t-quote-icon {
        right: auto !important;
        left: 15px !important;
    }

    .t-text {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .t-meta {
        flex-direction: row !important;
        gap: 12px !important;
    }

    .t-avatar-placeholder {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }

    .t-info h4 {
        font-size: 0.95rem !important;
    }

    .t-info span {
        font-size: 0.8rem !important;
    }

    .t-stars {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .t-stars i {
        font-size: 0.8rem !important;
    }

    .slider-nav {
        margin-top: 20px !important;
        gap: 8px !important;
    }

    .slider-nav .dot {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .testimonial-section,
    .testimonial-section-en {
        padding: 50px 0 !important;
    }

    .testimonial-section .container,
    .testimonial-section-en .container {
        padding: 0 15px !important;
    }

    .testimonial-slide {
        padding: 0 5px !important;
    }

    .t-card {
        padding: 20px 15px !important;
    }

    .t-text {
        font-size: 0.9rem !important;
    }

    .t-meta {
        flex-wrap: wrap !important;
    }
}

/* =========================================
   WEB DESIGN PAGE - RESPONSIVE GRID
   ========================================= */

/* Main Content Grid (Sidebar + Content) */
.grid-2,
[style*="grid-template-columns: 1.5fr 1fr"],
[style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
}

@media (max-width: 992px) {

    .grid-2,
    [style*="grid-template-columns: 1.5fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {

    /* Stack columns on mobile */
    .grid-2,
    [style*="grid-template-columns: 1.5fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Sidebar/Sticky box */
    [style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
        order: -1 !important;
    }

    /* SEO Content Box */
    .seo-content-box {
        text-align: center;
    }

    .seo-content-box img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Page Hero Grid */
    .page-hero [style*="display: flex"],
    .page-hero [style*="display: grid"] {
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    .page-hero [style*="flex: 1"] {
        flex: none !important;
        width: 100% !important;
    }

    /* Hero Text */
    .page-hero h1 {
        font-size: 2rem !important;
        text-align: center !important;
    }

    .page-hero p {
        text-align: center !important;
    }

    .page-hero [style*="display: flex"][style*="gap: 20px"] {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Hero Image */
    .page-hero img {
        max-width: 80% !important;
        margin: 30px auto 0 !important;
        display: block !important;
    }

    /* Section Content */
    section h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
    }

    section h3 {
        font-size: 1.4rem !important;
    }

    /* Service List */
    .service-list h4 {
        font-size: 1.1rem !important;
    }

    .service-list p {
        font-size: 0.95rem !important;
    }

    /* Check List */
    .check-list li {
        font-size: 0.95rem !important;
    }

    /* Why Choose Box */
    [style*="position: sticky"][style*="top: 100px"] {
        position: relative !important;
        top: auto !important;
        margin-bottom: 30px !important;
    }

    /* 3 Column Grids */
    [style*="grid-template-columns: repeat(3, 1fr)"],
    .features-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats Bar */
    .stats-bar,
    [style*="justify-content: space-around"] {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    /* Timeline/Workflow */
    .timeline,
    [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* FAQ */
    .faq-accordion {
        padding: 0 10px !important;
    }

    .faq-header {
        font-size: 1rem !important;
        padding: 15px !important;
    }

    .faq-body {
        font-size: 0.95rem !important;
        padding: 15px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-hero {
        padding: 100px 0 60px !important;
    }

    .page-hero h1 {
        font-size: 1.7rem !important;
    }

    .page-hero p {
        font-size: 1rem !important;
    }

    section {
        padding: 60px 0 !important;
    }

    section h2 {
        font-size: 1.5rem !important;
    }

    /* Badges */
    [style*="border-radius: 50px"][style*="padding: 8px 20px"] {
        font-size: 0.85rem !important;
        padding: 6px 15px !important;
    }

    /* Buttons */
    .btn,
    [class*="btn"] {
        padding: 12px 25px !important;
        font-size: 0.95rem !important;
    }
}

/* =========================================
   PAGE HERO - MOBILE FIX (Senior Grade)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Layout Reset & Flow */
    .hero-flex {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
    }

    .hero-text {
        width: 100% !important;
        /* Ensure no side margins cause overflow */
        padding: 0 10px !important;
    }

    /* 2. Badge Fix - Perfect Alignment */
    .hero-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        /* Force single line */
        gap: 8px !important;

        /* Mobile Sizing */
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        /* Stable line height */
        padding: 8px 16px !important;
        max-width: 100% !important;

        /* Box Model */
        box-sizing: border-box !important;
        white-space: nowrap !important;
        /* Prevent text wrap */
        vertical-align: middle !important;
    }

    /* Ensure flag emoji doesn't shrink or align weirdly */
    .hero-badge .badge-flag {
        display: inline-block !important;
        flex-shrink: 0 !important;
        font-size: 1.1em !important;
        /* Relative to badge font size */
        line-height: 1 !important;
        margin-top: -1px;
        /* Optical adjustment */
    }

    /* 3. Typography Adjustments */
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        margin-bottom: 20px !important;
    }

    .hero-title br {
        display: none !important;
    }

    .hero-desc {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important;
    }

    /* 4. Buttons Fix - Consistent Height & Alignment */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        /* Stack vertically on mobile */
        width: 100% !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .hero-buttons .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;

        /* Sizing */
        width: 100% !important;
        max-width: 320px !important;
        /* Prevent too wide buttons */
        min-height: 50px !important;
        /* Force touch target height */
        padding: 0 20px !important;

        font-size: 1rem !important;
        line-height: 1 !important;
        /* Reset line-height for flex centering */
        text-align: center !important;
        white-space: nowrap !important;

        /* Reset any external interference */
        float: none !important;
        margin: 0 !important;
    }

    /* Fix Icon Alignment */
    .hero-buttons .btn .btn-icon,
    .hero-buttons .btn i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;

        font-size: 1.25em !important;
        /* Slightly larger for visibility */
        line-height: 1 !important;
        width: auto !important;
        /* Allow emoji natural width */
        height: auto !important;
        margin-right: 0 !important;
        /* Reset margins */
    }

    /* 5. Image & Media */
    .hero-image {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .hero-image img {
        max-width: 80% !important;
        /* Don't overwhelm screen */
        height: auto !important;
        margin: 0 auto !important;

        /* RESTORE MASK & BLENDING (Critical for 3D Assets) */
        mix-blend-mode: screen !important;
        -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%) !important;
        mask-image: radial-gradient(circle, black 60%, transparent 100%) !important;
    }
}

/* Very Small Screens (iPhone SE / Fold) */
@media (max-width: 380px) {
    .hero-badge {
        font-size: 0.7rem !important;
        /* Smaller size to ensure fit */
        padding: 6px 10px !important;
        white-space: nowrap !important;
        /* STRICTLY NO WRAPPING */
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        /* Safety clip */
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: inline-flex !important;
    }

    .hero-badge .badge-flag {
        display: inline-block !important;
        margin: 0 !important;
        /* Reset margin */
        font-size: 1.2em !important;
        flex-shrink: 0 !important;
        /* Never shrink the flag */
    }

    .hero-badge span:first-child {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-shrink: 1 !important;
        /* Allow text to shrink/truncate if absolutely necessary */
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-buttons .btn {
        font-size: 0.85rem !important;
        padding: 0 12px !important;
    }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .hero-badge {
    flex-direction: row-reverse !important;
    /* Flag on left side in RTL */
    gap: 0.5rem;
}

html[dir="rtl"] .hero-buttons .btn {
    flex-direction: row !important;
}


/* FAQ Truncation Fix */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    opacity: 0;
}

.faq-item.active .faq-body {
    max-height: 1000px !important;
    /* Allow enough height */
    padding: 15px 20px 20px;
    opacity: 1;
    transition: all 0.3s ease-in;
}