/* ===================================
   Sky Gate International - Modern Enhancements
   Advanced animations and interactions
   =================================== */

/* ===================================
   PRELOADER - Enhanced with Stars, SVG Planes & Flags
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0a1628 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===================================
   TWINKLING STARS BACKGROUND
   =================================== */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ambient glow */
#preloader::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(243, 156, 18, 0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===================================
   SCENE CONTAINER
   =================================== */
.preloader-scene {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   ROTATING COUNTRY FLAGS RING
   =================================== */
.flags-orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: rotateFlags 30s linear infinite;
    z-index: 5;
}

.flag-item {
    position: absolute;
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: flagFadeIn 0.5s ease-out forwards;
}

/* Position flags in a circle */
.flag-item:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.1s;
}

.flag-item:nth-child(2) {
    top: 13%;
    left: 83%;
    transform: translate(-50%, -50%);
    animation-delay: 0.2s;
}

.flag-item:nth-child(3) {
    top: 40%;
    left: 98%;
    transform: translate(-50%, -50%);
    animation-delay: 0.3s;
}

.flag-item:nth-child(4) {
    top: 70%;
    left: 93%;
    transform: translate(-50%, -50%);
    animation-delay: 0.4s;
}

.flag-item:nth-child(5) {
    top: 92%;
    left: 70%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

.flag-item:nth-child(6) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

.flag-item:nth-child(7) {
    top: 92%;
    left: 30%;
    transform: translate(-50%, -50%);
    animation-delay: 0.7s;
}

.flag-item:nth-child(8) {
    top: 70%;
    left: 7%;
    transform: translate(-50%, -50%);
    animation-delay: 0.8s;
}

.flag-item:nth-child(9) {
    top: 40%;
    left: 2%;
    transform: translate(-50%, -50%);
    animation-delay: 0.9s;
}

.flag-item:nth-child(10) {
    top: 13%;
    left: 17%;
    transform: translate(-50%, -50%);
    animation-delay: 1.0s;
}

.flag-item:nth-child(11) {
    top: 5%;
    left: 30%;
    transform: translate(-50%, -50%);
    animation-delay: 1.1s;
}

.flag-item:nth-child(12) {
    top: 5%;
    left: 70%;
    transform: translate(-50%, -50%);
    animation-delay: 1.2s;
}

@keyframes rotateFlags {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes flagFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* ===================================
   WHITE CIRCLE LOGO CONTAINER
   =================================== */
.logo-circle {
    position: relative;
    z-index: 15;
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.7),
        0 0 100px rgba(243, 156, 18, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.3);
    animation: logoBreath 3s ease-in-out infinite;
}

.preloader-logo {
    width: 100px;
    height: auto;
}

@keyframes logoBreath {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(243, 156, 18, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.8), 0 0 120px rgba(243, 156, 18, 0.6);
    }
}

/* ===================================
   SVG AIRPLANE ORBITS
   =================================== */
.airplane-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(243, 156, 18, 0.2);
    z-index: 20;
    opacity: 0;
    animation: orbitFadeIn 0.8s ease-out forwards;
}

/* Staggered entry for orbits */
.orbit-1 {
    animation-delay: 0.3s;
}

.orbit-2 {
    animation-delay: 0.5s;
}

.orbit-3 {
    animation-delay: 0.7s;
}

.orbit-4 {
    animation-delay: 0.9s;
}

@keyframes orbitFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Orbit sizes and animations */
.orbit-1 {
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    animation: orbitFadeIn 0.8s ease-out forwards, rotateOrbit1 6s linear infinite;
    animation-delay: 0.3s, 0.3s;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    animation: orbitFadeIn 0.8s ease-out forwards, rotateOrbit2 8s linear infinite reverse;
    animation-delay: 0.5s, 0.5s;
}

/* 3D Tilted Orbits */
.orbit-3.tilted {
    width: 200px;
    height: 200px;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: orbitFadeIn 0.8s ease-out forwards, rotateOrbit3 7s linear infinite;
    animation-delay: 0.7s, 0.7s;
}

.orbit-4.tilted-reverse {
    width: 270px;
    height: 270px;
    border-style: dotted;
    border-color: rgba(243, 156, 18, 0.15);
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(60deg);
    animation: orbitFadeIn 0.8s ease-out forwards, rotateOrbit4 12s linear infinite reverse;
    animation-delay: 0.9s, 0.9s;
}

