/* Responsive Design */

/* Prevent horizontal overflow on small viewports */
html, body { overflow-x: hidden; }

/* إدارة القوائم حسب حجم الشاشة */
@media (min-width: 768px) {
    /* إخفاء زر القائمة الجانبية */
    .nav-toggle {
        display: none !important;
    }
    
    /* إخفاء الطبقة الشفافة */
    .nav-overlay {
        display: none !important;
    }
    
    /* إظهار القائمة الأفقية للشاشات الكبيرة */
    .desktop-nav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }
    
    /* إخفاء القائمة الجانبية للجوال */
    .mobile-nav {
        display: none !important;
    }
    
    /* تنسيق القائمة الأفقية */
    .desktop-nav .nav-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.4rem !important; /* تقليل المسافة أكثر */
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap !important; /* منع الانتقال لسطر جديد */
        white-space: nowrap !important;
    }
    
    /* تحسين حجم النص للقائمة الأفقية */
    .desktop-nav .nav-link {
        font-size: 13px !important; /* تقليل حجم الخط أكثر */
        padding: 6px 8px !important; /* تقليل الحشو أكثر */
        white-space: nowrap !important;
    }
}

@media (max-width: 767px) {
    /* إظهار زر القائمة الجانبية */
    .nav-toggle {
        display: flex !important;
    }
    
    /* إخفاء القائمة الأفقية */
    .desktop-nav {
        display: none !important;
    }
    
    /* إظهار القائمة الجانبية */
    .mobile-nav {
        display: flex !important;
    }
}

