:root {
    --bg: #07090f;
    --bg-soft: #101523;
    --surface: #0f172a;
    --surface-alt: #121b31;
    --line: #2a3654;
    --text: #ecf2ff;
    --muted: #9daccc;
    --accent: #56e0c2;
    --accent-2: #f3c97d;
    --radius: 18px;
    --shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 10%, #15213f 0%, transparent 34%),
        radial-gradient(circle at 82% 0%, rgba(86, 224, 194, 0.12) 0%, transparent 26%),
        radial-gradient(circle at 80% 90%, rgba(243, 201, 125, 0.1) 0%, transparent 26%),
        var(--bg);
    color: var(--text);
    font-family: "Sora", "Segoe UI", sans-serif;
    min-height: 100%;
}

body {
    line-height: 1.65;
    overflow-x: hidden;
}

.noise-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
    background-size: 3px 3px;
    z-index: -1;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(7, 9, 15, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
}

.menu {
    display: flex;
    gap: 1rem;
}

.menu a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.menu a:hover {
    color: var(--text);
}

.hero {
    padding: 6rem 0 2rem;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    margin: 0 0 0.9rem;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    margin-bottom: 0.75rem;
}

.subtitle {
    color: var(--accent-2);
    font-weight: 500;
    max-width: 58ch;
}

.summary {
    color: var(--muted);
    max-width: 74ch;
    margin-top: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    color: #d5e1ff;
    font-size: 0.95rem;
}

.hero-meta a {
    color: var(--accent);
}

.cta-row {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(130deg, var(--accent), #32b7d9);
    color: #0a1323;
    box-shadow: 0 12px 26px rgba(86, 224, 194, 0.24);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.stat-card {
    padding: 1rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(18, 27, 49, 0.9), rgba(13, 19, 34, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.stat-card strong {
    font-size: 1.7rem;
    font-family: "Space Grotesk", sans-serif;
    color: var(--accent);
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-top: 0.2rem;
}

.section {
    padding: 4rem 0 0.5rem;
}

.section-head {
    margin-bottom: 1.2rem;
}

.section h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
}

.cards-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card {
    background: rgba(17, 24, 42, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1rem;
}

.glass-card p {
    margin: 0;
    color: #dbe5ff;
}

.skills-wrap {
    margin-top: 1.2rem;
}

.skills-wrap h3 {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.86rem;
    color: #d4ddf5;
    background: rgba(255, 255, 255, 0.03);
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding: 1.2rem;
    border-radius: var(--radius);
    background: linear-gradient(175deg, #111a30 0%, #0d1427 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.timeline-period {
    margin: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.86rem;
}

.timeline-item h3 {
    margin-top: 0.42rem;
    font-size: 1.08rem;
}

.timeline-item h4 {
    margin-top: 0.25rem;
    color: var(--accent-2);
    font-weight: 500;
}

.timeline-item p:last-child {
    margin: 0.7rem 0 0;
    color: #d1ddfb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.project-card {
    border-radius: var(--radius);
    padding: 1.2rem;
    background: linear-gradient(145deg, #14203b 0%, #10182c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(86, 224, 194, 0.45);
}

.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project-card h3 {
    margin-bottom: 0.35rem;
}

.project-card p {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.project-card a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
    padding-bottom: 0.15rem;
}

.contact {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(86, 224, 194, 0.35);
    background: linear-gradient(135deg, rgba(86, 224, 194, 0.12), rgba(50, 183, 217, 0.08));
}

.contact h2 {
    margin-bottom: 0.35rem;
}

.contact p {
    margin: 0;
    color: #e7eeff;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0 2rem;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.reveal {
    animation: fadeUp 0.65s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .stats-grid,
    .cards-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .menu {
        display: none;
    }

    .contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 5rem;
    }
}
