/* css/styles.css - التصميم العصري والسينمائي لشركة الأوامر التقنية */

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

:root {
    --bg-dark: #070A12;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.4);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-footer: rgba(7, 10, 18, 0.95);
    
    --primary-cyan: #00F2FE;
    --primary-blue: #4FACFE;
    --accent-purple: #7F00FF;
    --accent-emerald: #00E676;
    --accent-amber: #FFB300;

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-sub: #CBD5E1;

    --gradient-hero: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #7F00FF 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(127, 0, 255, 0.1));
    
    --font-cairo: 'Cairo', system-ui, -apple-system, sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides (High-Tech Vivid Light) */
[data-theme="light"] {
    --bg-dark: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(2, 132, 199, 0.4);
    --bg-input: rgba(15, 23, 42, 0.05);
    --bg-footer: #E2E8F0;
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-sub: #1E293B;

    --gradient-hero: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #7C3AED 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(124, 58, 237, 0.15));
}

[data-theme="light"] body {
    background: radial-gradient(circle at 50% 0%, #F8FAFC 0%, #E2E8F0 100%);
}

[data-theme="light"] .glass-panel {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #7C3AED 100%);
    color: #FFFFFF !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .btn-secondary {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #0F172A !important;
}

[data-theme="light"] .btn-rfq {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(2, 132, 199, 0.4);
    color: #0284C7 !important;
}

[data-theme="light"] .hero-title .gradient-text {
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--primary-cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    transform: rotate(20deg) scale(1.1);
    background: rgba(0, 242, 254, 0.15);
}

/* Top Glowing Neon Beam */
.top-glowing-beam {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00F2FE, #7F00FF, #00E676, #00F2FE);
    background-size: 300% 100%;
    animation: beamGlow 4s linear infinite;
    z-index: 9999;
    box-shadow: 0 0 15px #00F2FE, 0 0 30px #7F00FF;
}

@keyframes beamGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* General Reset & Body */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-cairo);
    background-color: var(--bg-dark);
    color: var(--text-main);
    direction: rtl;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #0f172a 0%, #070a12 70%);
    line-height: 1.6;
}

/* Background Canvas & Mesh */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}
.glow-sphere-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: rgba(0, 242, 254, 0.12);
}
.glow-sphere-2 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -150px;
    background: rgba(127, 0, 255, 0.1);
}

/* Utilities & Glassmorphism */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.25);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-hero);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    display: block;
    margin-top: -4px;
}

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

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-cyan);
}

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

.btn-rfq {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.15));
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: var(--primary-cyan);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-rfq:hover {
    background: var(--gradient-hero);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    border-color: transparent;
    transform: translateY(-2px);
}

.badge-count {
    background: #FF2E93;
    color: #fff;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    color: var(--primary-cyan);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

/* Search Bar Component */
.hero-search-box {
    max-width: 680px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    color: #fff;
    font-size: 1.05rem;
    font-family: var(--font-cairo);
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.35);
}

.search-icon {
    position: absolute;
    right: 1.25rem;
    color: var(--primary-cyan);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    left: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
}

/* Stats Container */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), #7F00FF, transparent);
    transition: left 0.6s ease;
}

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

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(127, 0, 255, 0.15) 100%);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.3), 0 0 20px rgba(127, 0, 255, 0.25);
}

[data-theme="light"] .stat-card:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(124, 58, 237, 0.12) 100%);
    border-color: rgba(2, 132, 199, 0.6);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin-bottom: 0.25rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 20px #00F2FE, 0 0 30px #7F00FF;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Main Services Explorer Section */
.services-section {
    padding: 5rem 0;
}

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

.section-subtitle {
    color: var(--primary-cyan);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
}

/* Filter Nav Tabs */
.categories-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-sub);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-cairo);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.filter-btn.active {
    background: var(--gradient-hero);
    color: #070A12;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

/* Floating Micro Animation */
.category-card:nth-child(odd) {
    animation: floatCardOdd 7s ease-in-out infinite;
}
.category-card:nth-child(even) {
    animation: floatCardEven 8s ease-in-out infinite;
}

@keyframes floatCardOdd {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes floatCardEven {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

/* Dynamic Hover Effect - Color Shift & Neon Shimmer */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), #7F00FF, transparent);
    transition: left 0.6s ease;
}

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

.category-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.14) 0%, rgba(15, 23, 42, 0.9) 50%, rgba(127, 0, 255, 0.14) 100%);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 20px 45px rgba(0, 242, 254, 0.25), 0 0 25px rgba(127, 0, 255, 0.2);
}

