html,
body {
    min-height: 100dvh; /* Ensure full viewport height */
    min-height: -webkit-fill-available; /* For Safari */
    margin: 0;
    padding: 0; /* Added padding: 0 */
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-y: auto; /* Ensure scroll container is defined */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

* {
    box-sizing: border-box; /* Added box-sizing for consistent box model */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}



/* --- Parallax Effect --- */
.parallax {
    perspective: 1px;
    transform-style: preserve-3d;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100dvh;
    min-height: -webkit-fill-available; /* For Safari */

}

.parallax__layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.parallax__layer--base {
    transform: translateZ(0);
}

.parallax__layer--back {
    transform: translateZ(-1px) scale(2);
}

/* --- Themes --- */
.dark {
    background-color: #111;
    color: var(--dark-text-color);
}
.light {
    background-color: #fff;
    color: var(--light-text-color);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 100vh;
    height: auto; /* Changed from 100% to auto */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start; /* Changed from center to start */
}

/* Apply the background image to the pseudo-element */
#home::before {
    background-image: url('https://placehold.co/1920x1080/000000/FFFFFF?text=Sound+Engineer');
}

#about::before {
    background-image: url('https://placehold.co/1920x1080/FFFFFF/000000?text=About+Me');
}

#projects::before {
    background-image: url('https://placehold.co/1920x1080/222222/FFFFFF?text=My+Projects');
}

#team::before {
    background-image: url('https://placehold.co/1920x1080/EEEEEE/000000?text=Our+Team');
}

#contact::before {
    background-image: url('https://placehold.co/1920x1080/444444/FFFFFF?text=Contact+Me');
}

/* Parallax Section Styles */
.carousel,
.carousel-inner {
    width: 100%;
    height: 100vh; /* Or a fixed height like 600px */
    max-height: 100vh;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* contain or cover based on design */
}

.parallax-title-wrapper {
    margin-bottom: 20px; /* Keep some margin for mobile stacking */
    margin-top: 40px;
    min-width: 100%;
    width: 100%;
    text-align: center; /* Center text for mobile */
}

@media (min-width: 768px) {
    .parallax-title-wrapper {
        text-align: left; /* Align text to left for desktop grid */
        margin-bottom: 0; /* Remove bottom margin in grid */
    }
}

.parallax-content-wrapper {
    min-width: 100%;
    align-items: center;
    #photo {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    line-height : 1.5;
    text-align: center; /* Center text for mobile */
}

@media (min-width: 768px) {
    .parallax-content-wrapper {
    }
}

.parallax-content-wrapper p {
    font-size: 1.25em;
    margin: 0;
    /* max-width: 800px; */
    text-align: center;
    text-transform: uppercase;
}

.parallax.dark .parallax-content-wrapper p {
    color: var(--dark-text-color) !important;
}

.parallax.light .parallax-content-wrapper p {
    color: var(--light-text-color) !important;
}

.parallax-title-wrapper h1 {
    font-size: 4em;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    display: block !important;
    width: 100% !important;
    /* padding: 40px; */
    /* text-decoration: underline; */
    border-radius: 20px;
}

.parallax.dark h2 {
    color: var(--dark-text-color);
}

.parallax.light h2 {
    color: var(--light-text-color);
}
.parallax-wrapper {
  /*text-align: center;
  text-transform: uppercase;
  margin: 20px;
  display: block !important; */
  background-color: rgba(121, 121, 121, 0.274);
  width: 100%;
  padding: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Add this line for Safari support */
}



/* .parallax p {
  font-size: 2em;
  color: white;
  mix-blend-mode: difference;
  text-align: center;
  text-transform: uppercase;
}

.parallax.light p {
  font-size: 5em;
  color: white;
  mix-blend-mode: difference;
  text-align: center;
  text-transform:uppercase;
} */

.parallax-texts-wrapper {
    padding: 20px;
    display: flex; /* Default to flex for mobile-first stacking */
    flex-direction: column; /* Stack vertically by default */
    width: 90%; /* Adjust width as needed */
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center the wrapper */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 1025px) {
    .parallax-texts-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two columns for desktop */
        gap: 40px; /* Space between columns */
    }

    .parallax-title-wrapper,
    .parallax-content-wrapper {
        width: auto; /* Reset width for grid items */
        min-width: auto;
    }
}

