/* ==========================================================================
   Design System & Premium Theme Configurations
   ========================================================================== */

    :root {
    --bg-color: #070a13;
    --card-bg: rgba(15, 22, 42, 0.55);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-border-hover: rgba(15, 131, 255, 0.35);
    
    --primary-color: #0f83ff;
    --primary-glow: rgba(15, 131, 255, 0.4);
    --secondary-color: #7c3aed;
    --secondary-glow: rgba(124, 58, 237, 0.3);
    
    --accent-cyan: #00f5ff;
    --accent-purple: #a855f7;
    --accent-magenta: #ec4899;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #070a13;
    
    --header-bg-scrolled: rgba(7, 10, 19, 0.75);
    
    --font-ar: 'Cairo', sans-serif;
    --font-fr: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Overrides */
html.light-mode {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(15, 22, 42, 0.08);
    --card-border-hover: rgba(15, 131, 255, 0.5);
    
    --primary-color: #0266cc;
    --primary-glow: rgba(2, 102, 204, 0.2);
    --secondary-color: #6d28d9;
    --secondary-glow: rgba(109, 40, 217, 0.15);
    
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --accent-magenta: #db2777;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #ffffff;
    
    --header-bg-scrolled: rgba(248, 250, 252, 0.85);
}

html.light-mode .glow-bg {
    opacity: 0.06;
}

html.light-mode .lang-switcher {
    background: rgba(15, 22, 42, 0.04);
}

html.light-mode .btn-tool {
    background: rgba(15, 22, 42, 0.03);
}

html.light-mode .support-box {
    background: rgba(15, 22, 42, 0.02);
}

html.light-mode .social-icon {
    background: rgba(15, 22, 42, 0.04);
}

html.light-mode .form-group input, 
html.light-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}
html.light-mode .form-group input:focus, 
html.light-mode .form-group textarea:focus {
    background: #ffffff;
}

/* Header Controls & Theme Toggle */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle-btn .icon-sun {
    display: none;
}
.theme-toggle-btn .icon-moon {
    display: block;
}

html.light-mode .theme-toggle-btn .icon-sun {
    display: block;
}
html.light-mode .theme-toggle-btn .icon-moon {
    display: none;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Font Assignments based on language direction */
html[dir="rtl"] body {
    font-family: var(--font-ar);
}

html[dir="ltr"] body {
    font-family: var(--font-fr);
    letter-spacing: -0.01em;
}

/* Background Glow Aura */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: drift 25s infinite alternate ease-in-out;
}

