 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}
 body {
     font-family: 'Roboto', sans-serif;
     line-height: 1.6;
     color: #eee;
     background: linear-gradient(to bottom, #16213e, #0f3460);
     overflow-x: hidden;
}
 h1, h2, h3, h4 {
     font-family: 'Playfair Display', serif;
}
/* NAV  */
 nav {
     background: linear-gradient(to bottom, #16213e, #0f3460);
     padding: 1.2em 2em;
     position: sticky;
     top: 0;
     z-index: 100;
     backdrop-filter: blur(12px);
     box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
 nav ul {
     list-style: none;
     display: grid;
     grid-template-columns: auto auto auto auto;
     justify-content: center;
     gap: 3em;
}
 nav li a {
     color: #fff;
     text-decoration: none;
     font-weight: 700;
     font-size: 1.05em;
     position: relative;
     transition: color 0.3s, transform 0.3s;
}
 nav li a::after {
     content: '';
     position: absolute;
     width: 0;
     height: 3px;
     bottom: -6px;
     left: 0;
     background: #FFD700;
     transition: width 0.4s cubic-bezier(0.23,1,0.32,1);
}
 nav li a:hover::after, nav li a.active::after {
     width: 100%;
}
 nav li a:hover, nav li a.active {
     color: #FFD700;
     transform: translateY(-2px);
}
 .hamburger {
     display: none;
}
/* HERO */
 .projects-hero {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     overflow: hidden;
     background: linear-gradient(to bottom, #001f3f, #000033);
}
 #particles-js {
     position: absolute;
     inset: 0;
     z-index: 0;
}
 .hero-content {
     z-index: 2;
     max-width: 1000px;
     padding: 0 2em;

}
 .hero-content h1 {
     font-size: 5.2rem;
     line-height: 1.05;
     margin-bottom: 0.4em;
     text-shadow: 0 4px 30px rgba(255,215,0,0.4);
     animation: glow 3s infinite alternate;
}
 @keyframes glow {
     from {
         text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    }
     to {
         text-shadow: 0 4px 40px rgba(255,215,0,0.7);
    }
}
 .hero-text {
     font-size: 1.65rem;
     margin: 1.2em 0 2.5em;
     max-width: 700px;
     margin-left: auto;
     margin-right: auto;
     opacity: 0.95;
}
 .hero-verse {
     font-style: italic;
     font-size: 1.35rem;
     color: #FFD700;
     margin-top: 2em;
}
/* FILTERS  */
 .filters {
     display: flex;
     justify-content: center;
     gap: 1.2em;
     flex-wrap: wrap;
     padding: 3em 2em 2em;
     background: rgba(0,31,63,0.6);
}
 .filter-btn {
     background: transparent;
     color: #fff;
     border: 2px solid #FFD700;
     padding: 0.9em 2.2em;
     border-radius: 50px;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
}
 .filter-btn:hover, .filter-btn.active {
     background: #FFD700;
     color: #001f3f;
     transform: translateY(-4px);
     box-shadow: 0 10px 25px rgba(255,215,0,0.35);
}
/* PROJECT GRID */
 .projects-grid {
     max-width: 1300px;
     margin: 0 auto;
     padding: 2em;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
     gap: 2.5em;
}
 .project-card {
     background: rgba(22,33,62,0.85);
     border-radius: 20px;
     overflow: hidden;
     border: 1px solid rgba(255,215,0,0.15);
     transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
     cursor: pointer;
}
 .project-card:hover {
     transform: translateY(-18px) scale(1.04);
     box-shadow: 0 30px 60px rgba(255,215,0,0.25);
     border-color: #FFD700;
}
 .project-card img {
     width: 100%;
     height: 260px;
     object-fit: cover;
     transition: transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
 .project-card:hover img {
     transform: scale(1.12);
}
 .project-info {
     padding: 2em;
}
 .project-info h3 {
     font-size: 1.85rem;
     margin-bottom: 0.6em;
     color: #fff;
}
 .project-info p {
     font-size: 1.05rem;
     color: #ccc;
     line-height: 1.55;
     margin-bottom: 1.4em;
}
 .tech-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 0.6em;
}
 .tech-tags span {
     background: rgba(255,215,0,0.1);
     color: #FFD700;
     padding: 0.4em 1.1em;
     border-radius: 30px;
     font-size: 0.85rem;
     font-weight: 500;
}
 .featured-badge {
     position: absolute;
     top: 20px;
     right: 20px;
     background: #FFD700;
     color: #001f3f;
     font-size: 0.8rem;
     font-weight: 700;
     padding: 6px 18px;
     border-radius: 30px;
     box-shadow: 0 4px 15px rgba(255,215,0,0.5);
}
/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2em;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: #16213e;
    max-width: 960px;
    width: 100%;
    max-height: calc(100vh - 4em);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.2);
    animation: modalPop 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(60px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-body {
    padding: 3em;
    overflow-y: auto;
    flex: 1;
}

.modal-body h2 {
    font-size: 2.8rem;
    margin-bottom: 1em;
    color: #FFD700;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.modal-close:hover {
    color: #FFD700;
    transform: rotate(90deg);
}
/* FOOTER */
 .projects-footer {
     text-align: center;
     padding: 6em 2em 4em;
     background: linear-gradient(to bottom, #0f3460, #001f3f);
}
 .projects-footer a {
     display: inline-block;
     background: #FFD700;
     color: #001f3f;
     padding: 1.1em 3em;
     border-radius: 50px;
     font-weight: 700;
     font-size: 1.2rem;
     text-decoration: none;
     margin-top: 2em;
     transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
}
 .projects-footer a:hover {
     transform: translateY(-6px) scale(1.05);
     box-shadow: 0 15px 35px rgba(255,215,0,0.4);
}
 @media (max-width: 768px) {
     .projects-grid {
         grid-template-columns: 1fr;
         padding: 1.5em;
    }
     .hero-content h1 {
         font-size: 3.6rem;
         margin-top: 10vh;

    }
     nav ul {
         gap: 1.5em;
    }
    .hero-verse{
        margin-bottom: 10vh;
    }
    .modal {
        padding: 1em;
    }

    .modal img {
        height: 220px;
    }

    .modal-body {
        padding: 1.5em;
    }

    .modal-body h2 {
        font-size: 2rem;
    }

    .modal-body > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 2em !important;
    }

}



 @media (max-width: 320px) {
    .hero-content h1 {
    }
    nav ul {
        grid-template-columns: auto auto auto;

    }
    .hero-verse{
    }
 }