.parallax.light .parallax-texts-wrapper {
    /* background-color: rgba(255, 255, 255, 0.3); */
    border-color: rgba(255, 255, 255, 0.5);
}

.parallax.dark .parallax-texts-wrapper {
    /* background-color: rgba(0, 0, 0, 0.3); */
    border-color: rgba(255, 255, 255, 0.2);
}

.parallax-photo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.parallax-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire image is visible */
    object-position: center;
}

/* Theme-specific colors for parallax */
.parallax.dark {
    background-color: var(--dark-section-bg);
    color: var(--dark-text-color);
}

.parallax.light {
    background-color: var(--light-section-bg);
    color: var(--light-text-color);
}

/* Section Content Area (for non-parallax content) */
.section-content-area {
    padding: 2em;
    max-width: 900px;
    margin: 2em auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.section-content-area.dark {
    background: var(--dark-section-bg);
    color: var(--dark-text-color);
}

.section-content-area.light {
    background: var(--light-section-bg);
    color: var(--light-text-color);
}

.section-content-area h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 1em;
    color: inherit; /* Inherit color from parent theme */
    letter-spacing: 1px;
}

.content {
    padding: 50px;
    text-align: center;
}
.content.dark {
    background-color: #1a1a1a;
    color: var(--dark-text-color);
}
.content.light {
    background-color: #f4f4f4;
    color: var(--light-text-color);
}

.content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* --- Parallax Backgrounds --- */
#home {
    background-image: url('https://placehold.co/1920x1080/000000/FFFFFF?text=Sound+Engineer');
}
#about {
    background-image: url('https://placehold.co/1920x1080/FFFFFF/000000?text=About+Me');
}
#projects {
    background-image: url('https://placehold.co/1920x1080/222222/FFFFFF?text=My+Projects');
}
#team {
    background-image: url('https://placehold.co/1920x1080/EEEEEE/000000?text=Our+Team');
}
#contact {
    background-image: url('https://placehold.co/1920x1080/444444/FFFFFF?text=Contact+Me');
}



/* --- Cards --- */
.project-card,
.team-member {
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin: 10px;
}
.project-card:hover,
.team-member:hover {
}

/* Grid Container for 3-in-row and 1-in-row display */
.grid-container {
    display: grid;
    gap: 20px; /* Adjust gap as needed */
    margin: 20px;
}

