/* ==========================================================================
   Hero Component Styles - Kobukoerier.nl
   Main hero section with CTA buttons
   ========================================================================== */

.hero {
    position: relative;
    background-image: url('../../assets/images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 64, 175, 0.85) 0%,
        rgba(15, 23, 42, 0.75) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Speed lines effect for courier theme */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: speedPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes speedPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero__container {
    position: relative;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--spacing-5xl) var(--spacing-xl) var(--spacing-4xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    z-index: 1;
}

/* Content Section */
.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    max-width: 650px;
}

/* Animated Truck */
.hero__truck {
    position: absolute;
    bottom: 8%;
    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 4s 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;
    }
}

/* Disable truck animation on mobile to save battery */
@media (max-width: 768px) {
    .hero__truck {
        display: none;
    }
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: white;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero__title-accent {
    color: var(--color-secondary);
    display: block;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* CTA Buttons */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.hero__button--primary {
    background-color: var(--color-secondary);
    color: var(--color-text-primary);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.hero__button--primary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.hero__button--primary:active {
    transform: translateY(0);
}

.hero__button--primary:focus {
    outline: 3px solid var(--color-secondary-light);
    outline-offset: 2px;
}

.hero__button--secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero__button--secondary:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-3px);
    border-color: white;
}

.hero__button--secondary:active {
    transform: translateY(0);
}

.hero__button--secondary:focus {
    outline: 3px solid var(--color-secondary-light);
    outline-offset: 2px;
}

/* Hero Image/Illustration */
.hero__image {
    width: 100%;
    height: 100%;
    display: none; /* Hide on mobile since we have background */
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.hero__image-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.hero__image-placeholder {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative elements in placeholder */
.hero__image-placeholder::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

/* ==========================================================================
   Responsive Adjustments (Base - Enhanced in responsive.css)
   ========================================================================== */

@media (max-width: 768px) {
    .hero__container {
        min-height: auto;
        padding: var(--spacing-3xl) var(--spacing-md);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero__button {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .hero__image-photo {
        max-height: 400px;
    }
    
    .hero__image-placeholder {
        min-height: 300px;
    }
}
