@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;
}
.hero-right {
    flex: 1 1 420px;
    min-width: 320px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.truck {
    width: min(350px, 45vw);
    max-width: 100%;
    animation: truckDrive 4s linear infinite;
    position: relative;
}
@keyframes truckDrive {
    0% { left: -60%; }
    50% { transform: translateY(-4px); }
    100% { left: 120%; }
}
.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 {
        width: min(260px, 65vw);
        animation-duration: 3s;
    }

    .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 {
        width: min(200px, 70vw);
        animation-duration: 2.5s;
    }

    .slogan-glass {
        padding: 1.75rem 1.25rem;
    }

    .slogan-main {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
    }

    .feature-card li {
        font-size: 0.95rem;
    }
}
