/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:not(:last-child) {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: #f9f9f9;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question[aria-expanded="true"] {
    background: var(--primary-color);
    color: white;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: white;
}

.faq-icon {
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure images maintain aspect ratio and prevent layout shifts */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* For background images that maintain aspect ratio */
.card-img {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero section with background image */
.hero {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Prevent layout shift by setting a background color similar to the image */
    background-color: #1a1a1a;
    /* Smooth transition for background image */
    transition: background-image 0.3s ease-in-out;
    /* Ensure the hero takes full viewport height on mobile */
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Ensure hero image covers the full area */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Hero overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 25vh;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        padding-top: 20vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* Fix for iOS viewport height issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        /* The trick for iOS */
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}

/* Hero content positioning */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 15vh;
}

/* About section image container */
.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* CSS Variables */
:root {
    --primary-color: #D40018;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #757575;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

/* Brands Section */
.brands-section {
    padding: 2rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.brands-section .section-subtitle {
    color: var(--gray-dark);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
}

.brands-section .section-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

[dir="rtl"] .brands-section .section-subtitle::before {
    left: auto;
    right: 0;
}

.brands-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.brand-logo-container:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.brand-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Tesla logo specific styling */
.brand-logo[alt="Tesla"] {
    transform: scale(2);
    margin: 0 1.5rem;
}

/* On hover, scale the Tesla logo proportionally larger */
.brand-logo[alt="Tesla"]:hover {
    transform: scale(2.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .brands-carousel {
        gap: 2rem;
    }
    
    .brand-logo-container {
        height: 70px;
        padding: 0 1rem;
    }
    
    .brand-logo {
        max-height: 35px;
    }
}

@media (max-width: 768px) {
    .brands-section {
        padding: 3rem 0;
    }
    
    .brands-carousel {
        gap: 1.5rem;
    }
    
    .brand-logo-container {
        height: 60px;
        padding: 0 0.8rem;
    }
    
    .brand-logo {
        max-height: 30px;
    }
}

@media (max-width: 480px) {
    .brands-carousel {
        gap: 1rem;
    }
    
    .brand-logo-container {
        height: 50px;
        padding: 0 0.6rem;
    }
    
    .brand-logo {
        max-height: 25px;
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Maintenance Packages */
.packages-container {
    padding: 3rem 1.5rem;
}

.packages-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.package {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.package h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.package ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
    text-align: right;
}

.package li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .package ul {
    text-align: right;
}

[dir="ltr"] .package ul {
    text-align: left;
}

/* Emergency CTA */
.emergency-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 4rem auto;
    max-width: 800px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.emergency-cta .phone-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.emergency-cta .phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.emergency-cta .phone-link:hover {
    transform: translateY(-2px);
}

.emergency-cta .phone-separator {
    color: var(--gray-dark);
    font-weight: normal;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover {
    transform: translateY(-2px);
}

.phone-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* RTL Support */
[dir="rtl"] .phone-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .phone-number {
    unicode-bidi: plaintext;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    padding: 0.7rem 0;
    transition: box-shadow 0.3s;
}
header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo styles */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 60px; /* Reduced from 70px */
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    position: relative;
    gap: 8px;
}

.logo img {
    height: 40px; /* Default size for desktop */
    width: auto;
    display: block;
    transition: transform 0.8s ease-in-out;
    object-fit: contain;
}

/* Logo on desktop for home page */
@media (min-width: 992px) {
    .home-page .logo img.header-logo {
        height: 60px; /* Reduced from 150px */
        width: auto;
    }
    
    .home-page .logo {
        height: 70px; /* Reduced from 160px */
        margin: 5px 0; /* Reduced margin */
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    .logo {
        height: 50px;
    }
    
    .logo img {
        max-height: 40px; /* Reduced from 60px */
        height: auto;
        width: auto;
        max-width: 160px; /* Reduced from 200px */
    }
}
.logo:hover img {
    transform: scale(1.06);
}

/* Desktop Navigation */
.nav-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 2rem;
}

/* Adjust for RTL */
[dir="rtl"] .nav-wrapper {
    margin: 0 2rem;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0 1rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--black);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Active link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Desktop Header Styles */
@media (min-width: 992px) {
    header {
        position: relative;
    }

    .nav-container {
        position: relative;
    }

    .logo {
        position: relative;
    }

    .nav-wrapper {
        position: relative;
    }


}

/* Header actions (language toggle + menu) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .nav-wrapper {
        display: flex;
        align-items: center;
        flex: 1;
        margin: 0 2rem;
    }
    
    .nav-links {
        display: flex;
        gap: 2.5rem;
        margin: 0;
        padding: 0 1rem;
        list-style: none;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        margin-left: 2rem;
    }
    
    .desktop-actions {
        margin-left: 2rem;
        display: flex;
        align-items: center;
    }
    

}

/* Mobile header actions */
.mobile-actions {
    display: none; /* Hidden by default, shown on mobile */
}

/* Desktop header actions */
.desktop-actions {
    margin-left: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    }

    /* Desktop Navigation */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        margin: 0;
        padding: 0 2rem;
        list-style: none;
    }

    .nav-links a {
        position: relative;
        color: var(--black);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 0;
        transition: color 0.2s;
    }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .nav-wrapper {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: white !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    /* Hide desktop nav on mobile */
    .nav-wrapper:not(.open) {
        display: none !important;
    }
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        margin: 0;
        padding: 0 2rem;
        list-style: none;
    }

    .nav-links a {
        position: relative;
        color: var(--black);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 0;
        transition: color 0.2s;
    }

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

    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--primary-color);
    }

    .nav-links a:hover::after,
    .nav-links a:focus::after {
        width: 100%;
    }

    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .nav-links a.active::after {
        width: 100%;
    }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 10px;
        margin: 0;
        list-style: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #333;
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 500;
        border-radius: 8px;
        margin: 4px 0;
        transition: all 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(0,0,0,0.02);
        color: var(--primary-color);
        padding-left: 2rem;
    }

    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 600;
        background: rgba(var(--primary-color-rgb), 0.05);
        border-left: 4px solid var(--primary-color);
    }
}

