:root {
    --primary-text-color: #0d122c;
    --secondary-text-color: #6a7c93;

    /* --- BLUE THEME COLORS --- */
    --accent-color: #635bff;
    --highlight-yellow: #FFD700;

    --hero-bg-gradient: radial-gradient(circle at 50% 50%, #111425 0%, #02050e 100%);

    --button-bg: #635bff;
    --button-text: #ffffff;
    --background-gray: #f7f9fc;
    --card-light: #ffffff;
}

/* =========================================
   SMART NAVBAR
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background: rgba(2, 5, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    color: var(--highlight-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--highlight-yellow);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.fw-bold {
    font-weight: 700;
}

.container-fluid {
    width: 100%;
}

/* =========================================
           SMART NAVBAR
           ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background: rgba(2, 5, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    color: var(--highlight-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--highlight-yellow);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================================
           SERVICES SECTION
           ========================================= */
.services-section {
    background-color: var(--background-gray);
    padding: 100px 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-text-color);
}

.section-subtext {
    font-size: 1.15rem;
    color: var(--secondary-text-color);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.ai-feature-card {
    background: var(--card-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s;
}

.ai-feature-card:hover {
    transform: translateY(-5px);
}

.ai-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-text-color);
}

.ai-feature-card p {
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* --- GENERAL SECTIONS --- */
.about-section {
    background-color: var(--card-light);
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- UPDATED ABOUT IMAGE CSS --- */
.about-image {
    flex: 1;
    height: 400px;
    /* Fixed height for the card */
    border-radius: 20px;
    overflow: hidden;
    /* Ensures image doesn't bleed out of corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Shadow applied to container */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the container perfectly */
    border-radius: 0;
    /* Radius handled by container */
    box-shadow: none;
    /* Shadow handled by container */
}


.courier-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f8f9fa;
    overflow: hidden;
}

.courier-header {
    margin-bottom: 3rem;
    text-align: center;
}

.courier-main-title {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary-text-color, #0d122c);
}

/* --- SCROLLING LOGIC --- */
.logo-row {
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    overflow: hidden;
    /* Hides the scrollbar */
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Space between boxes */
    width: max-content;
    /* Forces track to be as wide as content, preventing wrapping */
    will-change: transform;
    /* Optimizes animation performance */
}

.logo-row {
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* --- BOX STYLING --- */
.logo-box {
    background-color: #000000;
    /* Black Box */
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-width: 100px;
}

/* --- ICON STYLING (The <i> tag) --- */
.logo-box i {
    font-size: 40px;
    /* Icon Size */
    color: #ffffff;
    /* Icon Color (White) */
    display: block;
    line-height: 1;
}

/* --- ANIMATIONS --- */
.logo-track.ltr {
    animation: scroll-left 40s linear infinite;
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.logo-track.rtl {
    animation: scroll-right 40s linear infinite;
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

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

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

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

    100% {
        transform: translateX(0);
    }
}

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

/* --- SERVICES SECTION UPDATED CSS --- */

.services-section {
    background-color: var(--background-gray);
    padding: 100px 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-text-color);
}

.section-subtext {
    font-size: 1.15rem;
    color: var(--secondary-text-color);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

/* UPDATED CARD STYLING */
.ai-feature-card {
    background: var(--card-light);
    /* Removed padding: 30px; -> Padding is now in .card-content */
    padding: 0;
    border-radius: 12px;
    /* Slightly rounder */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    /* Ensures image stays within rounded corners */
}

.ai-feature-card:hover {
    transform: translateY(-10px);
    /* Slightly higher lift */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* NEW IMAGE WRAPPER & HOVER EFFECT */
.card-img-wrapper {
    height: 220px;
    /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills space perfectly */
    object-position: center;
    transition: transform 0.5s ease-in-out;
    /* Smooth zoom effect */
}

/* The "Cool" Zoom on Hover */
.ai-feature-card:hover .card-img-wrapper img {
    transform: scale(1.1);
    /* Slight zoom in */
}

/* NEW CONTENT WRAPPER FOR PADDING */
.card-content {
    padding: 30px;
}

.ai-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-text-color);
    margin-top: 0;
    /* Reset margin since it's now inside the content wrapper */
}

.ai-feature-card p {
    color: var(--secondary-text-color);
    line-height: 1.6;
    margin-bottom: 0;
}


.faq-modern-section {
    background-color: var(--card-light);
    padding: 80px 0;
}

.faq-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.faq-modern-left-col {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.faq-modern-pre-headline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
}

.faq-modern-left-col h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.faq-modern-subtext {
    font-size: 1.15rem;
    color: var(--secondary-text-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.faq-modern-illustration-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-modern-right-col {
    flex: 1;
    max-width: 50%;
}

.faq-modern-accordion {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.faq-modern-item {
    border-bottom: 1px solid #e0e6ed;
}

.faq-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--card-light);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-text-color);
    transition: background-color 0.3s;
}

.faq-modern-header:hover:not(.active) {
    background-color: var(--background-gray);
}

.faq-modern-header.active {
    background-color: var(--accent-color);
    color: var(--card-light);
}

.faq-modern-header.active i {
    color: var(--card-light);
    transform: rotate(45deg);
}

.faq-modern-header i {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    transition: 0.3s;
}

.faq-modern-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: var(--background-gray);
}

.faq-modern-body-inner {
    padding: 15px 25px 20px;
}

.faq-modern-body-inner p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* =========================================
           CONTACT SECTION
           ========================================= */
.contact-section {
    background: #0a0e27;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 150px;
}

.contact-section::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #a39dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details-list {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-details-list i {
    width: 40px;
    height: 40px;
    background: rgba(99, 91, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 15px;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
}

.contact-form .submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form .submit-btn:hover {
    background: #4b41d9;
    transform: translateY(-2px);
}

/* =========================================
           MODERN FOOTER
           ========================================= */
.footer-wrapper {
    background: #02030a;
    color: #ffffff;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-top: 0px;
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.newsletter-box {
    position: relative;
    margin-top: 15px;
}

.newsletter-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-btn:hover {
    background: #fff;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

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

/* Mobile */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 40px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-left h1 {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .simple-globe-container {
        width: 300px;
        height: 300px;
        top: 25%;
        right: 50%;
        transform: translateX(50%);
        opacity: 0.5;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details-list li {
        justify-content: center;
    }

    .form-row-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .courier-main-title,
    .ai-section h2,
    .testimonial-section h2,
    .faq-modern-left-col h2 {
        font-size: 2rem;
    }

    .faq-modern-container {
        flex-direction: column;
    }

    .faq-modern-left-col,
    .faq-modern-right-col {
        max-width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}