/***************************************************** PROJECT *****************************************************/
/* =========================================
   PROJECTS HERO
========================================= */

.projects-hero{
    position:relative;
    width:100%;
    max-width:1000px;
    margin:0 auto 35px;
    padding:35px 20px 25px;
    text-align:center;
    overflow:hidden;
}

/* =========================================
   HERO GLOW
========================================= */

.projects-hero::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    top:-180px;
    left:50%;
    transform:translateX(-50%);
    background:radial-gradient(
        circle,
        rgba(106,13,173,.25),
        transparent 70%
    );
    pointer-events:none;
    z-index:0;
}

.projects-badge,
.projects-icon,
.projects-title,
.projects-tagline,
.projects-divider{
    position:relative;
    z-index:1;
}

/* =========================================
   BADGE
========================================= */

.projects-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 18px;
    border:1px solid rgba(168,85,247,.35);
    border-radius:30px;
    background:rgba(106,13,173,.16);
    color:#b9a3ff;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:1.5px;
    margin-bottom:18px;
}

/* =========================================
   ICON
========================================= */

.projects-icon{
    font-size:38px;
    line-height:1;
    margin-bottom:8px;
    color:#FFD700;
    text-shadow:
        0 0 8px rgba(255,215,0,.35),
        0 0 20px rgba(168,85,247,.35);
}

/* =========================================
   TITLE
========================================= */

.projects-title{
    margin:5px 0 8px;
    font-size:3.2rem;
    line-height:1.15;
    font-weight:800;
    letter-spacing:1px;
    background:linear-gradient(
        100deg,
        #e8dcff 5%,
        #b9a3ff 25%,
        #7b2cbf 55%,
        #6A0DAD 72%,
        #0FFF50 100%
    );
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}


/* =========================================
   TAGLINE
========================================= */

.projects-tagline{
    max-width:650px;
    margin:0 auto;
    color:rgba(255,255,255,.72);
    font-size:1.05rem;
    line-height:1.5;
}

/* =========================================
   PROJECT CARDS
========================================= */
.project-cards{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:25px;

    width:100%;
    max-width:1600px;

    margin:0 auto;
    padding:25px 30px;

    box-sizing:border-box;
}

.project-card{
    width:100%;
    min-width:0;
    box-sizing:border-box;

    background:linear-gradient(145deg,#151515,#222);
    border-radius:15px;
    overflow:hidden;
    cursor:pointer;

    border:1px solid rgba(106,13,173,.35);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

    display:flex;
    flex-direction:column;
}

.project-card:hover{
    transform:translateY(-6px);
    border-color:#00ff9d;
    box-shadow:0 0 20px rgba(0,255,157,.25);
}

.project-image-container{
    width:100%;
    height:360px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#111;
    overflow:hidden;
}

.project-image-container img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.project-info{
    padding:18px;
    text-align:center;
    font-family:'Fira Sans Condensed',sans-serif;
    flex:1;
    display:flex;
    flex-direction:column;
}

.project-title{
    margin:0;
    font-size:1.3rem;
    color:#00ff9d;
}

.project-date{
    margin:8px 0;
    color:#aaa;
    font-size:1rem;
    margin-bottom: 30px;
}

.view-project{
    display:inline-flex;
    align-self:center;
    margin-top:auto;
    color:white;
    background:#6a0dad;
    padding:5px 12px;
    border-radius:20px;
    font-size:.8rem;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,0,0,.85);
    justify-content:center;
    align-items:center;
}

.modal.show{
    display:flex;
}

.modal-content{
    width:90%;
    max-width:650px;
    background:#171717;
    border-radius:15px;
    padding:25px;
    text-align:center;
    max-height:90vh;
    overflow-y:auto;
}

.modal-header{
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

#modalTitle{
    color:#00ff9d;
    font-size:1.5rem;
}

.close{
    position:absolute;
    right:0;
    top:-5px;
    font-size:32px;
    color:white;
    cursor:pointer;
}

#modalImage{
    width:85%;
    max-height:40vh;
    object-fit:contain;
    margin:15px auto;
    display:block;
}

.modal-section h3{
    color:#6a0dad;
}

#modalDescription{
    color:#ddd;
    line-height:1.5;
}

#modalLinks{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:15px;
}

.modal-btn{
    background:#6a0dad;
    color:white;
    padding:8px 15px;
    border-radius:8px;
    text-decoration:none;
}

@media(max-width:1024px){
    .project-cards{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:767px){
    .project-cards{
        grid-template-columns:1fr;
        padding:12px;
        gap:15px;
    }

    .project-image-container{
        height:220px;
    }

    .project-title{
        font-size:1.15rem;
    }

    .project-description{
        font-size:.9rem;
    }

    .modal-content{
        width:94%;
        padding:18px;
    }

    #modalTitle{
        font-size:1.15rem;
    }

    #modalImage{
        width:90%;
        max-height:30vh;
    }

    #modalDescription{
        font-size:.85rem;
    }
}
