﻿:root {
    --bg-base: #070b16;
    --bg-soft: #111932;
    --surface: rgba(16, 24, 48, 0.78);
    --surface-strong: rgba(21, 32, 62, 0.9);
    --text: #ecf2ff;
    --muted: #b4c1df;
    --line: rgba(167, 190, 234, 0.28);
    --accent: #38bdf8;
    --accent-2: #22c55e;
    --warning: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 38px rgba(2, 6, 23, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    line-height: 1.5;
    background:
        radial-gradient(circle at 12% 14%, rgba(56, 189, 248, 0.24), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(34, 197, 94, 0.24), transparent 30%),
        linear-gradient(140deg, #060912 0%, #0a1224 42%, #060913 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1080px, 92vw);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(14px);
    background: rgba(6, 10, 22, 0.72);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.92rem;
    color: #ccdbff;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #ffffff;
}

.hero {
    padding: 4.4rem 0 2.4rem;
    display: grid;
    gap: 1.2rem;
}

.eyebrow {
    margin: 0;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.14);
    color: #bfe9ff;
    font-size: 0.82rem;
    padding: 0.36rem 0.72rem;
}

h1,
h2,
h3 {
    font-family: "Sora", sans-serif;
}

h1 {
    margin: 0;
    max-width: 17ch;
    font-size: clamp(2rem, 5vw, 3.9rem);
    line-height: 1.05;
    text-wrap: balance;
}

.hero-copy {
    margin: 0;
    max-width: 66ch;
    color: var(--muted);
    font-size: clamp(1rem, 2.1vw, 1.16rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.btn {
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.72rem 1rem;
    border-radius: 11px;
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    color: #04101d;
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.32);
}

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

.btn-ghost {
    color: #dbeafe;
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(10, 16, 33, 0.5);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(186, 230, 253, 0.8);
}

.stats {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 0.7rem;
}

.stat {
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(10, 15, 30, 0.64);
}

.stat strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
}

.stat span {
    font-size: 0.84rem;
    color: #c3d0ed;
}

.section {
    padding: 2.5rem 0;
}

.section-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.3rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.7vw, 1.95rem);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: var(--shadow);
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(12px);
    animation: card-in 0.62s ease forwards;
    animation-delay: var(--delay, 0ms);
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.56);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    border: 1px solid rgba(96, 165, 250, 0.44);
    color: #c0dcff;
    background: rgba(96, 165, 250, 0.15);
}

.status {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    border: 1px solid rgba(253, 186, 116, 0.4);
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
}

.status.online {
    border-color: rgba(110, 231, 183, 0.42);
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.2);
}

.project-card h3 {
    margin: 0;
    font-size: 1.14rem;
}

.project-card p {
    margin: 0;
    color: #c9d6f2;
    font-size: 0.95rem;
    min-height: 3.1em;
}

.project-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.stack {
    color: #9cb2df;
    font-size: 0.81rem;
    font-weight: 600;
}

.project-open {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fbff;
    border-bottom: 1px solid rgba(248, 251, 255, 0.45);
}

.about-card {
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(13, 19, 37, 0.75);
    padding: 1.1rem;
}

.about-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
}

.about-card p {
    margin: 0;
    color: #d1ddfa;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 2.3rem;
    padding: 1.2rem 0 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
    color: #b7c6e5;
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.84rem;
    color: #c6ddff;
    padding: 0.35rem 0.6rem;
    border-radius: 9px;
    border: 1px solid rgba(147, 197, 253, 0.45);
    background: rgba(16, 25, 49, 0.55);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
    border-color: rgba(186, 230, 253, 0.8);
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: reveal-up 0.65s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 780px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding-top: 3.3rem;
    }

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

    .project-card p {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .project-card {
        opacity: 1;
        transform: none;
    }
}