@keyframes rotateOrbit1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateOrbit2 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateOrbit3 {
    0% {
        transform: translate(-50%, -50%) rotateX(70deg) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg);
    }
}

@keyframes rotateOrbit4 {
    0% {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(60deg) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(60deg) rotate(360deg);
    }
}

/* ===================================
   SVG AIRPLANE ICONS WITH PARTICLE TRAILS
   =================================== */
.airplane {
    position: absolute;
    display: flex;
    align-items: center;
}

.plane-svg {
    width: 20px;
    height: 20px;
    fill: #f39c12;
    filter: drop-shadow(0 0 8px rgba(243, 156, 18, 0.8));
}

.plane-svg.plane-small {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* Airplane positions */
.airplane-1 {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.airplane-1 .plane-svg {
    transform: rotate(90deg);
}

/* Orbit-2 rotates counter-clockwise, so airplane faces left */
.airplane-2 {
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
}

.airplane-2 .plane-svg {
    transform: rotate(0deg);
}

.airplane-3 {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.airplane-3 .plane-svg {
    transform: rotate(-90deg);
}

/* Orbit-4 rotates counter-clockwise, so airplane faces right */
.airplane-4 {
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
}

.airplane-4 .plane-svg {
    transform: rotate(180deg);
}

/* Particle Trail Effect */
.particle-trail {
    position: absolute;
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.6), rgba(243, 156, 18, 0.2), transparent);
    border-radius: 2px;
    filter: blur(1px);
}

.airplane-1 .particle-trail {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center bottom;
}

.airplane-2 .particle-trail {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.airplane-3 .particle-trail {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center top;
}

.airplane-4 .particle-trail {
    right: 100%;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

/* ===================================
   LOADER BAR & TEXT
   =================================== */
.loader-container {
    width: 200px;
    text-align: center;
    margin-top: 30px;
}

.loader-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loadProgress 2.5s ease-out forwards, shimmerBar 1s linear infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

.loader-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-top: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

/* ===================================
   REDUCED MOTION SUPPORT (Accessibility)
   =================================== */
@media (prefers-reduced-motion: reduce) {

    .airplane-orbit,
    .flags-orbit,
    .logo-circle,
    .star,
    #preloader::before {
        animation: none !important;
    }

    .airplane-orbit {
        opacity: 1;
    }

    .flag-item {
        opacity: 0.8;
        animation: none !important;
    }
}



/* Loader container */
.loader-container {
    width: 200px;
    text-align: center;
    margin-top: 30px;
}

.loader-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loadProgress 2.5s ease-out forwards, shimmerBar 1s linear infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

.loader-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-top: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}


/* ===================================
   LAZY LOADING WITH BLUR-UP
   =================================== */
.lazy-image {
    filter: blur(20px);
    opacity: 0;
    transform: scale(1.1);
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.lazy-image.loaded {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
}

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

    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   INTERACTIVE MAP
   =================================== */
.world-map-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.world-map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.world-map-svg {
    width: 100%;
    height: auto;
}

.country-path {
    fill: #e0e0e0;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-path:hover,
.country-path.active {
    fill: #f39c12;
    filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.4));
    transform: translateY(-2px);
}

.country-path.highlighted {
    fill: #1e3a5f;
}

.map-tooltip {
    position: absolute;
    background: rgba(30, 58, 95, 0.95);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.map-tooltip h5 {
    margin: 0 0 5px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-tooltip p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.85rem;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.map-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ===================================
   TESTIMONIALS CAROUSEL
   =================================== */
.testimonials-section {
    padding: 5rem 0;
    background: #1e3a5f;
    overflow: clip;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

/* CRITICAL: Testimonials mobile fix */
@media (max-width: 768px) {
    .testimonials-section {
        overflow: clip !important;
        max-width: 100vw !important;
        padding: 3rem 0;
    }

    .testimonials-track {
        animation: none !important;
        flex-direction: column !important;
        gap: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        overflow: clip !important;
        padding: 0 15px;
    }

    .testimonial-card {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }

    /* Hide extra testimonials on mobile for cleaner look */
    .testimonial-card:nth-child(n+4) {
        display: none;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(243, 156, 18, 0.5);
}

.testimonial-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-info span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #f39c12;
    line-height: 0;
    display: block;
    margin-bottom: -10px;
    opacity: 0.5;
}

/* ===================================
   PROCESS TIMELINE
   =================================== */
.timeline-section {
    padding: 5rem 0;
    background: #fff;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #f39c12, #e67e22);
    border-radius: 4px;
    transition: height 0.1s ease;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0.3;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    color: #fff;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.timeline-icon i {
    font-size: 1.5rem;
    color: #999;
    transition: color 0.3s ease;
}

.timeline-item.active .timeline-icon i {
    color: #fff;
}

.timeline-content {
    width: calc(50% - 60px);
    padding: 0 2rem;
}

.timeline-content h4 {
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.timeline-step {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

/* ===================================
   MAGNETIC BUTTONS
   =================================== */
.magnetic-btn {
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-btn .btn-inner {
    position: relative;
    z-index: 1;
}

/* ===================================
   GSAP ANIMATION HELPERS
   =================================== */
.reveal-text {
    overflow: hidden;
}

.reveal-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.split-line {
    overflow: hidden;
}

.split-line .line {
    opacity: 0;
    transform: translateY(100%);
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-up.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

/* ===================================
   SPRING COUNTER
   =================================== */
.spring-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===================================
   PARALLAX LAYERS
   =================================== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

/* ===================================
   CUSTOM CURSOR
   =================================== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #f39c12;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.active {
    width: 50px;
    height: 50px;
    background: rgba(243, 156, 18, 0.2);
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #f39c12;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 991px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }

    .timeline-icon {
        left: 30px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .testimonial-card {
        flex: 0 0 300px;
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}

@media (max-width: 576px) {

    /* Preloader Mobile */
    .preloader-scene {
        width: 250px;
        height: 250px;
    }

    .logo-circle {
        width: 110px;
        height: 110px;
    }

    .preloader-logo {
        width: 75px;
    }

    /* Smaller orbits on mobile */
    .orbit-1 {
        width: 170px;
        height: 170px;
    }

    .orbit-2 {
        width: 200px;
        height: 200px;
    }

    .orbit-3.tilted {
        width: 150px;
        height: 150px;
    }

    .orbit-4.tilted-reverse {
        width: 220px;
        height: 220px;
    }

    .plane-svg {
        width: 16px;
        height: 16px;
    }

    .plane-svg.plane-small {
        width: 12px;
        height: 12px;
    }

    .loader-container {
        width: 150px;
    }

    .loader-text {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .testimonial-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }

    .map-legend {
        gap: 1rem;
    }
}

/* ===================================
   BUTTON RIPPLE EFFECT
   =================================== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================
   PARTNER LOGO MARQUEE
   =================================== */
.partner-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    overflow: clip;
}

.partner-section .section-title {
    margin-bottom: 40px;
}

.partner-marquee {
    position: relative;
    overflow: clip;
    padding: 20px 0;
}

.partner-marquee::before,
.partner-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partner-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #f8f9fa, transparent);
}

.partner-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, #f8f9fa, transparent);
}

.partner-marquee-track {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.partner-marquee:hover .partner-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 80px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.partner-logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .partner-marquee-track {
        gap: 40px;
    }

    .partner-logo {
        min-width: 120px;
        height: 60px;
        padding: 10px 15px;
    }

    .partner-logo img {
        max-width: 80px;
        max-height: 35px;
    }
}

/* ===================================
   MAGNETIC BUTTONS
   =================================== */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.magnetic-btn:hover {
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

/* ===================================
   MOBILE RESPONSIVENESS FIXES
   Comprehensive overflow prevention
   =================================== */

/* Modern Scrollbar - Premium & Minimalist */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f4f8;
}

::-webkit-scrollbar-thumb {
    background: #c3cedc;
    border-radius: 10px;
    border: 2px solid #f1f4f8;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c3cedc #f1f4f8;
}

/* Global Mobile Overflow Prevention */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Preloader fixes */
    #preloader,
    .preloader-enhanced {
        width: 100vw !important;
        max-width: 100% !important;
        overflow: clip !important;
    }

    .preloader-scene {
        transform: scale(0.8);
    }

    .airplane-orbit {
        display: none !important;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }

    .preloader-logo {
        width: 80px;
    }

    /* Navbar fixes */
    #mainNav {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .navbar-brand {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
    }

    .navbar-brand img {
        height: 60px !important;
    }

    .navbar-collapse {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Hero section fixes */
    .hero-section {
        width: 100%;
        max-width: 100vw;
        overflow: clip;
    }

    .hero-content {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-title-container {
        width: 100%;
        overflow: clip;
    }

    .hero-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-tagline-container {
        width: 100%;
        overflow: clip;
    }

    .hero-subtitle {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .hero-stats {
        overflow: clip;
    }

    .stat-item {
        padding: 8px 5px;
    }

    /* Section containers */
    section {
        overflow-x: clip !important;
        max-width: 100vw !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: clip;
    }

    /* Cards and grid fixes */
    .service-card,
    .course-card,
    .destination-card,
    .destination-item {
        max-width: 100%;
        overflow: clip;
    }

    /* Destinations section */
    .destinations-hero,
    .destinations-grid-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow: clip;
    }

    .destinations-map-bg {
        max-width: 100%;
    }

    .flight-decoration {
        display: none;
    }

    /* Footer fixes */
    .footer {
        overflow: clip;
        max-width: 100vw;
    }

    /* Floating buttons */
    .whatsapp-float,
    .back-to-top {
        right: 15px !important;
    }

    /* Custom cursor - hide on mobile */
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }

    /* Scroll progress */
    .scroll-progress {
        max-width: 100vw;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .stat-number {
        font-size: 1rem !important;
    }

    .stat-label {
        font-size: 0.55rem !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-tagline {
        font-size: 0.65rem !important;
    }

    .section-title {
        font-size: 1.25rem !important;
    }

    .btn-lg {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    .destinations-grid {
        gap: 8px !important;
    }

    .dest-flag {
        width: 40px !important;
        height: 40px !important;
    }

    .dest-name {
        font-size: 0.7rem !important;
    }
}

/* ===================================
   ADDITIONAL OVERFLOW FIXES
   Targeting specific problematic elements
   =================================== */
@media (max-width: 768px) {

    /* Fix Bootstrap columns that extend beyond viewport */
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4,
    [class*="col-"] {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix image wrappers */
    .campus-image-wrapper,
    .about-image-wrapper,
    .success-image-grid {
        max-width: 100% !important;
        overflow: clip !important;
    }

    .campus-image-wrapper img,
    .about-image-wrapper img,
    .success-image-grid img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix testimonial cards */
    .testimonial-card,
    .testimonials-track {
        max-width: 100vw !important;
        overflow: clip !important;
    }

    /* Fix all images */
    img {
        max-width: 100% !important;
        height: auto;
    }

    .img-fluid {
        max-width: 100% !important;
    }

    /* Fix carousel */
    #heroCarousel,
    .carousel-inner,
    .carousel-item {
        max-width: 100vw !important;
        overflow: clip !important;
    }

    /* Fix world map */
    .world-map-container,
    .map-wrapper {
        max-width: 100% !important;
        overflow: clip !important;
    }

    /* Fix row margins that might cause overflow */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    /* Fix any absolute positioned elements */
    .experience-badge {
        right: 10px !important;
        bottom: 10px !important;
    }

    .campus-location-badge {
        left: 10px !important;
        right: auto !important;
    }

    /* Fix contact section */
    .contact-info-card {
        max-width: 100% !important;
    }

    /* Fix course section */
    .courses-section .row {
        flex-wrap: wrap;
    }

    /* Aggressive wrapper fix */
    * {
        max-width: 100vw;
    }
}

/* ===================================
   FAQ SECTION - Premium Accordion (AEO)
   =================================== */
#faq .accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#faq .accordion-item {
    border: none;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

#faq .accordion-item:hover {
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.12);
    transform: translateY(-2px);
}

#faq .accordion-header {
    margin: 0;
}

#faq .accordion-button {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3a5f;
    padding: 20px 28px;
    border: none;
    border-radius: 16px !important;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

#faq .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a5280 100%);
    color: #fff;
    border-radius: 16px 16px 0 0 !important;
}

#faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

#faq .accordion-button:hover {
    color: #1e3a5f;
}

#faq .accordion-button:not(.collapsed):hover {
    color: #fff;
}

#faq .accordion-button::after {
    transition: transform 0.3s ease;
}

#faq .accordion-body {
    padding: 20px 28px 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    background: #fff;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
}

#faq .accordion-body strong {
    color: #1e3a5f;
    font-weight: 600;
}

/* FAQ section on dark backgrounds should have adjusted bg */
#faq.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef2f7 100%) !important;
}

@media (max-width: 768px) {
    #faq .accordion-button {
        font-size: 0.95rem;
        padding: 16px 20px;
    }

    #faq .accordion-body {
        padding: 16px 20px 20px;
        font-size: 0.9rem;
    }
}

/* Hero title fix - ensure h2 hero titles match h1 styling */
.hero-title-container h2.hero-title {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: inherit;
    padding: inherit;
}