/* Reset */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background:#020617;
    color:#e2e8f0;
    overflow-x:clip;
    position:relative;
}

/* Ambient gradient overlay */
body::before{
    content:'';
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(56,189,248,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(168,85,247,0.04) 0%, transparent 50%);
    pointer-events:none;
    z-index:0;
}

/* Floating Particles */
.bg-particles{
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    pointer-events:none;
    z-index:0;
    overflow:hidden;
}

.particle{
    position:absolute;
    border-radius:50%;
    background:radial-gradient(circle, rgba(56,189,248,0.15), transparent);
    animation:floatParticle linear infinite;
}

@keyframes floatParticle{
    0%{ transform:translateY(100vh) scale(0); opacity:0; }
    10%{ opacity:1; }
    90%{ opacity:1; }
    100%{ transform:translateY(-10vh) scale(1); opacity:0; }
}


/* ===== Projects Section ===== */
.projects-section{
    padding:100px 40px;
    max-width:1200px;
    margin:auto;
    text-align:center;
    position:relative;
    z-index:1;
}

.title{
    font-size:36px;
    color:#38bdf8;
}

.subtitle{
    margin-top:10px;
    color:#94a3b8;
}

/* ===== Grid Layout (3 cards per row) ===== */
.projects-grid{
    margin-top:40px;
    display:grid;
    grid-template-columns: repeat(3, 1fr); /* 3 boxes in one row */
    gap:30px;
}

/* Remove if you don’t want full-width card */
.full{
    grid-column: 1 / -1;
    margin-top:20px;
}

/* ===== Project Card ===== */
.project-card{
    background:#020617;
    border:1px solid #1e293b;
    border-radius:14px;
    padding:20px;
    text-align:left;
    transition: all 0.3s ease;
    cursor:pointer;
    position:relative;
}

.project-card:hover,
.project-card:active{
    transform: translateY(-8px) scale(1.02);   /* move up + slight zoom */
    border-color:#38bdf8;                      /* highlight border */
    box-shadow: 0 15px 40px rgba(56,189,248,0.35); /* glow effect */
}

.project-card:active{
    transform: translateY(-4px) scale(1.01);
}

.project-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:8px;
}

.project-card h3{
    margin-top:15px;
    color:#38bdf8;
}

.project-card p{
    margin-top:8px;
    font-size:14px;
    line-height:1.5;
}

/* ===== Tech Tags ===== */
.tech{
    margin-top:12px;
}

.tech span{
    display:inline-block;
    border:1px solid #1e293b;
    padding:4px 10px;
    border-radius:12px;
    margin-right:6px;
    margin-top:5px;
    font-size:12px;
}

/* ===== Buttons ===== */
.buttons{
    margin-top:15px;
}

.btn{
    display:inline-block;
    padding:6px 14px;
    border-radius:6px;
    font-size:13px;
    margin-right:8px;
    text-decoration:none;
    transition:0.3s;
}

.code{
    background:#111827;
    color:#38bdf8;
    border:1px solid #38bdf8;
}

.live{
    background:#38bdf8;
    color:#020617;
}

.btn:hover{
    transform:scale(1.05);
}

/* ===== Footer ===== */
footer{
    text-align:center;
    padding:20px;
    background:#020617;
    margin-top:40px;
    position:relative;
    z-index:1;
}

/* ===== Scroll Animation ===== */
.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:0.6s;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* ===== Responsive ===== */

/* Tablet → 2 cards */
@media(max-width:992px){
    .projects-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile → 1 card */
@media(max-width:600px){
    .projects-grid{
        grid-template-columns: 1fr;
    }

    body{
        padding-top:60px;
    }

    .projects-section{
        padding-top:20px;
    }
}