:root {
    --brand-blue: #389da8;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/background.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: rgba(82, 101, 140, 0.7);
    background-blend-mode: overlay;
    z-index: -1;
}

.hero-section {
    background-size: cover;
    background-position: center;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-transparent {
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-transparent .text-header-light {
    color: #ffffff;
    transition: color 0.3s ease-in-out;
}

.header-transparent .active-nav-link {
    border-color: #ffffff;
}

.header-white {
    background-color: #F5F5F5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-white .text-header-dark {
    color: #1f2937;
    transition: color 0.3s ease-in-out;
}

.header-white .text-header-dark-hover:hover {
    color: #1f2937;
}

.header-white .active-nav-link {
    border-color: var(--brand-blue);
}

.header-scrolled {
    background-color: #F5F5F5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-scrolled .text-header-dark {
    color: #1f2937;
    transition: color 0.3s ease-in-out;
}

.header-scrolled .text-header-dark-hover:hover {
    color: #1f2937;
}

.header-scrolled .active-nav-link {
    border-color: var(--brand-blue);
}

.header-scrolled .text-header-dark {
    color: #1f2937;
    transition: color 0.3s ease-in-out;
}

.header-scrolled .text-header-dark-hover:hover {
    color: #1f2937;
}

.header-scrolled .active-nav-link {
    border-color: var(--brand-blue);
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .carousel-item {
        width: calc(100% / 3);
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #F5F5F5;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.5rem;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

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

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

.indicator-dot.active {
    background-color: #F5F5F5;
}

.project-description {
    min-height: 4.5rem;
    max-height: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.carousel-item .bg-white {
    transition: transform 0.3s ease-in-out;
}

.carousel-item.active-carousel-item .bg-white {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.slide-in-left-animation {
    animation: slideInLeft 1s ease-out forwards;
}

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

.slide-in-right-animation {
    animation: slideInRight 1s ease-out forwards;
}

.space-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .space-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .space-card:nth-child(odd) .space-image {
        order: 2;
    }
}

.space-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.space-info {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.space-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f7fafc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.amenity-item svg {
    flex-shrink: 0;
}

.amenity-item span {
    font-weight: 600;
    color: #4a5568;
}

.space-menu-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 240px;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .space-menu-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
        gap: 0.5rem;
    }

    .space-menu-item {
        text-align: center;
        padding: 0.5rem 1rem;
    }
}

.space-menu-item {
    background-color: #ffffff;
    color: #1f2937;
    padding: 0.875rem 1.25rem;
    border-radius: 0.375rem;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.space-menu-item:hover {
    background-color: #f9fafb;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.space-menu-item.active {
    background-color: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
    transform: scale(1.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.space-details-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.space-details-content.active {
    display: block;
}

.space-details-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.faq-item {
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: none;
    padding: 1.5rem;
    cursor: pointer;
    color: var(--brand-blue);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.faq-question:hover {
    background-color: var(--brand-blue);
    color: white;
}

.faq-question.faq-question-active {
    background-color: var(--brand-blue);
    color: white;
}

.faq-answer {
    padding: 1.5rem;
    background-color: white;
    color: #374151;
}

.faq-icon {
    transition: transform 0.3s ease-in-out;
}
