/* --- Basic Setup --- */

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

section {
    padding: 6rem 0;
}

h2 {
    color: #333;
}


/* --- Advanced Navbar --- */

.navbar {
    background: rgba(22, 22, 22, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s ease-in-out;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #1DB954 !important;
}


/* Spotify Green for hover */


/* --- Spotify Hero Section --- */

.spotify-hero {
    height: 100vh;
    background-color: #121212;
    /* Spotify's dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spotify-cover-art video {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Makes it a perfect square */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.spotify-cover-art video:hover {
    transform: scale(1.05);
}

.spotify-track-info h1 {
    letter-spacing: -2px;
    /* A classic Spotify font style */
}


/* The Animated Sound Visualizer */

.spotify-visualizer {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 4px;
    /* Space between bars */
}

.spotify-visualizer span {
    width: 6px;
    background-color: #1DB954;
    /* Spotify Green */
    animation: dance 1.5s infinite ease-in-out;
}


/* Give each bar a different delay and duration for a random look */

.spotify-visualizer span:nth-child(2) {
    animation-delay: -0.2s;
    animation-duration: 1.2s;
}

.spotify-visualizer span:nth-child(3) {
    animation-delay: -0.5s;
    animation-duration: 1.8s;
}

.spotify-visualizer span:nth-child(4) {
    animation-delay: -0.8s;
    animation-duration: 1.4s;
}

.spotify-visualizer span:nth-child(5) {
    animation-delay: -1.1s;
    animation-duration: 1.6s;
}


/* Keyframe animation for the bars */

@keyframes dance {
    0%,
    100% {
        height: 5px;
    }
    50% {
        height: 40px;
    }
}


/* Custom Spotify-style button */

.btn-spotify {
    background-color: #1DB954;
    color: white;
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 30px;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-spotify:hover {
    background-color: #1ed760;
    color: white;
    transform: scale(1.05);
}


/* --- Property Card --- */

.property-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.property-card .card-body {
    padding: 1.5rem;
}

.card-price {
    color: #1ed760;
    font-weight: 700;
}


/* --- Stats Section --- */

.stats-section {
    background: linear-gradient(45deg, #177538, #00ff59);
}

.stats-section h2,
.stats-section p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}


/* --- Timeline Section --- */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #1ed760;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid #1ed760;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -13px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: #1ed760;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}


/* --- Testimonials Carousel --- */

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 2rem auto;
}

.testimonial-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

.testimonial-card .client-name {
    font-weight: 700;
    color: #1ed760;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.testimonial-card .client-location {
    color: #777;
    font-size: 0.9rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

.carousel-indicators .active {
    background-color: #1ed760;
}


/* --- Contact Section --- */

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/* --- Scroll Animation --- */

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}


/* --- Modal Styles --- */

#modalPropertyDetails li {
    padding: 5px 0;
}


/* --- Responsive Adjustments --- */

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-item::after {
        left: 19px;
    }
}