/* ملف CSS خاص بصفحة سوق المجيدية المركزي - لوحة ألوان: أبيض، أسود، ذهبي */

/*
* @section المتغيرات الأساسية للثيمات
* ملاحظة: يفضل تعريف هذه المتغيرات في ملف CSS عام للموقع (مثل global.css)
* لضمان التناسق وسهولة إدارة الثيمات على مستوى الموقع بأكمله.
*/


/*
* @section متغيرات الوضع الفاتح (Light Mode)
* يتم تطبيقها عند إضافة الكلاس 'light-mode' إلى الـ body.
*/
body.light-mode {
    --primary-color: #CCA300; /* ذهبي أغمق - لون أساسي للوضع الفاتح */
    --secondary-color: #FFD700; /* ذهبي - لون ثانوي للوضع الفاتح */
    --dark-color: #F8F8F8; /* خلفية فاتحة جداً (أبيض تقريباً) */
    --darker-color: #FFFFFF; /* أغمق للخلفيات في الوضع الفاتح (مثل الفوتر) */
    --light-color: #121212; /* لون داكن يستخدم كلون نص في Light Mode */
    --accent-color: #CCA300; /* ذهبي أغمق - لون تمييز للوضع الفاتح */
    --text-color: #1A1A1A; /* لون النص الأساسي الداكن (أسود تقريباً) لـ Light Mode */
    --text-muted: #666666; /* لون النص الخافت / الثانوي الرمادي الداكن لـ Light Mode */
    --border-color: rgba(0, 0, 0, 0.1); /* لون حدود شفاف (أسود شفاف) */
    --glass-background: rgba(0, 0, 0, 0.05); /* خلفية زجاجية شفافة (أسود شفاف) */
    --shadow-effect: 0 10px 30px rgba(0, 0, 0, 0.1); /* ظل عام فاتح */
}

/*
* @section استيراد الخطوط
*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/*
* @section إعادة تعيين الأنماط الافتراضية (Reset CSS)
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*
* @section الأنماط العامة للجسم (Body Styles)
*/
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    padding-top: 70px;
    padding-bottom: 100px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/*
* @section تراكبات الخلفية مع تأثير ضوئي (Background Overlays)
* تستخدم درجات شفافة من الذهبي أو الأسود/الأبيض.
*/
/* تأثير ضوئي علوي أيمن - بلون ذهبي شفاف */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 70%); /* ذهبي شفاف */
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    transform: translate(20%, -20%);
    animation: backgroundGlow 10s infinite alternate ease-in-out;
}

/* تأثير ضوئي آخر في الزاوية اليسرى السفلية - بلون ذهبي شفاف */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 70%); /* ذهبي شفاف */
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    transform: translate(-20%, 20%);
    animation: backgroundGlowReverse 10s infinite alternate ease-in-out;
}

/* إزالة تراكبات الإضاءة في الوضع الفاتح */
body.light-mode::before,
body.light-mode::after {
    background: none;
    filter: none;
}

/*
* @section الرسوم المتحركة (Animations)
*/
@keyframes backgroundGlow {
    0% { transform: translate(20%, -20%) scale(1); }
    50% { transform: translate(15%, -15%) scale(1.05); }
    100% { transform: translate(20%, -20%) scale(1); }
}

@keyframes backgroundGlowReverse {
    0% { transform: translate(-20%, 20%) scale(1); }
    50% { transform: translate(-15%, 15%) scale(1.05); }
    100% { transform: translate(-20%, 20%) scale(1); }
}

/*
* @section حاوية المحتوى المشتركة (Container)
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*
* @section نمط الهيدر الرئيسي (Hero Section)
* تراكب الصورة سيكون من الأسود الشفاف في Dark Mode والأبيض الشفاف في Light Mode.
*/
.majidiya-hero {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('/image/almajydea/125782963_2770964453162892_82014829536339782_n.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 700px;
    height: auto;
    overflow: hidden;
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* تراكب أسود شفاف */
        z-index: -1;
    }

    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

/* تعديلات Hero Section في Light Mode */
body.light-mode .majidiya-hero {
    background-image: url('/image/alwa/IMG_8411.JPG'); /* يمكن استخدام نفس الصورة أو استبدالها بصورة مناسبة للوضع الفاتح */
}

body.light-mode .majidiya-hero::before {
    /* تراكب أبيض شفاف */
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.7));
}

/*
* @section شعار الشركة داخل الهيدر (Company Logo)
*/
.company-logo-majidiya {
    width: 250px;
    height: 250px;
    object-fit: contain;
    animation: spin 10s linear infinite;
    /* ظل توهج بلون ذهبي */
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    padding: 10px;
    background-color: var(--glass-background);
}

