@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
}

body{
    background-color: var(--bg-color);
} 

.PIVX-head-img{
    width: 100%;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
    mask-image: linear-gradient(to top, black 55%, transparent 100%);
}

.pivx-text{
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Align the shape and text vertically */
    gap: 15px; /* Space between the shape and the text */
    margin: 20px 130px;
    color: var(--text-color-primary);
    line-height: 1.5;
    font-size: 15px;
    font-style: italic;
    text-align: left; /* Align text to the left within its container */
}

.pivx-text::before {
    content: '';
    display: block;
    flex-shrink: 0; /* Prevent the shape from shrinking */
    width: 8px;
    align-self: stretch; /* Make the shape match the text block's height */
    background-color: rgb(218, 0, 120);
    border-radius: 4px;
}
.pivx-text a{
    color: rgb(218, 0, 120);
    text-decoration: none;;
}

.project-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 0 10%;
}

.project-nav-buttons button {
    height: 40px;
    padding: 0 30px;
    color: var(--text-color-primary);
    font-weight: 600;
    font-family: "montserrat";
    background-color: transparent;
    outline: 1px solid var(--text-color-primary);
    border: none;
    border-radius: 20px;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.project-nav-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 40px rgba(218, 0, 120, 0.815) inset;
    background-color: var(--primary-accent-hover);
    color: white;
    outline: none;
}

.container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    margin: 30px 10%;
    gap: 20px;
    align-items: center;
    background-color: transparent;
}
/* img{
    width: 100%;
    border-radius: 10px;
} */
.gallery1{
    margin-right: 20px;
}
.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
    width: 110%;
}
.gallery1 img {
    display: block;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}
/* Hover overlay */
.img-wrapper::after {
    content: 'Click to preview';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through to the image */
    z-index: 2;
    text-align: center;
}
/* Hover effect for devices that support hover (desktops) */
@media (hover: hover) {
    .img-wrapper:hover::after {
        opacity: 1;
    }
    .img-wrapper:hover img {
        transform: scale(1.05);
        filter: brightness(80%);
    }
}
/* Lightbox / Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: rgba(48, 48, 48, 0.95);
    backdrop-filter: blur(5px);
    transition: 0.3s ease;
}

/* Sticky Close Button */
.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2100;
    line-height: 1;
}

/* Zoom Controls Styling */
.zoom-controls {
    position: fixed;
    top: 20px;
    right: 90px;
    z-index: 2100;
    display: flex;
    gap: 10px;
}

.zoom-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.close:hover {
    color: rgb(223, 57, 148);
    transform: rotate(90deg);
}

/* Modal Content Container */
.modal-content-wrapper {
    margin: 0 auto;
    padding: 80px 20px;
    width: 85%;
    max-width: 800px; /* Constrains the width on desktop for better readability */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Preview Image */
.modal-main-img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 50px;
    transition: transform 0.2s ease-out;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.5); */
    animation: zoomIn 0.5s ease;
}

/* Design Process Section */
.process-section {
    width: 75%;
    color: white;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.process-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: rgb(223, 57, 148);
    text-align: center;
}

.process-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.process-step {
    margin-bottom: 60px;
    text-align: center;
}

.process-step img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-step p {
    font-size: 1rem;
    color: #aaa;
    font-style: italic;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

    /* Responsive adjustments for modal */
    @media screen and (max-width: 768px) {
        .close {
            top: 15px;
            right: 20px;
            font-size: 40px;
        }
        .zoom-controls {
            top: auto;
            bottom: 15px;
            right: 15px;
        }
        .modal-content-wrapper {
            padding: 50px 15px;
        }
        .process-section h3 {
            font-size: 1.5rem;
        }
    }

    /* end  lightbox or image model */
    .other-projects{
        text-align: center;
        margin: 30px 0;
        font-size: 45px;
        color: var(--text-color-primary);
    }
    .other-projects span{
        color: var(--primary-accent);
    }

    .just-hr1{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 60px;
        width: 100%;
    background-color: var(--primary-accent);
        color: white;
        transform: rotate(-0.8deg);
    }
    .just-hr{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 40px;
        width: 100%;
    background-color: #131313;
        color: white;
        margin-top: -20px;
        /* transform: rotate(-2deg); */
    }


/* Responsive Design */

/* Large Screens & Laptops (max-width: 1200px) */
@media screen and (max-width: 1200px) {
    .container {
        margin-left: 40px;
        margin-right: 40px;
    }
}

/* Tablet View (max-width: 1024px)
@media screen and (max-width: 1024px) {
    .head-er, header, .container {
        margin-left: 10%;
        margin-right: 10%;
    }
    .other-projects {
        font-size: 38px;
    }
} */

@media screen and (min-width: 851px) and (max-width: 1035px) {
    .pivx-text{
    margin: 20px 70px;
    font-size: 15px;
    }
}
/* Mobile & Small Tablets (max-width: 768px) */
@media screen and (max-width: 850px) {
    .container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 10px auto;
    gap: 10px;
    }

    /* Designs Content */
    .container {
        margin: 20px 10%;
        width: auto;
    }

    .pivx-text{
    margin: 20px 70px;
    font-size: 12px;
    text-align: left;
    }

    .other-projects {
        font-size: 32px;
        text-align: center;
        margin-left: 0;
    }

    .project-nav-buttons {
        flex-wrap: wrap; /* Allow buttons to wrap if needed on very small screens */
        gap: 10px; /* Reduce gap for mobile */
    }
    
}

@media screen and (min-width: 300px) and (max-width: 479px) {

    .pivx-text{
    margin: 20px 30px;
    font-size: 12px;
    gap: 12px;
    text-align: left;
    }

    .other-projects {
        margin-left: 10%;
    }

    .process-section {
    width: 100%;
    color: white;
    padding: 30px 0;
    }

}