/* =======================================================
   BLUEROUTE EXPRESS DELIVERY — FINAL STABLE STYLE SYSTEM
   (Aligned With Your Current File Names & Structure)
   ======================================================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Inter',sans-serif;
}

body{
color:#1e1e1e;
line-height:1.7;
background:#ffffff;
}

/* ============================= */
/* Scroll Progress Bar */
/* ============================= */
#progress-bar{
position:fixed;
top:0;
left:0;
height:4px;
width:0%;
background:linear-gradient(90deg,#4ea8ff,#0077ff);
z-index:9999;
transition:width .2s ease;
}

/* ============================= */
/* Layout */
/* ============================= */
.container{
width:90%;
max-width:1200px;
margin:auto;
}

/* ============================= */
/* Header */
/* ============================= */
header{
background:white;
border-bottom:1px solid #eee;
position:sticky;
top:0;
z-index:1000;
transition:.3s ease;
}

header.scrolled{
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 0;
}

nav a{
margin-left:30px;
text-decoration:none;
color:#333;
font-weight:600;
transition:.3s;
}

nav a:hover{
color:#0077ff;
}

/* ============================= */
/* Hero Section */
/* IMPORTANT: Path matches your file */
/* images/hero.jpg */
/* ============================= */
.hero{
height:520px;
background:
linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
url('../images/hero.jpg') center/cover no-repeat;
display:flex;
align-items:center;
color:white;
}

.hero h1{
font-size:50px;
margin-bottom:15px;
}

.hero p{
font-size:18px;
margin-bottom:25px;
}

/* ============================= */
/* Buttons */
/* ============================= */
.btn{
background:#0077ff;
color:white;
padding:14px 28px;
text-decoration:none;
border-radius:6px;
font-weight:600;
transition:.3s;
display:inline-block;
}

.btn:hover{
background:#005fcc;
transform:translateY(-2px);
}

/* ============================= */
/* Sections */
/* ============================= */
.section{
padding:90px 0;
}

.gray{
background:#f4f7fb;
}

/* ============================= */
/* Stats */
/* ============================= */
.stats{
display:flex;
gap:60px;
margin-top:40px;
}

.stat h3{
font-size:42px;
color:#0077ff;
}

/* ============================= */
/* Grid / Cards */
/* ============================= */
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
transition:.35s ease;
opacity:0;
transform:translateY(30px);
}

.card.show{
opacity:1;
transform:translateY(0);
}

.card:hover{
transform:translateY(-8px);
box-shadow:0 20px 45px rgba(0,0,0,.12);
}

/* ============================= */
/* Card Images */
/* MUST MATCH THESE FILE NAMES */
/* containers.jpg */
/* warehouse.jpg */
/* loadingdock.jpg */
/* ============================= */
.card img{
width:100%;
height:180px;
object-fit:cover;
border-radius:6px;
margin-bottom:15px;
}

/* ============================= */
/* Gallery */
/* distribution.jpg */
/* packages.jpg */
/* storage.jpg */
/* warehouse1.jpg */
/* ============================= */
.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
}

.gallery img{
width:100%;
height:230px;
object-fit:cover;
border-radius:10px;
transition:.4s ease;
opacity:0;
transform:scale(.96);
}

.gallery img.show{
opacity:1;
transform:scale(1);
}

/* ============================= */
/* Tracking UI */
/* ============================= */
.tracking-section{
background:#eef3f9;
text-align:center;
}

.tracking-box{
display:flex;
justify-content:center;
gap:10px;
margin-top:25px;
flex-wrap:wrap;
}

.tracking-box input{
padding:16px;
width:320px;
border:1px solid #ccc;
border-radius:6px;
font-size:16px;
}

.tracking-box button{
background:#0077ff;
color:white;
border:none;
padding:16px 25px;
border-radius:6px;
cursor:pointer;
font-weight:600;
transition:.3s;
}

.tracking-box button:hover{
background:#005fcc;
}

.tracking-result{
margin-top:40px;
text-align:left;
max-width:600px;
margin-left:auto;
margin-right:auto;
}

