/* ================= GLOBAL ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

section{
    padding: 100px 1px;
}

/* ================= HERO ================= */
.projects-hero{
    height:60vh;
    background:url('https://images.unsplash.com/photo-1559028012-481c04fa702d') center/cover;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.projects-hero .overlay{
    position:absolute;
    inset:0;
    background: rgba(12,45,99,0.85);
}

.hero-content{
    position:relative;
    color: var(--text-light);
    text-align:center;
}

.hero-content h1{
    font-size:52px;
    font-weight:700;
}

.hero-content p{
    margin-top:10px;
    color: var(--primary-ultra-light);
}

/* ================= FILTER ================= */
.project-filter{
    text-align:center;
    background: var(--bg-light);
}

.project-filter h2{
    color: var(--text-dark);
    font-size:32px;
}

.filter-buttons{
    margin-top:20px;
}

.filter-buttons button{
    padding:12px 26px;
    border:none;
    margin:5px;
    border-radius:30px;
    background: var(--primary-ultra-light);
    color: var(--text-dark);
    cursor:pointer;
    font-weight:500;
    transition:0.3s;
}

.filter-buttons button:hover{
    background: var(--primary-light);
    color: var(--text-light);
}

.filter-buttons .active{
    background: var(--primary);
    color: var(--text-light);
}

/* ================= PROJECT GRID ================= */
.projects{
    background: var(--bg-main);
}

.projects-container{
    width:90%;
    margin:auto;

    /* ðŸ”¥ FIX: 3 CARDS PER ROW */
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================= CARD ================= */
.project-card{
    position:relative;
    overflow:hidden;
    border-radius: var(--radius);

    /* ðŸ”¥ BIGGER CARD */
    height:320px;

    box-shadow: var(--shadow-light);
    transition:0.4s ease;
}

.project-card:hover{
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
}

.project-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.6s;
}

/* ================= HOVER EFFECT ================= */
.project-info{
    position:absolute;
    inset:0;
    background: rgba(12,45,99,0.9);
    color: var(--text-light);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;

    opacity:0;
    transition:0.4s;
    padding:20px;
}

.project-card:hover img{
    transform:scale(1.1);
}

.project-card:hover .project-info{
    opacity:1;
}

/* TEXT */
.project-info h3{
    margin-bottom:10px;
    font-size:22px;
    font-weight:600;
}

.project-info p{
    font-size:15px;
    color: var(--primary-ultra-light);
}

/* BUTTON */
.project-info a{
    margin-top:15px;
    padding:10px 26px;
    background: var(--primary);
    border-radius:30px;
    color: var(--text-light);
    text-decoration:none;
    font-weight:500;
    transition:0.3s;
}

.project-info a:hover{
    background: var(--primary-light);
}

/* ================= CTA ================= */
.cta{
    text-align:center;
    background: var(--gradient-dark);
    color: var(--text-light);
}

.cta h2{
    font-size:34px;
}

.cta p{
    margin-top:10px;
    color: var(--primary-ultra-light);
}

.cta-btn{
    display:inline-block;
    margin-top:20px;
    padding:14px 36px;
    background: var(--white);
    color: var(--primary-dark);
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.cta-btn:hover{
    transform: scale(1.08);
    box-shadow: var(--shadow-light);
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media(max-width:1024px){
    .projects-container{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media(max-width:600px){

    section{
        padding:70px 20px;
    }

    .projects-container{
        grid-template-columns: 1fr;
    }

    .hero-content h1{
        font-size:32px;
    }

    .cta h2{
        font-size:24px;
    }
}
.project-card{
    transition: all 0.4s ease;
}

.project-card.hide{
    opacity:0;
    transform: scale(0.8);
    pointer-events:none;
    position:absolute;
}

.project-card.show{
    opacity:1;
    transform: scale(1);
    position:relative;
}
/* ==========================================================
   PROJECT ENQUIRY POPUP
========================================================== */

.enquiry-modal {

    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;

    transition: .35s ease;

    z-index: 99999;

}

.enquiry-modal.show {

    opacity: 1;
    visibility: visible;

}

/* ==========================
   POPUP BOX
========================== */

.enquiry-popup {

    width: 92%;
    max-width: 980px;

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1.2fr;

    position: relative;

    box-shadow: 0 30px 60px rgba(0,0,0,.25);

    animation: popupAnimation .35s ease;
    z-index: 99999;

}

@keyframes popupAnimation {

    from{

        transform: translateY(40px) scale(.95);

        opacity:0;

    }

    to{

        transform: translateY(0) scale(1);

        opacity:1;

    }

}

/* ==========================
   CLOSE BUTTON
========================== */

.close-popup{

    position:absolute;

    top:14px;
    right:18px;

    width:40px;
    height:40px;

    border:none;

    border-radius:50%;

    background:#ffffff;

    color:#2563eb;

    font-size:28px;

    cursor:pointer;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    transition:.3s;

    z-index:5;

}

.close-popup:hover{

    background:#2563eb;

    color:#fff;

    transform:rotate(90deg);

}

/* ==========================
   LEFT PANEL
========================== */

.popup-left{

    background:linear-gradient(135deg,#2563eb,#1e40af);

    color:#fff;

    padding:55px 40px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.popup-left h2{

    font-size:34px;

    font-weight:700;

    margin-bottom:20px;

}

.popup-left p{

    line-height:30px;

    margin-bottom:30px;

    opacity:.95;

}

.popup-left ul{

    list-style:none;

}

.popup-left li{

    margin:18px 0;

    display:flex;

    align-items:center;

    gap:12px;

    font-size:16px;

}

.popup-left li i{

    color:#fff;

    font-size:18px;

}

/* ==========================
   RIGHT PANEL
========================== */

.popup-right{

    padding:45px;

}

.popup-right h3{

    font-size:28px;

    color:#0f172a;

    margin-bottom:28px;

}

/* ==========================
   FORM
========================== */

.form-group{

    margin-bottom:18px;

}

.form-group input,
.form-group textarea{

    width:100%;

    padding:15px 18px;

    border:1px solid #dbe3ef;

    border-radius:12px;

    outline:none;

    font-size:15px;

    transition:.3s;

    background:#fafcff;

}

.form-group input:focus,
.form-group textarea:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.12);

    background:#fff;

}

.form-group textarea{

    resize:none;

    min-height:140px;

}

/* ==========================
   BUTTON
========================== */

.popup-submit-btn{

    width:100%;

    padding:16px;

    border:none;

    border-radius:12px;

    background:linear-gradient(135deg,#2563eb,#1e40af);

    color:#fff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

.popup-submit-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(37,99,235,.35);

}

.popup-submit-btn i{

    margin-right:8px;

}

/* ==========================
   SCROLLBAR
========================== */

.enquiry-popup::-webkit-scrollbar{

    width:8px;

}

.enquiry-popup::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:20px;

}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:900px){

    .enquiry-popup{

        grid-template-columns:1fr;

        max-height:90vh;

        overflow-y:auto;

    }

    .popup-left{

        padding:35px;

    }

    .popup-right{

        padding:35px;

    }

}

@media(max-width:576px){

    .popup-left{

        padding:30px 25px;

    }

    .popup-right{

        padding:30px 20px;

    }

    .popup-left h2{

        font-size:26px;

    }

    .popup-right h3{

        font-size:24px;

    }

    .form-group input,
    .form-group textarea{

        padding:14px;

    }

}