/* ========== Root Variables ========== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-gold: #d4af37;
    --accent-blue: #4a90e2;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: #0f0f1e;
    --transition: all 0.3s ease;
}

/* ========== Dark Mode Variables ========== */
body.dark-mode {
    --primary-color: #0f0f1e;
    --secondary-color: #1a1a2e;
    --text-dark: #e0e0e0;
    --bg-light: #1a1a2e;
    --bg-dark: #0a0a14;
}

body.dark-mode .navbar {
    background: rgba(15, 15, 30, 0.95);
}

body.dark-mode .contact-card,
body.dark-mode .service-card,
body.dark-mode .faq-item {
    background: #16213e;
    color: #e0e0e0;
}

body.dark-mode .hero-bg {
    background: linear-gradient(135deg, #0a0a14 0%, #16213e 100%);
}

body.dark-mode .footer {
    background: #0a0a14;
}


/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body[dir="ltr"] {
    font-family: 'Roboto', sans-serif;
}

/* Prevent text overflow */
p, h1, h2, h3, h4, h5, h6, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Progress Bar ========== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    z-index: 10000;
    transition: width 0.1s ease;
    will-change: width;
    contain: layout style paint;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    will-change: transform;
    contain: layout style paint;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ========== Language Selector ========== */
.language-selector {
    position: relative;
}

.lang-btn {
    background: var(--accent-gold);
    color: var(--primary-color);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: space-between;
    will-change: transform;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.lang-icon {
    font-size: 1.2rem;
}

.lang-text {
    flex: 1;
    text-align: center;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.language-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 500;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    color: white;
}

.lang-flag {
    font-size: 1.3rem;
}

/* RTL Support for Language Selector */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.mesh-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #1a1a2e 0%, 
        #16213e 25%, 
        #0f0f1e 50%, 
        #16213e 75%, 
        #1a1a2e 100%);
    background-size: 400% 400%;
    animation: meshMove 15s ease infinite;
}

@keyframes meshMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 2px solid rgba(212, 175, 55, 0.1);
    animation: float 20s infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 25%;
    animation-delay: 6s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 40%;
    right: 40%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(30px) rotate(270deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:active {
        transform: scale(0.95);
    }
    
    .service-card:hover,
    .contact-card:hover {
        transform: none;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    a, button {
        -webkit-tap-highlight-color: transparent;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--accent-gold);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ========== Animations ========== */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .floating-shapes {
        display: none;
    }
}

/* ========== Sections ========== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ========== About Section ========== */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text-full {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-description {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid transparent;
    will-change: transform;
}

.feature-item:hover {
    transform: translateX(-5px);
    border-left-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

[dir="rtl"] .feature-item {
    border-left: none;
    border-right: 4px solid transparent;
}

[dir="rtl"] .feature-item:hover {
    transform: translateX(5px);
    border-right-color: var(--accent-gold);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin: 0;
}

/* ========== Services Section ========== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-details {
    color: var(--accent-blue);
    font-size: 0.95rem;
    font-style: italic;
}

/* ========== Brands Section ========== */
.brands {
    background: var(--primary-color);
    color: var(--text-light);
}

.brands .section-title {
    color: var(--text-light);
}

.brands .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.brand-category {
    margin-bottom: 3rem;
}

.brand-category-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.brand-category-desc {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.brand-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

/* ========== Contact Section ========== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
    will-change: transform;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-right: 10px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-color);
    border-color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .lang-btn {
        min-width: 120px;
        padding: 0.5rem 0.8rem;
    }

    .lang-text {
        font-size: 0.9rem;
    }

    .lang-dropdown {
        right: 0;
        max-width: 200px;
    }

    [dir="rtl"] .lang-dropdown {
        left: 0;
        right: auto;
    }

    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .floating-shapes .shape {
        width: 60px !important;
        height: 60px !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .services-grid,
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .lang-btn {
        min-width: 100px;
        padding: 0.4rem 0.6rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
    }
    
    /* Hide floating shapes on mobile for better performance */
    .floating-shapes {
        display: none;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ========== Tablet Landscape & Medium Screens (769px - 1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Small Mobile (320px - 375px) ========== */
@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .cta-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float,
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ========== Theme Toggle Button ========== */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-gold);
    padding: 0.5rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
    will-change: transform, background-color;
}

[dir="rtl"] .theme-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

.theme-toggle:hover {
    background: var(--accent-gold);
    transform: rotate(20deg);
}

.theme-icon {
    font-size: 1.3rem;
    transition: var(--transition);
}

/* ========== FAQ Section ========== */
.faq {
    background: white;
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

[dir="ltr"] .faq-question {
    text-align: left;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* ========== Newsletter Section ========== */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-gold);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    will-change: transform, background-color;
}

.newsletter-btn:hover {
    background: #f0c040;
    transform: translateY(-2px);
}

/* ========== WhatsApp Float Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    will-change: transform;
    contain: layout style paint;
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-icon {
    font-size: 2rem;
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    will-change: opacity, transform;
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top-icon {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

/* ========== Loading Screen ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-text {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    will-change: transform;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========== Toast Notifications ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[dir="rtl"] .toast-container {
    right: auto;
    left: 20px;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before {
    background: #10b981;
}

.toast.error::before {
    background: #ef4444;
}

.toast.info::before {
    background: var(--accent-blue);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    color: var(--text-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== Responsive Additions ========== */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    [dir="rtl"] .whatsapp-float {
        left: auto;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 80px;
        left: 20px;
    }
    
    [dir="rtl"] .back-to-top {
        left: auto;
        right: 20px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .brand-card {
        padding: 2rem 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ========== Extra Small Screens (Max 360px) ========== */
@media (max-width: 360px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .service-card,
    .contact-card,
    .faq-item {
        padding: 1.2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .lang-btn {
        min-width: 90px;
        padding: 0.3rem 0.5rem;
    }
    
    .whatsapp-float,
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========== Landscape Mode on Mobile ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .floating-shapes {
        display: none;
    }
}
