/* ====================== RESET & BASE ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(to bottom, #f2f2f2, #e8e8e8);
    color: #333;
    line-height: 1.6;
}
/* ====================== HEADER / NAVBAR ====================== */
.header {
    background: #1A2B4D; /* deep blue ash */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between; /* space between logo and nav */
    align-items: center; /* vertically center everything */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header .logo img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Nav links aligned in a straight line */
.nav {
    display: flex;
    align-items: center;
    gap: 25px; /* equal spacing between links */
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    position: relative;
}

.nav a i {
    margin-right: 6px; /* space between icon and text */
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: #28a745;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #28a745;
}

.nav a:hover::after {
    width: 100%;
}

/* ====================== HERO ====================== */
.hero {
    background: url('https://images.pexels.com/photos/6721907/pexels-photo-6721907.jpeg') center/cover no-repeat;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
.hero h2, .hero .tracking-form {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.tracking-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.tracking-form input {
    padding: 14px;
    width: 300px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}
.tracking-form input:focus {
    box-shadow: 0 0 12px rgba(40,167,69,0.5);
}
.tracking-form button {
    padding: 14px 26px;
    background: linear-gradient(45deg, #28a745, #5cd65c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tracking-form button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ====================== SHIPMENT CARD ====================== */
.shipment-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 20px 25px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.shipment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.shipment-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1b2a47;
}
.shipment-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
}
.shipment-detail p {
    margin: 0;
    font-size: 15px;
    color: #555;
}
.shipment-detail svg.icon {
    width: 22px;
    height: 22px;
}

/* Arrow between origin & destination */
.shipment-detail .arrow {
    display: inline-block;
    margin: 0 6px;
    font-size: 16px;
    transform: translateY(-1px);
}

/* ====================== TIMELINE CARD ====================== */
.timeline-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 15px auto;
    max-width: 500px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.timeline-card:hover {
    transform: translateY(-3px);
}
.timeline-card .icon {
    margin-bottom: 8px;
}
.timeline-card .content h4 {
    font-size: 16px;
    color: #d00;
    margin-bottom: 6px;
}
.timeline-card .content p {
    font-size: 14px;
    color: #555;
    margin: 3px 0;
}
.timeline-card .content small {
    font-size: 12px;
    color: #888;
}

/* ====================== PROGRESS BAR ====================== */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px auto;
    width: 92%;
    max-width: 900px;
    position: relative;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
}
.step .icon {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background: #ccc;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}
.step.active .icon {
    background: linear-gradient(45deg, #28a745, #5cd65c);
    animation: pop 0.6s ease-in-out;
}
@keyframes pop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
.step-text {
    margin-top: 12px;
    font-weight: bold;
    color: #444;
}

/* Connecting line */
.line {
    position: absolute;
    height: 6px;
    background: rgba(200,200,200,0.5);
    top: 30px;
    left: 5%;
    right: 5%;
    z-index: 1;
    border-radius: 3px;
}
.line.active {
    background: linear-gradient(to right, #28a745, #5cd65c);
}

/* ====================== INFO BOX ====================== */
.info-box {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.info-box h2 {
    color: #1b2a47;
    font-size: 22px;
}
.info-box p {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}


/* ====================== FOOTER ====================== */
.footer {
    background: #e5e7e9;
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    position: relative;
}
