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

body{
    background: linear-gradient(90deg,#020617,#0b3c5d);
    color:#e2e8f0;
}

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

.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;
}

/* ===== 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;
    }
}