/* Main CSS File for Central Express Cargo - Modern & Attractive Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Modern & Trustworthy */
    --primary-dark: #0f172a;
    /* Deep Navy */
    --primary-blue: #2563eb;
    /* Vibrant Blue */
    --secondary-blue: #3b82f6;
    --accent-red: #ef4444;
    /* Alert/Action Red */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 4rem 0;
}

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

.text-primary {
    color: var(--primary-blue);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact-info span {
    margin-left: 20px;
}

/* --- Header --- */
header {
    background: var(--white);
    height: 90px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s;
}

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

/* --- Services Grid --- */
.services-section {
    background-color: var(--white);
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding-bottom: 6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

/* --- About Section --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    line-height: 1;
}

/* --- Tracking Section --- */
.tracking-section {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.tracking-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.tracking-input {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

/* --- Tracking Result Card --- */
.tracking-result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.result-header h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.result-header p {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 60px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 10px;
    transition: 0.3s;
}

.timeline-step.completed .step-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.timeline-step.active .step-icon {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.step-text small {
    display: block;
    font-weight: normal;
    color: #94a3b8;
}

.shipment-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
}

.info-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-item .value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

/* --- Footer --- */
footer {
    background: #0b1120;
    color: #94a3b8;
    padding-top: 4rem;
    border-top: 5px solid var(--primary-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    background: white;
    padding: 8px;
    border-radius: 4px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

.footer-links a:hover {
    color: var(--primary-blue);
}

.copyright {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .tracking-form {
        flex-direction: column;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-info span {
        margin: 0 10px;
    }

    .tracking-timeline {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .tracking-timeline::before {
        display: none;
    }
    .shipment-info-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Hero Slider --- */
.hero-slider { position: relative; height: 80vh; min-height: 600px; color: white; overflow: hidden; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; padding-top: 2rem; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-btns { display: flex; gap: 1rem; margin-top: 2rem; }
.slide-title { font-size: 3.5rem; line-height: 1.1; margin: 1.5rem 0; font-weight: 800; animation: slideUp 0.8s ease-out 0.2s forwards; opacity: 0; transform: translateY(30px); }
.active .slide-title { animation-play-state: running; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.slider-nav button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 10; transition: 0.3s; }
.slider-nav button:hover { background: var(--primary-blue); border-color: var(--primary-blue); }
.prev-slide { left: 20px; }
.next-slide { right: 20px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--white); transform: scale(1.2); }

/* --- Hero Slides Backgrounds --- */
.slide-1 { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../assets/img/service_1.jpg'); }
.slide-2 { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../assets/img/service_2.jpg'); }
.slide-3 { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../assets/img/service_3.jpg'); }
