/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Light Theme */
:root {
    --main-background: url('main-background.JPG');
    --background-color: #f3f3f3;
    --foreground-color: #ffffff;
    --image-overlay-color: rgba(0, 0, 0, 0.5);
    --header-text-color: #dbe8ff;
    --header-background: url('background.JPG');
    --primary-color: #343a40;
    --secondary-color: #f4a261;
    --accent-color: #007bff;
    --highlight-color: #e02b20;
    --text-color: #333333;
    --secondary-text-color: #e7f0ff;
    --muted-text-color: #bbbbbb;
    --overlay-color: rgba(0, 0, 0, 0.5);
    --overlay-light-color: rgb(235, 235, 235, 0.5);
    --gray-background: rgba(200, 200, 200, 0.7);
    --dark-gray-background: rgba(100, 100, 100, 0.7);
    --timeline-background-color: #f9f9f9;
}

/* Dark Mode Styles */
body.dark-mode {
    --main-background: url('main-background-night.jpg');
    --background-color: #2c2c2c;
    --foreground-color: #333333;
    --image-overlay-color: rgba(0, 0, 0, 0.5);
    --header-text-color: #dbe8ff;
    --header-background: url('background-night.jpg');
    --primary-color: #1c1c1c;
    --text-color: #f1f1f1;
    --secondary-text-color: #c8dcff;
    --overlay-color: rgba(255, 255, 255, 0.5);
    --overlay-light-color: rgba(0, 0, 0, 0.7);
    --gray-background: rgba(100, 100, 100, 0.7);
    --accent-color: #0056b3;
    --timeline-background-color: #333333;
}

@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --main-background: url('main-background-night.jpg');
        --background-color: #2c2c2c;
        --foreground-color: #333333;
        --image-overlay-color: rgba(0, 0, 0, 0.5);
        --header-text-color: #dbe8ff;
        --header-background: url('background-night.jpg');
        --primary-color: #1c1c1c;
        --text-color: #f1f1f1;
        --secondary-text-color: #c8dcff;
        --overlay-color: rgba(255, 255, 255, 0.5);
        --overlay-light-color: rgba(0, 0, 0, 0.7);
        --gray-background: rgba(100, 100, 100, 0.7);
        --accent-color: #0056b3;
        --timeline-background-color: #333333;
    }
}

@media (prefers-color-scheme: light) {
    body:not(.dark-mode) {
        --main-background: url('main-background.JPG');
        --background-color: #f3f3f3;
        --foreground-color: #ffffff;
        --image-overlay-color: rgba(0, 0, 0, 0.5);
        --header-text-color: #dbe8ff;
        --header-background: url('background.JPG');
        --primary-color: #343a40;
        --secondary-color: #f4a261;
        --accent-color: #007bff;
        --highlight-color: #e02b20;
        --text-color: #333333;
        --secondary-text-color: #e7f0ff;
        --muted-text-color: #bbbbbb;
        --overlay-color: rgba(0, 0, 0, 0.5);
        --overlay-light-color: rgb(235, 235, 235, 0.5);
        --gray-background: rgba(200, 200, 200, 0.7);
        --dark-gray-background: rgba(100, 100, 100, 0.7);
        --timeline-background-color: #f9f9f9;
    }
}

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-in-out;
    font-size: 16px;
}

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

