/* Global Reset & Theme Variables */
:root {
    --bg-color: #0b0f19;
    --card-bg: #151f32;
    --border-color: #24324d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --max-width: 950px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Header */
header {
    background-color: rgba(11, 15, 25, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Main Layout */
main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Elements */
.hero {
    padding: 3rem 0 2rem 0;
    animation: fadeIn 0.6s ease-out;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--accent);
}

.headline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Text Formatting Blocks */
.about-section p {
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    max-width: 800px;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

/* Grid & Layout Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card h4 {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

/* Badges / Skill Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.tag {
    background-color: #1e293b;
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #334155;
}

/* Footer layout */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}