body {
    font-family: 'Cousine', monospace;
    margin: 0;
    padding: 0;
    background-color: #1a1925; /* Dark Violet Background */
    color: #333;
    padding-top: 60px; /* Add padding to account for the fixed menu */
}

header {
    background-color: #fb2545; /* Menu Background Color */
    text-align: center;
    position: relative; /* Make header relative to position the logo properly */
    width: 100%;
    box-sizing: border-box;
}

nav.menu {
    position: fixed; /* Fix the menu at the top */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000; /* Ensure the menu is above other content */
    height: 60px; /* Set a fixed height for the menu */
    background-color: #fb2545; /* Background color for the fixed menu */
    box-sizing: border-box;
}

nav.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%; /* Ensure the menu fills the height */
    display: flex;
    align-items: center;
    justify-content: center;
}

nav.menu ul li a {
    text-decoration: none;
    color: #1a1925; /* Menu text color */
    font-size: 20px; /* Larger font size */
    font-weight: bold; /* Bold font */
    text-transform: uppercase; /* Capital letters */
    padding: 10px 20px; /* Equal top and bottom padding */
    display: inline-block; /* Ensure padding is applied */
}

nav.menu ul li a.active {
    background-color: white; /* Highlight the selected menu item */
    color: #1a1925; /* Ensure the text color remains the same */
    border-radius: 5px; /* Optional: add rounded corners */
}

.logo {
    position: relative;
    min-height: 600px; /* Minimum height for the logo section */
    background-image: url('img/portada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Ensure the background image does not repeat */
    width: 100vw; /* Full width of the viewport */
    margin-left: calc(-50vw + 50%); /* Center the background image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}

.logo-about {
    background-image: url('img/about_portada.jpg');
} 

.logo-about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* Semi-transparent black overlay */
    z-index: 1;
}

.logo img {
    max-width: 100%;
    height: auto;
    min-height: 300px; /* Minimum height for the logo image */
    filter: invert(1); /* Invert colors to transform black to white */
    z-index: 2; /* Ensure the logo is above the overlay */
}

.logo-text {
    font-size: 12rem;
    color: white;
    z-index: 1;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

section {
    width: 50%; /* Default width for sections */
    margin: 20px 25%; /* Center sections with 25% margin */
}

@media (max-width: 600px) {
    body {
        padding-top: 60px;
        padding-left: 10px;
        padding-right: 10px;
    }

    section {
        width: 100%; /* Full width for sections on mobile devices */
        margin: 10px 0; /* Small vertical margin, no horizontal margin */
        padding: 0; /* Remove any inherited padding */
    }

    .content-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .player-container {
        margin: 10px 0;
        padding: 15px;
        border-radius: 10px;
    }

    .audio-player {
        width: 100%;
    }

    #waveform {
        width: 100%;
        margin: 10px 0;
    }

    .song-list {
        width: 100%;
        margin: 10px 0;
    }

    .song-list ul {
        padding: 0;
        margin: 0;
    }

    .song-list li {
        padding: 8px 12px;
        margin: 5px 0;
    }

    nav.menu ul li a {
        text-decoration: none;
        color: #1a1925;
        font-size: 8px;
        font-weight: bold;
        text-transform: uppercase;
        padding: 8px 1px;
        display: inline-block;
        line-height: 1.2;
    }

    /* Ensure menu items don't wrap on mobile */
    nav.menu ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: space-around;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    nav.menu ul li {
        flex-shrink: 1;
        white-space: nowrap;
        margin: 0;
        flex: 1;
        text-align: center;
    }

    /* Mobile styles for language toggle */
    .language-toggle {
        font-size: 8px !important;
        padding: 8px 1px !important;
        line-height: 1.2 !important;
    }

    /* Mobile styles for logo text */
    .logo-text {
        font-size: 3.5rem !important;
        margin: 20px 0 !important;
        line-height: 1 !important;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        margin: 20px 0;
    }

    .team-member img {
        width: 200px;
        height: 200px;
        margin: 0 auto 15px auto;
    }

    .member-info {
        padding: 0 10px;
    }

    .reel-projects {
        margin: 10px 0;
        padding: 15px;
    }

    .services-carousel {
        padding: 10px;
        margin: 10px 0;
    }

    .service-slide {
        min-width: 280px;
        margin: 0 5px;
    }

    .video-container {
        margin: 10px 0;
        padding: 10px;
    }

    video {
        width: 100%;
        height: auto;
    }

    /* Ensure all sections use full width on mobile */
    #home, #music, #reel, #services, #about, #contact {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 0 !important;
    }

    /* Footer improvements for mobile */
    footer {
        padding: 20px 10px;
        margin: 0;
    }

    .footer-content {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1200px) {
    #about {
        width: 90%; /* Full width for sections on mobile devices */
        margin: 0px; /* No margin on mobile devices */
    }
}