/* Header Styles */
header {
    position: relative;
    background-image: var(--header-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    color: var(--head);
    text-align: center;
    padding: 60px 0;
    transition: background-image 0.3s ease;
    cursor: pointer;
}

header h1, header p {
    color: var(--header-text-color);
}

/* Navigation Styles */
nav {
    background-color: var(--primary-color);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

nav a {
    color: var(--secondary-text-color);
    margin: 0 20px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

nav a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Section Styles */
section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

form {
    background-color: var(--background-color);
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

form label {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

form textarea {
    height: 150px;
}

form button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    transform: scale(1.02);
}


.about {
    position: relative;
    padding: 20px;
    max-width: 2000px;
    color: var(--secondary-text-color);
    background-image: var(--main-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--image-overlay-color);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.about h1 {
    flex: 1;
    font-size: 3rem;
    margin-right: 5px;
}

.about img {
    height: 200px;
    object-fit: cover;
}

/* Projects Styles */
.projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.project {
    background-color: var(--gray-background);
    background-position: center;
    background-size: cover;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.project h3 {
    margin: 0;
    font-size: 1.2rem; 
    font-weight: 600;
    color: var(--text-color);
    transition: 0.3s;
}

.project p {
    margin-top: 5px;
    color: var(--text-color);
}

.project:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Active Project Styles */
.project.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    transition: transform 0.5s ease;
}

/* Project Info Styles */
.project-info {
    padding: 10px;
    aspect-ratio: 16/3;
    background-color: var(--overlay-light-color);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.project-info h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: 0.3s;
}

.project-info p {
    margin-top: 5px;
    font-size: 1.4rem;
    color: var(--text-color);
}

/* Carousel Styles */
.carousel {
    display: flex;
    justify-content: space-around;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    object-fit: cover;
}

/* Adjustments for the music-production carousel */
.carousel-music {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
    overflow: hidden;
}

.carousel-music img {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-music img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Nepal Carousel */
.nepal-carousel {
    position: relative;
    width: 100%;
    max-height: 250px;
    margin-top: 20px;
}

.nepal-carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.nepal-carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 10px;
}

.nepal-carousel-images img {
    width: calc((100% / 3) - 10px);
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--overlay-color);
    color: var(--foreground-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    border-radius: 4px;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Balia Section */
.balia-quote {
    display: flex;
    align-items: center;
    font-family: 'Work Sans', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    font-size: 35px;
    color: var(--highlight-color) !important;
    line-height: 1.2em;
}

.balia-quote p {
    flex: 1;
    margin-right: 5px;
}

.balia-quote img {
    width: 120px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.balia-quote img:hover {
    transform: scale(1.05);
}

/* Call to Action (CTA) Styles */
.cta-section {
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--foreground-color);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Music Production Timeline container */
.music-timeline-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 200px;
    max-height: 300px;
}

/* Timeline line */
.music-timeline-line {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: var(--secondary-color);
    top: 30%;
    left: 0;
    z-index: 1;
}

/* Music Production Timeline dots */
.music-timeline-dots {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: calc(30% - 3px);
    z-index: 2;
}

.music-timeline-boxes {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.music-info-box:hover {
    transform: scale(1.05);
}

/* Music Production Timeline boxes */
.music-info-box {
    background-color: var(--foreground-color);
    padding: 10px;
    width: 25%;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: max-height 0.5s ease, background-color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    max-height: 40px;
}

.music-info-box h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.music-info-box p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.music-info-box.active {
    max-height: 160px;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Positioning of boxes */
#top {
    top: 10%;
}

#bottom {
    top: 40%;
}
/* Position dots horizontally */
#piano-dot { left: 10%; }
#sheet-dot { left: 35%; }
#flstudio-dot { left: 60%; }
#album-dot { left: 85%; }

    /* Position info boxes */
#info-piano {
    position: relative;
    left: 0%;
    top: 20%;
}
#info-flstudio {
    position: relative;
    right: 25%;
    top: 20%;
}
#info-sheet {
    position: relative;
    left: 25%;
    top: 5%;
}
#info-album {
    position: relative;
    right: 0%;
    top: 5%;
}

/* Image Container Styles */
.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Equation Styles */
.equation {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    font-size: 1.2em;
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--foreground-color);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-top: 20px;
}

/* PDF Container Styles */
.pdf-container {
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
    flex-wrap: wrap;
}

.pdf-box {
    background-color: var(--secondary-color);
    padding: 30px;
    text-align: center;
    width: 30%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
    margin: 10px;
}

.pdf-box p {
    font-size: 1.2rem;
    color: var(--foreground-color);
    margin: 0;
}

.pdf-box:hover {
    transform: scale(1.05);
    background-color: var(--secondary-color);
}

/* PDF Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); 
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: var(--foreground-color);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--foreground-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--muted-text-color);
    text-decoration: none;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-text-color);
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Build Process Styles */
.build-process {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--foreground-color);
}

