/* CSS Variables & Theme Tokens */
:root {
    --primary-color: #f21010;
    --primary-hover: #d10e0e;
    --secondary-color: #005aff;
    --secondary-hover: #004bd6;
    --dark-blue: #00022A;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #eaeaea;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 16px; /* Increased for app-like feel */
    --font-main: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

body.app-layout {
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape for app feel */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--white);
    color: var(--dark-blue);
}

.btn-light:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    font-size: 0.875rem;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.divider {
    color: rgba(255,255,255,0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background-color: var(--white);
}

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-blue);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background-image: url('images/motorbike_delivery.png');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 2, 42, 0.9) 0%, rgba(0, 2, 42, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-content .subtitle {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(242, 16, 16, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(242, 16, 16, 0.3);
}

.hero-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Features */
.features {
    padding: 60px 0;
    background-color: var(--white);
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 90, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary-color);
    font-size: 2.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background-color: var(--secondary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Services Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-muted);
}

.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--dark-blue);
    gap: 10px;
}

/* Who We Serve Section */
.who-we-serve {
    background-color: var(--white);
    padding: 80px 0;
}

.serve-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (min-width: 1024px) {
    .serve-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.serve-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.serve-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.serve-img {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.serve-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.serve-card:hover .serve-img img {
    transform: scale(1.1);
}

.serve-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
}

.serve-icon {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-color);
}

.serve-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--dark-blue);
    padding-right: 20px; /* Space for icon overlap */
}

.serve-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

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

.footer .logo-text h1 {
    color: var(--white);
}

.footer .logo-text p {
    color: rgba(255,255,255,0.5);
}

.footer-desc {
    margin: 20px 0;
    max-width: 300px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

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

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

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

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 2px;
}

.contact-list a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.875rem;
}


/* =========================================
   MOBILE APP STYLES (Bottom Nav & App Layout)
   ========================================= */

/* App Header (Services Page) */
.app-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease-in-out;
}

.hide-header {
    transform: translateY(-100%);
}

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

.app-header .back-btn, .app-header .action-btn {
    font-size: 1.5rem;
    color: var(--dark-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
}

.app-header .page-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--dark-blue);
}

/* App Main Content */
.app-main {
    padding: 20px 0;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card-app {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-img-wrapper {
    position: relative;
    height: 220px;
    flex-shrink: 0;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ideal-for {
    margin-bottom: 20px;
    background: rgba(0, 90, 255, 0.03);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.ideal-for strong {
    color: var(--dark-blue);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.ideal-for ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.ideal-for ul li i {
    color: #10b981; /* Emerald green for checkmarks */
    font-size: 1.1rem;
}

/* Services Intro text */
.services-intro {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.services-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.services-intro p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Bottom Nav Bar */
.bottom-nav {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 2000;
    padding-bottom: env(safe-area-inset-bottom); /* iOS support */
    transition: transform 0.3s ease-in-out;
}

.hide-bottom-nav {
    transform: translateY(150%);
}

.bottom-nav-spacer {
    height: 80px; /* Space so content isn't hidden behind bottom nav */
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
    transition: var(--transition);
}

.bottom-nav .nav-item i {
    font-size: 1.5rem;
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.bottom-nav .floating-action {
    position: relative;
    top: -20px;
}

.bottom-nav .fab {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(242, 16, 16, 0.4);
    margin-bottom: 5px;
    transition: var(--transition);
}

.bottom-nav .floating-action:hover .fab {
    transform: translateY(-5px);
}

/* Responsive Design Overrides */
@media (max-width: 992px) {
    .features-grid, .services-grid, .serve-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Header (only visible on phones) */
.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    /* Show mobile header, hide desktop nav */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: var(--primary-color);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2100;
        transition: transform 0.3s ease-in-out;
    }

    .mobile-header .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-header .logo i {
        font-size: 2rem;
        color: var(--white);
    }

    .mobile-header .logo-text h1 {
        font-size: 1.15rem;
        margin: 0;
        color: var(--white);
    }

    .mobile-header .logo-text p {
        font-size: 0.7rem;
        margin: 0;
        color: rgba(255,255,255,0.8);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }

    .mobile-header .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.15);
        border: none;
        color: var(--white);
        font-size: 1.6rem;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-header .mobile-toggle:hover {
        background: rgba(255,255,255,0.25);
    }

    /* Hide desktop elements */
    .top-bar { display: none; }
    .navbar { display: contents; }
    .navbar .logo, .navbar .nav-actions { display: none; }

    /* Sleek Side Mobile Menu overlay */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
        padding: 90px 30px 40px;
        z-index: 2050;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .nav-links.show {
        display: flex !important;
        animation: slideInRight 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        display: block;
        color: var(--dark-blue);
        font-size: 1.15rem;
        font-weight: 600;
        padding: 14px 20px;
        border-radius: 12px;
        border-left: 4px solid transparent;
        transition: var(--transition);
        background: transparent;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(0, 90, 255, 0.05);
        color: var(--secondary-color);
        border-left-color: var(--secondary-color);
    }

    .nav-actions .btn { display: none; }

    /* Add top padding so content doesn't hide behind fixed mobile header */
    #header { padding-top: 72px; }

    .hero { padding: 80px 0; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }

    .features { margin-top: 0; padding-top: 40px; }
    .features-grid, .services-grid, .serve-grid { grid-template-columns: 1fr; }

    .cta-container { flex-direction: column; text-align: center; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer { padding-bottom: 80px; }

    /* Bottom nav visible on mobile */
    .bottom-nav { display: flex; }

    @keyframes menuFadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }
}

