/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-top: 85px;
}

@media (min-width: 992px) {
    body {
        padding-top: 85px;
    }
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9)), url('../images/background_image.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hover-elevate {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    border-color: #ffc107 !important;
}

/* Dynamic font family adjustment based on document direction */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.06rem;
}

html[dir="ltr"] body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
    letter-spacing: 0px !important;
}

/* Fix Bootstrap margins for RTL direction */
html[dir="rtl"] .me-1,
html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Container Sizing */
#gallery {
    width: 100%;
    background-color: #000;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide Layout */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-fit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 3s ease-out;
}

.gallery-slide.active .gallery-fit-image {
    transform: scale(1.08);
}

.gallery-caption-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    z-index: 10;
    pointer-events: none;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.6) 100%);
    z-index: 5;
    pointer-events: none;
}

/* --- Elegant Aviation Navbar Hover Effects (English LTR) --- */
html[dir="ltr"] .navbar-nav .nav-link {
    position: relative;
    font-weight: 600 !important;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #2b2b2b !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease, letter-spacing 0.3s ease, padding-left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 0px;
}

html[dir="ltr"] .navbar-nav .nav-link::before {
    content: '✈';
    font-size: 0.8rem;
    color: #0d6efd;
    opacity: 0;
    max-width: 0;
    transform: translateX(-10px) rotate(-15deg) scale(0.8);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: inline-block;
    pointer-events: none;
}

html[dir="ltr"] .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    letter-spacing: 0.5px;
    padding-left: 22px !important;
}

html[dir="ltr"] .navbar-nav .nav-link:hover::before {
    opacity: 1;
    max-width: 25px;
    margin-right: 8px;
    transform: translateX(0) rotate(0deg) scale(1.1);
    filter: drop-shadow(0 2px 6px rgba(13, 110, 253, 0.4));
}

/* --- Elegant Aviation Navbar Hover Effects (Arabic RTL - Plane Appears Before Text on the Right) --- */
html[dir="rtl"] .navbar-nav .nav-link {
    position: relative;
    font-weight: 600 !important;
    font-size: 0.95rem;
    color: #2b2b2b !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease, padding-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 0px;
}

html[dir="rtl"] .navbar-nav .nav-link::before {
    content: '✈';
    font-size: 0.8rem;
    color: #0d6efd;
    opacity: 0;
    max-width: 0;
    transform: translateX(10px) rotate(15deg) scaleX(-1) scale(0.8);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: inline-block;
    pointer-events: none;
}

html[dir="rtl"] .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    padding-right: 22px !important; /* Smooth breathing room for the plane icon on the right */
}

html[dir="rtl"] .navbar-nav .nav-link:hover::before {
    opacity: 1;
    max-width: 25px;
    margin-left: 8px; /* Spacing between plane and Arabic text */
    transform: translateX(0) rotate(0deg) scaleX(-1) scale(1.1);
    filter: drop-shadow(0 2px 6px rgba(13, 110, 253, 0.4));
}

/* Common Runway Underline for Both LTR & RTL */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 0;
}

.navbar-nav .nav-link:hover::after {
    width: 75%;
    opacity: 1;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.6);
}

/* Smooth Zoom Effect for Fleet Card Images on Hover */
.card .position-relative img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card:hover .position-relative img {
    transform: scale(1.08);
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Navbar & White Theme Styling */
.custom-floating-nav {
    top: 15px;
    transition: all 0.3s ease;
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Elegant Social Buttons */
.elegant-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    color: #adb5bd;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.elegant-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.elegant-social-btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.elegant-social-btn:hover {
    color: #ffffff;
    border-color: #007bff;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.45),
                0 0 20px rgba(0, 123, 255, 0.25);
}

.elegant-social-btn:hover::before {
    opacity: 1;
}

.elegant-social-btn:hover i {
    transform: scale(1.15) rotate(6deg);
}

/* WhatsApp Floating Wrapper Container */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-wrapper:hover {
    transform: scale(1.08) translateY(-4px);
}

.whatsapp-float-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.whatsapp-float-wrapper:hover .whatsapp-float-btn {
    background-color: #20ba5a;
}

.whatsapp-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #dc3545;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.whatsapp-label-text {
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

html[dir="rtl"] .whatsapp-float-wrapper {
    right: auto;
    left: 30px;
    flex-direction: row-reverse;
}

html[dir="rtl"] .whatsapp-badge {
    right: auto;
    left: -2px;
}

@media (max-width: 576px) {
    .whatsapp-float-wrapper {
        bottom: 20px;
        right: 15px;
    }

    html[dir="rtl"] .whatsapp-float-wrapper {
        right: auto;
        left: 15px;
    }

    .whatsapp-float-btn {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .whatsapp-label-text {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

.heading-accent-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
/* ==========================================================================
   ULTRA-COMPACT MOBILE NAVBAR PILL (max-width: 991.98px)
   ========================================================================== */
@media (max-width: 991.98px) {
    /* 1. Add side margins so the pill doesn't touch screen edges */
    .custom-floating-nav {
        padding-left: 12px !important;
        padding-right: 12px !important;
        top: 8px !important;
    }

    /* 2. Tighten internal container padding and gaps */
    .custom-floating-nav .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        gap: 6px !important;
    }

    /* 3. Scale down logo size */
    .custom-floating-nav .navbar-brand img {
        height: 28px !important;
    }

    /* 4. Hide or truncate brand text on small screens to save space */
    .custom-floating-nav .navbar-brand span.brand-text {
        font-size: 0.8rem !important;
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 5. Make the Admissions CTA button compact */
    .custom-floating-nav .btn-warning {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    /* 6. Tighten language button & mobile toggler */
    .custom-floating-nav .dropdown button {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .custom-floating-nav .navbar-toggler {
        padding: 0.1rem 0.25rem !important;
    }

    .custom-floating-nav .navbar-toggler-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
}

/* Smooth fade duration */
.gallery-hero-img {
    transition: opacity 0.5s ease-in-out;
}

/* Cursor pointer helper for thumbnails */
.cursor-pointer {
    cursor: pointer;
}

/* Ensure smooth scrolling inside thumbnail container */
.overflow-x-auto {
    scroll-behavior: smooth;
}