.build-process ul {
    list-style: none;
    padding: 0;
}

.build-process li {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Video Section Styles */
.video-section {
    padding: 40px 20px;
    background-color: var(--foreground-color);
    text-align: center;
}

.video-section video {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Interactive Drone Section */
.interactive-drone-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    height: 500px;
}

.drone-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box {
    padding: 10px;
    margin-bottom: 20px;
    background-color: var(--overlay-light-color);
    border-radius: 8px;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.5s ease, background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.info-box.active {
    max-height: 150px;
    background-color: var(--secondary-color);
}

.info-box h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.info-box p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.info-box:hover {
    transform: scale(1.05);
}

/* Drone Image */
.drone-image {
    position: relative;
    flex: 1;
    text-align: center;
}

.drone-image img {
    max-width: 80%;
    border-radius: 10px;
}

.clickable-dot {
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    opacity: 70%;
    transition: transform 0.3s ease, border 0.3s ease, background-color 0.3s ease;
}

.clickable-dot:hover {
    transform: scale(1.3);
}

.selected-dot {
    transform: scale(1.5);
    background-color: rgba(255, 168, 46, 0.65);
    border: 2px solid var(--secondary-color);
}

.selected-dot:hover {
    transform: scale(1.8);
}

/* AI Project Section Styling */
.ai-projects {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--foreground-color);
}

.ai-project {
    margin-top: 30px;
    background-color: var(--gray-background);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s ease, transform 0.3s ease;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    max-height: 55px;
    align-items: center;
    justify-content: center;
}

.ai-project h3 {
    position: relative;
    top: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.ai-project p {
    margin: 5px 0;
    font-size: 1rem;
}

.ai-project:hover {
    transform: scale(1.02);
}

.ai-project.expanded {
    max-height: 1300px;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

.image-gallery img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#game-purpose {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--foreground-color);
    margin-bottom: 40px;
}

#game-purpose h2, #technical-features h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

#game-purpose p, .feature p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

/* Penguin Game Beta - Technical Features Section */
#technical-features {
    padding: 60px 20px;
    background-color: var(--foreground-color);
}

.feature {
    margin-bottom: 40px;
    text-align: center;
}

.feature h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.feature img {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.feature p {
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-color);
}

iframe {
    width: 100%;
    height: calc(90vw * 0.56);
    max-height: 80vh;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.embed-section {
    width: 100%;
    overflow-x: auto;
    display: flex;
}

.embed-frame {
    min-width: 450px;
    height: 80vh;
    border: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

#pdf-object {
    width: 100%;
    height: 100%;
    border: none;
}

.error-container {
    height: 90vh;
    text-align: center;
    width: 100%;
}

.error-container h1 {
    font-size: 6em;
    font-weight: bold;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.error-container h2 {
    font-size: 2em;
    margin-top: 60px;
    color: var(--text-color);
}

.error-container p {
    font-size: 1.5em;
    margin-top: 20px;
    color: var(--text-color);
}

.error-container button {
    margin-top: 100px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 50px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-size: 1.5em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .projects {
        flex-direction: column;
        gap: 20px;
    }

    .project {
        width: 100%;
        margin-bottom: 20px;
    }

    header {
        height: 300px;
        padding: 40px 0;
    }
    
    .about {
        height: 500px;
        padding: 20px 10px;
        background-attachment: scroll;
    }
    
    nav a {
        font-size: 1rem;
        margin: 0 10px;
    }

    section h2 {
        font-size: 2rem;
    }
    
    .pdf-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pdf-box {
        width: 45%;
        margin-bottom: 20px;
    }
    
    .carousel img {
        max-width: 100%;
    }

    nav {
        flex-wrap: wrap;
        flex-direction: row;
    }
    
    body {
        font-size: 15px;
    }
    
    .pdf-box {
        width: 45%;
    }
    
    .nepal-carousel-images img {
        width: calc(50% - 10px);
    }
    
    .interactive-drone-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .drone-image {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        order: 1;
    }

    .drone-info {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        order: 2;
    }

    .drone-image img {
        max-width: 80%;
    }

    .carousel-music {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: none; /* Hides scrollbar for Firefox */
    }

    .carousel-music a {
        flex-shrink: 0;
    }

    .carousel-music::-webkit-scrollbar {
        display: none; /* Hides scrollbar for Chrome, Safari, and Edge */
    }    

    .music-timeline-container {
        flex-direction: row;
        align-items: self-start;
        height: 800px;
        max-height: 500px;
    }

    /* Vertical timeline line */
    .music-timeline-line {
        top: 0;
        left: 0%;
        width: 14px;
        height: 100%;
    }

    /* Arrange dots vertically */
    .music-timeline-dots {
        top: 0;
        width: 0px;
        left: calc(0% - 14px);
        height: 100%;
    }

    #top, #bottom {
        max-height: 50%;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .music-timeline-boxes {
        height: 100%;
    }

    .music-info-box {
        width: 95%;
        margin-bottom: 40px;
        align-items: flex-start;
        align-self: center;
        text-align: center;

    }

    .music-info-box h3 {
        font-size: 0.84rem;
        margin-bottom: 7px;
    }

    .music-info-box p {
        font-size: 0.70rem;
    }

    #piano-dot { left: auto; top: 10%; }
    #sheet-dot { left: auto; top: 35% }
    #flstudio-dot { left: auto; top: 60% }
    #album-dot { left: auto; top: 85% }

    #info-piano {
        left: 0%;
        top: 5%;
    }

    #info-flstudio {
        right: 0%;
        top: 35%;
    }

    #info-sheet {
        left: 0%;
        top: 0%;
    }

    #info-album {
        right: 0%;
        top: 30%;
    }

    .ai-project h3 {
        font-size: 1.5rem;
    }
}