.status{
padding:20px;
border-left:5px solid #0077ff;
background:white;
margin-bottom:15px;
box-shadow:0 8px 20px rgba(0,0,0,.06);
}

/* ============================= */
/* Trusted By Logos */
/* ============================= */
.trusted{
padding:60px 0;
text-align:center;
background:white;
}

.logo-row{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:40px;
margin-top:25px;
}

.logo-row img{
height:38px;
opacity:.6;
transition:.3s;
}

.logo-row img:hover{
opacity:1;
transform:scale(1.05);
}

/* ============================= */
/* Footer */
/* ============================= */
.footer{
background:#0b1f36;
color:white;
padding:40px 0;
text-align:center;
margin-top:60px;
}

/* ============================= */
/* Responsive */
/* ============================= */
@media(max-width:768px){

.stats{
flex-direction:column;
gap:25px;
}

.hero h1{
font-size:36px;
}

.tracking-box{
flex-direction:column;
align-items:center;
}

.tracking-box input{
width:90%;
}

}

/* ============================= */
/* LEVEL 7 — PROFESSIONAL TRACKING UI */
/* ============================= */

.tracking-loading{
text-align:center;
padding:30px;
}

.spinner{
width:40px;
height:40px;
border:4px solid #e0e0e0;
border-top:4px solid #0077ff;
border-radius:50%;
margin:0 auto 15px;
animation:spin 1s linear infinite;
}

@keyframes spin{
0%{transform:rotate(0deg);}
100%{transform:rotate(360deg);}
}

.tracking-card{
background:white;
padding:30px;
margin-top:30px;
border-radius:10px;
box-shadow:0 15px 35px rgba(0,0,0,.08);
animation:fadeIn .4s ease;
}

@keyframes fadeIn{
from{opacity:0; transform:translateY(20px);}
to{opacity:1; transform:translateY(0);}
}

.tracking-card h3{
margin-bottom:20px;
color:#0077ff;
}

.tracking-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:18px;
}

.tracking-grid div{
background:#f4f7fb;
padding:14px;
border-radius:6px;
}

.tracking-grid strong{
display:block;
font-size:13px;
color:#777;
margin-bottom:4px;
}

.status.error{
background:#ffe9e9;
border-left:5px solid #ff4d4d;
padding:15px;
margin-top:20px;
}

/* ============================= */
/* LEVEL 8 — SHIPMENT TIMELINE */
/* ============================= */

.timeline{
position:relative;
display:flex;
justify-content:space-between;
margin:40px 0 50px;
}

.timeline .line{
position:absolute;
top:18px;
left:0;
width:100%;
height:4px;
background:#e4e8ee;
z-index:1;
}

.step{
position:relative;
z-index:2;
text-align:center;
flex:1;
}

.step::before{
content:"";
width:20px;
height:20px;
background:#cfd6df;
border-radius:50%;
display:block;
margin:0 auto 10px;
transition:.3s;
}

.step.active::before{
background:#0077ff;
transform:scale(1.2);
}

.step span{
font-size:13px;
color:#555;
}

/* ============================= */
/* SCAN HISTORY STYLE */
/* ============================= */

.scan-history{
margin-top:20px;
border-left:3px solid #0077ff;
padding-left:20px;
}

.scan-item{
margin-bottom:15px;
position:relative;
}

.scan-item::before{
content:"";
position:absolute;
left:-11px;
top:5px;
width:10px;
height:10px;
background:#0077ff;
border-radius:50%;
}

/* ============================= */
/* QUOTE FORM */
/* ============================= */

.quote-form{
margin-top:20px;
}

.form-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:15px;
margin-bottom:15px;
}

.quote-form input,
.quote-form textarea{
width:100%;
padding:14px;
border:1px solid #d9e1ea;
border-radius:6px;
font-size:15px;
}

.quote-form input:focus,
.quote-form textarea:focus{
outline:none;
border-color:#0077ff;
box-shadow:0 0 0 2px rgba(0,119,255,.08);
}