/* 
   Zaheb International - Main Stylesheet
   Author: Claude AI
   Version: 1.0
*/

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: var(--palette-blue);
    --secondary-color: #e7d409;
    --accent-color: var(--palette-gold);
    --dark-color: #000000;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --white-color: var(--palette-white);
    --black-color: var(--palette-black);

    /* Color Palette */
    --palette-blue: #0056b3;
    --palette-gold: #ffd700;
    --palette-white: #ffffff;
    --palette-black: #000000;

    /* Glass Effect */
    --glass-background: rgba(254, 254, 254, 0.806);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-blur: blur(8px);

    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --arabic-font: 'Tajawal', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;

    /* Borders */
    --border-radius: 10px;
    --border-radius-sm: 5px;
    --border-radius-lg: 15px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: var(--arabic-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
    font-family: var(--arabic-font);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.rtl .section-title:after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

/* ===== GLASS EFFECT ===== */
.glass-card {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
}

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

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

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

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

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 5px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.rtl .language-switcher {
    left: 20px;
    right: auto;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    color: var(--dark-color);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    min-width: 70px;
    text-align: center;
}

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

/* Mobile Language Switcher */
.language-switcher-mobile {
    display: none;
    justify-content: center;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 5px;
    margin: 15px 0;
    width: 100%;
    max-width: 200px;
}

.mobile-lang {
    display: none;
    justify-content: center;
    width: 100%;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--light-color);
    color: var(--dark-color);
    box-shadow: none;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    max-width: 150px;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.rtl .nav-link:after {
    right: 0;
    left: auto;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Page-specific styles for index.html are now in css/index.css */

/* ===== FOOTER ===== */
.footer {
    background-color: var(--light-color) !important;
    color: var(--dark-color) !important;
    padding: 60px 0 30px;
}

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

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer h3 {
    color: var(--primary-color) !important;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.rtl .footer h3:after {
    right: 0;
    left: auto;
}

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

.footer-links ul li a {
    color: var(--primary-color) !important;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.rtl .footer-links ul li a:hover {
    padding-right: 5px;
    padding-left: 0;
}

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

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.rtl .footer-contact p i {
    margin-left: 10px;
    margin-right: 0;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #629eff;
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.rtl .whatsapp-btn {
    left: 30px;
    right: auto;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: var(--white-color);
    animation: none;
}

/* WhatsApp button pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp button tooltip */
.whatsapp-btn:before {
    content: attr(data-en-tooltip);
    position: absolute;
    top: -45px;
    right: 0;
    background-color: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 500;
}

.rtl .whatsapp-btn:before {
    content: attr(data-ar-tooltip);
    left: 0;
    right: auto;
}

.whatsapp-btn:hover:before {
    opacity: 1;
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .rtl .whatsapp-btn {
        left: 20px;
        right: auto;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-lang {
        display: none;
    }

    .mobile-lang {
        display: flex;
        order: 3;
        /* Position in the middle of the navigation */
    }

    .language-switcher-mobile {
        display: flex;
    }

    .language-switcher-mobile .lang-btn {
        padding: 8px 15px;
        font-size: 1rem;
        min-width: 80px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 100;
    }

    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 3px;
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 15px rgba(31, 38, 135, 0.25);
    }

    .rtl .language-switcher {
        left: 15px;
        right: auto;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
        min-width: 60px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        transition: var(--transition);
        z-index: 99;
    }

    .nav.active {
        left: 0;
        display: block !important;
    }

    .rtl .nav {
        right: -100%;
        left: auto;
    }

    .rtl .nav.active {
        right: 0;
        display: block !important;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav-item {
        margin: 15px 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 2px;
        background: rgba(255, 255, 255, 0.3);
    }

    .rtl .language-switcher {
        left: 10px;
        right: auto;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
        min-width: 50px;
        font-weight: 600;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-1 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-2 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-3 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-4 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    background: var(--light-color) !important;
    color: var(--primary-color) !important;
    background-image: none !important;
    background-size: cover;
    background-position: center;
    padding: 20px 0 20px !important;
    text-align: center;
    box-shadow: none;
}

/* Page-specific styles for about.html are now in css/about.css */

/* Page-specific styles for services.html are now in css/services.css */

@media (max-width: 768px) {
    .about-intro .row {
        grid-template-columns: 1fr;
    }
}