/* Larger displays: 3 items per row */
@media (min-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium displays: 2 items per row */
@media (min-width: 768px) and (max-width: 991px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smaller displays: 1 item per row */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .parallax {
      min-height: 50vh;
    }
}

/* Dark Theme Cards */
.dark .project-card,
.dark .team-member {
    background: #222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Light Theme Cards */
.light .project-card,
.light .team-member {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card-content {
    padding: 20px;
}
.team-member {
    padding: 20px;
    text-align: center;
}
.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* --- Forms --- */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
input,
textarea,
button {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}
button {
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Dark Theme Form */
.dark input,
.dark textarea {
    background: #33333381;
    color: var(--dark-text-color);
}
.dark button {
    background: #0000008e;
    color: var(--dark-text-color);
}
.dark button:hover {
}

/* Light Theme Form */
.light input,
.light textarea {
    background: #e9e9e97e;
    color: var(--light-text-color);
    border: 1px solid #ccc;
}
.light button {
    background: #ffffff8a;
    color: var(--light-text-color);
}
.light button:hover {
}

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.5s ease;
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Space out items */
    align-items: center; /* Vertically align items */
    padding: 15px 20px; /* Add some horizontal padding */
}

.main-nav .nav-links {
    display: flex; /* Default to flex for desktop */
    gap: 20px; /* Space between links */
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

/* Dark Nav */
.main-nav.dark {
    background: rgba(0, 0, 0, 0.253);
    backdrop-filter: blur(5px);
}
.main-nav.dark a {
    color: var(--dark-text-color);
}
.main-nav.dark a:hover {
    color: var(--dark-text-color);
}

/* Light Nav */
.main-nav.light {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
}
.main-nav.light a {
    color: var(--light-text-color);
}
.main-nav.light a:hover {
    color: var(--light-text-color);
}

/* Burger Menu Styles for Main Nav */
.main-nav .burger-menu {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav links */
    margin-right: 20px;
}

.main-nav .burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text-color); /* White lines for dark nav */
    margin: 5px 0;
    transition: all 0.3s ease;
}

.main-nav.light .burger-menu span {
    background-color: var(--light-text-color); /* Black lines for light nav */
}

.main-nav .burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.main-nav .burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.main-nav .burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Video Section Styles */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    min-height: 200px; /* Ensure a minimum height even if content is blocked */
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Hide controls initially */
    /* pointer-events: none; */
}

.video-container.active .youtube-video {
    pointer-events: auto;
}

.card {
    background: rgba(34, 34, 34, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px #222;
    padding: 1.5em;
    margin: 1em 0;
    transition: box-shadow 0.2s, border 0.2s;
    border: 1px solid #444;
    position: relative;
}
.card:hover {
    box-shadow: 0 8px 32px #444;
    border: 1px solid #fff;
}

.team-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5em;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px #222;
}

header,
footer {
    background: linear-gradient(90deg, #222 0%, #333 100%);
    color: var(--dark-text-color);
    padding: 2em 1em 1em 1em;
    text-align: center;
    box-shadow: 0 2px 12px #111;
    letter-spacing: 1px;
}

header h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 0.2em;
    letter-spacing: 1px;
}



.testimonial-card {
    background: rgba(126, 126, 126, 0.411);
    border-radius: 16px;
    box-shadow: 0 4px 24px #222;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s, border 0.2s;
    border: 1px solid #444;
    backdrop-filter: blur(10px);
    margin: 10px;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px #444;
    border: 1px solid #fff;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1em;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px #222;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1em;
    color: var(--dark-text-color);
}

.testimonial-card .client-name {
    font-weight: bold;
    color: var(--dark-text-color);
    margin-top: 0.5em;
}

.testimonial-card .client-title {
    font-size: 0.9em;
    color: var(--dark-text-color);
}

/* Social Media Icons Section */
.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Space between icons */
    padding: 30px;
    min-width: 80%;
}

.social-media-icons a {
    color: var(--light-text-color); /* Default to light text color */
    font-size: 2em; /* Large icons */
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px; /* Fixed size for circular effect */
    height: 70px;
    border-radius: 50%; /* Circular background */
}

.social-media-icons a:hover {
    transform: translateY(-5px) scale(1.1); /* Lift and slight enlarge on hover */
    color: var(--light-text-color); /* Change color on hover */
}

/* Theme-specific adjustments for social media icons */
.parallax.dark .social-media-icons a {
    color: var(--dark-text-color); /* Dark theme icons */
    /* background-color: rgba(0, 0, 0, 0.2); */
}

.parallax.dark .social-media-icons a:hover {
    color: var(--dark-text-color);
    /* background-color: rgba(0, 0, 0, 0.4); */
}

/* Social Links in Footer */
.social-links {
    margin-top: 15px;
}

footer {
    display: none;
}
.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: var(--dark-text-color);
    font-size: 1.8em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--dark-text-color);
}

/* Media Queries for Main Nav */
@media (max-width: 1024px) {
    .parallax-title-wrapper h1 {
    font-size: 2.25em;
}
    .parallax {
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    


    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .main-nav.light {
        background-color: #ffffff00;
        backdrop-filter: none;
    }

    .main-nav.dark {
        background-color: #ffffff00;
        backdrop-filter: none;
    }

    .main-nav .burger-menu {
        display: none; /* Show burger menu */
    }

    .main-nav .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
    }

    .main-nav.light .nav-links {
        background: rgba(255, 255, 255, 0.8);
    }

    .main-nav.dark .nav-links {
        background: rgba(0, 0, 0, 0.8);
    }

    .main-nav .nav-links.active {
        display: flex; /* Show when active */
    }

    .main-nav.light .nav-links a {
        color: #000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .main-nav.dark .nav-links a {
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .nav-links a:last-child {
        border-bottom: none;
    }

    .main-nav .language-switcher {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        display: block;
    }

}