/* ============================= */
/*          THEME SYSTEM         */
/* ============================= */

:root {
    --bg: #000000;
    --text: #e5e5e5;
    --accent: #00bfff;
    --muted: #888;
}

body.light {
    --bg: #ffffff;
    --text: #111111;
    --accent: #0066cc;
    --muted: #555;
}

/* ============================= */
/*            RESET              */
/* ============================= */

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

html {
    font-size: 16px;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.container {
    max-width: 850px;
    margin: auto;
    width: 100%;
}

/* ============================= */
/*          NAVIGATION           */
/* ============================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

/* Logo */
nav strong {
    font-size: 1rem;
}

/* Desktop Links */
.nav-links {
    display: flex;
    align-items: center;
}

/* Links */
nav a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 22px;
    font-size: 0.9rem;
    position: relative;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Dark Mode Toggle */
.toggle {
    margin-left: 22px;
    cursor: pointer;
}

/* Hamburger (hidden desktop) */
.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* ============================= */
/*          TYPOGRAPHY           */
/* ============================= */

h1 {
    font-size: 2rem;
    margin-bottom: 25px;
}

h2 {
    margin-top: 45px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 1.2rem;
}

p {
    margin-bottom: 18px;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.muted {
    color: var(--muted);
    font-style: italic;
}

/* Section layout */
.section {
    margin-bottom: 35px;
    border-left: 2px solid var(--accent);
    padding-left: 18px;
}

/* Cards (Blog & Projects) */
.card {
    margin-bottom: 35px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--muted);
}

/* ============================= */
/*         CONTACT FORM          */
/* ============================= */

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--muted);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    padding: 12px 24px;
    border: 1px solid var(--accent);
    background: none;
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s ease;
}

button:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

footer {
    margin-top: 70px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.social {
    margin-top: 15px;
}

.social a {
    margin: 0 12px;
    color: var(--text);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.social a:hover {
    opacity: 1;
}

.social svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* ============================= */
/*         SCROLL REVEAL         */
/* ============================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* ============================= */
/*           MOBILE              */
/* ============================= */

@media (max-width: 768px) {

    nav {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 25px;
        border-top: 1px solid var(--muted);
        padding-top: 20px;
    }

    .nav-links a {
        margin: 14px 0;
        font-size: 1rem;
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    button {
        width: 100%;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.05rem;
    }

    body {
        padding: 16px;
    }
}