/* إزالة التأثيرات الخاصة بـ Dark Mode في Light Mode */
body.light-mode .company-logo-majidiya {
    filter: none;
    border-color: var(--primary-color);
    box-shadow: black;
    background-color: rgba(0, 0, 0, 0.05); /* خلفية شفافة فاتحة */
}

/* الرسوم المتحركة للشعار */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*
* @section عنوان الصفحة الرئيسي (Main Page Title)
*/
.majidiya-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--text-color); /* لون النص الأساسي (أبيض في Dark Mode) */
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    /* تدرج لوني للنص من الذهبي إلى الذهبي الأغمق */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* تأثير توهج للنص بلون ذهبي */
    text-shadow: black;
}

/* تعديلات العنوان في Light Mode */
body.light-mode .majidiya-title {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* الرسوم المتحركة للتوهج - تستخدم الذهبي الشفاف */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4); }
    50% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6); }
}

/*
* @section وصف العنوان الفرعي (Tagline)
*/
.majidiya-tagline {
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    color: white;
    text-shadow: #1A1A1A;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.8s;
}

/* الرسوم المتحركة للظهور من الأسفل */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
* @section أقسام المحتوى العامة (General Section Styles)
*/
section {
    padding: 60px 0;
    text-align: center;
    margin: 40px auto;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    max-width: 100%;
    opacity: 0;
    animation: sectionFadeIn 1s ease-out forwards;
    animation-delay: 0.8s;
}

/* تعديلات الأقسام في Light Mode */
body.light-mode section {
    background-color: rgba(255, 255, 255, 0.9); /* أبيض شبه معتم */
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
* @section عناوين الأقسام (Section Headings)
*/
.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    /* تدرج لوني ذهبي */
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    animation: pulse 2.5s infinite alternate;
}

/* تعديلات عنوان القسم في Light Mode */
body.light-mode .section-heading {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/*====================================================================*/
/*====================== 6. Content Sections =========================*/
/*====================================================================*/

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vision, .mission {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}

.vision .content h4,
.mission .content h4 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.vision .content p,
.mission .content p {
    color: var(--text-light);
    line-height: 1.6;
}

.about-image {
    position: relative;
    max-width: 70%;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(224, 164, 35, 0.432);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image:hover .image-overlay {
    opacity: 0.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.stats {
    padding: 4rem 0;
    background: var(--gold-gradient);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
}

.projects {
    padding: 6rem 0;
    background: white;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-gradient);
    color: white;
    border-color: var(--primary-gold);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.action-btn:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.status {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status.in-progress {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.status.planning {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-links h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: var(--gold-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/*====================================================================*/
/*============================ 7. Footer =============================*/
/*====================================================================*/

.footer {
    background: var(--dark-bg);
    color: rgb(36, 36, 36);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-frame {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-text h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: white;
}

.footer-logo .logo-text span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
}

.footer-section .contact-item i {
    color: var(--primary-gold);
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

/*====================================================================*/
/*======================== 8. Back to Top Button =====================*/
/*====================================================================*/

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/*====================================================================*/
/*====================== 9. Responsive Design =======================*/
/*====================================================================*/

@media (max-width: 1200px) {
    .hero-content {
        padding: 0 40px;
        gap: 60px;
    }

    .destinations-preview {
        max-width: 500px;
    }

    .preview-card {
        width: 120px;
        height: 160px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.8rem;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .brand-text {
        display: none;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .lang-toggle {
        padding: 0.6rem;
    }

    .lang-text {
        display: none;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .hero-description {
        font-size: 16px;
    }

    .destinations-preview {
        gap: 15px;
    }

    .preview-card {
        width: 90px;
        height: 120px;
    }

    .preview-content h3 {
        font-size: 12px;
    }

    .preview-content p {
        font-size: 9px;
    }

    .slide-number {
        bottom: 30px;
        right: 30px;
    }

    .current-slide {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .vision-mission {
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .modern-header {
        height: 70px;
    }

    .logo-frame {
        width: 50px;
        height: 50px;
    }

    .search-toggle {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-form {
        padding: 2rem;
    }
}

/*====================================================================*/
/*======================== 10. Print Styles ==========================*/
/*====================================================================*/

@media print {
    .modern-header,
    .search-overlay,
    .back-to-top,
    .slider-controls,
    .slide-number,
    .progress-bar,
    .hero-overlay,
    .hero-background,
    .destinations-preview {
        display: none !important;
    }

    .hero-section {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
    }

    .hero-title,
    .hero-description {
        color: var(--text-dark) !important;
        background: none !important;
        -webkit-text-fill-color: var(--text-dark) !important;
        text-shadow: none !important;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 !important;
    }

    .hero-text {
        opacity: 1 !important;
        transform: none !important;
        max-width: 100% !important;
        color: var(--text-dark) !important;
    }

    .location-tag, .discover-location {
        display: none !important;
    }

    .project-image img {
        height: auto;
        object-fit: contain;
    }
}