:root {
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #1e3c72;
    --text-main: #333333;
    --text-dim: #666666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    /* Standardized modern font */
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    /* Clean white as requested */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

header.scrolled {
    padding: 10px 0;
    background: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 85px;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 2px solid #eee;
    padding-right: 15px;
    margin-right: 10px;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e3c72;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.company-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.btn-portal {
    background: white !important;
    color: #1e3c72 !important;
    padding: 12px 35px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-portal:hover {
    background: #f8f9fa !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(30, 60, 114, 0.65), rgba(30, 60, 114, 0.65)),
        url('../img/truck.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 140px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Centralized Hero for Inner Pages */
.hero-data {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 150px 0 80px;
    /* 150px top padding to clear header */
    text-align: center;
}

.hero-data h1 {
    font-size: 3rem;
    font-weight: 800;
}

.hero-data .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Search Bar Refinement */
.search-container {
    background: rgba(255, 255, 255, 0.15);
    /* Slightly more visible glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    max-width: 800px !important;
    width: 100%;
}

.search-container form {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.search-container input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 1.1rem;
    padding: 12px 10px !important;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    /* Fix for some mobile/safari defaults */
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Maximum visibility */
}

.btn-accent {
    background: var(--white);
    color: #1e3c72;
    border-radius: 100px;
    padding: 10px 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .search-container {
        border-radius: 20px;
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .search-container form {
        flex-direction: column;
        gap: 15px;
    }

    .search-container input {
        text-align: center;
        padding: 10px 0 !important;
    }

    .search-container i {
        display: none;
    }

    .btn-accent {
        width: 100%;
        border-radius: 15px;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #fcfdfe;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f0f3f6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: #e0e6ed;
}

.service-card i {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e3c72;
    font-weight: 700;
}

.service-card p {
    color: #667085;
    line-height: 1.7;
}

.stat-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border-bottom: 4px solid #1e3c72;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #1e3c72;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-card p {
    color: #667085;
    margin-bottom: 0;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 991px) {

    header,
    #header {
        background: white !important;
        padding: 10px 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    #header .logo img,
    header .logo img {
        filter: none !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: #1e3c72 !important;
        cursor: pointer;
    }

    .btn-portal {
        display: none !important;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #1e3c72;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-nav ul li a:hover {
    background: #f0f2f5;
}