@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --aero-blue: #0a2463;
    --aero-sky: #3e92cc;
    --aero-accent: #d32f2f;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    background-color: #f0f4f8;
}

/* --- Animated Moving Background (Global) --- */
.animated-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(8px);
    animation: drift linear infinite;
}

.plane-bg {
    position: absolute;
    top: 20%;
    left: -100px;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230a2463' d='M448 336v-40L288 192V79.2c0-17.7-14.8-32-32.5-32-17.7 0-32.5 14.3-32.5 32V192L64 296v40l160-48v112l-48 48v32l80-16 80 16v-32l-48-48V288l160 48z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    animation: flight-pass 25s linear infinite;
}

.plane-bg:nth-child(2) {
    top: 50%;
    animation-duration: 35s;
    opacity: 0.05;
    width: 60px;
    height: 60px;
    animation-delay: 10s;
}

.plane-bg:nth-child(3) {
    top: 80%;
    animation-duration: 30s;
    opacity: 0.08;
    width: 30px;
    height: 30px;
    animation-delay: 5s;
}


@keyframes drift {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-200px);
    }
}

@keyframes flight-pass {
    0% {
        transform: translateX(-10vw) translateY(0) rotate(90deg);
    }

    25% {
        transform: translateX(25vw) translateY(-5vh) rotate(90deg);
    }

    50% {
        transform: translateX(50vw) translateY(0vh) rotate(90deg);
    }

    75% {
        transform: translateX(75vw) translateY(5vh) rotate(90deg);
    }

    100% {
        transform: translateX(110vw) translateY(0) rotate(90deg);
    }
}

/* --- Hero Section Revamp --- */
.hero-bg {
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.90), rgba(62, 146, 204, 0.7)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-plane-main {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: 650px;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: float-plane 6s ease-in-out infinite;
}

@keyframes float-plane {

    0%,
    100% {
        transform: translateY(-50%) translateY(0px) rotate(1deg);
    }

    50% {
        transform: translateY(-50%) translateY(-25px) rotate(-1deg);
    }
}

/* --- Moving Parcel Animation --- */
.moving-parcel-container {
    position: absolute;
    top: 1.2rem;
    /* Aligned with line */
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 2;
    pointer-events: none;
}

.moving-parcel {
    position: absolute;
    font-size: 24px;
    color: var(--aero-sky);
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: moveParcel 4s linear infinite;
    z-index: 5;
}

@keyframes moveParcel {
    0% {
        left: 5%;
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        left: 90%;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* --- Glassmorphism --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Service Card 3D Hover --- */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(62, 146, 204, 0.25);
    border-color: var(--aero-sky);
}

.service-icon-box {
    transition: all 0.5s ease;
}

.service-card:hover .service-icon-box {
    background-color: var(--aero-sky);
    color: white;
    transform: rotateY(180deg);
}

.service-card:hover .service-icon-box i {
    transform: rotateY(180deg);
    /* Counter rotate icon to keep it facing forward if needed, or let it flip */
}

/* --- Process Timeline Animation --- */
.timeline-step {
    position: relative;
    z-index: 1;
}

.timeline-line-container {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    z-index: 0;
}

.timeline-line-progress {
    height: 100%;
    background: var(--aero-sky);
    width: 0;
    transition: width 1.5s ease-out;
}

.step-circle {
    box-shadow: 0 0 0 8px #fff;
    transition: all 0.5s ease;
}

.step-card:hover .step-circle {
    background-color: var(--aero-sky);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(62, 146, 204, 0.2);
}

/* --- Buttons --- */
.btn-glow-anim {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-glow-anim::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-glow-anim:hover::after {
    left: 100%;
}

/* --- Stats Counter --- */
.stat-number {
    background: -webkit-linear-gradient(#0a2463, #3e92cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Responsive Slide Menu --- */
.slide-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.slide-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.3);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu .close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    color: var(--aero-blue);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide-menu .close-menu:hover {
    transform: rotate(90deg);
}

.mobile-nav-link {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-link:hover {
    background: #f9fafb;
    color: var(--aero-blue);
    padding-left: 40px;
}

.mobile-nav-link.active {
    background: linear-gradient(to right, #f0f7ff, white);
    color: var(--aero-blue);
    border-left: 4px solid var(--aero-sky);
}

/* --- Intl-Tel-Input Styling --- */
.iti {
    width: 100%;
}

#phoneNumber {
    padding-left: 95px !important;
}

.iti__country-list {
    border-radius: 12px !important;
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.1) !important;
    margin-top: 10px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.iti__country {
    border-radius: 8px;
    padding: 8px 12px !important;
    transition: all 0.2s ease;
}

.iti__country:hover {
    background-color: #f3f4f6 !important;
}

.iti__selected-country {
    background-color: transparent !important;
}

.iti__flag-container {
    padding-left: 10px !important;
}

/* --- Form Refinement --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(62, 146, 204, 0.1) !important;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230a2463'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 3rem !important;
    cursor: pointer;
}

textarea {
    resize: none;
}