@import "main.css";

/*=== Landing page ===*/
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 1400px;
    margin: auto;
    border-radius: 20px;
}
.hero-left {
    flex: 1 1 420px;
    min-width: 280px;
    text-align: left;
}
.hero-left h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-green);
    opacity: 0.85;
}
.hero-left p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light-gray);
    margin: 1rem 0 2rem;
    font-weight: 600;
    max-width: 32rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn-dark,
.btn-light {
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    flex: 0 1 auto;
}
.btn-dark {
    background: var(--bg-grad);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}
.btn-light {
    background: var(--primary-green);
    color: var(--bg-dark);
}
.btn-light:hover{
    background: var(--primary-green);
    color: white;
}
.btn-dark:hover{
    color: white;
    border: 1px solid white;
}

/* === Truck & Road === */
.hero-right {
    flex: 1 1 420px;
    min-width: 320px;
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.road-surface {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 46px;
    background: #0a0f0c;
    border-top: 2px solid #1a2e1a;
}
.road-line {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    height: 3px;
    overflow: hidden;
}
.road-line::after {
    content: "";
    position: absolute;
    top: 0; left: 0; height: 100%; width: 400%;
    background: repeating-linear-gradient(
            90deg,
            rgba(120,213,4,0.55) 0px, rgba(120,213,4,0.55) 30px,
            transparent 30px, transparent 68px
    );
    animation: roadScroll 0.85s linear infinite;
}
.road-line.paused::after { animation-play-state: paused; }
@keyframes roadScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-68px); }
}
.road-glow {
    position: absolute;
    bottom: 45px; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(83,141,3,0.2),
            rgba(120,213,4,0.4),
            rgba(83,141,3,0.2),
            transparent
    );
    animation: roadGlowPulse 2s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes roadGlowPulse { from { opacity: .4; } to { opacity: 1; } }

/* Truck */
.truck-scene {
    position: absolute;
    bottom: 46px;
    left: -380px;
}
.truck-bump  {
    animation: truckBump 0.42s ease-in-out infinite alternate;
}
.truck-bump.stopped {
    animation-play-state: paused;
}
@keyframes truckBump {
    from { transform: translateY(0); }
    to   { transform: translateY(-2px); }
}

.truck { position: relative; width: 320px; height: 120px; }

.cargo {
    position: absolute;
    left: 0; top: 0;
    width: 200px; height: 90px;
    background: #0f172a;
    border-radius: 6px 6px 0 0;
    border: 1.5px solid rgba(83,141,3,0.4);
    overflow: hidden;
}
.cargo::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: var(--primary-green);
    border-radius: 6px 6px 0 0;
}
.cargo::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--primary-green);
    opacity: 0.5;
}
.cargo-logo {
    position: absolute;
    top: 14px; left: 18px; right: 18px; bottom: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-e {
    font-size: 28px;
    font-weight: 900;
    font-family: Arial Black, Arial, sans-serif;
    color: var(--secondary-green);
    line-height: 1;
}
.logo-e span { color: #ffffff; }
.logo-sub {
    font-size: 7px;
    font-family: Arial, sans-serif;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.cab-roof {
    position: absolute;
    left: 210px; top: 8px;
    width: 100px; height: 26px;
    background: var(--bg-dark);
    border-radius: 10px 16px 0 0;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-bottom: none;
}
.cab-roof::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--primary-green);
    border-radius: 10px 16px 0 0;
}
.cab-base {
    position: absolute;
    left: 202px; top: 30px;
    width: 118px; height: 60px;
    background: var(--bg-dark);
    border-radius: 4px 0 0 0;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-bottom: none;
}
.windshield {
    position: absolute;
    left: 214px; top: 12px;
    width: 52px; height: 46px;
    background: rgba(120,213,4,0.12);
    border: 1px solid rgba(120,213,4,0.25);
    border-radius: 4px 10px 4px 4px;
}
.windshield::after {
    content: "";
    position: absolute;
    top: 6px; left: 6px;
    width: 5px; height: 22px;
    background: rgba(255,255,255,0.35);
    border-radius: 3px;
    transform: rotate(-8deg);
}
.side-window {
    position: absolute;
    left: 270px; top: 34px;
    width: 24px; height: 22px;
    background: rgba(120,213,4,0.1);
    border: 1px solid rgba(120,213,4,0.2);
    border-radius: 3px;
}
.headlight {
    position: absolute;
    left: 316px; top: 56px;
    width: 6px; height: 10px;
    background: #fffde0;
    border-radius: 2px;
    box-shadow: 0 0 10px 4px rgba(255,253,150,0.4);
}
.grille {
    position: absolute;
    left: 316px; top: 38px;
    width: 5px; height: 16px;
    border-radius: 1px;
    background: repeating-linear-gradient(
            180deg,
            var(--primary-green) 0px, var(--primary-green) 2px,
            #0f172a 2px, #0f172a 4px
    );
}
.bumper {
    position: absolute;
    left: 0; top: 90px;
    width: 320px; height: 10px;
    background: var(--bg-dark);
    border-top: 1.5px solid rgba(83,141,3,0.35);
}
.bumper::after {
    content: "";
    position: absolute;
    right: 0; top: 0;
    width: 120px; height: 100%;
    background: rgba(83,141,3,0.3);
    border-radius: 0 2px 2px 0;
}
.axle-bar {
    position: absolute;
    left: 24px; top: 88px;
    width: 272px; height: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}
.exhaust {
    position: absolute;
    left: 200px; top: -14px;
    width: 8px; height: 26px;
    background: #555;
    border-radius: 3px 3px 0 0;
    border: 1px solid #333;
}

.wheel {
    position: absolute;
    bottom: 0;
    width: 40px; height: 40px;
    background: #111;
    border-radius: 50%;
    border: 5px solid #2a2a2a;
    animation: wheelSpin 0.45s linear infinite;
}
.wheel.stopped { animation-play-state: paused; }
.wheel::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 22px; height: 22px;
    background: #222;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    border: 2px solid #333;
}
.wheel::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: translate(-50%,-50%);
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.wheel-rear  { left: 24px; }
.wheel-mid   { left: 68px; }
.wheel-front { left: 240px; }

