* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --second-text-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
    height: 100vh;
}

.background-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    filter: blur(8px);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100%;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

section {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
    padding: 10rem 9% 2rem; 
}

.project-container {
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    height: 80%; 
}

.project-image {
    width: 500px; 
    height: auto; 
    display: block; 
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    color: var(--text-color); 
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0 .5rem .5rem .5rem;
    text-align: center;
    padding-bottom: 2rem;
}

.overlay-text {
    opacity: 0.9; 
}

.overlay-text h3 {
    font-size: 2rem; 
    font-weight: 700;
    color: var(--text-color);
}

.info-section {
    display: flex; 
    justify-content: center; 
    padding: 2rem 0; 
    margin-top: 2rem; 
}

.about-box, .project-info-box {
    background: var(--second-bg-color); 
    border-radius: .8rem; 
    padding: 2rem; 
    width: 500px; 
    margin: 0 2rem; 
    border: 1px solid var(--second-text-color);
}

.about-box h2, .project-info-box h2 {
    font-size: 2rem; 
    margin-bottom: 1rem; 
}

.info-item {
    display: flex; 
    align-items: center; 
    margin: 1rem 0; 
}


.info-item i {
    font-size: 2rem; 
    color:var(--second-text-color);
    margin-right: 1rem; 
}

.info-item span {
    font-size: 1.5rem;
     
}
.info-item a{
    text-decoration: none;
    color: var(--second-text-color);
}

/*Project Section*/
.project-description{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    background: var(--second-bg-color);
    margin-top: 1rem;
}
.heading{
    font-size: 4rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.project-description p{
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 1rem;
    font-weight: 300;
}

.project-description p a{
    text-decoration: none;
    font-weight: 700;
    color:var(--second-text-color);
}
.collapsible {
    margin-bottom: 5rem;
    background-color: var(--bg-color);
    color: var(--second-text-color);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 2rem;
    transition: background-color 0.3s;
    border-radius: 4px;
}
.collapsible-code p{
    padding-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.collapsible:hover {
    background-color: #ddd;
}

.code-content {
    background: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    overflow: auto;
    font-size: 1.2rem;
}


/*Gallery Section*/
.gallery{
    display: flex;
    gap: 1rem;
    background: var(--bg-color);
    
}
.heading{
    font-size: 4rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 2rem;
    margin-bottom: 5rem;
    text-align: center; 
}
.about-content{
    padding-top: 3rem;
    text-align: center;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    font-weight: 400;
}
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 0.5rem;
}

.gallery-image {
    width: 500px; /* or adjust to your preference */
    height: auto; 
    transition: opacity 0.5s ease;
}

.nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--second-text-color);
    padding: 0 2rem;
    transition: transform 0.3s ease;
}

.nav-button:hover {
    transform: scale(1.1);
}

/*Iframe Section*/
.iframe-container{
    
    margin-top: 15rem;
    position: relative;
    width: 100%;
    padding-bottom: 56%; 
    height: 0;
  }
  

  .iframe-container iframe{
    position: absolute;
    top:0;
    left: 25%;
    width: 50%;
    height: 50%;
  }

/*Footer section */
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--second-bg-color);
}
.footer-topicon a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    margin-left: 5rem;
    background:var(--second-text-color);
    border: .2rem solid var(--text-color);
    border-radius: .6rem;
}
.footer-topicon a i{
    font-size: 2.4rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    /* Mobile resolution */
    html {
        font-size: 50%; 
    }

    body {
        height: auto; 
    }

    .header {
        padding: 1.5rem 5%; 
    }

    .logo {
        font-size: 2rem; 
    }

    /* Section adjustments */
    section {
        padding: 5rem 5% 2rem; 
        min-height: auto; 
    }

    .project-container {
        height: auto; 
    }

    .project-image {
        width: 100%; 
        max-width: 300px; 
    }

    .overlay-text h3 {
        font-size: 1.8rem; 
    }

    .info-section {
        flex-direction: column; 
        padding: 1rem 0; 
        margin-top: 1rem; 
    }

    .about-box, .project-info-box {
        width: 100%; 
        margin: 1rem 0; 
    }

    .about-box h2, .project-info-box h2 {
        font-size: 1.8rem; 
    }

    .info-item span {
        font-size: 1.4rem; 
    }

    /* Project Section */
    .project-description {
        gap: 1rem; 
        padding: 2rem; 
        margin-top: 1rem; 
    }

    .heading {
        font-size: 3rem; 
        text-align: center; 
        margin-bottom: 2rem; 
    }

    .project-description p {
        font-size: 1.4rem; 
        line-height: 1.5rem; 
    }

    /* Gallery Section */
    .gallery {
        flex-direction: column; 
        padding: 2rem 0; 
    }

    .gallery-container {
        flex-direction: column; 
        width: 100%; 
    }

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

    .nav-button {
        font-size: 1.8rem; 
        padding: 0 1rem; 
    }

    /* Iframe Section */
    .iframe-container {
        margin-top: 5rem; 
        padding-bottom: 56%; 
        width: 100%; 
        height: 0; 
    }

    .iframe-container iframe {
        left: 0; 
        width: 100%; 
        height: 100%; 
    }


    /* Footer */
    .footer {
        flex-direction: column; 
        align-items: center; 
        padding: 2rem 0; 
    }

    .footer-topicon a {
        margin-left: 0; 
        margin-bottom: 1rem; 
    }

    .footer-topicon a i {
        font-size: 2rem; 
    }
}