/* Smaller Mobile Styles */
@media (max-width: 576px) {
    form button {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    header {
        height: 250px;
        padding: 30px 0;
    }

    .about {
        height: auto;
        padding: 20px 10px;
        background-attachment: scroll;
    }

    nav {
        align-items: center;
    }

    nav a {
        font-size: 0.9rem;
        margin: 5px 10px; 
    }

    section {
        padding: 60px 10px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .balia-quote {
        font-size: 1.5rem;
        align-items: center;
    }

    .balia-quote img {
        width: 60px;
    }

    .pdf-box {
        width: 90%;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 1rem;
    }

    .ai-project h3 {
        font-size: 0.8rem;
        margin-bottom: 25px;
    }

    .ai-project p {
        font-size: 0.8em;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .image-gallery img {
        max-width: 100%;
    }

    iframe {
        height: calc(90vw * 0.56);
    }

    body {
        font-size: 14px;
    }

    .equation {
        font-size: 1em;
    }
}

@media (max-width: 375px) {
    .music-info-box h3 {
        font-size: 0.7rem;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .equation {
        font-size: 0.8em;
    }

    .nepal-carousel-images img {
        width: calc(100% - 10px);
    }
}



/* Centered promo container */
.promo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
}

/* Home icon */
.home-icon {
    position: absolute;
    top: 20px;
    left: 20px;
}

.home-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.home-icon:hover img {
    transform: scale(1.1);
}

/* Song title */
.song-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Album cover */
.album-cover img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Music platforms grid */
.music-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    padding: 40px 0;
    justify-items: center; /* Keeps the grid items centered */
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: auto; /* Center the grid container horizontally */
    justify-content: center; /* Ensures that extra space is distributed evenly */
}
/* Music platform logos */
.music-platforms img {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.music-platforms a:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Responsive Adjustments */
@media (max-width: 1000px) {
    .song-title {
        font-size: 2.5rem;
    }

    .album-cover img {
        max-width: 400px;
    }

    .music-platforms {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

}

@media (max-width: 576px) {
    .song-title {
        font-size: 2rem;
    }

    .album-cover img {
        max-width: 300px;
    }

    .music-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