.glow-1 {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.glow-2 {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    top: 50%;
    left: -200px;
    animation-delay: -5s;
}

.glow-3 {
    background: radial-gradient(circle, var(--accent-magenta) 0%, transparent 70%);
    bottom: -100px;
    right: 10%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 12px 0;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 4px;
    border-radius: 30px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

html[dir="rtl"] .lang-btn {
    font-family: var(--font-ar);
}

html[dir="ltr"] .lang-btn {
    font-family: var(--font-fr);
}

.lang-btn.active {
    background: var(--text-main);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 131, 255, 0.1);
    border: 1px solid rgba(15, 131, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: 1px solid transparent;
}

html[dir="rtl"] .btn {
    font-family: var(--font-ar);
}

html[dir="ltr"] .btn {
    font-family: var(--font-fr);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 131, 255, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.arrow-icon {
    transition: var(--transition-bounce);
}

html[dir="rtl"] .arrow-icon {
    transform: rotate(0deg);
}

html[dir="ltr"] .arrow-icon {
    transform: rotate(180deg);
}

.btn-primary:hover .arrow-icon {
    transform: translateX(-4px);
}

html[dir="ltr"] .btn-primary:hover .arrow-icon {
    transform: translateX(4px) rotate(180deg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--card-border);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

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

/* Hero Visual Graphic (Mock Editor) */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-visual-card {
    background: rgba(8, 12, 24, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(30px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.hero-visual-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.card-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.visual-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    direction: ltr !important;
    text-align: left !important;
}

.code-line {
    margin-bottom: 8px;
}

.code-line.indent {
    margin-left: 20px;
}

.c-keyword { color: #f472b6; }
.c-str { color: #34d399; }
.c-comment { color: #64748b; }
.c-bool { color: #fb7185; }

/* Floating Icons */
.floating-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    top: -20px;
    left: -20px;
    color: var(--accent-cyan);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -20px;
    right: 40px;
    color: var(--accent-purple);
    animation-delay: -2s;
}

.shape-3 {
    top: 50%;
    right: -30px;
    color: var(--accent-magenta);
    animation-delay: -4s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-main) 60%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: center;
}

.about-image-card {
    background: linear-gradient(135deg, rgba(15, 131, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 131, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.icon-pulse {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-main);
    box-shadow: 0 10px 30px var(--primary-glow);
    margin-bottom: 24px;
    animation: float 4s infinite ease-in-out;
}

.about-image-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-image-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.info-block:hover {
    border-color: var(--card-border-hover);
    transform: translateX(-5px);
}

html[dir="ltr"] .info-block:hover {
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-top: 4px;
}

.info-text p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

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

.service-card:hover::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--text-main);
}

.icon-cyan {
    background: rgba(15, 131, 255, 0.15);
    color: var(--accent-cyan);
}

.icon-purple {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
}

.icon-magenta {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-magenta);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.products-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px;
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .product-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-mockup-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-bounce);
}

html.light-mode .product-mockup-img {
    border-color: rgba(15, 22, 42, 0.08);
    box-shadow: 0 10px 25px rgba(15, 22, 42, 0.15);
}

.product-card:hover .product-mockup-img {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--card-border-hover);
}

.product-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    align-self: flex-start;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.product-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 850px;
    line-height: 1.7;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download-link {
    background: linear-gradient(135deg, var(--primary-color), #0266cc);
    color: var(--text-main);
    box-shadow: 0 4px 15px var(--primary-glow);
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition-bounce);
}

.btn-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 131, 255, 0.5);
}

.btn-download-link.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    box-shadow: none;
}

.btn-download-link.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.btn-toggle-details {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-toggle-details:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(15, 131, 255, 0.05);
}

/* Product Details (Hidden/Collapsible) */
.product-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out;
}

.details-divider {
    height: 1px;
    background: var(--card-border);
    margin: 24px 0;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.features-list li i {
    color: var(--accent-cyan);
    margin-top: 3px;
    font-size: 1rem;
}

.support-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.support-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-box p i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.support-links {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.support-links a {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.support-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* ==========================================================================
   Tools Section
   ========================================================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    transition: var(--transition-smooth);
}

.tool-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
}

.tool-info {
    display: flex;
    gap: 16px;
}

.tool-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.tool-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tool-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-tool {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-tool:hover {
    background: var(--primary-color);
    color: var(--text-main);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    border-color: var(--card-border-hover);
    transform: translateX(-5px);
}

html[dir="ltr"] .contact-info-card:hover {
    transform: translateX(5px);
}

.c-info-icon {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-top: 2px;
}

.c-info-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.c-info-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.c-info-content a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.c-info-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.tel-number a {
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

/* Contact Form Panel */
.contact-form-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
}

.form-panel-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    font-family: var(--font-ar);
}

html[dir="ltr"] .form-group input,
html[dir="ltr"] .form-group textarea {
    font-family: var(--font-fr);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(15, 131, 255, 0.2);
    background: rgba(7, 10, 19, 0.9);
}

.btn-block {
    width: 100%;
}

.form-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    background: #04060c;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-bounce);
}

.social-icon:hover {
    color: var(--text-main);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-subtitle {
        margin: 0 auto 36px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
    }
    
    .main-nav {
        display: none; /* In production, we'd add a burger menu, but let's keep headers compact for SPA */
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
}

/* Back Arrow Rotation */
.arrow-icon-back {
    transition: var(--transition-bounce);
}

html[dir="rtl"] .arrow-icon-back {
    transform: rotate(0deg);
}

html[dir="ltr"] .arrow-icon-back {
    transform: rotate(180deg);
}
