/* CSS Reset وإعدادات أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --twitter-blue: #1f73b7;
    --clay-soil: #7e4131;
    --taupe-grey: #524854;
    --steel-azure: #0e4c88;
    --light-blue: #e8f4fc;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --dark: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', 'Noto Kufi Arabic', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--steel-azure);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--twitter-blue);
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--taupe-grey);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--twitter-blue);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--steel-azure);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--twitter-blue);
    border: 2px solid var(--twitter-blue);
}

.btn-secondary:hover {
    background-color: var(--twitter-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.loader-square {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--twitter-blue);
    animation: loaderMove 2s linear infinite;
}

.loader-square:nth-child(1) { top: 0; left: 0; animation-delay: 0s; }
.loader-square:nth-child(2) { top: 0; right: 0; animation-delay: 0.25s; }
.loader-square:nth-child(3) { top: 0; right: 0; animation-delay: 0.5s; }
.loader-square:nth-child(4) { bottom: 0; right: 0; animation-delay: 0.75s; }
.loader-square:nth-child(5) { bottom: 0; left: 0; animation-delay: 1s; }
.loader-square:nth-child(6) { bottom: 0; left: 0; animation-delay: 1.25s; }
.loader-square:nth-child(7) { top: 0; left: 0; animation-delay: 1.5s; }

@keyframes loaderMove {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(0, 130px); }
    50% { transform: translate(130px, 130px); }
    75% { transform: translate(130px, 0); }
}

/* زر التبديل للغة الإنجليزية */
/* زر التبديل للغة - الإعدادات العامة */
.lang-switcher {
    position: fixed;
    bottom: 100px;
    background-color: var(--steel-azure);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 998;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lang-switcher:hover {
    background-color: var(--twitter-blue);
    transform: translateY(-3px);
}

/* النسخة العربية (الافتراضية) */
.lang-switcher {
    left: 20px;
    right: auto;
}

/* النسخة الإنجليزية - استخدم [dir="ltr"] أو كلاس body */
html[dir="ltr"] .lang-switcher,
body.english-version .lang-switcher {
    left: auto;
    right: 20px;
}

/* على الموبايل */
@media (max-width: 768px) {
    .lang-switcher {
        bottom: 90px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* العربية على الموبايل */
    .lang-switcher {
        left: 15px;
        right: auto;
    }
    
    /* الإنجليزية على الموبايل */
    html[dir="ltr"] .lang-switcher,
    body.english-version .lang-switcher {
        left: auto;
        right: 15px;
    }
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

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

#logo-img {
    border-radius: 50%;
    transition: var(--transition);
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 115, 183, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(31, 115, 183, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 115, 183, 0); }
}

.logo-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

#header.scrolled .logo-text {
    color: var(--steel-azure);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

#header.scrolled .nav-link {
    color: var(--dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--twitter-blue);
    bottom: 0;
    right: 0;
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: var(--transition);
}

#header.scrolled .bar {
    background-color: var(--dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), url('cover.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(31, 115, 183, 0.3), rgba(126, 65, 49, 0.3));
    z-index: 1;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.about-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-icon {
    font-size: 3rem;
    color: var(--twitter-blue);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--steel-azure);
}

.about-card p {
    color: var(--taupe-grey);
    line-height: 1.8;
}

.values-section {
    margin-bottom: 80px;
}

.values-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--steel-azure);
    margin-bottom: 50px;
}

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

.value-item {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--twitter-blue);
    margin-bottom: 20px;
}

.value-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--steel-azure);
}

.value-item p {
    color: var(--taupe-grey);
}

.brand-promise {
    background: linear-gradient(135deg, var(--twitter-blue), var(--steel-azure));
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-bottom: 80px;
}

.promise-content {
    position: relative;
}

.promise-content i {
    font-size: 2rem;
    opacity: 0.7;
}

.promise-content i:first-child {
    position: absolute;
    top: -20px;
    right: 20px;
}

.promise-content i:last-child {
    position: absolute;
    bottom: -20px;
    left: 20px;
}

.promise-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.promise-text {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.market-role {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.role-title {
    text-align: center;
    font-size: 2rem;
    color: var(--steel-azure);
    margin-bottom: 30px;
}

.role-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--light-blue);
    border-radius: 10px;
    transition: var(--transition);
}

.role-item:hover {
    background-color: var(--twitter-blue);
    color: white;
}

.role-item i {
    color: var(--twitter-blue);
    font-size: 1.3rem;
}

.role-item:hover i {
    color: white;
}

/* Products Section */
.products {
    background-color: white;
}

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

.product-card {
    background-color: var(--light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    background-color: var(--light-blue);
}

.product-icon {
    font-size: 3.5rem;
    color: var(--twitter-blue);
    margin-bottom: 25px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--steel-azure);
}

.product-card p {
    color: var(--taupe-grey);
    line-height: 1.8;
}

/* Gallery Section */
.gallery {
    background-color: var(--light-gray);
}

.gallery-container {
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-desc {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.load-more {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

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

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--twitter-blue);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--steel-azure);
}

.contact-card p {
    color: var(--taupe-grey);
    margin-bottom: 5px;
}

.contact-map {
    height: 100%;
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--steel-azure);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    border-radius: 50%;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--twitter-blue);
    bottom: 0;
    right: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--twitter-blue);
    padding-right: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    color: var(--twitter-blue);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Widget */
.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.green-btn {
    background-color: #25D366;
}

.float-btn:hover {
    transform: scale(1.1);
}

.widget-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    transform-origin: bottom left;
}

.widget-box.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
}

.widget-box.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--light-blue);
    gap: 15px;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.header-text {
    flex: 1;
}

.header-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--steel-azure);
}

.header-text small {
    color: var(--taupe-grey);
    font-size: 0.9rem;
}

.widget-body {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.widget-body p {
    color: var(--dark);
    font-size: 1rem;
}

.quick-options {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    display: block;
    padding: 12px 15px;
    background-color: var(--light-gray);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    color: var(--steel-azure);
    font-weight: 500;
}

.option-btn:hover {
    background-color: var(--twitter-blue);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .promise-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 40px 0;
        gap: 30px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--dark);
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .promise-text {
        font-size: 1.8rem;
    }
    
    .whatsapp-widget-container {
        bottom: 20px;
        left: 20px;
    }
    

}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .promise-text {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .widget-box {
        width: 280px;
    }
}

/* إصلاح الفراغات للأجهزة المحمولة */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .about-card,
    .product-card,
    .contact-card,
    .value-item {
        padding: 25px 20px;
    }
    
    .brand-promise {
        padding: 40px 20px;
    }
    
    .role-title {
        font-size: 1.6rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* منع التمرير الأفقي */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* تحسين التنسيق للعروض الصغيرة جداً */
@media (max-width: 360px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .promise-text {
        font-size: 1.3rem;
    }
}