.audio-player {
    text-align: center;
}

.player-container {
    background-color: #3a314657; /* Violet Component Background with transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

.player-controls {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

#play-pause {
    background-color: #fb2545; /* Music player button color */
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 60px; /* Ensure the button is a circle */
    height: 60px; /* Ensure the button is a circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-pause i {
    font-size: 20px;
}

.song-info {
    flex-grow: 1;
    padding-left: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.song-info p {
    margin: 0;
    padding: 0 0 10px 0;
    height: 50%; /* Adjust height as needed */
    width: 100%; /* Ensure the title takes full width for centering */
}

.waveform-container {
    display: flex;
    align-items: center;
    height: 50%; /* Adjust height as needed */
    width: 100%; /* Ensure the waveform container takes full width */
}

.waveform-container button {
    background-color: #fb2545; /* Music player button color */
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-container button i {
    font-size: 20px;
}

#waveform {
    flex-grow: 1;
    margin: 0 10px;
    height: 60px; /* Fixed height for our SVG waveform */
    background-color: #1a1925; /* Waveform background color */
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0; /* Ensure no padding */
    overflow: hidden; /* Prevent any overflow issues */
}

#waveform:hover {
    background-color: #252238; /* Slightly lighter on hover */
}

#waveform svg {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    transition: opacity 0.2s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.song-list {
    width: 100%;
    margin-top: 20px;
    max-height: 150px; /* Limit height to show 4 items (adjust if needed) */
    overflow-y: auto; /* Enable vertical scroll */
    border-top: 1px solid #444;
    padding-top: 10px;
}

.song-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-list ol li {
    padding: 10px 0;
    border-top: 1px solid #444;
    text-align: left;
}

.song-list ol li a {
    text-decoration: none;
    color: white; /* White text for song links */
    display: block;
}

.song-list ol li.selected a {
    background-color: #fb254563; /* Selected track highlight color */
    color: white; /* White text */
}

.song-list ol li:first-child {
    border-top: none;
}

.reel {
    text-align: center;
}

.video-container {
    background-color: #3a314657; /* Violet Component Background with transparency */
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px; /* Add padding to the video */
}

video {
    width: 100%;
    border-radius: 5px; /* Add border radius to video */
    border: none; /* Remove border from video */
    padding: 0; /* Remove padding from video */
    background-color: transparent; /* Remove background color from video */
}

.reel-projects {
    background-color: #3a314657; /* Violet Component Background with transparency */
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    color: white;
}

.project-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-nav-btn {
    background-color: #fb2545; /* Music player button color */
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.project-nav-btn:hover {
    background-color: #d01e3b; /* Darker button color on hover */
}

.project-nav-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.project-info {
    flex-grow: 1;
    padding: 0 20px;
    text-align: center;
}

.project-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: white;
}

.project-description {
    margin: 0 0 15px 0;
    font-size: 1em;
    line-height: 1.4;
    color: #ccc;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #fb2545;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.project-link:hover {
    color: #d01e3b;
}

.project-link i {
    margin-right: 5px;
}

.project-timeline {
    width: 100%;
    padding: 0 10px;
}

.timeline-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: #1a1925;
    border-radius: 4px;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background-color: #fb2545;
    width: 0%;
    transition: width 0.2s;
    border-radius: 4px;
}

.project-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-marker {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    cursor: pointer;
    transform: translateX(-50%);
    transition: background-color 0.3s;
}

.project-marker:hover {
    background-color: #fb2545;
}

.project-marker.active {
    background-color: #fb2545;
    height: 16px;
    top: -4px;
}

