/* General Styles */
@font-face {
    font-family: "Bebas";
    src: url("/assets/Bebas-Regular.ttf");
    font-weight: 400;
}

.jomhuria-regular {
    font-family: "Jomhuria", serif;
    font-weight: 400;
    font-style: normal;
}

.kantumruy-pro {
    font-family: "Kantumruy Pro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'Kantumruy Pro', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    background-color: #454545;
    overflow-x: hidden;
    /* Prevent overflow */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3 {
    font-family: 'Jomhuria', serif;
    color: #00FFA1;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    /* Added padding for responsiveness */
}

p {
    color: #e8e8e8;
}

/* Header */

.nav {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    flex-direction: row-reverse;
}

.nav__link {
    text-decoration: none;
    color: #00FFA1;
    padding: 10px 20px;
    border: 2px solid #00FFA1;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.5rem;
    font-family: 'Bebas';
}

.right-links .nav__link {
    font-size: 1rem;
}

.right-links {
    display: flex;
    gap: 20px;
}

/* Project Detail */
.project-detail {
    padding: 60px 0;
    background-color: #454545;
}

.intro {
    text-align: center;
    margin-bottom: 50px;
    background-color: #333;
}

.project-title {
    font-family: 'Jomhuria';
    font-size: 6rem;
    margin-bottom: 10px;
    color: #00FFA1;
    text-transform: uppercase;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #e8e8e8;
    font-family: 'Kantumruy Pro';
    padding-bottom: 2rem;
    margin-top: -2rem;
}

.image-gallery {
    margin-bottom: 50px;
}

.gallery-heading {
    font-family: 'Jomhuria';
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: center;
    color: #00FFA1;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 25px;
    margin-bottom: 50px;
}

.gallery-item.large {
    width: 100%;
    /* Adjusted to fit container */
    grid-column: span 2;
}

.gallery-item {
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1rem solid #333;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-description {
    grid-column: span 2;
    text-align: center;
    font-size: 1.1rem;
    color: #d1d1d1;
    margin-top: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .gallery-description {
        grid-column: span 1;
    }
}

/* Final Outcome */
.final-outcome {
    background-color: #2b2b2b;
    padding: 40px 20px;
    text-align: center;
}

.outcome-heading {
    font-family: 'Jomhuria';
    font-size: 5rem;
    margin-bottom: 20px;
    color: #00ffa1;
    text-transform: uppercase;
}

.outcome-text {
    font-size: 1.1rem;
    color: #d1d1d1;
    margin-bottom: 30px;
    font-family: 'Kantumruy Pro';
    margin-top: -2rem;
}

.outcome-video {
    max-width: 100%;
    height: auto;
    border: 20px solid #1d1d1d;
}

.outcome-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
}

.outcome-link:hover {
    background-color: #555;
}

.text-section {
    margin-bottom: 50px;
    background-color: #333;
    padding-top: 2rem;
}

.project-description {
    font-size: 1.1rem;
    color: #d1d1d1;
    padding: 0 4rem 3rem;
    font-family: 'Kantumruy Pro';
    margin-top: -2rem;
    text-align: center;
}

.tools-used {
    color: #e8e8e8;
    margin-top: -2rem;
}

.highlight {
    color: #00FFA1;
}

/* Footer */
.footer {
    margin-top: 2rem;
}

.footer .overlap {
    position: relative;
    width: 1512px;
    height: 186px;
}

.footer .overlap-group {
    position: absolute;
    width: 1512px;
    height: 179px;
    top: 0;
    left: 0;
}

.footer .separator-footer {
    position: absolute;
    width: 1512px;
    height: 65px;
    top: 0;
    left: 0;
    background-color: #343232;
    border-left-width: 12px;
    border-left-style: solid;
    border-color: #00ffa1;
}

.footer .skull {
    position: absolute;
    width: 217px;
    height: 164px;
    top: 15px;
    left: 72px;
    object-fit: cover;
}

.footer .contact {
    position: absolute;
    width: 222px;
    height: 77px;
    top: 94px;
    left: 1113px;
}

.footer .overlap-group-2 {
    position: absolute;
    width: 218px;
    height: 31px;
    top: 0;
    left: 0;
}

.footer .frame {
    position: absolute;
    width: 266px;
    height: 21px;
    top: 10px;
    left: 0;
    background-color: #343232;
}

.footer .text-wrapper {
    position: absolute;
    top: 0;
    left: 5px;
    font-family: "Bebas", Helvetica;
    font-weight: 400;
    color: #00ffa1;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 20px;
    white-space: nowrap;
}

.footer .overlap-2 {
    position: absolute;
    width: 218px;
    height: 31px;
    top: 46px;
    left: 0;
}

.footer .letter {
    position: absolute;
    width: 84px;
    height: 82px;
    top: 86px;
    left: 1395px;
    object-fit: cover;
}

.link {
    text-decoration: none;
    color: #00FFA1;
}

.footer .text-wrapper-2 {
    position: absolute;
    top: 171px;
    left: 660px;
    font-family: "Kantumruy Pro", Helvetica;
    font-weight: 500;
    color: #bec0be;
    font-size: 13px;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
}

#scrollTopBtn:hover {
    background-color: #555;
}

.button {
    background-color: #00FFA1;
    padding: 1rem;
    font-weight: 500;
    color: #4a4a4a;
    font-family: 'Bebas';
    font-size: 1.5rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.button:hover {
    background-color: #121212;
    color: #00FFA1;
}

.buttondiv {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.final-design-image img {
    max-width: 100%;
    height: auto;
    border: 20px solid #333333;

}


/* Lightbox Styles */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    /* padding-bottom: 10rem; */
}

.lightbox-content img {
    width: 80%;
    height: auto;
    display: block;
    /* padding: 2rem; */
    padding-bottom: 6rem;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}