/* --- Global Variables --- */
:root {
    --bg-color: #0f172a;      /* Slate 900 - Deep modern dark background */
    --text-main: #f8fafc;     /* Slate 50 - Crisp white for main text */
    --text-muted: #94a3b8;    /* Slate 400 - Softer gray for subtitles */
    --accent: #14b8a6;        /* Teal 500 - Tech accent color */
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    -webkit-font-smoothing: antialiased;
}

/* --- Header Section --- */
header {
    text-align: center;
    max-width: 800px;
    margin-top: 10vh;
    animation: fadeIn 0.8s ease-out;
}

header img {
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

header p {
    font-size: 1.1rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* --- Footer --- */
footer {
    margin-top: auto;
    padding-top: 3rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Main Content Area --- */
main {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto;
    animation: fadeIn 1.2s ease-out;
}

.portfolio-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155; /* Slate 700 */
    color: var(--text-main);
}

/* --- Project Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* --- Project Cards --- */
.card {
    background-color: #1e293b; /* Slate 800 */
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* --- Tech Tags --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}
