/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Background container */
.bg-container {
    min-height: 100vh;
    /* allow page to grow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    padding-top: 40px;
    /* some space at top */
}

/* Background Image Styling */
.background img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Title */
h1 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

/* White container */
.container {
    background: #e5e3e3;
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 75vh;
    /* ✅ fixed height for scroll */
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    /* ✅ always vertical scroll */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

/* Grid layout for black boxes */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.stone {
    width: 200px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Black box (stone placeholder) */
.stone-box {
    background: #241f1f;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    height: 120px;
    width: 100%;
    cursor: pointer;
}

/* Coming soon box */
.coming-soon {
    background: white;
    border-radius: 20px;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
}

/* -------------------- Text overlay on Image -------------------- */
.content {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.253);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px;
     opacity: 0;
    transition: 0.4s ease;
    pointer-events: none;
}

.content h2 {
    color: #FFFF;
    font-size: 20px;
    transform: translateY(25px);
    transition: transform 0.6s;
}

.stone:hover .content {
    opacity: 1;
}

/* .content>* {
    transform: translateY(25px);
    transition: transform 0.6s;
} */

.stone:hover .content h2 {
    transform: translateY(0px);

}

/* -------------------- -------------------- --------------------  */

/* Scrollbar styling */
.container::-webkit-scrollbar {
    width: 10px;
}

.container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.container .popup-img {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    height: 100%;
    width: 100%;
    z-index: 100;
    display: none;
}

.container .popup-img span {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 40px;
    font-weight: bolder;
    color: #fff;
    cursor: pointer;
}

.container .popup-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #fff;
    object-fit: cover;
    width: 750px;
}



/* Footer styling */
.footer {
    width: 100%;
    margin-top: 8%;
    /* background-color: transparent; */
    background: rgba(43, 156, 190, 0.729);
    backdrop-filter: blur(15px);
    color: #fff;
    padding: 20px 40px;
    text-align: center;
    /* background: linear-gradient(to right, rgba(54, 8, 139, 0.938), rgba(110, 110, 211, 0.927)); */
    /* background: linear-gradient(to right, rgba(8, 18, 40, 0.797), rgba(7, 26, 37, 0.351)); */
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1300px; */
    margin: 0 auto;
    flex-wrap: inherit;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 150px;
    height: 150px;
    /* border-radius: 50%; */
    /* background-color: #3b82f6; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 54px;
    font-weight: bold;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-column {
    text-align: left;
}

.footer-column h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 17px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 20px;
    height: 20px;
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.footer-bottom {
    font-size: 14px;
    color: #efefef;
}



/* ----------------------------------------- RESPONSIVE DESIGN ------------------------------------------- */

/* 1. Mobile devices (portrait & landscape) - up to 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .container {
        width: 95%;
        height: 60vh;
        /* smaller but scrollable */
        padding: 10px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .stone {
        width: 150px;
    }

    .stone-box {
        width: 100%;
        height: 100px;
    }

    .container .popup-img img {
        width: 95%;
    }

    .coming-soon {
        width: 150px;
        height: 100px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
    }

    .brand-name {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 16px;
    }

    .footer-column ul li a {
        font-size: 14px;
    }
}

/* 2. Landscape phones & small portrait tablets - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: 26px;
    }

    .container {
        width: 95%;
        height: 65vh;
        /* scroll still works */
        padding: 15px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .stone {
        width: 150px;
    }

    .stone-box {
        height: 100px;
    }

    .coming-soon {
        width: 150px;
        height: 100px;
    }

    .container .popup-img img {
        width: 85%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .brand-logo {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
}

/* 3. Landscape tablets & laptops - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 32px;
    }

    .container {
        width: 90%;
        height: 70vh;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .container .popup-img img {
        width: 95%;
    }


    .stone {
        width: 165px;
    }

    .stone-box {
        height: 110px;
    }

    .coming-soon {
        width: 165px;
        height: 110px;
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .brand-logo {
        width: 120px;
        height: 120px;
    }

    .brand-name {
        font-size: 36px;
    }
}

/* 4. Larger displays & desktops - 1025px to 1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    h1 {
        font-size: 36px;
    }

    .container {
        width: 85%;
        height: 75vh;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .brand-name {
        font-size: 44px;
    }

    .footer-container {
        justify-content: space-between;
    }
}