.services-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3a314657; /* Violet Component Background with transparency */
    padding: 20px 0; /* 20px padding on top and bottom */
    border-radius: 10px;
}

.carousel-button {
    background-color: transparent; /* Transparent background for carousel buttons */
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.service {
    margin: 10px;
    text-align: center;
    background-color: #fb2545; /* Service Background Color */
    padding: 10px;
    border-radius: 10px;
    color: white;
    flex: 0 0 200px; /* Square dimensions */
    box-sizing: border-box;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* Add this for overlay positioning */
}

.service-image-container {
    width: 120px; /* Force width to 120px */
    height: 105px; /* Force height to 105px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide overflow */
}

.service img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.service p {
    font-size: 20px;
    text-transform: uppercase;
    margin-top: 10px;
    color: #1a1925; /* Service text color */
    font-weight: 100; /* Service text weight */
}

.service .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 
.service:hover .overlay {
    opacity: 1;
}
*/
.service .overlay a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    background-color: #fb2545; /* Button color */
    border-radius: 5px;
}

.service .overlay a:hover {
    background-color: #d01e3b; /* Darker button color on hover */
}

footer {
    background-color: #fb2545; /* Same as header menu background */
    color: #1a1925; /* Text color */
    text-align: center;
    padding: 20px;
    width: 100vw; /* Ensure full width */
    margin-left: calc(-50vw + 50%); /* Center the footer */
    box-sizing: border-box;
    position: relative;
    bottom: 0;
    font-size: 18px; /* Larger font size */
}

.footer-content p {
    margin: 10px 0;
}

.footer-content a {
    color: #1a1925; /* Link color */
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content i {
    margin-right: 10px; /* Add some space between the icon and text */
}

/* For WebKit browsers */
body::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
    height: 8px; /* Height of the scrollbar */
}

body::-webkit-scrollbar-track {
    background: #2c2c2c; /* Track background color */
    border-radius: 10px; /* Rounded corners */
}

body::-webkit-scrollbar-thumb {
    background: #484848; /* Thumb (draggable part) background color */
    border-radius: 10px; /* Rounded corners */
}

body::-webkit-scrollbar-thumb:hover {
    background: #606060; /* Thumb color when hovered */
}

body::-webkit-scrollbar-button {
    display: none; /* Hides the scrollbar buttons */
}

/* For Firefox */
body {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: #484848 #2c2c2c; /* Sets thumb and track colors */
}

/* Optional: To customize scrollbars for specific elements */
.custom-scrollbar {
    overflow-y: auto; /* Ensures the scrollbar is visible */
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #484848;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #484848 #2c2c2c;
}
/* About Us Specific Styles */
#about {
    color: white;
}

.team-member {
    margin: 40px auto;
    display: grid;
    align-items: center;
    justify-content: space-around;
}

.team-member img {
    width: 250px; /* Fixed width for team member photos */
    height: auto;
    border-radius: 50%; /* Circular images for team members */
    margin-right: 20px;
    
}

.member-info {
    /* width: calc(100% - 220px); Adjust width taking image width into account */
    width: 100%;
}

.member-info h2 {
    color: #ffffff; /* White color for headings */
    margin-bottom: 10px;
}

.member-info p {
    text-align: left;
    font-size: 16px;
}

/* Loading Spinner Styles */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Hidden by default */
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Add this to the .player-container to position the spinner correctly */
.player-container {
    position: relative; /* Ensure the spinner is positioned relative to the player */
}

/* Overlay Styles */
.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    display: none; /* Hidden by default */
    z-index: 10; /* Below the spinner but above other elements */
}


.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language toggle in menu - styled like other menu items */
.language-toggle {
    text-decoration: none;
    color: #1a1925; /* Menu text color */
    font-size: 20px; /* Larger font size */
    font-weight: bold; /* Bold font */
    text-transform: uppercase; /* Capital letters */
    padding: 10px 20px; /* Equal top and bottom padding */
    display: inline-block; /* Ensure padding is applied */
    cursor: pointer;
}

.language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.language-switcher button {
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    font-size: 24px;
}

.language-switcher button.active {
    border: 2px solid #fff;
    border-radius: 50%;
}