/* Mobile Navigation Overrides */
@media (max-width: 991.98px) {
    /* Reset any conflicting styles first */
    body .nav-wrapper,
    html body .nav-wrapper,
    body #main-header .nav-wrapper,
    html body #main-header .nav-wrapper {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: var(--white) !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease-in-out !important;
        z-index: 1001 !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .nav-wrapper.open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: all !important;
        visibility: visible !important;
    }
    
    /* Navigation Links - Mobile */
    body .nav-wrapper .nav-links,
    html body .nav-wrapper .nav-links,
    body #main-header .nav-wrapper .nav-links,
    html body #main-header .nav-wrapper .nav-links {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
    
    /* Navigation Links - Mobile - Links */
    body .nav-wrapper .nav-links a,
    html body .nav-wrapper .nav-links a,
    body #main-header .nav-wrapper .nav-links a,
    html body #main-header .nav-wrapper .nav-links a {
        padding: 1.2rem 1.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        color: var(--dark) !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        margin: 0 !important;
        background: transparent !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
    
    /* Hover/Focus States */
    body .nav-wrapper .nav-links a:hover,
    html body .nav-wrapper .nav-links a:hover,
    body #main-header .nav-wrapper .nav-links a:hover,
    html body #main-header .nav-wrapper .nav-links a:hover,
    body .nav-wrapper .nav-links a:focus,
    html body .nav-wrapper .nav-links a:focus,
    body #main-header .nav-wrapper .nav-links a:focus,
    html body #main-header .nav-wrapper .nav-links a:focus {
        background-color: rgba(0, 0, 0, 0.02) !important;
        color: var(--primary-color) !important;
        padding-left: 2rem !important;
        outline: none !important;
    }
    
    /* Active State */
    body .nav-wrapper .nav-links a.active,
    html body .nav-wrapper .nav-links a.active,
    body #main-header .nav-wrapper .nav-links a.active,
    html body #main-header .nav-wrapper .nav-links a.active {
        color: var(--primary-color) !important;
        font-weight: 600 !important;
        background-color: rgba(0, 0, 0, 0.02) !important;
    }
    
    .nav-links a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background-color: var(--primary-color);
    }
    
    /* Show mobile actions and hide desktop actions on mobile */
    .mobile-actions {
        display: flex;
        margin-left: auto;
    }
    
    .desktop-actions {
        display: none;
    }
    
    /* Mobile menu styles */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* Body lock when menu is open */
    body.menu-open {
        overflow: hidden;
        height: 100%;
        position: fixed;
        width: 100%;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 0;  /* Removed top padding to eliminate extra space */
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
        z-index: 1001;
        visibility: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
    }
    
    .nav-wrapper.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;  /* Remove default padding */
        display: flex;
        flex: 1;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        display: flex;
        align-items: center;
        color: var(--dark);
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
        margin: 0;  /* Ensure no margin is affecting alignment */
    }
    
    .nav-links a:hover,
    .nav-links a:focus {
        background-color: rgba(0, 0, 0, 0.02);
        color: var(--primary-color);
        padding-left: 2rem;
    }
    
    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .nav-links a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background-color: var(--primary-color);
    }
    
    [dir="rtl"] .nav-links a {
        text-align: right;
    }
    
    [dir="rtl"] .nav-links a:hover,
    [dir="rtl"] .nav-links a:focus {
        padding-left: 1.5rem;
        padding-right: 2rem;
    }
    
    [dir="rtl"] .nav-links a.active::before {
        left: auto;
        right: 0;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: 0.5rem;
    }
    
    .lang-toggle {
        order: 1;
        margin-right: 0.5rem;
    }
}

