/* ==========================================================================
   Hero Component Styles - Kobukoerier.nl
   Clean, modern hero section with centered content
   ========================================================================== */

.hero {
    position: relative;
    background-image: url('../../assets/images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Light blue overlay - very transparent to show image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.35) 0%,
        rgba(49, 73, 154, 0.30) 50%,
        rgba(30, 64, 175, 0.32) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Animated glow effect */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    animation: glow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20%, 20%) scale(1.1);
        opacity: 0.8;
    }
}

.hero__container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-5xl) var(--spacing-xl);
    z-index: 1;
}

/* Content Section */
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-2xl);
}

/* Logo Badge */
.hero__logo-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease-out;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__logo-badge:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero__logo-image {
    height: 60px;
    width: auto;
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero__title-line {
    display: block;
}

.hero__title-line--typing {
    min-width: 320px;
}

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 400;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Features List */
.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero__feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero__feature svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.hero__button--primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    border: 2px solid transparent;
}

.hero__button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.5);
}

.hero__button--primary:active {
    transform: translateY(-1px);
}

.hero__button--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero__button--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero__button--secondary:active {
    transform: translateY(-1px);
}

/* Animated Truck */
.hero__truck {
    position: absolute;
    bottom: 4%;
    left: -80px;
    z-index: 2;
    opacity: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    will-change: transform, opacity;
}

.hero__truck--animate {
    animation: truckDrive 6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes truckDrive {
    0% {
        left: -80px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 80px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
    }
    
    .hero__container {
        padding: var(--spacing-4xl) var(--spacing-lg);
    }
    
    .hero__logo-image {
        height: 55px;
    }
    
    .hero__features {
        gap: var(--spacing-sm);
    }
    
    .hero__feature {
        font-size: 0.875rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .hero__cta {
        width: 100%;
        flex-direction: column;
    }
    
    .hero__button {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .hero__truck {
        display: none;
    }
}
