:root {
    --bg: #0a0a0f;
    --surface: #111118;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e4e4e7;
    --text-muted: #8b8b99;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--text);
}

.hamburger {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* ── Hero ───────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    margin-top: 56px;
    gap: 3rem;
}

.hero-content {
    flex: 1.2;
    max-width: 560px;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.65;
}

.description strong {
    color: var(--text);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ── Buttons ────────────────────────────────── */
.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.primary-btn {
    background: var(--accent);
    color: #fff;
}

.primary-btn:hover {
    background: #5558e6;
    transform: translateY(-1px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Terminal ───────────────────────────────── */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.code-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-title {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.window-body {
    padding: 1.2rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    min-height: 220px;
    max-height: 320px;
    overflow-y: auto;
}

/* Interactive terminal input */
.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 0.4rem;
}

.terminal-input-line .prompt {
    color: var(--text-muted);
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    flex: 1;
    caret-color: var(--accent);
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.terminal-error {
    color: #f87171;
    margin-top: 0.2rem;
}

.window-body span.output {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.green-text {
    color: #4ade80 !important;
}

/* ── Sections ───────────────────────────────── */
section:not(.hero) {
    padding: 5rem 10%;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ── Projects ───────────────────────────────── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.project-type {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-soft);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #fff;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    transition: gap 0.2s;
}

.project-link:hover {
    gap: 0.6rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ── Skills ─────────────────────────────────── */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: border-color 0.2s;
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-category h3 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
}

.skill-category h3 i {
    color: var(--accent);
    font-size: 0.95rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.skill-category ul li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Contact ────────────────────────────────── */
.contact-box {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3.5rem 2rem;
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #fff;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

#contact-btn {
    font-size: 0.95rem;
}

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

/* ── Responsive ─────────────────────────────── */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-graphic {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .description {
        margin: 0 auto 2rem auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: -100%;
        background: var(--bg);
        width: 100%;
        height: calc(100vh - 56px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    section:not(.hero) {
        padding: 3.5rem 5%;
    }

    .hero {
        padding: 5rem 5% 0 5%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Animations ─────────────────────────────── */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}