.education-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 0.2rem;
}

.education-heading svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: var(--accent);
    margin-right: 0.38em;
    filter: drop-shadow(0 1px 4px rgba(56,189,248,0.10));
    transition: fill 0.2s, filter 0.2s;
    vertical-align: middle;
}

.education-heading:hover svg {
    fill: #0ea5e9;
    filter: drop-shadow(0 4px 16px rgba(56,189,248,0.32));
}

.education-heading .edust {
    fill: var(--accent);
}
:root {
    --bg: #020617;
    --bg-secondary: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --accent: #38bdf8;
    --muted: #94a3b8;
    --radius: 18px;
    --shadow-soft: 0 20px 50px rgba(2, 6, 23, 0.45);
    --border: 1px solid rgba(148, 163, 184, 0.2);
    --container: min(1120px, 92%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.08), transparent 25%),
        radial-gradient(circle at 90% 20%, rgba(15, 23, 42, 0.9), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
}

h1,
h2,
h3 {
    font-family: "Poppins", sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 1.3rem;
}

h3 {
    font-size: 1.08rem;
}

p {
    color: var(--text);
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.section {
    padding: 4.25rem 0;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-block: 1rem 0.4rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.22));
    backdrop-filter: blur(8px);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.22rem;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0.36rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 26px rgba(2, 6, 23, 0.35);
}

.nav-link {
    color: #d1d9e6;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.44rem 0.78rem;
    border-radius: 999px;
    transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(56, 189, 248, 0.2);
    color: #e8f8ff;
}

.hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding-top: 2.2rem;
    padding-bottom: 1.1rem;
}

#stack.section {
    padding-top: 2.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2.5rem;
}

.hero-head {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.hero-photo-mini {
    width: clamp(96px, 10vw, 128px);
    border-radius: 14px;
    border: var(--border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    flex-shrink: 0;
    background: #0b1222;
}

.hero-photo-small {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-title {
    display: flex;
    flex-direction: column;
    line-height: 1.04;
}

.hero-title span {
    display: block;
    white-space: nowrap;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-text {
    max-width: 56ch;
    margin-top: 1rem;
    color: #cbd5e1;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.74rem 1.2rem;
    border: 1px solid transparent;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--accent);
    color: #04121a;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
}

.btn-secondary {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.66);
}

.btn-ghost {
    color: #d1eefe;
    background: rgba(56, 189, 248, 0.12);
}

.hero-visual {
    display: grid;
    place-items: center;
}

.code-window {
    width: min(480px, 100%);
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--border);
    box-shadow: var(--shadow-soft);
    background: #0b1222;
}

.window-top {
    display: flex;
    gap: 0.38rem;
    padding: 0.7rem;
    background: #0f172a;
    border-bottom: var(--border);
}

.window-top span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #1e293b;
}

.window-top span:nth-child(1) { background: #fb7185; }
.window-top span:nth-child(2) { background: #facc15; }
.window-top span:nth-child(3) { background: #4ade80; }

.code-window pre {
    padding: 1.4rem;
    overflow-x: auto;
}

.code-window code {
    color: #bae6fd;
    font-family: "Courier New", monospace;
    font-size: 0.92rem;
}

.stack-group + .stack-group {
    margin-top: 2rem;
}

.stack-group h3 {
    color: #c4d8eb;
    margin-bottom: 0.9rem;
}

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

.skill-card {
    background: var(--card);
    border: var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.66rem;
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, border-color 220ms ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.55);
}

.skill-card i {
    color: var(--accent);
    font-size: 1.2rem;
}

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

.workflow-card {
    position: relative;
    background: var(--card);
    border: var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.workflow-card:not(:last-child)::after {
    content: ">";
    position: absolute;
    right: -0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
}

.workflow-card i {
    color: var(--accent);
    font-size: 1.1rem;
}

.workflow-card h3 {
    margin-top: 0.7rem;
    margin-bottom: 0.42rem;
}

.workflow-card p {
    color: #c7d2fe;
    font-size: 0.95rem;
}

.preview-card {
    background: var(--card);
    border-radius: var(--radius);
    border: var(--border);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem;
}

.preview-card iframe {
    width: 100%;
    min-height: 460px;
    border: 0;
    border-radius: calc(var(--radius) - 4px);
    background: #fff;
}

.preview-btn {
    margin-top: 1rem;
}

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

.education-column {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.certificates-wrap {
    margin-top: 0.85rem;
}

.certificate-icon-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.certificate-heading-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    margin-right: 0.38em;
    filter: drop-shadow(0 1px 4px rgba(56, 189, 248, 0.12));
    transition: filter 0.2s;
}

.cert-path {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: var(--accent);
}

.education-heading:hover .certificate-heading-icon {
    filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.28));
}

.education-heading:hover .cert-path {
    fill: #0ea5e9;
}

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

.certificates-more-wrap {
    margin-top: 0.72rem;
    display: flex;
    justify-content: center;
}

.certificates-more-btn {
    padding: 0.52rem 1rem;
    font-size: 0.88rem;
    cursor: default;
}

.certificate-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    gap: 0.08rem;
}

.certificate-card h4 {
    font-size: 0.98rem;
    margin-bottom: 0.16rem;
}

.certificate-title {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.certificate-icon {
    width: 1.02em;
    height: 1.02em;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(56, 189, 248, 0.16));
}

.certificate-link {
    color: inherit;
    text-decoration: none;
}

.certificate-link:hover {
    color: #bae6fd;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.certificate-card p {
    font-size: 0.9rem;
    line-height: 1.42;
}

.education-heading {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 0.2rem;
}

.education-card {
    background: var(--card);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-soft);
}

.education-card h4 {
    font-family: "Poppins", sans-serif;
    font-size: 1.08rem;
    margin-bottom: 0.3rem;
}

.education-meta {
    color: #bae6fd;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.contact-wrap {
    text-align: center;
}

.contact-wrap p {
    max-width: 64ch;
    margin: 0 auto;
    color: #cbd5e1;
}

.contact-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.95rem;
}

.contact-links a {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--card);
    border: var(--border);
    color: var(--accent);
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 220ms ease, border-color 220ms ease;
}

.contact-links a:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.7);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-head {
        align-items: flex-start;
    }

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

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

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

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

    .workflow-card::after {
        display: none;
    }
}

@media (max-width: 680px) {
    .section {
        padding: 3.1rem 0;
    }

    .nav {
        min-height: 72px;
        padding-block: 0.75rem 0.35rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .skill-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .preview-card iframe {
        min-height: 360px;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 0.8rem;
    }

    #stack.section {
        padding-top: 2rem;
    }

    .hero-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .hero-photo-mini {
        width: 96px;
    }
}
