@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=General+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #010101;
    --bg-alt: #050505;
    --surface: rgba(8, 8, 8, 0.92);
    --surface-strong: rgba(3, 3, 3, 0.95);
    --text: #f4f4f4;
    --muted: #b3b3b3;
    --accent: #7ef1c4;
    --accent-2: #ff90e6;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
    --font-body: 'General Sans', 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'General Sans', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 30%),
        linear-gradient(120deg, var(--bg), var(--bg-alt));
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.15;
}

p {
    color: var(--muted);
    margin-bottom: 1rem;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='70' cy='35' r='1'/%3E%3Ccircle cx='50' cy='90' r='1.2'/%3E%3Ccircle cx='120' cy='60' r='0.8'/%3E%3Ccircle cx='95' cy='120' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
    color: #bfffe7;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.inline-link::after {
    content: '↗';
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.inline-link:hover::after {
    transform: translateX(4px);
}

main {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding-bottom: 4rem;
}

#header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.75rem 0;
}

.nav-shell {
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#header nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

#siteName {
    margin-right: auto;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    color: var(--text);
}

#header nav a {
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    color: var(--muted);
}

#header nav a.active {
    border-color: rgba(89, 245, 198, 0.5);
    color: var(--text);
}

#header nav a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    margin-right: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), #54c1ff);
    color: #050505;
}

/* contributions list styling */
.opensource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opensource-item {
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border-radius: 8px;
    transition: background 0.2s ease;
    position: relative;
    padding-left: 2rem; /* space for bullet */
}

.opensource-item::before {
    content: '•';
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.opensource-item:hover {
    background: var(--surface-strong);
}

.opensource-item h2 {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 1.25rem;
}

.opensource-item p {
    color: var(--text);
    line-height: 1.5;
}

.opensource-item .inline-link {
    font-weight: 600;
    color: var(--accent-2);
    display: inline-block;
    margin-top: 1rem;
}


.btn.ghost {
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 31, 64, 0.4);
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.section-heading h2,
.section-heading p {
    text-align: left;
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.eyebrow.subtle {
    letter-spacing: 0.18em;
    font-size: 0.75rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 6rem 0 4rem; /* more breathing room top and bottom */
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    object-fit: cover;
    justify-self: center; /* keep it centered in grid cell */
}

@media (min-width: 800px) {
    .hero-visual img {
        max-width: 60%;
    }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content .lead {
    color: var(--muted);
    max-width: 520px;
}

.hero-metrics {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0;
}

.hero-metrics li {
    min-width: 140px;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--muted);
}

.hero-metrics span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.hero-visual {
    display: grid;
    gap: 1rem;
}

.visual-card {
    padding: 1.5rem;
    background: rgba(5, 5, 5, 0.9);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stack-card .stack-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.stack-card .stack-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
}

.stack-card .stack-list strong {
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stack-card .stack-list span {
    text-align: right;
}

.signal-card strong {
    display: block;
    margin: 0.6rem 0;
}

#about .section-heading {
    text-align: left;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.profile-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.profile-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 32px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-card dl div {
    margin-bottom: 1rem;
}

.profile-card dt {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-card dd {
    margin: 0.45rem 0 0;
}

.story {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.95));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.focus-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.focus-card,
.project-card {
    background: rgba(6, 6, 6, 0.92);
    border-radius: 24px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(4, 9, 20, 0.45);
    position: relative;
    overflow: hidden;
}

.section.github-section {
    background: radial-gradient(circle at 15% 20%, rgba(126, 241, 196, 0.07), transparent 45%),
        linear-gradient(140deg, rgba(5, 5, 5, 0.95), rgba(10, 10, 10, 0.9));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    margin: 2rem auto 1.5rem;
    padding: 3.5rem;
}

.github-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.github-card {
    background: rgba(8, 8, 8, 0.9);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.github-handle {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.github-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.github-stats-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.github-stats-list li {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.github-stats-list span {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.github-stats-list small {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.repo-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.repo-links li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.repo-links strong {
    color: var(--text);
    font-size: 1rem;
}

.repo-links span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.focus-card::after,
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.focus-card:hover::after,
.project-card:hover::after {
    opacity: 1;
}

.focus-card .badge,
.project-meta .badge {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(89, 245, 198, 0.12);
    border: 1px solid rgba(89, 245, 198, 0.3);
    color: var(--accent);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--muted);
}

.tech-list {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
    padding: 0;
}

.tech-list li {
    font-size: 0.85rem;
    color: var(--muted);
}

.works-hero {
    text-align: left;
}

.works-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.project-gallery {
    padding-top: 0;
}

.works-subheading {
    margin-bottom: 2rem;
}

.section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.signal-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.signal-card {
    background: rgba(4, 4, 4, 0.95);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cta-panel {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.9));
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
}

.cta-panel h2 {
    margin-bottom: 0.75rem;
}

.cta-panel p {
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card,
.certificate-item {
    background: rgba(5, 5, 5, 0.92);
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.certificates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-detail {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.certificate-title {
    color: var(--accent);
    font-weight: 600;
}

.certificate-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
}

/* Navigation */
nav {
    font-family: var(--font-display);
}

.nav-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    color: var(--text);
    border-color: rgba(89, 245, 198, 0.5);
    background: rgba(89, 245, 198, 0.05);
}

/* Container */
.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Content Section */
.content-section {
    padding: 2rem 0 4rem;
}

/* individual contribution page content */
.content {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.content h2 {
    margin-top: 2.5rem;
    font-size: 1.75rem;
    color: var(--text);
}

.content p {
    margin-top: 1rem;
    color: var(--muted);
}

.content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text);
    list-style: disc;
}

.content li {
    margin-bottom: 0.6rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-section h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-description {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tech-tags .tag,
.tag {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(89, 245, 198, 0.12);
    border: 1px solid rgba(89, 245, 198, 0.3);
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #7a7a7a;
}

@media (max-width: 900px) {
    .nav-shell {
        width: 92vw;
        position: relative;
    }

    #siteName {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    #mainNav {
        position: absolute;
        top: 70px;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(3, 8, 22, 0.95);
        padding: 1rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow);
        transform: translateY(-15px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        width: 100%;
    }

    #mainNav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #mainNav a {
        width: 100%;
        border-radius: 12px;
        padding: 0.9rem 1rem;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero-metrics li {
        width: 100%;
    }

    .cta-row {
        flex-direction: column;
    }

    .profile-card img {
        width: 180px;
        height: 180px;
    }

    .section.github-section {
        padding: 2.5rem 1.25rem;
    }

    .github-handle {
        flex-direction: column;
        align-items: flex-start;
    }

    .repo-links li {
        flex-direction: column;
        align-items: flex-start;
    }
}