/* Language toggle button */
.lang-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important; /* Force text color */
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
    position: relative;
    overflow: hidden;
    -webkit-appearance: none; /* Remove default mobile styles */
    -moz-appearance: none;
    appearance: none;
}

/* Base state - always show primary color */
.lang-toggle,
.lang-toggle:not(:hover):not(:active):not(:focus) {
    background: none !important;
    color: var(--primary-color) !important;
}

/* Hover state - only apply on non-touch devices */
@media (hover: hover) {
    .lang-toggle:hover {
        background: var(--primary-color) !important;
        color: white !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Active and focus states */
.lang-toggle:active,
.lang-toggle:focus {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(1px);
    box-shadow: none;
    outline: none !important;
}

/* Reset focus styles after interaction */
.lang-toggle:focus:not(:active) {
    animation: resetFocus 0.01s forwards;
}

@keyframes resetFocus {
    to {
        background: none !important;
        color: var(--primary-color) !important;
        transform: none;
        box-shadow: none;
    }
}

/* Mobile-specific styles */
@media (max-width: 991.98px) {
    .lang-toggle {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    /* Reset any focus styles that might be applied by mobile browsers */
    .lang-toggle:focus:not(:active) {
        background: none !important;
        color: var(--primary-color) !important;
        transform: none;
        box-shadow: none;
    }
    
    /* Only apply hover/active styles when actually interacting */
    .lang-toggle:active,
    .lang-toggle:focus:active {
        background: var(--primary-color) !important;
        color: white !important;
    }
}

/* Menu toggle button (hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* RTL support */
[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .nav-links {
    margin: 0;
    padding: 0 1rem;
}

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

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

/* Hero Section */
.hero {
    width: 100%;
    min-height: 500px;
    height: 100vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #000; /* Fallback color */
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

/* Mobile Hero Section */
@media (max-width: 767.98px) {
    .hero {
        height: 100vh;
        min-height: 568px; /* Minimum height for smaller devices */
        max-height: 812px; /* Maximum height for larger phones */
        padding: 60px 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero .hero-content {
        width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        transform: none;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    max-width: 700px;
}

/* Service List Icons */
.service-list li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 1rem;
}
.service-list li i[data-feather] {
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.7rem;
    height: 1.7rem;
    color: var(--primary-color);
    opacity: 0.85;
    transition: color 0.3s;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
}
.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.comparison-table th {
    background: var(--gray-light);
    font-weight: 600;
    font-size: 1.1rem;
}
.comparison-table .badge {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 0.2em 0.7em;
    font-size: 0.85em;
    margin-left: 0.5em;
    vertical-align: middle;
    font-weight: 500;
}
.icon-check {
    color: var(--primary-color);
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}
.table-responsive {
    overflow-x: auto;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    margin: 3rem 0 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    /* Remove default max-width from .cta-section if present */
}

.cta-section.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 600px) {
    .cta-section.container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
.cta-section .btn {
    background: #fff;
    color: var(--primary-color);
    margin-top: 1.2rem;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}
.cta-section .btn:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

/* Animations */
[data-animate="fade-in"] {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.8s forwards;
}
[data-animate="slide-up"] {
    opacity: 0;
    transform: translateY(60px);
    animation: slideUpSection 0.8s forwards;
}
@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes slideUpSection {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Animated Icon for Active Tab */
.tab-btn.active i[data-feather] {
    animation: iconPulse 1.2s infinite alternate;
    color: var(--primary-color);
}
@keyframes iconPulse {
    0% { transform: scale(1); color: var(--primary-color); }
    100% { transform: scale(1.18); color: #a80013; }
}

/* Responsive Table */
@media (max-width: 600px) {
    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem;
        font-size: 0.93em;
    }
    .cta-section {
        padding: 2.5rem 0.5rem 2rem;
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 2.5rem;
}

.services-section .divider {
    margin: 0 auto 3rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 0, 24, 0.1);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent 40%);
    transition: all 0.4s ease;
}

.card:hover .card-img::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent 60%);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin: 0 0 1rem 0;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.75rem;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.card:hover h3::after {
    width: 70px;
}

.card p {
    margin: 0 0 1.5rem 0;
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

.card .btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Responsive Design for Services */
@media (max-width: 1200px) {
    .cards {
        gap: 2rem;
    }
    
    .card-img {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .services-section {
        padding: 5rem 0;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .card h3 {
        font-size: 1.4rem;
    }
    
    .card p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 4rem 0;
    }
    
    .services-section h2 {
        font-size: 2rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .card {
        max-width: 100%;
        margin: 0;
    }
    
    .card-img {
        height: 240px;
    }
    
    .card-content {
        padding: 1.75rem;
    }
    
    .card h3 {
        font-size: 1.5rem;
    }
    
    .card p {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 3.5rem 0;
    }
    
    .services-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .services-section .divider {
        margin-bottom: 2.5rem;
    }
    
    .cards {
        gap: 1.8rem;
        padding: 0 0.5rem;
    }
    
    .card-img {
        height: 200px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--gray-light);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Footer Logo */
.footer-logo {
    margin-top: 1.5rem;
    max-width: 180px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
}

/* RTL Support */
[dir="rtl"] .footer-logo {
    margin-right: 0;
    margin-left: auto;
}

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

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.contact-info p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.lang-toggle:hover {
    background: var(--gray-light);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-links {
    text-align: right;
}

[dir="rtl"] .nav-links a:after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-column h3:after {
    left: auto;
    right: 0;
}

[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] input[type="text"]::placeholder,
[dir="rtl"] input[type="email"]::placeholder,
[dir="rtl"] input[type="tel"]::placeholder,
[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] #evContactForm input[type="tel"] {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] #evContactForm input[type="tel"]::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

/* RTL Adjustments for Experience Badge */
[dir="rtl"] .experience-badge {
    right: auto;
    left: 30px;
}

[dir="rtl"] .section-subtitle {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .section-subtitle::before {
    left: auto;
    right: 0;
}

/* RTL Adjustments for Cards */
[dir="rtl"] .card h3::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .card .btn {
    align-self: flex-end;
}

/* RTL Adjustments for Services Section */
[dir="rtl"] .services-section h2,
[dir="rtl"] .services-section .divider {
    margin-right: auto;
    margin-left: 0;
}

/* Responsive RTL Adjustments */
@media (max-width: 992px) {
    [dir="rtl"] .experience-badge {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .experience-badge {
        left: 15px;
        right: auto;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .experience-badge {
        left: 12px;
        right: auto;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 82px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0 6rem;
    background-color: #fff;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-start;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.about-text .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0 3rem;
}

.feature-item {
    padding: 1.8rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: scaleY(0);
    transform-origin: top;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 0, 24, 0.1);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: inline-flex;
    background: rgba(212, 0, 24, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.feature-item h4 {
    margin: 0.8rem 0 0.5rem;
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 600;
}

.feature-item p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

/* About Image Container */
.about-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 500px;
    width: 100%;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.45, 0.45, 0.95);
    display: block;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

/* Experience Badge - Static Badge Style */
.experience-badge.static-badge {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 0, 24, 0.1);
    pointer-events: none;
}

/* Experience Badge Number */
.experience-badge .badge-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), #ff3e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Experience Badge Text */
.experience-badge .badge-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

@media (max-width: 1200px) {
    .about-grid {
        gap: 4rem;
    }
    
    .about-section h2 {
        font-size: 2.3rem;
    }
    
    .about-image-container {
        min-height: 450px;
    }
}

@media (max-width: 992px) {
    .about-section {
        padding: 5rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-image-container {
        max-width: 600px;
        margin: 0 auto;
        min-height: 400px;
    }
    
    .experience-badge.static-badge {
        padding: 1.2rem;
        right: 20px;
        bottom: 20px;
    }
    
    .experience-badge .badge-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3.5rem 0;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .about-text .lead {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 1.8rem 0 2.2rem;
    }
    
    .about-image-container {
        min-height: 320px;
        max-height: 400px;
        border-radius: 10px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .about-image {
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    
    .experience-badge.static-badge {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
    }
    
    .experience-badge .badge-number {
        font-size: 2.2rem;
        line-height: 1;
    }
    
    .experience-badge .badge-text {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        padding-left: 1rem;
    }
    
    .about-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .about-text .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-features {
        margin: 1.5rem 0 2rem;
    }
    
    .feature-item {
        padding: 1.2rem 1rem;
    }
    
    .feature-item i {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .about-image-container {
        min-height: 280px;
        max-height: 360px;
        border-radius: 0;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .about-image {
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    
    .experience-badge.static-badge {
        bottom: 15px;
        right: 15px;
        padding: 0.7rem 1rem;
    }
    
    .experience-badge .badge-number {
        font-size: 2rem;
        line-height: 1;
    }
    
    .experience-badge .badge-text {
        font-size: 0.8rem;
        line-height: 1.1;
        letter-spacing: 0.3px;
    }
}

.about-mission {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.about-mission::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d40018' opacity='0.1'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.about-mission h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-mission h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.about-mission p {
    margin: 0;
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-mission p {
    margin: 0;
    color: var(--gray-dark);
    line-height: 1.7;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 450px; /* Fixed height for consistency */
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 30%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 0, 24, 0.1);
}

.about-image:hover .experience-badge {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), #ff3e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.experience-badge .label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-grid {
        gap: 3rem;
    }
    
    .about-section h2 {
        font-size: 2.2rem;
    }
    
    .about-text .lead {
        font-size: 1.1rem;
    }
}

@media (min-width: 993px) {
    .about-grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: flex-start;
        padding: 2rem 0;
    }
    
    .about-content {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }
    
    .about-image-container {
        height: 100%;
        min-height: 500px;
        position: relative;
    }
    
    .about-image {
        height: 100%;
    }
    
    .experience-badge {
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
        order: -1;
    }
    
    .about-section h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        display: block;
        text-align: center;
        padding-left: 0;
    }
    
    .section-subtitle::before {
        display: none;
    }
    
    .about-text .lead {
        text-align: center;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-mission {
        text-align: center;
    }
    
    .about-mission h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .about-text .lead {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 2rem 0;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item i {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .about-mission {
        padding: 1.75rem;
    }
    
    .experience-badge {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .experience-badge .years {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-section h2 {
        font-size: 1.6rem;
    }
    
    .about-text .lead {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-item i {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .about-mission {
        padding: 1.5rem;
    }
    
    .about-mission h3 {
        font-size: 1.2rem;
    }
    
    .about-mission p {
        font-size: 0.95rem;
    }
    
    .experience-badge {
        padding: 0.75rem 1.25rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .experience-badge .years {
        font-size: 1.8rem;
    }
    
    .experience-badge .label {
        font-size: 0.85rem;
    }
}

/* Accessibility Improvements */
.about-section:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.feature-item:focus-within {
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.section-spacing {
    padding: 4rem 1.5rem;
}
@media (max-width: 600px) {
    .section-spacing {
        padding: 2rem 0.5rem;
    }
}

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

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    transform: translateY(150%);
    transition: transform 0.4s ease-in-out;
    border: 1px solid #eee;
    display: none;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cookie-text p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-settings {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cookie-settings h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.cookie-option-text {
    flex: 1;
}

.cookie-option strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.cookie-option span {
    font-size: 0.9rem;
    color: #666;
    display: block;
    line-height: 1.4;
}

.cookie-actions {
    margin-top: 20px;
    text-align: right;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-top: 4px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* RTL Support */
[dir="rtl"] .cookie-consent {
    left: 20px;
    right: auto;
}

[dir="rtl"] .cookie-actions {
    text-align: left;
}

[dir="rtl"] input:checked + .slider:before {
    transform: translateX(-26px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* ===========================================
   ANIMATION STYLES
   =========================================== */

/* Animation Keyframes */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible .section-title::after {
    width: 100%;
}

/* Logo animation */
@keyframes rotateX {
    0% {
        transform: rotateX(0);
    }
    100% {
        transform: rotateX(360deg);
    }
}

/* Add hover effect */
.logo:hover img {
    animation: rotateX 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Logo animation */
.logo img {
    animation: rotate3d 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-play-state: running;
    will-change: transform;
    backface-visibility: visible;
    transform-style: preserve-3d;
    transform-origin: center center;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25));
    perspective: 1000px;
}

@keyframes rotate3d {
    0% { 
        transform: 
            perspective(1000px) 
            rotateY(0deg) 
            rotateX(0deg);
    }
    25% { 
        transform: 
            perspective(1000px) 
            rotateY(45deg) 
            rotateX(10deg);
    }
    50% { 
        transform: 
            perspective(1000px) 
            rotateY(0deg) 
            rotateX(0deg);
    }
    75% { 
        transform: 
            perspective(1000px) 
            rotateY(-45deg) 
            rotateX(-10deg);
    }
    100% { 
        transform: 
            perspective(1000px) 
            rotateY(0deg) 
            rotateX(0deg);
    }
}

/* Tablet styles (768px and below) */
@media (max-width: 991.98px) {
    .logo img {
        height: 50px; /* Slightly larger for tablets */
    }
}

/* Mobile styles (576px and below) */
@media (max-width: 575.98px) {
    .logo img {
        height: 45px; /* Even larger for mobile devices */
    }
}

/* Card Hover Effects */
.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,86,179,0.1) 0%, rgba(0,86,179,0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.card:hover::before {
    opacity: 1;
}

.card-img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

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

.card-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 1.5rem;
}

/* Smooth Image Loading */
.blur-load {
    filter: blur(5px);
    transition: filter 0.5s ease-out;
}

.blur-load.loaded {
    filter: blur(0);
}

/* Button Hover Effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.btn:hover::after {
    transform: scale(25, 25) translate(-50%, -50%);
    opacity: 1;
}

/* Hero Section Animation */
.hero {
    position: relative;
    background: linear-gradient(-45deg, #1a1a1a, #2a2a2a, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientBG 30s ease infinite;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0,86,179,0.15) 0%, transparent 40%);
    animation: pulse 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero h1 {
    animation: textReveal 2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero p {
    animation: textReveal 2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero .btn {
    animation: fadeIn 1.6s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
    opacity: 0;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Staggered Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.stagger-container.visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Individual delays for staggered items */
.stagger-item:nth-child(1) { transition-delay: 0.2s; }
.stagger-item:nth-child(2) { transition-delay: 0.4s; }
.stagger-item:nth-child(3) { transition-delay: 0.6s; }
.stagger-item:nth-child(4) { transition-delay: 0.8s; }
.stagger-item:nth-child(5) { transition-delay: 1s; }

.stagger-item:nth-child(1) { animation-delay: 0.2s; }
.stagger-item:nth-child(2) { animation-delay: 0.4s; }
.stagger-item:nth-child(3) { animation-delay: 0.6s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Logo and Site Title Styles */
.logo {
display: flex;
align-items: center;
text-decoration: none;
gap: 8px; /* Reduced gap between logo and text */
transition: all 0.3s ease;
}

#main-logo {
height: 45px; /* Slightly reduced height */
width: auto;
max-width: 120px; /* Added max-width */
object-fit: contain;
transition: all 0.3s ease;
}

.site-title {
color: #1a2b3c;
font-size: 0.9rem; /* Slightly smaller font */
font-weight: 550;
margin: 0;
line-height: 1.2;
white-space: nowrap;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
font-family: 'Playfair Display', serif;
text-transform: none;
letter-spacing: 0.4px; /* Reduced letter spacing */
background: linear-gradient(135deg, #1a2b3c 0%, #3a4b5c 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 1px 1px rgba(0,0,0,0.05);
position: relative;
padding-left: 10px; /* Reduced left padding */
margin: 0; /* Reset margins */
}

/* Removed the vertical line before the site title */
.site-title::before {
    display: none;
opacity: 0.2; /* More subtle line */
}

/* Header styles */
header {
    padding: 0.8rem 0; /* Slightly reduced padding */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Responsive adjustments */
/* Logo styles - Mobile First Approach - High specificity */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
    33% {
        transform: translateY(-4px) scale(1.03) rotate(0.5deg);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    }
    66% {
        transform: translateY(2px) scale(0.98) rotate(-0.5deg);
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
        filter: drop-shadow(0 0 0 rgba(var(--primary-rgb), 0));
    }
    15% {
        opacity: 1;
        transform: scale(1.05);
    }
    30% {
        transform: scale(0.98);
    }
    45%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
}

@keyframes logoShine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes subtleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(var(--primary-rgb), 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.5));
    }
}

:root {
    --primary-rgb: 0, 86, 179; /* Convert primary color to RGB for rgba() */
}

.logo img#main-logo,
header .logo img#main-logo,
.nav-container .logo img#main-logo {
    height: 50px; /* Reduced height */
    width: auto;
    max-width: 120px; /* Added max-width */
    object-fit: contain;
    margin-right: 8px; /* Reduced space between logo and text */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
    will-change: transform, filter, opacity; /* Optimize for animations */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
    opacity: 0; /* Start hidden for fade-in */
    animation: fadeIn 0.8s ease-out forwards;
}

/* Logo hover effect - enhanced with multiple animations */
.logo:hover img#main-logo,
header .logo:hover img#main-logo,
.nav-container .logo:hover img#main-logo {
    animation: logoFloat 6s ease-in-out infinite, subtleGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Initial load animation */
.loaded .logo img#main-logo {
    opacity: 1;
    animation: logoPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Add a subtle shine effect on hover */
.logo:hover img#main-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: logoShine 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Add a subtle border highlight on hover */
.logo:hover img#main-logo {
    position: relative;
}

.logo:hover img#main-logo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, 
        rgba(var(--primary-rgb), 0.8), 
        rgba(var(--primary-rgb), 0.4), 
        rgba(var(--primary-rgb), 0.8));
    z-index: -1;
    border-radius: 24px;
    animation: borderPulse 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo img#main-logo,
    header .logo img#main-logo,
    .nav-container .logo img#main-logo {
        transition: none;
        animation: none !important;
    }
}

/* Responsive logo sizes with high specificity */
/* Tablet and up */
@media (min-width: 576px) {
    .logo img#main-logo,
    header .logo img#main-logo,
    .nav-container .logo img#main-logo {
        height: 75px !important;
    }
}

/* Small desktops and up */
@media (min-width: 768px) {
    .logo img#main-logo,
    header .logo img#main-logo,
    .nav-container .logo img#main-logo {
        height: 65px !important;
    }
}

/* Medium desktops and up */
@media (min-width: 992px) {
    .logo img#main-logo,
    header .logo img#main-logo,
    .nav-container .logo img#main-logo {
        height: 55px !important;
    }
}

/* Large desktops */
@media (min-width: 1200px) {
    .logo img#main-logo,
    header .logo img#main-logo,
    .nav-container .logo img#main-logo {
        height: 50px !important;
    }
}

/* Site title styles */
.site-title {
    color: #1a2b3c;
    font-size: 0.85rem; /* Reduced from 0.95rem */
    font-weight: 500;   /* Slightly lighter weight */
    margin: 0;
    padding: 0;
    line-height: 1.2;   /* Tighter line height */
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0.4px; /* Reduced letter spacing */
    background: linear-gradient(135deg, #1a2b3c 0%, #3a4b5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    position: relative;
}

/* Arabic site title - Increased size for better readability */
[dir="rtl"] .site-title {
    font-size: 1.3rem; /* Increased from 1.1rem */
    line-height: 1.4; /* Better line height for larger text */
    margin-top: 1px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (min-width: 1400px) {
    [dir="rtl"] .site-title {
        font-size: 1.5rem; /* Even larger on extra wide screens */
    }
}

@media (min-width: 1200px) {
    [dir="rtl"] .site-title {
        font-size: 1.4rem; /* Increased from 1.2rem */
    }
}

@media (min-width: 992px) {
    .site-title {
        font-size: 0.9rem; /* Keep English size */
    }
    [dir="rtl"] .site-title {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
}

@media (max-width: 991px) {
    [dir="rtl"] .site-title {
        font-size: 1.2rem; /* Increased from 1rem */
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 0.8rem;
    }
    [dir="rtl"] .site-title {
        font-size: 1.1rem; /* Increased from 0.95rem */
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 0.75rem;
    }
    [dir="rtl"] .site-title {
        font-size: 1rem; /* Increased from 0.9rem */
    }
}

/* Hide site title on mobile */
@media (max-width: 575.98px) {
    .site-title {
        display: none;
    }
}