[data-theme="light"] .category-card:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(124, 58, 237, 0.12) 100%);
    border-color: rgba(2, 132, 199, 0.6);
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.2);
}

.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.category-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    transition: all 0.4s ease;
}

.category-card:hover .category-icon-box {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, #00F2FE, #7F00FF);
    color: #070A12;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.category-icon-box svg {
    width: 28px;
    height: 28px;
}

.category-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.category-card:hover .category-badge {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--primary-cyan);
    color: #fff;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: var(--transition);
}

.category-card:hover .category-title {
    color: var(--primary-cyan);
}

.category-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Service Sub-Items Pills */
.sub-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.sub-item-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-sub);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sub-item-pill:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary-cyan);
    color: #fff;
}

.sub-item-pill.highlight {
    background: rgba(0, 242, 254, 0.25);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 700;
}

.category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.items-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-details {
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-family: var(--font-cairo);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-details:hover {
    gap: 0.75rem;
    color: #fff;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 1.5rem;
}

.feature-box {
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), #7F00FF, transparent);
    transition: left 0.6s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(127, 0, 255, 0.15) 100%);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.3), 0 0 20px rgba(127, 0, 255, 0.25);
}

[data-theme="light"] .feature-box:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(124, 58, 237, 0.12) 100%);
    border-color: rgba(2, 132, 199, 0.6);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(127, 0, 255, 0.1));
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.18) rotate(10deg);
    background: linear-gradient(135deg, #00F2FE, #7F00FF);
    color: #070A12;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.feature-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Contact & RFQ CTA Banner */
.cta-banner {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(7, 10, 18, 0.95));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}

.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #7F00FF 100%);
    background-size: 200% 200%;
    animation: buttonGradientShift 4s ease infinite;
    color: #070A12;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
    transition: var(--transition);
}

@keyframes buttonGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.7), 0 0 20px rgba(127, 0, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

/* Modals & RFQ Drawer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-container {
    background: #0F172A;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #FF2E93;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--primary-cyan);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Service Detail Modal Content */
.service-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-item-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.detail-item-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-add-rfq {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font-cairo);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition);
}

.btn-add-rfq:hover, .btn-add-rfq.added {
    background: var(--primary-cyan);
    color: #070A12;
}

/* RFQ Builder Drawer */
.rfq-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #0B0F19;
    border-right: 1px solid var(--border-glow);
    z-index: 1001;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.6);
}

.rfq-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.rfq-selected-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.rfq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rfq-item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.rfq-item-remove {
    background: none;
    border: none;
    color: #FF2E93;
    cursor: pointer;
    font-size: 1rem;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.5);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-sub);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-cairo);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-cyan);
}

/* Explicit custom styles for dropdown option items to prevent white-on-white contrast issues on Windows/Chrome */
select option {
    background-color: #0F172A;
    color: #FFFFFF;
}

[data-theme="light"] select {
    color: #0F172A !important;
    background-color: #FFFFFF !important;
}

[data-theme="light"] select option {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

[data-theme="cloudy"] select {
    color: #F1F5F9 !important;
    background-color: #334155 !important;
}

[data-theme="cloudy"] select option {
    background-color: #334155 !important;
    color: #F1F5F9 !important;
}

[data-theme="warm-light"] select {
    color: #2D2A26 !important;
    background-color: #FAF8F5 !important;
}

[data-theme="warm-light"] select option {
    background-color: #FAF8F5 !important;
    color: #2D2A26 !important;
}


/* Floating AI Chatbot Widget */
.ai-chatbot-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 900;
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-hero);
    border: none;
    color: #070A12;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
}

.ai-chat-box {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 360px;
    height: 480px;
    background: #0F172A;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: flex-direction;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.ai-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-chat-header {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.15));
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    align-self: flex-start;
    border-bottom-right-radius: 2px;
}

.chat-msg.user {
    background: var(--gradient-hero);
    color: #070A12;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-left-radius: 2px;
}

.ai-chat-input-box {
    padding: 0.75rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.5rem;
}

.ai-chat-input-box input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-cairo);
    font-size: 0.85rem;
    outline: none;
}

.ai-chat-input-box button {
    background: var(--primary-cyan);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #070A12;
    cursor: pointer;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary-cyan);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    background: var(--bg-footer);
    margin-top: 4rem;
    transition: var(--transition);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-right: 0.3rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Floating Quick Actions (WhatsApp & Call Buttons) */
