/* common.css - Ultra-Premium Luxury Tech Design - RTL Arabic */
/* Dark Cinematic Background | Emerald Green + Champagne Gold | Glassmorphism */

/* Use local Cairo variable font */
@font-face {
    font-family: 'Cairo';
    src: url('/assets/cairo-font/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('/assets/cairo-font/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

:root {
    /* Emerald Green & Champagne Gold Palette */
    --emerald-deep: #0a1e16;
    --emerald-dark: #0f2b20;
    --emerald-primary: #1a5c3e;
    --emerald-bright: #238551;
    --emerald-glow: rgba(26, 92, 62, 0.6);
    --emerald-light: #2d9c6a;
    
    /* Ultra-Premium Dark Champagne & Aged Gold */
    --champagne-dark: #8b7355;
    --champagne-primary: #a68964;
    --champagne-bright: #bfa580;
    --champagne-glow: rgba(166, 137, 100, 0.3);
    
    --gold-metallic: #9e8038;
    --gold-subtle: #7a6028;
    
    /* Deep metallic accents */
    --gold-deep: #5e4820;
    --brass: #7d6635;
    --bronze: #6e5530;
    
    /* Glassmorphism & Effects */
    --glass-bg: rgba(15, 43, 32, 0.45);
    --glass-border: rgba(226, 199, 155, 0.2);
    --glass-border-light: rgba(226, 199, 155, 0.35);
    --glass-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(12px);
    
    /* Text Colors */
    --text-primary: #f5f0e8;
    --text-secondary: rgba(245, 240, 232, 0.75);
    --text-tertiary: rgba(245, 240, 232, 0.55);
    --text-gold: var(--champagne-primary);
    
    /* Backgrounds */
    --bg-dark: #050a08;
    --bg-cinematic: radial-gradient(ellipse at 20% 30%, #0f2b20 0%, #050a08 100%);
    --bg-card: rgba(10, 30, 22, 0.65);
    
    /* Updated Gradients - Darker & More Professional */
    --gradient-gold: linear-gradient(135deg, var(--champagne-primary) 0%, var(--gold-metallic) 50%, var(--champagne-bright) 100%);
    --gradient-gold-dark: linear-gradient(135deg, var(--champagne-dark) 0%, var(--gold-subtle) 100%);
    --gradient-emerald: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-light) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(15, 43, 32, 0.6) 0%, rgba(26, 92, 62, 0.25) 100%);
    
    /* Spacing & Sizing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 45px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(226, 199, 155, 0.15);
    --shadow-emerald-glow: 0 0 40px rgba(26, 92, 62, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Wireframe & Accents */
    --wireframe-opacity: 0.06;
    --border-glow: 0 0 20px rgba(226, 199, 155, 0.2);
}

/* Custom Scrollbar - Premium */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 43, 32, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--champagne-dark) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--emerald-bright) 0%, var(--champagne-primary) 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--emerald-primary) rgba(15, 43, 32, 0.3);
}

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

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

button:focus, a:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid var(--champagne-primary);
    outline-offset: 2px;
}

/* Body - Cinematic Dark Background */
body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-cinematic);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Cinematic Grain Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
}

/* Architectural Wireframe Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(90deg, rgba(226, 199, 155, 0.02) 0px, rgba(226, 199, 155, 0.02) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(226, 199, 155, 0.02) 0px, rgba(226, 199, 155, 0.02) 1px, transparent 1px, transparent 60px);
    z-index: 0;
}

/* All content sits above overlay */
body > * {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Typography - Luxury Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Links */
a {
    text-decoration: none;
    color: var(--champagne-primary);
    transition: var(--transition-base);
    position: relative;
}

a:hover {
    color: var(--champagne-bright);
    text-shadow: 0 0 8px rgba(226, 199, 155, 0.5);
}

/* Header - Glassmorphism Premium */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    height: 85px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 48px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 24px;
    }
}

/* Logo - Luxury Refined */
.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(226, 199, 155, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo-slogan {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-base);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--champagne-bright);
}

/* Login Button - Premium */
.login-btn {
    background: linear-gradient(135deg, rgba(26, 92, 62, 0.8) 0%, rgba(26, 92, 62, 0.4) 100%);
    backdrop-filter: blur(10px);
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--champagne-primary) !important;
    border: 1px solid var(--glass-border-light);
    transition: var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    width: 120px;
    text-align: center;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-bright) 100%);
    color: var(--champagne-bright) !important;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(226, 199, 155, 0.3);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--champagne-primary);
    z-index: 1002;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.menu-btn:hover {
    border-color: var(--champagne-primary);
    background: rgba(226, 199, 155, 0.1);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

/* Footer - Premium Dark */
.site-footer {
    background: linear-gradient(180deg, rgba(10, 30, 22, 0.95) 0%, rgba(5, 10, 8, 0.98) 100%);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 24px;
        gap: 2rem;
        grid-template-columns: 1fr;
    }
}

.footer-section h3,
.footer-section h4 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.footer-section p {
    color: var(--text-tertiary);
    line-height: 1.6;
    font-size: 0.85rem;
    max-width: 320px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
}

.footer-section ul li:hover {
    color: var(--champagne-primary);
    transform: translateX(-4px);
}

.footer-section ul li i {
    width: 20px;
    font-size: 0.85rem;
    color: var(--champagne-primary);
}

.footer-section ul li a {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--champagne-bright);
    padding-right: 5px;
}

/* Phone Number */
.footer-section ul li .phone-number {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
    font-feature-settings: 'ss01';
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(226, 199, 155, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--champagne-primary);
    transition: var(--transition-base);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--gradient-gold);
    border-color: transparent;
    color: var(--emerald-deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(226, 199, 155, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--champagne-primary);
}

.footer-links .separator {
    color: var(--glass-border);
}

/* WhatsApp Float - Luxury */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: var(--transition-base);
    position: relative;
}

.whatsapp-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #25D366, #128C7E);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.whatsapp-link:hover::before {
    opacity: 0.5;
}

.whatsapp-link:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-link i {
    font-size: 28px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    left: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--champagne-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-light);
    box-shadow: var(--shadow-glow);
}

/* Premium Button Component */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-gold);
    color: var(--emerald-deep);
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

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

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(226, 199, 155, 0.4);
    color: var(--emerald-dark);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--champagne-primary);
    color: var(--champagne-primary);
}

.btn-premium-outline:hover {
    background: var(--champagne-primary);
    color: var(--emerald-deep);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        height: 80px;
    }
    
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        padding: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 1rem 24px;
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
    }
    
    .nav-menu a::before {
        display: none;
    }

    .login-btn {
        border-radius: 0px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-link {
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-link i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        left: 60px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li {
        justify-content: center;
    }
    
    .footer-section h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-section p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .header-container {
        padding: 0.75rem 32px;
    }
    
    .footer-container {
        gap: 2rem;
    }
}

/* Utility Classes for Premium Elements */
.text-gold {
    color: var(--champagne-primary);
}

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

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glow-effect {
    box-shadow: var(--shadow-glow);
}

.emerald-glow {
    box-shadow: var(--shadow-emerald-glow);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Luxury Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(226, 199, 155, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}