/* --- 1. THEME VARIABLES (Neon Yellow/Black) --- */
:root {
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --primary: #FFEA00;       /* NEON YELLOW */
    --primary-hover: #FFD600;
    --text-white: #FFFFFF;
    --text-black: #000000;
    --text-gray: #B0B0B0;
}

/* --- 2. RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-white); overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* --- 3. VIDEO BACKGROUND (Clearer) --- */
.hero {
    position: relative; width: 100%; height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden; padding-top: 60px;
}
.back-video {
    position: absolute; right: 0; bottom: 0; min-width: 100%; min-height: 100%;
    width: auto; height: auto; z-index: -2; object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* 40% black overlay so video is visible */
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* --- 4. BRANDING & TEXT ANIMATIONS --- */
.hero-content { z-index: 1; max-width: 900px; padding: 0 20px; }
.hero h1 { 
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 900; 
    text-transform: uppercase; animation: slideUp 1s ease-out forwards; opacity: 0; 
}
.yellow-text { color: var(--primary); text-shadow: 0 0 20px rgba(255, 234, 0, 0.4); }

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-3d {
    font-size: 2rem; font-weight: 900; color: var(--primary); 
    text-transform: uppercase; letter-spacing: 2px; text-shadow: 2px 2px 0px #FFFFFF; 
    transition: transform 0.3s;
}
.logo-3d:hover { transform: scale(1.05); }
.logo-sub-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.85rem; font-weight: 700; color: white; }
.logo-sub-text span:last-child { color: var(--primary); }