.floating-quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.float-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.float-btn.phone {
    background: #00F2FE;
    color: #070A12;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.float-btn:hover {
    transform: scale(1.15) translateY(-3px);
}

/* Official Logo Styling */
.logo-img-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 0 14px rgba(0, 242, 254, 0.7));
}

/* Social Media Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-cyan);
    color: #070A12;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Admin Dashboard Styles */
.admin-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-glow);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.admin-grid {
    display: flex;
    flex-direction: row-reverse; /* Put sidebar (first child) on right, content (second child) on left */
    gap: 2rem;
    align-items: flex-start;
    direction: ltr !important; /* Force direction LTR to guarantee row-reverse puts sidebar on the right */
}

.admin-sidebar {
    width: 280px;
    flex-shrink: 0;
    direction: rtl; /* restore RTL inside sidebar */
    background: var(--bg-card); /* premium dynamic theme card background */
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.admin-content {
    flex-grow: 1;
    min-width: 0; /* prevent layout overflow from flex children */
    direction: rtl; /* restore RTL inside content */
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    color: var(--text-sub);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.admin-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(127, 0, 255, 0.12));
    color: var(--primary-cyan);
    border-right: 3px solid var(--primary-cyan);
    box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.05);
}

.admin-card {
    background: var(--bg-card); /* premium dynamic theme card background */
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.admin-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

.admin-table th {
    color: var(--primary-cyan);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
}

.btn-danger {
    background: rgba(255, 46, 147, 0.15);
    border: 1px solid #FF2E93;
    color: #FF2E93;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-cairo);
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: #FF2E93;
    color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .admin-grid { 
        flex-direction: column !important; 
        direction: rtl !important;
    }
    .admin-sidebar {
        width: 100% !important;
    }
}

/* Mobile Navigation Toggle Button styling */
.mobile-menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.35rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-menu-toggle-btn {
        display: block !important;
        order: 3;
    }
    
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 15, 25, 0.96);
        backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.25rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        font-size: 1.05rem;
        width: 100%;
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-actions {
        order: 2;
    }

    .hero { padding-top: 8rem; }
    .hero-title { font-size: 2rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-container { padding: 1.5rem; }
    .ai-chat-box { width: 300px; left: -1rem; }
}

/* Hero Two Column Wrapper */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

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

.profile-card-wrapper {
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: floatCardOdd 6s ease-in-out infinite;
    max-width: 380px;
    width: 100%;
}

.profile-cover-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: var(--transition);
}

.profile-card-wrapper:hover .profile-cover-img {
    transform: scale(1.03);
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 75%, rgba(7, 10, 18, 0.9) 100%);
    pointer-events: none;
}

.visual-glow-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, rgba(127, 0, 255, 0.1) 50%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
}

/* Category Cover Banner Styling */
.category-cover-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid var(--border-glass);
}

.category-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-card:hover .category-cover-img {
    transform: scale(1.06);
}

.category-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.85) 100%);
    pointer-events: none;
}

[data-theme="light"] .category-cover-overlay {
    background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.95) 100%);
}

/* Service Detail Modal Banner Styling */
.modal-banner-wrapper {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
}

.modal-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustment for Hero grid */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-content {
        text-align: center !important;
    }
    .hero-tag {
        margin: 0 auto 1.5rem auto !important;
    }
    .cta-buttons {
        justify-content: center;
    }
    .profile-card-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* AI Chat Typing Indicator */
.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    align-self: flex-start;
    width: fit-content;
}

.chat-typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Quick Suggestion Options */
.chat-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-quick-btn {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary-cyan);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-cairo);
    font-weight: 600;
    transition: var(--transition);
}

