/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 300;
    margin: 2px;
    padding: 2px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory; /* Ensure the body has scroll-snap-type */
    background-image: url(Portfolio-Background.jpg);
    color: rgb(255, 255, 255);
    overflow-y: scroll; /* Always show a vertical scroll bar */
    scroll-behavior: smooth; /* Smooth scrolling for manual scrolls */
}

/* Exclude Navbar and Titles */
.navbar a,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit; /* Ensure the font size for these elements is not affected */
}

/* Specific Content Styling */
.section .content {
    background-color: rgba(0, 0, 0, 0.671); /* Slightly transparent background */
    padding: 20px; /* Add padding inside the box */
    border-radius: 15px; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.342); /* Optional: Add a subtle shadow */
}

/* Specific Content Styling */
.section .content p {
    font-size: 1.5rem; /* Adjust the font size for paragraphs within sections */
}

/* Additional Styling for Other Elements */
.section .content a {
    font-size: 1.5rem; /* Adjust the font size for links within sections */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents unwanted extra scrolling */
}

/* Add scroll-snap-type to sections instead */
.section {
    scroll-snap-align: start; /* Ensure each section snaps to the start */
    height: 100vh; /* Ensure each section takes up the full viewport height */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px 40px;
    background: rgba(31, 31, 31, 0.452);
    z-index: 1000;
}

.navbar .logo {
    width: auto;
    height: 80px;
    display: flex; /* Ensures the logo stays centered */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents the image from stretching */
    border: 2px solid rgb(219, 219, 219);
    margin-right: auto; /* Push the logo to the left */
    margin-left: -40px; /* Adjust as needed */
}

.logo img {
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.7)); /* Light glow */
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0 auto; /* center the links */
    transform: translateX(-120px); /* nudge the links to the left */
}

.navbar ul li {
    margin: 0 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    text-decoration: underline;
}

#about-banner {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevents any content overflow */
    background-color: black; /* Fallback in case the image doesn't load */
}

.full-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the section without distortion */
    object-position: center; /* Centers the image in case it's larger */
}

/* Section Styling */
.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-size: 2rem;
    scroll-snap-align: start; /* Ensure each section snaps to the start */
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

    /* Add the new styles here */
.section {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
    min-height: 100vh; /* Ensures each section takes the full viewport height */
    padding-top: 50px; /* Adjust as needed to create space from the navbar */
}

/* Section Styling */
#bands-brands-broadcasts {
    text-align: center;
    padding: 50px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.grid-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 160px;  /* Set a fixed height */
    min-height: 160px; /* Optional: To ensure it doesn't shrink smaller */
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.grid-item:hover {
    transform: scale(1.05);
}

/* Modal Styling */
.modal {
    display: none; /* Hide the modal by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0); /*Fallback color */
    background-color: rgba(0,0,0,0.8); /* Dark overlay */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fefefe;
    padding: 20px;
    border-radius: 10px;
    width: 80%; /* Could be more or less, depending on screen size */
    text-align: center; /* Center the text */
    color: black;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Add a shadow for better visibility */
}

@media (max-width: 600px) {
    .modal-content {
        width: 80%; /* Make it slightly wider on small screens */
    }
}

.modal-close {
    position: absolute;
    top: 10px;  /* Adjust this value to move the X closer to the top */
    right: 0%;  /* Adjust this value to move the X closer to the right edge */
    cursor: pointer;
  }  

.section iframe {
    width: 1100px; /* Adjust as needed */
    max-width: 1100px; /* Adjust as needed */
    height: 618.75px; /* Adjust as needed */
    margin: 0 auto; /* Center the iframe */
    display: block; /* Ensure the iframe is a block element */
}

/* Active Section - Animation */
.section.active {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-links a {
    font-size: 0.7em; /* Make the text slightly smaller */
    margin: 10px; /* Add space between the links */
    padding: 10px; /* Add padding inside the box */
    border: 1px solid #fff; /* Add a border */
    border-radius: 5px; /* Add rounded corners */
    text-decoration: none; /* Remove the underline */
    display: inline-block; /* Make the links appear in a row */
    color: rgb(255, 255, 255); /* Use the default text color */
    background-color:rgba(0, 0, 0, 0.699)
}

/* Contact Section Email Link */
#contact .content a[href^="mailto:"] {
    color: #1ab1df; /* Initial color for the email link */
    text-decoration: underline;
    text-decoration: light;
    transition: color 0.3s ease; /* Smooth transition on hover */
}

/* Social Font Awesome Icons */
.social-media a {
    color: #dbdbdb; /* Lighter color */
    transition: color 0.3s ease; /* Smooth transition on hover */
}