/* About Page Responsive Styles */
@media (max-width: 1200px) {
    .header-logo {
        max-width: 180px;
    }
    
    .company-description {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .about-page-header {
        min-height: 50vh;
        background-attachment: scroll;
    }
    
    .header-logo {
        max-width: 160px;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .lead-en {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-page-header {
        min-height: 45vh;
        padding: 40px 0;
    }
    
    .contact-page-header {
        min-height: 45vh;
        padding: 80px 0 50px;
    }
    
    .company-logo {
        margin-bottom: 20px;
        margin-top: 10px;
    }
    
    .header-logo {
        max-width: 100px;
    }
    
    .company-description {
        margin: 20px 0;
        padding: 20px 15px;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .lead-en {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .separator {
        margin: 20px 0;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .about-page-header {
        min-height: 40vh;
    }
    
    .header-logo {
        max-width: 120px;
    }
    
    .company-description {
        padding: 15px 10px;
        margin: 15px 0;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .lead-en {
        font-size: 0.9rem;
    }
}

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .contact-content {
        gap: 40px;
    }
}

/* أنماط القائمة الجانبية - تطبق على جميع الأحجام */
/* شعار القائمة الجانبية */
.sidebar-logo {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
    text-align: center;
    display: block !important;
    visibility: visible !important;
}

.sidebar-logo img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block !important;
    margin: 0 auto;
}

/* وسائل التواصل الاجتماعي */
.sidebar-social {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    width: 100%;
    text-align: center;
    display: block !important;
    visibility: visible !important;
}

.sidebar-social h4 {
    color: #334155;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.sidebar-social-links a.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.sidebar-social-links a.instagram {
    background: linear-gradient(135deg, #e4405f, #833ab4);
}

.sidebar-social-links a.tiktok {
    background: linear-gradient(135deg, #000000, #333333);
}

/* معلومات الاتصال */
.sidebar-contact {
    margin-top: 15px;
    text-align: center;
}

.sidebar-contact a {
    display: block;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    direction: ltr;
}

.sidebar-contact a:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

/* حقوق الطبع والنشر */
.sidebar-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    text-align: center;
    display: block !important;
    visibility: visible !important;
}

.sidebar-footer p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* Tablets and Mobile */
@media (max-width: 767px) {
    /* Logo Responsive */
    .logo-img {
        height: 60px; /* ≤767px */
        max-width: 220px;
    }

    /* تقليل حجم الشعار في الهيدر على الجوال لعدم تغطية القائمة */
    .header .logo-img {
        height: 60px !important;
        max-width: 220px !important;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 2002;
    }
    
    /* تحسين تصميم زر القائمة */
    .nav-toggle span {
        background: #333;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 2001;
        overflow-y: auto;
        border-right: 1px solid #e2e8f0;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    /* طبقة خلفية شفافة عند فتح القائمة */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: right;
        margin-bottom: auto;
    }
    
    .mobile-nav .nav-list li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .mobile-nav .nav-list li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav .nav-link {
        display: block;
        padding: 15px 20px;
        color: #334155;
        font-weight: 500;
        font-size: 16px;
        border-radius: 8px;
        margin: 2px 0;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-nav .nav-link:hover {
        background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
        color: white;
        transform: translateX(5px);
    }
    
    .mobile-nav .nav-link.active {
        background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
        color: white;
    }
    
    .mobile-nav .nav-link i {
        margin-left: 10px;
        width: 20px;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f1f5f9;
        margin: 5px 0 0 0;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        overflow: hidden;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        color: #475569;
        font-size: 14px;
        border-bottom: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a:hover {
        background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
        color: white;
        transform: translateX(3px);
    }
    
    .dropdown-menu a i {
        margin-left: 8px;
        width: 16px;
        text-align: center;
        font-size: 12px;
    }
    
    /* Mobile dropdown collapse/expand */
    .mobile-nav .dropdown-menu {
        display: none; /* hidden by default on mobile */
    }
    .mobile-nav .dropdown.open > .dropdown-menu {
        display: block; /* show when parent has .open */
    }
    .mobile-nav .dropdown > a .fa-chevron-down {
        transition: transform 0.2s ease;
    }
    .mobile-nav .dropdown.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Hero Section - تحسين عرض الصورة العلوية على الجوالات */
    .hero {
       background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 58, 138, 0.8)),  url('../images/cover/5.jpg') !important; /* إضافة الصورة الخلفية مع شفافية أكثر */
        background-attachment: scroll !important; /* تعطيل الثبات على الجوال لتفادي مشاكل الظهور */
        background-size: cover !important;        /* تأكد من تغطية الخلفية بالكامل */
        background-position: center center !important; /* تمركز الصورة في الوسط */
        background-repeat: no-repeat !important;  /* عدم تكرار الصورة */
        min-height: 70vh;              /* ارتفاع أكبر لإظهار الصورة بشكل أفضل */
        height: auto;                  /* ارتفاع تلقائي */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;               /* مساحة داخلية للمحتوى */
    }
    
    /* تقليل شفافية الطبقة العلوية لإظهار الصورة */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1); /* شفافية أكثر لإظهار الصورة */
    }
    
    /* توسيط المحتوى على الجوالات */
    .hero-content {
        text-align: center;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem; /* تصغير بسيط */
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;   /* تصغير بسيط */
        margin-bottom: 2rem;
        line-height: 1.4;
    }
    
    /* توسيط الأزرار على الجوالات */
    .hero-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-buttons .btn {
        flex: 1 1 0;
        margin: 0;
        max-width: none;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: none;
    }
    
    .service-card {
        min-height: auto;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px;
    }

    /* إخفاء أزرار التنقل في قسم آراء العملاء على الجوالات */
    .reviews-navigation {
        display: none !important;
    }
    
    .review-content { padding: 24px 18px; }
    
    /* Service Detail Cards - تحسين عرض بطاقات الخدمات على الجوالات */
    .services-overview {
        padding: 60px 0;
    }
    
    .service-detail-card {
        padding: 30px 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .service-detail-card .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .service-detail-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .service-detail-card p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .service-features {
        text-align: right;
    }
    
    .service-features li {
        padding: 6px 0;
        font-size: 0.9rem;
    }
    
    .service-features li i {
        font-size: 0.8rem;
    }
    
    /* Process Timeline - تحسين للجوالات المتوسطة */
    .process-timeline {
        gap: 25px;
    }
    
    .process-step {
        gap: 20px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .process-step:not(:last-child)::after {
        left: 27px;
        height: 45px;
    }
    
    .step-content {
        padding: 25px 20px;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    /* اجعل قوائم الفوتر بمحاذاة يمين على الجوال */
    .footer-section ul { text-align: right; }
    .footer-section ul li { justify-content: flex-start; }
    .footer-section ul li .phone-number { direction: ltr; text-align: left; }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Logo Mobile */
    .logo-img {
        height: 120px; /* تقليل قليل لتوسيع المساحة */
        max-width: 320px;
    }
    
    /* Navigation */
    .nav-brand h1 {
        font-size: 1.4rem;
    }
    
    /* Hero - تحسين عرض الصورة العلوية على الجوالات الصغيرة */
    .hero {
        background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 58, 138, 0.8)),   url('../images/cover/5.jpg') !important; /* إضافة الصورة الخلفية مع شفافية أكثر */
        background-attachment: scroll !important; /* Better performance on mobile */
        background-size: cover !important;
        background-position: center center !important; /* تمركز أفضل للصورة */
        background-repeat: no-repeat !important;  /* عدم تكرار الصورة */
        min-height: 60vh;              /* ارتفاع مناسب للجوالات الصغيرة */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0;               /* مساحة داخلية أصغر */
    }
    
    /* تقليل شفافية الطبقة العلوية لإظهار الصورة على الجوالات الصغيرة */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.05); /* شفافية أكثر للجوالات الصغيرة */
    }
    
    /* توسيط المحتوى على الجوالات الصغيرة */
    .hero-content {
        text-align: center;
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;             /* حجم أصغر للجوالات الصغيرة */
        margin-bottom: 0.8rem;
         margin-top: 115px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;             /* حجم أصغر للجوالات الصغيرة */
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    /* توسيط الأزرار على الجوالات الصغيرة */
    .hero-buttons {
        max-width: 280px;
        margin: 0 auto;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Service Detail Cards - تحسين للجوالات الصغيرة */
    .services-overview {
        padding: 50px 0;
    }
    
    .service-detail-card {
        padding: 25px 15px;
        margin-bottom: 15px;
    }
    
    .service-detail-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .service-detail-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-detail-card p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .service-features li {
        padding: 5px 0;
        font-size: 0.85rem;
    }
    
    /* Gallery improvements for small mobile */
    .azm-gallery {
        padding: 50px 0;
    }
    
    .gallery-section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .images-grid {
        gap: 15px;
    }
    
    .image-wrapper {
        min-height: 180px;
    }
    
    .image-wrapper img {
        min-height: 180px;
    }
    
    .image-content h4 {
        font-size: 1.2rem;
    }
    
    .image-content p {
        font-size: 0.9rem;
    }
    
    .view-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    /* Process Timeline - تحسين للجوالات الصغيرة */
    .process-timeline {
        gap: 20px;
    }
    
    .process-step {
        gap: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0 auto 10px;
    }
    
    .process-step:not(:last-child)::after {
        display: none; /* إخفاء الخط الواصل على الجوالات الصغيرة */
    }
    
    .step-content {
        padding: 18px 12px;
        border-left: none;
        border-top: 4px solid #2c5aa0;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }


    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Services */
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Contact */
    .contact-item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 20px;
    }
}

/* تحسينات إضافية للقائمة الجانبية على الشاشات الصغيرة */
@media (max-width: 480px) {
    .nav-menu {
        width: 280px;
        padding: 15px;
    }
    
    .sidebar-logo {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .sidebar-logo img {
        max-width: 150px;
        max-height: 60px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .sidebar-social {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .sidebar-social h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .sidebar-social-links {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .sidebar-social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sidebar-contact a {
        font-size: 14px;
        padding: 6px;
    }
    
    .sidebar-footer {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .sidebar-footer p {
        font-size: 11px;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* تحسينات إضافية للقائمة الجانبية على الشاشات الصغيرة جداً */
    .nav-menu {
        width: 260px;
        padding: 12px;
    }
    
    .sidebar-logo img {
        max-width: 130px;
        max-height: 50px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .sidebar-social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .sidebar-contact a {
        font-size: 13px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .contact-form {
        padding: 15px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
         background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 58, 138, 0.8)),  url('../images/cover/5.jpg');
    }
}

/* إصلاح مشكلة اختفاء الصورة على الجوالات - أولوية قصوى */
@media (max-width: 767px) {
    .hero {
        background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 58, 138, 0.8)),  url('../images/cover/5.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

@media (max-width: 480px) {
    .hero {
         background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(30, 58, 138, 0.8)),  url('../images/cover/5.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        height: auto;
        background: none;
        color: #333;
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
    }
    
    .service-card,
    .contact-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2a2a2a;
    }
    
    /* This can be expanded based on requirements */
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* Logo Size - Final Overrides to ensure larger logo across devices */
.header .logo-img {
    height: 450px !important; /* desktop default */
    max-width: 1200px !important;
    width: auto !important;
    object-fit: contain;
}

/* Large tablets and small desktops */
@media (max-width: 991.98px) {
    .header .logo-img {
        height: 260px !important;
        max-width: 760px !important;
    }
}

/* Tablets and mobile */
@media (max-width: 767.98px) {
    .header .logo-img {
        height: 180px !important;
        max-width: 520px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header .logo-img {
        height: 160px !important;
        max-width: 440px !important;
    }
}