/* --- Base & Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
    padding: 0 2rem;
}
.container { 
    max-width: 900px; 
    margin: 0 auto; 
    display: block; 
}

/* --- Navbar --- */
nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid #1e293b;
}
nav a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
nav a:hover { color: #7dd3fc; }

/* --- Hero Section (Left Pic, Right Bio) --- */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 4rem 0;
}
.hero-img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #1e293b;
    flex-shrink: 0;
}
.hero-text h1 { margin-bottom: 1rem; font-size: 2.5rem; }
.hero-text p { font-size: 1.1rem; color: #cbd5e1; }

/* --- Sections & Grids --- */
section { margin-bottom: 5rem; }
h2 { 
    margin-bottom: 1.5rem; 
    font-size: 1.8rem; 
    border-bottom: 2px solid #1e293b; 
    padding-bottom: 0.5rem; 
    display: inline-block; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* --- Cards --- */
.card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #334155;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px #38bdf8;
    border-color: #38bdf8;
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.card h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
}
.card p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    flex-grow: 1;
}
.card-link {
    align-self: flex-start;
    margin-top: auto;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.8;
}
.card-link:hover {
    color: #7dd3fc;
    opacity: 1;
}

/* --- WIP Stack (Vertical, 2 images top, desc bottom) --- */
.wip-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.wip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    background: #1e293b;
    border: 2px solid #38bdf8;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wip-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}
.wip-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #334155;
}
.wip-row .wip-img:first-child {
    grid-row: 1;
    grid-column: 1;
}
.wip-row .wip-img:last-child {
    grid-row: 1;
    grid-column: 2;
}
.wip-content {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.wip-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}
.wip-content h3 {
    color: #f8fafc;
    font-size: 1.5rem;
}
.wip-content p {
    color: #cbd5e1;
    line-height: 1.7;
}

/* --- Tablet (<= 1100px) --- */
@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile / Small Tablet (<= 700px) --- */
@media (max-width: 700px) {
    .wip-row {
        grid-template-columns: 1fr;
    }
    .wip-row .wip-img:first-child,
    .wip-row .wip-img:last-child {
        grid-column: 1;
        grid-row: auto;
    }
    .wip-row .wip-img:first-child {
        grid-row: 1;
    }
    .wip-row .wip-img:last-child {
        grid-row: 2;
    }
    .wip-content {
        grid-row: 3;
        grid-column: 1;
    }
}

/* --- Phone / Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
    body {
        padding: 0 1rem;
    }
    .container {
        max-width: 100%;
    }
    
    /* Navbar */
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    nav a {
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin: 2.5rem 0;
    }
    .hero-img {
        width: 140px;
        height: 140px;
        border-radius: 16px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        margin-bottom: 3rem;
    }
    h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        padding-bottom: 0.4rem;
    }
    
    /* Grid / Cards */
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .card-img {
        height: 160px;
    }
    .card-content {
        padding: 1rem;
    }
    .card h3 {
        font-size: 1rem;
    }
    .card p {
        font-size: 0.8rem;
    }
    .card-link {
        font-size: 0.7rem;
    }
    
    /* WIP */
    .wip-stack {
        gap: 1.5rem;
    }
    .wip-row {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    .wip-content h3 {
        font-size: 1.2rem;
    }
    .wip-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .wip-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }
}