* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fluorescent-cyan: #38f2f1ff;
    --moonstone: #03bdd6ff;
    --robin-egg-blue: #00d4d8ff;
    --aero: #00b8dcff;
    --robin-egg-blue-2: #00c6dbff;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--robin-egg-blue);
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("images/background.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glass-nav {
    position: absolute;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    border-bottom: 3px solid transparent;
}

.logo-nav img {
    max-width: 80px;
    height: auto;
}

.nav-links {
    display: none;
}

.nav-links a {
    margin: 0 10px;
    padding: 5px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: white;
}

.gallery-header {
    padding-top: 120px;
    text-align: center;
    margin-bottom: 2rem;
}
.gallery-header h1 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 6rem);
    color: #fff;
    text-shadow: 0 0 10px var(--moonstone), 0 0 20px var(--moonstone);
}

.back-to-portfolio {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-portfolio:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-item {
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.img1 { background-image: url('gallery_images/installation-services/1.webp');background-position: center;  }
.img2 { background-image: url('gallery_images/installation-services/2.webp');background-position: center;  }
.img3 { background-image: url('gallery_images/installation-services/3.webp');background-position: center;  }
.img4 { background-image: url('gallery_images/installation-services/4.webp');background-position: center;  }
.img6 { background-image: url('gallery_images/installation-services/6.webp');background-position: center;  }
.img7 { background-image: url('gallery_images/installation-services/7.webp');background-position: center;  }
.img12 { background-image: url('gallery_images/installation-services/12.webp');background-position: center;  }
.img13 { background-image: url('gallery_images/installation-services/13.webp');background-position: center;  }
.img14 { background-image: url('gallery_images/installation-services/14.webp');background-position: center;  }
.img15 { background-image: url('gallery_images/installation-services/15.webp');background-position: center;  }
.img16 { background-image: url('gallery_images/installation-services/16.webp');background-position: center;  }
.img20 { background-image: url('gallery_images/installation-services/20.webp');background-position: center;  }
.img21 { background-image: url('gallery_images/installation-services/21.webp');background-position: center;  }
.img23 { background-image: url('gallery_images/installation-services/23.webp');background-position: center;  }
.img24 { background-image: url('gallery_images/installation-services/24.webp');background-position: center;  }
.img25 { background-image: url('gallery_images/installation-services/25.webp');background-position: center;  }
.img26 { background-image: url('gallery_images/installation-services/26.webp');background-position: center;  }
.img27 { background-image: url('gallery_images/installation-services/27.webp');background-position: center;  }
.img28 { background-image: url('gallery_images/installation-services/28.webp');background-position: center;  }
.img29 { background-image: url('gallery_images/installation-services/29.webp');background-position: center;  }
.img30 { background-image: url('gallery_images/installation-services/30.webp');background-position: center;  }
.img31 { background-image: url('gallery_images/installation-services/31.webp');background-position: center;  }
.img32 { background-image: url('gallery_images/installation-services/32.webp');background-position: center;  }
.img33 { background-image: url('gallery_images/installation-services/33.webp');background-position: center;  }
.img34 { background-image: url('gallery_images/installation-services/34.webp');background-position: center;  }
.img35 { background-image: url('gallery_images/installation-services/35.webp');background-position: center;  }
.img36 { background-image: url('gallery_images/installation-services/36.webp');background-position: center;  }
.img37 { background-image: url('gallery_images/installation-services/37.webp');background-position: center;  }
.img38 { background-image: url('gallery_images/installation-services/38.webp');background-position: center;  }
.img39 { background-image: url('gallery_images/installation-services/39.webp');background-position: center; }


.lightbox {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.lightbox.visible .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

.close-btn, .prev-btn, .next-btn {
    cursor: pointer;
    position: fixed;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    transition: color 0.3s;
    user-select: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    z-index: 2001;
}

.close-btn:hover,
.prev-btn:hover,
.next-btn:hover {
    color: #bbb;
}

.close-btn {
    top: 15px;
    right: 35px;
    font-size: 4rem;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

@media (min-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(3, 2fr);
        max-width: 90%;

    }
    .gallery-header h1{
        font-size: 7rem;
    }
    .nav-links a {
        font-size: 1rem;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: -4px;
        left: 0;
        background-color: var(--fluorescent-cyan);
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }

    .nav-links a:hover::after {
        transform: scaleX(0.75);
        transform-origin: bottom left;
    }

    .hamburger-menu {
        display: none;
    }

    .gallery-item {
        height: 350px;
        background-size: cover;
    }
    #lightbox-img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
    border-radius: 20px;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
    }
    .gallery-header h1{
        font-size: 5rem;
    }
}

.glass-footer {
    padding: 20px 5%;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .background-container {
        background-attachment: scroll;
    }
    .gallery-header h1 {
        font-size: 3rem;
    }
}