/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 5%;
    margin-top: 1rem;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.typewriter {
    color: var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
    min-width: 240px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 90%;
}

.search-bar {
    margin-top: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-image {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px var(--shadow-color));
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

/* Brand section styles */
.brand-section {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--background-color);
}

.brand-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.brand-section p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.brand-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.brand-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: white;
    padding: 1rem;
}

.brand-name {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

/* Responsive styles for hero and brand sections */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-text p, .search-bar {
        margin-left: auto;
        margin-right: auto;
    }
    
    .floating-image {
        max-width: 70%;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .brand-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }
    
    .brand-image {
        height: 140px;
    }
    
    .brand-name {
        padding: 1rem;
        font-size: 1.1rem;
    }
}