:root {
    --bg: #050816;
    --card: rgba(10, 16, 32, 0.72);
    --border: rgba(255, 255, 255, 0.11);
    --text: #ffffff;
    --text-muted: #aeb6cc;
    --blue: #5ea1ff;
    --purple: #9b7cff;
    --green: #55d66b;
    --yellow: #f2c94c;
    --terminal-bg: #050b18;
    --terminal-top: #171d2b;
}

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 10%, rgba(78, 137, 255, 0.18), transparent 28%),
        radial-gradient(circle at 70% 38%, rgba(128, 92, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #060918 0%, #040713 100%);
}

.page-glow {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.page-glow-blue {
    top: 0;
    right: 0;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(72, 130, 255, 0.2), transparent 70%);
}

.page-glow-purple {
    top: 35%;
    right: 5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(132, 92, 255, 0.18), transparent 70%);
}

/* NAVBAR */

.navbar {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

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

/* HERO */

.hero {
    min-height: 100vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(420px, 520px);
    gap: 5.5rem;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    min-width: 0;
    max-width: 560px;
}

.hero-tag {
    display: inline-flex;
    margin-bottom: 1.35rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero h1 {
    max-width: 560px;
    margin-bottom: 1.7rem;
    font-size: clamp(3.2rem, 6.1vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 560px;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn-primary,
.btn-secondary {
    min-height: 52px;
    padding: 0 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 800;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    box-shadow: 0 16px 45px rgba(100, 115, 255, 0.28);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    background: rgba(255, 255, 255, 0.025);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* TERMINAL */

.terminal-card {
    width: 100%;
    max-width: 520px;
    justify-self: end;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(10, 16, 31, 0.98), rgba(5, 10, 22, 0.98));
    box-shadow:
        0 0 90px rgba(107, 91, 255, 0.22),
        0 30px 90px rgba(0, 0, 0, 0.42);
}

.terminal-bar {
    height: 48px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--terminal-top);
}

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

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

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

.terminal-body {
    min-height: 360px;
    padding: 1.7rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(101, 83, 255, 0.08), transparent 35%),
        var(--terminal-bg);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.75;
}

.terminal-body p {
    margin: 0;
}

.terminal-user {
    color: var(--green);
    font-weight: 800;
}

.terminal-path {
    color: #d6e2ff;
}

.terminal-command {
    color: #8ab4ff;
}

.terminal-command.purple {
    color: var(--purple);
}

.terminal-output {
    color: #f1f5ff;
}

.terminal-cursor {
    color: white;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* SECTIONS */

.section {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 4rem 2rem 7rem;
}

.section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 4rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.section-header p {
    max-width: 520px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* PROJECTS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.project-card,
.focus-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17, 25, 45, 0.78), rgba(9, 15, 30, 0.78));
}

.project-card {
    padding: 1.8rem;
    border-radius: 22px;
}

.project-card:hover,
.focus-card:hover {
    transform: translateY(-5px);
    border-color: rgba(111, 159, 255, 0.42);
}

.project-badge {
    display: inline-flex;
    margin-bottom: 1.3rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.project-badge.blue {
    color: var(--blue);
    background: rgba(94, 161, 255, 0.13);
}

.project-badge.purple {
    color: var(--purple);
    background: rgba(155, 124, 255, 0.13);
}

.project-badge.yellow {
    color: var(--yellow);
    background: rgba(242, 201, 76, 0.13);
}

.project-badge.green {
    color: var(--green);
    background: rgba(85, 214, 107, 0.13);
}

.project-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.project-card p,
.focus-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

.project-card p {
    margin-bottom: 1.35rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
}

.tags span {
    padding: 0.45rem 0.75rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.065);
    color: #dce5ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
}

.project-link:hover {
    color: white;
}

/* FOCUS */

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.focus-card {
    padding: 1.55rem;
    border-radius: 18px;
}

.focus-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.45rem;
    font-weight: 800;
}

.icon-blue {
    color: var(--blue);
    background: rgba(94, 161, 255, 0.14);
}

.icon-purple {
    color: var(--purple);
    background: rgba(155, 124, 255, 0.14);
}

.icon-green {
    color: var(--green);
    background: rgba(85, 214, 107, 0.14);
}

.icon-yellow {
    color: var(--yellow);
    background: rgba(242, 201, 76, 0.14);
}

.focus-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

.focus-card p {
    font-size: 0.95rem;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .terminal-card {
        justify-self: start;
    }
}

@media (max-width: 800px) {
    .section-header,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .focus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .navbar {
        padding: 1.2rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 2rem 1rem 4rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.3rem);
        line-height: 1.02;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .terminal-card {
        max-width: 100%;
    }

    .terminal-body {
        min-height: auto;
        padding: 1rem;
        font-size: 0.74rem;
    }

    .section {
        padding: 3rem 1rem 5rem;
    }

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