.chat-quick-btn:hover {
    background: var(--gradient-hero);
    color: #070A12;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* AI Chat Add RFQ Button inside Chat response */
.chat-add-rfq-btn {
    background: linear-gradient(135deg, #00F2FE, #7F00FF);
    color: #070A12;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-cairo);
    cursor: pointer;
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.chat-add-rfq-btn:hover {
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
    transform: translateY(-1px);
}

/* Cloudy Theme (غائم) */
[data-theme="cloudy"] {
    --bg-dark: #1E293B;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.85);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(148, 163, 184, 0.4);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-footer: rgba(30, 41, 59, 0.95);
    
    --primary-cyan: #38BDF8;
    --primary-blue: #94A3B8;
    --accent-purple: #64748B;
    --accent-emerald: #10B981;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-sub: #CBD5E1;
    
    --gradient-hero: linear-gradient(135deg, #475569 0%, #334155 50%, #1E293B 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(148, 163, 184, 0.3), rgba(71, 85, 105, 0.15));
}

[data-theme="cloudy"] body {
    background: radial-gradient(circle at 50% 0%, #334155 0%, #0F172A 100%) !important;
}

/* Warm Light Theme (دافئ/فاتح) */
[data-theme="warm-light"] {
    --bg-dark: #FAF8F5;
    --bg-card: rgba(244, 241, 234, 0.88);
    --bg-card-hover: rgba(235, 230, 220, 0.98);
    --border-glass: rgba(0, 0, 0, 0.06);
    --border-glow: rgba(180, 140, 90, 0.4);
    --bg-input: rgba(45, 42, 38, 0.04);
    --bg-footer: #E6E1D6;
    
    --primary-cyan: #B48C5A;
    --primary-blue: #8C7B65;
    --accent-purple: #5A4E40;
    --accent-emerald: #6B8E23;
    
    --text-main: #2D2A26;
    --text-muted: #7A756E;
    --text-sub: #4A4640;
    
    --gradient-hero: linear-gradient(135deg, #B48C5A 0%, #8C7B65 50%, #5A4E40 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(180, 140, 90, 0.2), rgba(90, 78, 64, 0.15));
}

[data-theme="warm-light"] body {
    background: radial-gradient(circle at 50% 0%, #FAF8F5 0%, #E6E1D6 100%) !important;
}

[data-theme="warm-light"] .glass-panel {
    box-shadow: 0 10px 30px rgba(90, 78, 64, 0.05);
}

[data-theme="warm-light"] .btn-primary {
    background: linear-gradient(135deg, #B48C5A 0%, #8C7B65 50%, #5A4E40 100%);
    color: #FFFFFF !important;
    box-shadow: 0 8px 25px rgba(180, 140, 90, 0.35);
}

/* Corporate Theme Switcher Widget */
.corporate-theme-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    align-items: center;
}

.theme-mode-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-cairo);
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.theme-mode-btn:hover {
    color: var(--text-main);
}

.theme-mode-btn.active {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.25);
}

[data-theme="light"] .theme-mode-btn.active {
    color: #fff !important;
}

[data-theme="warm-light"] .theme-mode-btn.active {
    color: #fff !important;
}

/* Global Mobile Responsiveness Helper Rules */
@media (max-width: 768px) {
    /* Collapse inline grids to a single column to prevent layout breaking on mobile */
    div[style*="display: grid"][style*="grid-template-columns"],
    div[style*="display:grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    /* Make sure hero wrapper stacks cleanly on all pages */
    .hero-wrapper {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem;
    }
    
    /* Redesign Admin Dashboard navigation tab items to display horizontally on mobile */
    .admin-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .admin-nav-item {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.85rem !important;
        border-radius: var(--radius-sm);
        flex: 1 1 auto;
        justify-content: center;
    }
    
    .admin-nav-item:hover, .admin-nav-item.active {
        border-right: none !important;
        border-bottom: 3px solid var(--primary-cyan) !important;
    }
    
    /* Add scrollable container support to tables to prevent layout expansion */
    #admin-services-list-container,
    .admin-table-wrapper {
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .btn-rfq span {
        display: none !important;
    }
    
    .btn-rfq {
        padding: 0.65rem !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.05rem !important;
    }
    .btn-rfq {
        display: none !important; /* Hide RFQ button on extremely small screens */
    }
}

/* Pricing Cards Hover and Floating Animations */
.pricing-card {
    transition: var(--transition) !important;
}

.pricing-card:nth-child(odd) {
    animation: floatCardOdd 7s ease-in-out infinite;
}

.pricing-card:nth-child(even) {
    animation: floatCardEven 8s ease-in-out infinite;
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.025) !important;
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.25) !important;
    background: rgba(30, 41, 59, 0.8) !important;
}

/* Vision Detail Section Styling */
.vision-image-wrapper {
    transform: perspective(1000px) rotateY(5deg) rotateX(1deg);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

.vision-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.015) !important;
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 25px 55px rgba(0, 242, 254, 0.2) !important;
}

@media (max-width: 991px) {
    .vision-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    
    .vision-image-wrapper {
        transform: none !important;
    }
}