/* Packages */
.pkg-group {
    position: absolute;
    bottom: 46px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    pointer-events: none;
}
.pkg-wrap {
    opacity: 0;
    transform: translateY(-24px);
    transition: opacity 0.2s ease, transform 0.38s cubic-bezier(0.34,1.46,0.64,1);
}
.pkg-wrap.dropped {
    opacity: 1;
    transform: translateY(0);
}
.pkg-wrap.fadeout {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.5s ease;
}
.pkg {
    border-radius: 3px;
    position: relative;
    border: 1.5px solid rgba(0,0,0,0.25);
}
.pkg::after {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0; height: 1.5px;
    background: rgba(0,0,0,0.18);
    transform: translateY(-50%);
}
.pkg::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0; width: 1.5px;
    background: rgba(0,0,0,0.15);
    transform: translateX(-50%);
}
.pkg1 { width: 24px; height: 24px; background: #e8b84b; }
.pkg2 { width: 20px; height: 20px; background: #d4763a; }
.pkg3 { width: 28px; height: 20px; background: #e8c96b; }

.slogan-glass {
    margin: 2rem auto;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 1400px;

    color: var(--primary-green);
    font-weight: 700;

    background: var(--bg-grad);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);

    opacity: 0;
    transform: translateY(12px);
    animation: sloganFade 1.2s ease-out forwards;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}
.slogan-main {
    display: block;
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 1rem;
    opacity: 0.8;
}
.slogan-main span {
    color: var(--secondary-green);
    opacity: 1;
}
.slogan-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    color: white;
    margin-top: 0.25rem;
}
.marquee-track {
    display: inline-block;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    opacity: 0.85;
    animation: marqueeMove 12s linear infinite;
}
@keyframes marqueeMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
@keyframes sloganFade {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
.slogan-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 255, 140, 0.18);
}
.features {
    background: var(--bg-grad);
    padding: 4rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light-gray);
    max-width: 1400px;
    margin: 2rem auto 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.features:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 18px rgba(0, 255, 140, 0.15);
}
.features h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--text-white);
}
.features h2 span {
    color: var(--secondary-green);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
    border: 1px solid transparent;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(0,255,140,0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-green);
    box-shadow: 0 12px 35px rgba(0, 255, 140, 0.17);
}
.feature-card i {
    font-size: 2.8rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
    transition: transform 0.35s ease;
}
.feature-card:hover i {
    transform: translateY(-6px);
}
.feature-card h5 {
    color: var(--text-white);
    margin-bottom: 0.75rem;
}
.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-card li {
    margin: 0.4rem 0;
    font-size: clamp(0.9rem, 2.4vw, 1rem);
    opacity: 0.9;
    line-height: 1.5;
    word-break: break-word;
}
.features-grid .feature-card {
    opacity: 0;
    transform: translateY(18px);
    animation: featureFade 0.8s ease forwards;
}
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.25s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.4s; }
@keyframes featureFade {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@media (max-width: 992px) {
    .hero {
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-right { margin-top: 1.5rem; }

    .truck {
        width: min(280px, 60vw);
        animation-duration: 3.2s;
    }
}
@media (max-width: 768px) {
    .hero-left p {
        max-width: 90%;
    }

    .hero-actions {
        justify-content: center;
    }

    .truck { transform: scale(0.85); transform-origin: left bottom; }

    .slogan-glass {
        padding: 2rem 1.5rem;
    }

    .features {
        padding: 3rem 1.5rem;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .hero-left h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .hero-left p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-dark,
    .btn-light {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .truck { transform: scale(0.7); transform-origin: left bottom; }

    .slogan-glass {
        padding: 1.75rem 1.25rem;
    }

    .slogan-main {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
    }

    .feature-card li {
        font-size: 0.95rem;
    }
}