/* Target the copyright paragraph */
.copyright {
    font-size: 12px !important; /* Makes the copyright text smaller */
    text-align: center;
    color: #797979 !important; /* Optional: Adjust text color */
    margin: 0; /* Optional: Removes any extra margin */
    padding: 10px 0; /* Optional: Adds some space above and below */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 5px;
    }

    .grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .grid-item {
        height: auto;
        padding: 10px;
    }

    .section {
        padding: 20px;
        font-size: 1.2rem;
    }

    .social-media a {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .navbar a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* General adjustments */
    body {
        font-size: 14px; /* Scale down the base font size */
        padding: 0;
        margin: 0;
    }

    /* Navbar adjustments */
    .navbar {
        position: fixed;
        display: flex;
        flex-direction: column; /* Stack the logo and links vertically */
        align-items: center; /* Center-align the logo and links */
        padding: 10px 0; /* Add padding for spacing */
        width: 100%; /* Ensure the navbar spans the full width */
        box-sizing: border-box; /* Include padding in the width calculation */
    }

    .navbar .logo {
        margin: 0 auto; /* Center the logo */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navbar ul {
        list-style: none;
        display: flex; /* Display links in a row */
        flex-direction: row; /* Ensure links are in a row */
        justify-content: flex-start; /* Align links to the left */
        gap: 5px; /* Add spacing between links */
        padding: 0;
        transform: translateX(-20px);
        width: auto; /* Ensure the links fit within the screen */
        flex-wrap: nowrap; /* Allow wrapping if links don't fit in one row */
    }

    .navbar ul li {
        margin: 0;
        padding: 0;
        flex: 1; /* Allow links to grow and fill space */
        text-align: center; /* Center-align the text within each link */
        display: flex; /* Ensure links behave like buttons */
        justify-content: center; /* Center the text */
    }

    .navbar a {
        text-decoration: none;
        color: white;
        font-size: 1rem;
        padding: 5px 10px; /* Add padding inside links */
        display: inline-block; /* Ensure links behave like buttons */
        text-align: center;
    }

    /* Section adjustments */
    .section {
        padding-top: 50px; /* Add space from the navbar */
        padding: 2px !important; /* Reduce padding for smaller screens */
    }

    #about {
        padding-top: 50px !important; /* Add space from the navbar */
        text-align: center; /* Center-align the text */
    }

    #about h1 {
        font-size: 2rem; /* Scale down heading size */
        margin-bottom: 10px; /* Add space below the heading */
    }

    #about p {
        font-size: 0.9rem !important; /* Scale down paragraph font size */
        line-height: 1.2; /* Adjust line height for better readability */
        margin-bottom: 10px !important; /* Add space between paragraphs */
    }

    #portfolio {
        padding: 5px; /* Reduce padding for smaller screens */
    }

    #bands-brands-broadcasts {
        padding-top: 30px !important;
        padding: 5px; /* Reduce padding for smaller screens */
    }

    #contact {
        padding: 5px; /* Reduce padding for smaller screens */
        font-size: 0.8rem !important; /* Scale down font size */
        text-align: center; /* Center-align the text */
        margin-bottom: 50px !important; /* Increase space between sections */
        padding: 60px 10px !important; /* Adjust padding for smaller screens */
    }

    #contact h1 {
        font-size: 1.2rem; /* Scale down heading size */
        margin-bottom: 10px; /* Add space below the heading */
    }

    #contact p {
        font-size: 1rem !important; /* Scale down paragraph font size */
        line-height: 1.2; /* Adjust line height for better readability */
        margin-bottom: 10px !important; /* Add space between paragraphs */
    }

    /* Grid adjustments */
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Responsive grid */
        gap: 10px;
        justify-content: center;
        align-items: center;
        max-width: 100%; /* Ensure the grid fits within the screen */
    }

    .grid-item {
        aspect-ratio: 1; /* Maintain a square aspect ratio */
        text-align: center;
        padding: 5px; /* Reduce padding for smaller screens */
        height: auto; /* Allow height to adjust based on content */
        min-height: 80px; /* Set a minimum height */
        max-height: 80px; /* Set a maximum height */
    }

    .grid-item img {
        max-width: 100%; /* Ensure images fit within the grid items */
        height: auto; /* Maintain aspect ratio */
        margin: 0 auto; /* Center the images */
        display: block; /* Ensure images are block elements */
    }

    /* Social media links */
    .social-media a {
        font-size: 1.2rem; /* Adjust icon size */
    }

    .section {
        margin-bottom: 150px !important; /* Increase space between sections */
        padding: 60px 10px !important; /* Adjust padding for smaller screens */
    }

    iframe {
        width: 100% !important; /* Allow width to adjust based on content */
        height: 56.25vw !important; /* Maintain aspect ratio */
        max-width: 100% !important; /* Ensure videos fit smaller screens */
        margin: 0 auto; /* Center the iframe */
        display: block; /* Ensure the iframe is a block element */
        }
    }

@media (max-width: 768px) {
    #about {
        padding: 12px 5px; /* Reduce padding for smaller screens */
        text-align: center; /* Center-align the text for better readability */
    }

    #about h1 {
        font-size: 1.5rem; /* Scale down the heading size */
        margin-bottom: 5px; /* Add space below the heading */
    }

    #about p {
        font-size: 1rem; /* Reduce paragraph font size */
        line-height: 1.2; /* Adjust line height for better readability */
        margin-bottom: 5px; /* Add space between paragraphs */
    }
}