:root {
    color-scheme: dark;
    --bg: #04070a;
    --bg-soft: #0b0f14;
    --card: rgba(10, 15, 22, 0.85);
    --accent: #39ff87;
    --accent-soft: rgba(57, 255, 135, 0.18);
    --text: #e6f2ff;
    --muted: #8ca0b3;
    --border: rgba(56, 255, 154, 0.2);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --danger: #ff355d;
    --danger-soft: rgba(255, 53, 93, 0.14);
    --mono: "JetBrains Mono", "Fira Code", "SF Mono", "Consolas", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #0b1118 0%, #04070a 55%, #020305 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: #0c141d;
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(56, 255, 154, 0.3);
    z-index: 10;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

.grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 53, 93, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 255, 154, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.noise {
    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%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(12px);
    background: rgba(4, 7, 10, 0.8);
    border-bottom: 1px solid rgba(56, 255, 154, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--muted);
}

.nav-links a:hover,
.cta:hover {
    color: var(--danger);
}

.cta {
    border: 1px solid rgba(255, 53, 93, 0.35);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255, 53, 93, 0.25);
}

main {
    position: relative;
    z-index: 2;
    /* z-index: 2; used to keep main content above background elements */

}

.hero {
    width: 95%;
    margin: 0 auto;
    padding: 80px 32px 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--danger);
    font-size: 0.75rem;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    display: block;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-top: 10px;
}

.hero-subtitle {
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary,
.secondary {
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
}

.primary {
    background: linear-gradient(120deg, #39ff87, #19c8ff);
    color: #02140b;
}

.secondary {
    border-color: rgba(255, 53, 93, 0.4);
    color: var(--text);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.hero-metrics .value {
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--accent);
}

.hero-metrics .label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-panel {
    display: grid;
    gap: 24px;
}

.profile {
    margin: 0;
    background: var(--card);
    border: 1px solid rgba(255, 53, 93, 0.35);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.profile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 53, 93, 0.2), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.profile img {
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 486;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(56, 255, 154, 0.3);
    background: #05080c;
}

img[src*="denvercoder1-github-readme-stats.vercel.app"] {
    width: min(100%, 328px);
    height: auto;
    aspect-ratio: 312 / 150;
    display: inline-block;
}

.profile figcaption {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terminal {
    background: var(--card);
    border: 1px solid rgba(56, 255, 154, 0.25);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.terminal-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.terminal-body {
    font-family: var(--mono);
    padding: 20px;
    font-size: 0.9rem;
}

.prompt {
    color: var(--danger);
    margin-right: 8px;
}

.terminal-output {
    margin: 6px 0 14px 22px;
    color: var(--muted);
}

.badge {
    margin-top: 114px;
    border: 1px solid rgba(255, 53, 93, 0.3);
    padding: 18px;
    border-radius: 12px;
    background: rgba(9, 14, 20, 0.8);
}

.badge-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--danger);
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

.section {
    width: 95%;
    margin: 0 auto;
    padding: 60px 32px;
}

.section-header {
    margin-bottom: 32px;
    max-width: 700px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--muted);
}

.heading-underline {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--danger);
    text-underline-offset: 6px;
}

.section-subtitle {
    margin: 24px 0 16px;
    font-size: 1.25rem;
}

.cards,
.projects,
.intel,
.contact-grid {
    display: grid;
    gap: 20px;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.project,
.intel-item,
.contact-card,
.matrix-group {
    background: var(--card);
    border: 1px solid rgba(255, 53, 93, 0.18);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.card p,
.project p,
.intel-item p {
    margin-top: 10px;
}

.matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.matrix-group h3 {
    margin-bottom: 12px;
}

.matrix-group ul {
    list-style: none;
    color: var(--muted);
    display: grid;
    gap: 8px;
    padding-left: 0;
}

.projects {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tag {
    display: inline-flex;
    margin-top: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.project-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project-link:hover {
    color: var(--danger);
}

.project-link--spaced {
    margin-top: 28px;
}

.intel {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.intel-item a {
    display: inline-block;
    margin-top: 12px;
    color: var(--danger);
}


.blog-hero {
    margin: 32px 0;
    display: grid;
    gap: 12px;
}

.blog-hero img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(56, 255, 154, 0.25);
}

.blog-hero figcaption {
    color: var(--muted);
    font-size: 0.9rem;
}

.blog-article h2 {
    margin-top: 24px;
}

.blog-article p {
    margin-top: 12px;
    color: var(--muted);
}

.blog-article ul {
    margin: 12px 0 0 18px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.blog-card {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
    background: var(--card);
    border: 1px solid rgba(255, 53, 93, 0.25);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    align-items: center;
}

.blog-list {
    display: grid;
    gap: 24px;
}

.blog-card__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(56, 255, 154, 0.3);
}

.blog-card__meta {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card__content p {
    margin-top: 10px;
    color: var(--muted);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.cert-card {
    background: var(--card);
    border: 1px solid rgba(255, 53, 93, 0.25);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.cert-card img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(56, 255, 154, 0.25);
}

.cert-card figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.resume-card {
    background: var(--card);
    border: 1px solid rgba(255, 53, 93, 0.25);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 20px;
}

.resume-card img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(56, 255, 154, 0.25);
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cert-details {
    margin-top: 12px;
}

.accent-link {
    color: var(--danger);
    font-weight: 700;
}

.accent-link:hover {
    color: var(--accent);
}

.section-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.video-feature {
    margin: 32px 0 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: center;
    background: var(--card);
    border: 1px solid rgba(255, 53, 93, 0.2);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.video-feature__link {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(56, 255, 154, 0.3);
}

.video-feature__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    background: #05080c;
}

.video-feature__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: #ffffff;
    /* background: radial-gradient(circle, rgba(57, 255, 135, 0.9) 0%, rgba(57, 255, 135, 0.6) 45%, rgba(57, 255, 135, 0) 70%); */
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-feature__link:hover .video-feature__play,
.video-feature__link:focus-visible .video-feature__play {
    transform: scale(1.05);
    opacity: 1;
}

.video-feature__content {
    display: grid;
    gap: 10px;
}

.video-feature__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--danger);
}

.centered {
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 600;
    margin: 8px 0 12px;
}

.summary-title {
    font-weight: 700;
    font-size: 1.6rem;
    cursor: pointer;
}

.contact {
    padding-bottom: 76px;
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-note a {
    color: var(--accent);
    font-weight: 600;
}

.contact-note a:hover {
    color: var(--danger);
}

.site-footer {
    border-top: 1px solid rgba(56, 255, 154, 0.08);
    padding: 32px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
    .nav {
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
    }

    .nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        gap: 14px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .logo,
    .cta {
        flex-shrink: 0;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 84px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}