/* Hero section */
#hero {
    background: #f5f5f5;
    padding: 4rem;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-row {
    display: flex;
    gap: 1rem;
}

.hero-item {
    flex: 1;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    
}

/* Larger item in first row */
.hero-item-large {
    flex: 2;
}

.hero-item-small {
    flex: 0.7;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title box in hero grid */
.hero-title {
    background: #EE7B86;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
}

.hero-title h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: normal;
}

.hero-title p {
    font-size: 1rem;
    color: white;
    max-width: 100%;
}

/* Hero image slide-in animations */
@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
        object-position: right center;
    }
    to {
        transform: translateX(0);
        object-position: center center;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
        object-position: left center;
    }
    to {
        transform: translateX(0);
        object-position: center center;
    }
}

.hero-slide-left img {
    animation: slideFromLeft 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-slide-right img {
    animation: slideFromRight 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* mobile styles */
@media (max-width: 768px) {
    #hero {
        padding: 5rem 1rem 2rem 1rem;
    }

    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title h1 {
        font-size: 1.5rem;
    }

    .hero-title p {
        font-size: 0.9rem;
    }

    .hero-item{
        aspect-ratio: 1;
    }
   
}