/* ==========================================
   Premium Mark Exchange - CSS Styles
   Brand Colors: Gold (#D4A53C), Black, White
   ========================================== */

/* CSS Variables */
:root {
    --gold: #D4A53C;
    --gold-light: #E8C55A;
    --gold-dark: #B8922F;
    --gold-gradient: linear-gradient(135deg, #D4A53C 0%, #F5E6B8 50%, #D4A53C 100%);
    --gold-shimmer: linear-gradient(90deg, #D4A53C 0%, #F5E6B8 25%, #D4A53C 50%, #F5E6B8 75%, #D4A53C 100%);
    --black: #1a1a1a;
    --dark: #2d2d2d;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 10px 40px rgba(212, 165, 60, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

body.en {
    font-family: var(--font-en);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Header
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 60, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.nav {
    display: flex;
    gap: 35px;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--gold);
}

.nav a:hover::after {
    width: 100%;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.lang-icon {
    font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(212, 165, 60, 0.2);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu.active {
    display: flex;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 165, 60, 0.15) 0%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 100px 100px, rgba(212, 165, 60, 0.4), transparent),
        radial-gradient(2px 2px at 200px 200px, rgba(212, 165, 60, 0.3), transparent),
        radial-gradient(2px 2px at 300px 400px, rgba(212, 165, 60, 0.4), transparent),
        radial-gradient(2px 2px at 400px 100px, rgba(212, 165, 60, 0.3), transparent),
        radial-gradient(2px 2px at 500px 300px, rgba(212, 165, 60, 0.5), transparent),
        radial-gradient(2px 2px at 600px 500px, rgba(212, 165, 60, 0.3), transparent);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 100px 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 165, 60, 0.2);
    color: var(--gold);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 165, 60, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(212, 165, 60, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 32px; }
}

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

/* ==========================================
   Services Section
   ========================================== */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(212, 165, 60, 0.1);
    color: var(--gold-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--black);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 165, 60, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(212, 165, 60, 0.1), rgba(212, 165, 60, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gold);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--gold);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 20px;
}

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

.phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
}

.phone-link:hover {
    background: var(--gold);
    color: var(--white);
}

.phone-icon {
    font-size: 1.2rem;
}

.hours {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

/* ==========================================
   Location Section
   ========================================== */
.location {
    padding: 100px 0;
    background: var(--light-gray);
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
}

.directions-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

[dir="rtl"] .directions-btn {
    right: auto;
    left: 20px;
}

.directions-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

.directions-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-brand-info h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.footer-brand-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.legal-value {
    color: var(--gold);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.domain {
    color: var(--gold);
    font-weight: 600;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .services, .contact, .location {
        padding: 70px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .directions-btn {
        bottom: 10px;
        right: 10px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    [dir="rtl"] .directions-btn {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .brand-name {
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 80px 15px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/* RTL Specific Adjustments */
[dir="rtl"] .nav a::after {
    left: auto;
    right: 0;
}

/* LTR Mode (English) */
[dir="ltr"] {
    font-family: var(--font-en);
}

/* Smooth Scrolling for Safari */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
