/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(
        135deg,
        rgba(186, 148, 219, 0.15),
        rgba(142, 113, 167, 0.15)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(18, 18, 18, 0.4) 100%
    );
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: slideUpFade 1s ease 0.2s both;
    perspective: 1000px;
}

.hero-banner-content img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(186, 148, 219, 0.3));
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: filter 0.5s ease;
}

.hero-banner-content img:hover {
    filter: drop-shadow(0 15px 40px rgba(186, 148, 219, 0.5));
}

.hero-banner p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    line-height: 1.8;
    margin-top: 20px;
}

/* Carousel Section */
.carousel-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.carousel-section h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-align: center;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: rgba(142, 113, 167, 0.2);
    border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.carousel-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
    animation: slideUpFade 0.6s ease;
}

.carousel-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(186, 148, 219, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.carousel-item a:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(186, 148, 219, 0.4);
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.carousel-item a:hover img {
    filter: brightness(1.1);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent);
    padding: 20px 15px 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item a:hover .carousel-overlay {
    opacity: 1;
}

/* Carousel Controls */
.carousel-button {
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--primary);
    color: var(--background);
    transform: scale(1.1);
}

.carousel-button:active {
    transform: scale(0.95);
}

/* About Section */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    animation: slideInLeft 1s ease;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    border: 3px solid var(--primary);
    box-shadow: 0 20px 60px rgba(186, 148, 219, 0.3);
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.about-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(186, 148, 219, 0.5);
}

.about-text {
    animation: slideInRight 1s ease;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 180px;
    }

    .carousel-item img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
        margin-bottom: 50px;
    }

    .hero-banner-content img {
        max-width: 250px;
    }

    .hero-banner p {
        font-size: 1rem;
    }

    .carousel-section {
        margin-bottom: 60px;
    }

    .carousel-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .carousel-container {
        gap: 12px;
    }

    .carousel-item {
        flex: 0 0 160px;
    }

    .carousel-item img {
        height: 160px;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .carousel-overlay {
        padding: 15px 12px 10px;
        font-size: 0.85rem;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 50px;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        padding: 0 15px;
        margin-bottom: 50px;
    }

    .carousel-section h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .carousel-container {
        gap: 8px;
    }

    .carousel-item {
        flex: 0 0 130px;
    }

    .carousel-item img {
        height: 130px;
    }

    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }

    .carousel-overlay {
        padding: 12px 10px 8px;
        font-size: 0.75rem;
    }

    .hero-banner {
        height: 280px;
        margin-bottom: 40px;
    }

    .hero-banner-content img {
        max-width: 200px;
    }

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