/* --- 5. NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 5%;
    position: fixed; width: 100%; z-index: 1000; transition: 0.4s ease;
    background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar.scrolled {
    background: #000000; border-bottom: 2px solid var(--primary); padding: 10px 5%;
}
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: white; font-weight: 700; font-size: 1.1rem; transition: 0.3s; text-transform: uppercase; }
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* --- 6. BUTTONS --- */
.btn {
    padding: 15px 40px; border-radius: 5px; text-decoration: none; font-weight: 900; text-transform: uppercase;
    transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; font-size: 1rem;
}
.btn-primary {
    background: var(--primary); color: var(--text-black); box-shadow: 0 0 15px rgba(255, 234, 0, 0.3);
}
.btn-primary:hover {
    background: #FFFFFF; transform: translateY(-3px); box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}
.btn-outline {
    background: transparent; border: 2px solid var(--primary); color: var(--primary); margin-left: 15px;
}
.btn-outline:hover { background: var(--primary); color: black; }

/* --- 7. STATS BAR --- */
.stats-container {
    display: flex; justify-content: space-around; padding: 50px 10%;
    background: var(--primary); color: black; flex-wrap: wrap; gap: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.stat-box { text-align: center; }
.stat-box i { font-size: 2.5rem; color: black; margin-bottom: 10px; }
.stat-box h3 { font-size: 3rem; font-weight: 900; margin: 0; }
.stat-box p { font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }

/* --- 8. DISPATCH INCLUDES SECTION (ACCORDION & SVG TRUCK) --- */
.dispatch-section {
    position: relative;
    /* BG Image with Gradient */
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.7)), url('../static/section-bg.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    padding: 100px 5%; overflow: hidden;
}
.dispatch-container {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 50px;
}
.dispatch-left { flex: 1; min-width: 300px; padding-right: 20px; position: relative; }
.yellow-tick { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.dispatch-left h2 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; color: white; }
.line-left { width: 150px; height: 3px; background: var(--primary); margin-bottom: 30px; }
.dispatch-left p { font-size: 1.1rem; color: #ccc; margin-bottom: 50px; line-height: 1.6; position: relative; z-index: 2; }

/* SVG Truck Style (53ft White Wireframe) */
.truck-graphic {
    position: absolute; bottom: -40px; left: -80px; width: 600px; opacity: 0.15; z-index: -1;
    pointer-events: none; transform: rotate(-2deg);
}
.truck-graphic svg {
    width: 100%; height: auto; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Accordion */
.dispatch-right { flex: 1; min-width: 300px; z-index: 2; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.accordion-header { display: flex; align-items: center; padding: 15px 0; cursor: pointer; transition: 0.3s; }
.accordion-header:hover .title { color: var(--primary); }
.num { font-size: 1.5rem; font-weight: 900; color: var(--primary); margin-right: 20px; }
.title { font-size: 1.3rem; font-weight: 700; color: white; flex-grow: 1; transition: 0.3s; }
.arrow { color: var(--primary); transition: transform 0.3s ease; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding-left: 50px; }
.accordion-content p { color: #ccc; padding-bottom: 20px; font-size: 0.95rem; }
.accordion-item.active .arrow { transform: rotate(180deg); }
.accordion-item.active .title { color: var(--primary); }
.accordion-item.active .accordion-content { max-height: 150px; }

/* --- 9. SERVICES & ANIMATIONS --- */
.section-padding { padding: 100px 10%; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 3rem; margin-bottom: 10px; color: white; text-transform: uppercase; font-weight: 800; }
.line { width: 100px; height: 5px; background: var(--primary); margin: 0 auto; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card-3d {
    background: #111; padding: 40px; border: 1px solid #333; border-radius: 10px;
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Staggered Reveal */
.grid-container .card-3d:nth-child(1) { transition-delay: 0.1s; }
.grid-container .card-3d:nth-child(2) { transition-delay: 0.3s; }
.grid-container .card-3d:nth-child(3) { transition-delay: 0.5s; }

.card-3d:hover { 
    border-color: var(--primary); box-shadow: 0 0 30px rgba(255, 234, 0, 0.15); 
    transform: translateY(-10px) scale(1.02);
}
/* Icon Bounce */
.card-icon { font-size: 3.5rem; color: var(--primary); margin-bottom: 25px; transition: transform 0.3s; }
.card-3d:hover .card-icon { animation: bounce 0.6s ease; color: #fff; }

/* Shine Effect */
.card-3d::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 234, 0, 0.2), transparent);
    transform: skewX(-25deg); transition: 0.5s;
}
.card-3d:hover::before { left: 150%; transition: 0.7s; }

.card-3d h3 { color: white; margin-bottom: 15px; font-size: 1.5rem; font-weight: 800; }
.card-3d p { color: #ccc; line-height: 1.6; }
.read-more { 
    color: var(--primary); text-decoration: none; font-weight: 900; 
    margin-top: 20px; display: inline-block; cursor:pointer; text-transform: uppercase; 
    border-bottom: 2px solid transparent; transition: 0.3s;
}
.read-more:hover { border-bottom: 2px solid var(--primary); letter-spacing: 1px; }

/* --- 10. PRICING, FOOTER & MODAL --- */
.pricing-bg { background: #000; border-top: 1px solid #222; }
.price-card { background: #0a0a0a; padding: 50px 30px; border: 1px solid #222; border-radius: 10px; text-align: center; position: relative; transition: 0.3s; }
.price-card:hover { border-color: white; }
.price-card.featured { border: 3px solid var(--primary); transform: scale(1.05); z-index: 2; background: #000; }
.ribbon { position: absolute; top: 15px; right: -30px; background: var(--primary); color: black; padding: 5px 40px; transform: rotate(45deg); font-weight: 900; font-size: 0.8rem; }
.price-header h1 { font-size: 4rem; margin: 15px 0; color: var(--primary); font-weight: 900; }
.price-card ul { list-style: none; text-align: left; margin: 30px 0; color: #ccc; }
.price-card li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.1rem; }
.price-card li i { color: var(--primary); margin-right: 15px; }

footer { background: #050505; padding: 60px 10%; text-align: center; border-top: 3px solid var(--primary); }
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); }
.modal-content { background: #000; margin: 10vh auto; padding: 40px; border: 2px solid var(--primary); width: 90%; max-width: 500px; border-radius: 10px; text-align: center; animation: slideUp 0.4s ease; }
.modal input, .modal select { width: 100%; padding: 15px; margin: 10px 0; background: #111; border: 1px solid #333; color: white; border-radius: 5px; outline: none; }
.modal input:focus { border-color: var(--primary); background: #000; }
.close-btn { color: #aaa; position: absolute; right: 20px; top: 15px; font-size: 30px; cursor: pointer; }

/* --- 11. KEYFRAME ANIMATIONS --- */
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.pulse-anim { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 234, 0, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 234, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 234, 0, 0); } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDownFade { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUpFade { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 12. MOBILE --- */
.hamburger { display: none; font-size: 2rem; cursor: pointer; color: var(--primary); }
@media (max-width: 900px) { .dispatch-container { flex-direction: column; } .dispatch-left { text-align: center; padding-right: 0; } .line-left { margin: 0 auto 30px auto; } .truck-graphic { width: 350px; left: 50%; transform: translateX(-50%); opacity: 0.1; bottom: 0; } }
@media (max-width: 768px) { .nav-links, .nav-buttons { display: none; } .hamburger { display: block; } .hero h1 { font-size: 2.5rem; } .stats-container { flex-direction: column; } }