/* public/css/swiftmoto.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    background: #f8fafd;
    color: #0b1f35;
    line-height: 1.5;
}

/* modern, corporate navbar */
.navbar {
    background: white;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 20, 50, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e9edf4;
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-text span {
        font-size: 0.75rem;
    }
}

@media (max-width: 500px) {
    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }
}

/* If using just the logo without text */
@media (max-width: 500px) {
    .logo-icon.large {
        width: 45px;
        height: 45px;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3f5c;
    font-weight: 500;
    transition: color 0.1s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e93f33;
}

.track-btn {
    background: #e93f33;
    color: white !important;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px #e93f33b3;
}

.track-btn i {
    margin-right: 6px;
}

/* HERO SECTION */
.hero {
    padding: 3rem 5% 4rem;
    background: linear-gradient(135deg, #f9fcff 0%, #f0f5fe 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0b1f35;
}

.hero-highlight {
    color: #e93f33;
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #e93f3320;
    border-radius: 10px;
    z-index: -1;
}

.hero-description {
    font-size: 1.2rem;
    color: #3e5470;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.trust-bar {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: #e93f33;
    font-size: 1.2rem;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 10px #00000010;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #0b1f35;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 12px 24px -12px #0b1f35;
}

.btn-primary:hover {
    background: #1f3552;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #0b1f35;
    color: #0b1f35;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #0b1f35;
    color: white;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 40px;
    box-shadow: 0 40px 60px -20px rgba(233, 63, 51, 0.4);
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: white;
    padding: 1rem 2rem;
    border-radius: 60px;
    box-shadow: 0 20px 30px -10px #0000001a;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    border: 1px solid #edf2f9;
}

.floating-badge i {
    color: #e93f33;
    font-size: 2rem;
}

/* Trusted by band */
.trusted-band {
    padding: 2.5rem 5%;
    background: white;
    border-bottom: 1px solid #edf2f9;
    text-align: center;
}

.trusted-band p {
    color: #5f6f8a;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* TRACKING SECTION */
.tracking-panel {
    padding: 4rem 5%;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b1f35;
    margin-bottom: 1rem;
}

.section-header p {
    color: #5f6f8a;
    font-size: 1.1rem;
}

.track-card {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafd;
    border-radius: 80px;
    padding: 1rem 1rem 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px -16px #e93f3340;
    border: 1px solid #e9edf4;
}

.track-card i {
    color: #e93f33;
    font-size: 1.5rem;
}

.track-card input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 1.2rem 0;
    outline: none;
    font-weight: 500;
}

.track-card button {
    background: #e93f33;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 8px 16px -8px #e93f33;
}

.track-result {
    max-width: 700px;
    margin: 2rem auto 0;
    background: white;
    border-radius: 40px;
    padding: 1.5rem;
    border: 1px solid #e93f3320;
    display: none;
}

.track-result.active {
    display: block;
}

.track-result-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.waybill-badge {
    background: #fee9e7;
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
}

.status-badge {
    background: #e1f7e9;
    color: #219653;
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
}

.timeline-mock {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #5f6f8a;
}

/* PRODUCT GRID */
.products {
    padding: 5rem 5%;
    background: #f8fafd;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 36px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 30px -10px #00000008;
    transition: transform 0.2s;
    border: 1px solid #edf2f9;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -15px #e93f3320;
}

.product-icon {
    width: 70px;
    height: 70px;
    background: #fee9e7;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #e93f33;
    margin-bottom: 1.8rem;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #0b1f35;
}

.product-card p {
    color: #5f6f8a;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-link {
    color: #e93f33;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* GLOBAL REACH SECTION */
.global-reach {
    padding: 4rem 5%;
    background: #0b1f35;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.reach-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.reach-content p {
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.country-tag {
    background: #ffffff1a;
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-weight: 500;
    border: 1px solid #ffffff40;
}

.reach-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* testimonial section */
.testimonials {
    padding: 5rem 5%;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #f8fafd;
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid #edf2f9;
}

.testimonial-card i {
    color: #e93f33;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #1f3552;
}

.customer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: #e93f33;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* FAQ */
.faq {
    padding: 4rem 5%;
    background: #f8fafd;
}

.faq-grid {
    max-width: 900px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 30px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border: 1px solid #edf2f9;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: #e93f3340;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-size: 1.1rem;
    color: #0b1f35;
    margin: 0;
}

.faq-icon {
    color: #e93f33;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #5f6f8a;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
}

/* footer */
.footer {
    background: #0b1f35;
    color: white;
    padding: 3rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col p {
    opacity: 0.7;
    margin: 1rem 0;
}

.social i {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

.social i:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ffffff20;
    opacity: 0.6;
}

/* Mobile Navigation - Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #0b1f35;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: #2c3f5c;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #edf2f9;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .track-btn-mobile {
    background: #e93f33;
    color: white !important;
    padding: 1rem;
    border-radius: 40px;
    text-align: center;
    margin-top: 1rem;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

.overlay.active {
    display: block;
}

/* ===== PRELOADER STYLES ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b1f35 0%, #1f3552 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    background: #e93f33;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transform: rotate(-5deg);
    box-shadow: 0 20px 40px -12px #e93f33cc;
    animation: logoPulse 2s infinite;
}

.preloader-logo i {
    font-size: 4rem;
    color: white;
    transform: rotate(5deg);
    animation: motorVibrate 0.5s infinite;
}

.preloader-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.preloader-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #e93f33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Motorcycle Loader */
.motorcycle-loader {
    position: relative;
    width: 300px;
    height: 100px;
    margin: 2rem auto;
}

.motorcycle-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #e93f33;
    z-index: 2;
    animation: moveMotorcycle 2s infinite;
}

.track-line {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.wheel {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333;
    border: 3px solid #e93f33;
    bottom: 5px;
}

.wheel-spin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed #e93f33;
    animation: spin 1s linear infinite;
}

.front-wheel {
    left: 20%;
    animation: wheelBounce 0.5s infinite;
}

.back-wheel {
    right: 20%;
    animation: wheelBounce 0.5s infinite 0.2s;
}

.road-line {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.road-line .line {
    width: 30px;
    height: 4px;
    background: white;
    animation: roadMove 1s linear infinite;
}

.road-line .line:nth-child(2) {
    animation-delay: 0.2s;
}
.road-line .line:nth-child(3) {
    animation-delay: 0.4s;
}
.road-line .line:nth-child(4) {
    animation-delay: 0.6s;
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 2rem auto 1rem;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #e93f33, #ff6b6b);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* Animations */
@keyframes logoPulse {
    0%,
    100% {
        transform: rotate(-5deg) scale(1);
    }
    50% {
        transform: rotate(-5deg) scale(1.05);
    }
}

@keyframes motorVibrate {
    0%,
    100% {
        transform: rotate(5deg);
    }
    25% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(7deg);
    }
}

@keyframes moveMotorcycle {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    25% {
        transform: translateX(-40%) translateY(-5px);
    }
    50% {
        transform: translateX(-50%) translateY(0);
    }
    75% {
        transform: translateX(-60%) translateY(-5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wheelBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes roadMove {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 5%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .trust-bar {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
        justify-content: center;
    }

    /* Preloader responsive */
    .preloader-text h1 {
        font-size: 2rem;
    }
    .preloader-text h2 {
        font-size: 1.4rem;
    }
    .preloader-logo {
        width: 80px;
        height: 80px;
    }
    .preloader-logo i {
        font-size: 2.5rem;
    }
    .motorcycle-loader {
        width: 250px;
    }
}

@media (max-width: 800px) {
    .global-reach {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .country-list {
        justify-content: center;
    }

    .reach-stats {
        justify-content: center;
    }

    .track-card {
        flex-direction: column;
        background: white;
        border-radius: 40px;
        padding: 2rem;
    }

    .track-card button {
        width: 100%;
    }

    .track-card i {
        display: none;
    }
}

@media (max-width: 700px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .reach-content h2 {
        font-size: 2rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image,
.product-card,
.testimonial-card {
    animation: fadeIn 0.8s ease-out;
}
