:root {
    --primary: #e6ac1a;
    --primary-dark: #ecc94b;
    --dark: #2d3748;
    --light: #f7fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f4f8;
    color: #2d3748;
    overflow-x: hidden;
}

/* =============================================== */
/*                     HEADER                     */
/* =============================================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.hero-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: filter 0.5s ease;
    filter: brightness(0.6);
    /* Imagine mai întunecată inițial */
}

.hero-container:hover .hero-img {
    filter: brightness(1);
    /* Revine la luminozitate normală la hover */
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Overlay mai subtil */
    transition: opacity 0.5s ease;
    opacity: 1;
}

.hero-container:hover .hero-img-overlay {
    opacity: 0;
    /* Overlay dispare la hover */
}

.hero-container h1 {
    font-family: 'Montserrat', sans-serif;
    background-color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        height: 30vh;
    }

    .hero-img {
        filter: brightness(0.5);
        /* Mai întunecat pe mobile */
    }
}

/* Navbar styling */
.navbar {
    background-color: #fbbf24;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: 'Montserrat', sans-serif;
}

.nav-btn {
    background-color: white;
    color: #2d3748;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1);
}

/* Gallery Carousel */
.gallery-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Thumbnail grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 8px;
}

/* Footer styling */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        height: 40vh;
    }

    .carousel {
        height: 350px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Animation for the carousel */
@keyframes slowSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Gallery title */
.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}

.back-button {
    background-color: #e6ac1a;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.back-button:hover {
    background-color: #e6900b;
    transform: translateY(-2px);
    font-family: 'Montserrat', sans-serif;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 30px 0;
}