/*
Theme Name: Biglin Portfolio
Theme URI: https://nicholasbiglin.com
Author: Nicholas Biglin
Author URI: https://nicholasbiglin.com
Description: A Netflix-inspired portfolio theme. Visitors choose a profile (Recruiter, Marketer, Stalker, Adventurer) and get content curated for that audience — hero banners, "Top Picks" carousel rows, and a fully cinematic dark-themed UI. Built for Nicholas Biglin — Tampa, FL.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biglin-portfolio
Tags: portfolio, dark, netflix, photography, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. Tokens — Netflix-inspired dark
   ========================================================= */
:root {
    --color-bg: #000000;
    --color-bg-soft: #0b0b0f;
    --color-bg-card: #1a1a1f;
    --color-bg-elevated: #181818;
    --color-text: #ffffff;
    --color-text-muted: #a1a1aa;
    --color-text-dim: #6b7280;
    --color-border: rgba(255,255,255,0.08);
    --color-accent: #e50914;          /* Netflix red */
    --color-accent-dark: #b1060f;
    --color-accent-soft: #f04048;

    --persona-recruiter: #1ec1ee;     /* cyan */
    --persona-marketer:  #9aa0a6;     /* gray */
    --persona-stalker:   #e50914;     /* red */
    --persona-adventurer:#f5a524;     /* amber */

    --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.7);

    --container-max: 1600px;
    --gutter: clamp(20px, 4vw, 56px);
    --transition: 250ms cubic-bezier(.4,0,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);

    --header-h: 72px;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--color-bg); }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-text-muted); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* =========================================================
   3. Header (Netflix-style nav)
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0));
    transition: background 300ms;
}
.site-header.is-scrolled { background: var(--color-bg); }
.site-header__inner {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 var(--gutter);
    gap: 36px;
}
.site-branding a {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    text-transform: uppercase;
}
.site-branding a:hover { color: var(--color-accent); opacity: 0.9; }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 200ms;
}
.site-nav a:hover { color: var(--color-text-muted); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: #fff; font-weight: 700; }
.header-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.header-profile__avatar {
    width: 32px; height: 32px;
    border-radius: 4px;
    background: var(--persona-recruiter);
    flex-shrink: 0;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 800px) {
    .site-nav { display: none; }
    .site-nav.is-open {
        display: block;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--color-bg);
        padding: 16px var(--gutter);
        border-bottom: 1px solid var(--color-border);
    }
    .site-nav.is-open ul { flex-direction: column; gap: 14px; }
    .menu-toggle { display: inline-flex; }
}

/* =========================================================
   4. Profile splash — "Who's Watching?"
   ========================================================= */
.profile-splash {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px var(--gutter) 60px;
    text-align: center;
    background: var(--color-bg);
}
.profile-splash__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    margin-bottom: 56px;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: splash-in 800ms var(--ease-out) 100ms forwards;
}
.profile-splash__grid {
    display: flex;
    gap: clamp(20px, 4vw, 60px);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}
.persona-card {
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    animation: splash-in 700ms var(--ease-out) forwards;
}
.persona-card:nth-child(1) { animation-delay: 250ms; }
.persona-card:nth-child(2) { animation-delay: 350ms; }
.persona-card:nth-child(3) { animation-delay: 450ms; }
.persona-card:nth-child(4) { animation-delay: 550ms; }

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

.persona-avatar {
    width: clamp(120px, 14vw, 170px);
    height: clamp(120px, 14vw, 170px);
    border-radius: 8px;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.persona-card:hover .persona-avatar,
.persona-card:focus .persona-avatar {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px #fff, 0 8px 32px rgba(0,0,0,0.7);
}
.persona-card:hover .persona-name,
.persona-card:focus .persona-name { color: #fff; }

.persona-name {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    transition: color 250ms;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Furry monster avatars — pure CSS */
.persona-avatar--recruiter  { background: var(--persona-recruiter); }
.persona-avatar--marketer   { background: var(--persona-marketer); }
.persona-avatar--stalker    { background: var(--persona-stalker); }
.persona-avatar--adventurer { background: var(--persona-adventurer); }

/* Fur texture overlay using radial gradients */
.persona-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.10) 1.5px, transparent 2px),
        radial-gradient(circle at 70% 50%, rgba(255,255,255,0.10) 1.5px, transparent 2px),
        radial-gradient(circle at 50% 80%, rgba(0,0,0,0.08) 1.5px, transparent 2px),
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 1.5px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.10) 1.5px, transparent 2px);
    background-size: 12px 12px, 14px 14px, 18px 18px, 16px 16px, 10px 10px;
    opacity: 0.7;
}
/* Eyes */
.persona-avatar::after {
    content: '';
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 16%;
    background:
        radial-gradient(ellipse at 25% 50%, #000 26%, transparent 28%),
        radial-gradient(ellipse at 75% 50%, #000 26%, transparent 28%),
        radial-gradient(ellipse at 22% 42%, #fff 8%, transparent 10%),
        radial-gradient(ellipse at 72% 42%, #fff 8%, transparent 10%);
}
/* Smile */
.persona-avatar .smile {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 18%;
    border-radius: 0 0 999px 999px;
    border-bottom: 4px solid #000;
    border-right: 1px solid transparent;
    border-left: 1px solid transparent;
    background: transparent;
}

/* =========================================================
   5. Hero (Netflix show banner)
   ========================================================= */
.persona-hero {
    position: relative;
    min-height: clamp(560px, 90vh, 820px);
    display: flex;
    align-items: flex-end;
    padding: 140px var(--gutter) 80px;
    overflow: hidden;
}
.persona-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 30%;
    background-color: #1a1a22;
}
.persona-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%);
}
.persona-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.persona-hero__title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.persona-hero__lede {
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    max-width: 64ch;
}
.persona-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Netflix-style buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    transition: all 200ms;
    font-family: inherit;
}
.btn--primary {
    background: #fff;
    color: #000;
}
.btn--primary:hover { background: rgba(255,255,255,0.78); color: #000; }
.btn--secondary {
    background: rgba(109,109,110,0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}
.btn--secondary:hover { background: rgba(109,109,110,0.5); color: #fff; }
.btn--accent {
    background: var(--color-accent);
    color: #fff;
}
.btn--accent:hover { background: var(--color-accent-dark); color: #fff; }

/* =========================================================
   6. Carousel rows ("Today's Top Picks for X")
   ========================================================= */
.row-section {
    padding: 24px 0;
    margin-bottom: 8px;
}
.row-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 var(--gutter);
    margin-bottom: 14px;
}
.row-section__title {
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}
.row-section__title em { font-style: normal; color: var(--color-accent-soft); font-weight: 700; }

.carousel {
    position: relative;
    padding: 0 var(--gutter);
}
/* Edge fade gradients hint there's more content to scroll */
.carousel::before,
.carousel::after {
    content: '';
    position: absolute;
    top: 0; bottom: 12px;
    width: clamp(40px, 6vw, 100px);
    pointer-events: none;
    z-index: 4;
    transition: opacity 250ms;
}
.carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 10%, rgba(0,0,0,0));
    opacity: 0;
}
.carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg) 10%, rgba(0,0,0,0));
}
.carousel.is-at-start::before { opacity: 0; }
.carousel.is-at-end::after { opacity: 0; }
.carousel:not(.is-at-start)::before { opacity: 1; }

.carousel__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    cursor: grab;
}
.carousel__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-track { background: transparent; }
.carousel__track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Scroll progress dots under the row */
.carousel__progress {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
    height: 3px;
}
.carousel__progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    max-width: 240px;
}
.carousel__progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 0;
    transition: width 200ms;
    border-radius: 2px;
}

.tile {
    flex: 0 0 clamp(220px, 16vw, 280px);
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-card);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 350ms var(--ease-out), z-index 0ms 0ms;
    text-decoration: none;
    color: inherit;
}
.tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}
.tile:hover {
    transform: scale(1.18);
    z-index: 5;
    transition: transform 350ms var(--ease-out), z-index 0ms 0ms;
}
.tile:hover img { transform: scale(1.05); }
.tile__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity 250ms;
}
.tile:hover .tile__overlay { opacity: 1; }
.tile__category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-soft);
    font-weight: 700;
    margin-bottom: 4px;
}
.tile__title {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
}
.tile--placeholder {
    background-size: cover !important;
}
.tile--placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent, rgba(0,0,0,0.3));
}

/* Carousel scroll buttons — always visible (more obvious) */
.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 6px));
    width: 48px;
    height: calc(100% - 16px);
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 0;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms, opacity 200ms, transform 200ms;
    opacity: 0.85;
}
.carousel__nav:hover { background: rgba(0,0,0,0.92); opacity: 1; }
.carousel__nav:active { transform: translateY(calc(-50% - 6px)) scale(0.96); }
.carousel__nav--prev { left: 0; }
.carousel__nav--next { right: 0; }
.carousel__nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
    .carousel__nav { display: none; }
}

/* =========================================================
   7. Sections / general layout
   ========================================================= */
.section {
    padding: clamp(40px, 6vw, 80px) 0;
}
.section--padded { padding: 60px 0; }
.section--alt { background: var(--color-bg-soft); }

.section-header {
    padding: 0 var(--gutter);
    margin-bottom: 28px;
    max-width: 800px;
}
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 12px;
}
.lede { font-size: 1.05rem; max-width: 60ch; color: var(--color-text-muted); }

/* =========================================================
   8. Single project (show page)
   ========================================================= */
.show-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 140px var(--gutter) 60px;
    overflow: hidden;
}
.show-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.show-hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}
.show-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.show-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.show-meta .pill {
    background: var(--color-accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.show-content {
    padding: 40px var(--gutter);
    max-width: 900px;
}
.show-content p { font-size: 1.05rem; }

/* =========================================================
   9. Skills / About / Contact panels
   ========================================================= */
.panel {
    background: var(--color-bg-card);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 40px);
}
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.skill {
    background: var(--color-bg-card);
    padding: 20px;
    border-radius: 6px;
    transition: transform 250ms;
}
.skill:hover { transform: translateY(-4px); background: var(--color-bg-elevated); }
.skill__num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 4px;
    line-height: 1;
}
.skill__label { font-size: 0.92rem; color: var(--color-text-muted); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 16px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    width: 80px;
    flex-shrink: 0;
}
.contact-list a { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--color-accent-soft); }

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer {
    background: var(--color-bg);
    padding: 48px var(--gutter) 36px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.88rem;
}
.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.site-footer p { margin: 0; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.social-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 200ms;
}
.social-links a:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}
.social-links svg { width: 16px; height: 16px; }

/* =========================================================
   11. Empty state
   ========================================================= */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--color-bg-card);
    border-radius: 8px;
    color: var(--color-text-muted);
    margin: 0 var(--gutter);
}
.empty-state h3 { color: #fff; margin-bottom: 8px; }

/* =========================================================
   12. Page-specific layouts
   ========================================================= */

/* ---------- A) Certifications card grid (red glow) ---------- */
.cert-page { padding-top: 120px; }
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 32px);
    padding: 0 var(--gutter);
}
.cert-card {
    background: linear-gradient(180deg, #141418 0%, #0d0d11 100%);
    border-radius: 14px;
    padding: 32px 28px 36px;
    position: relative;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
    border: 1px solid rgba(229, 9, 20, 0.06);
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(229,9,20,0.45), transparent 60%);
    opacity: 0;
    transition: opacity 350ms;
    z-index: -1;
}
.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(229,9,20,0.45), 0 0 0 1px rgba(229,9,20,0.55);
}
.cert-card:hover::before { opacity: 1; }
.cert-card__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(229,9,20,0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    color: #1ec1ee;
}
.cert-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 22px;
    line-height: 1.2;
    padding-right: 36px;
    position: relative;
}
.cert-card__title svg.ext {
    position: absolute;
    top: 4px;
    right: 0;
    color: var(--color-accent);
}
.cert-card__org {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.98rem;
}
.cert-card__date {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* ---------- B) Timeline (alternating sides) ---------- */
.timeline-page { padding-top: 120px; padding-bottom: 80px; }
.timeline-page__title {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.18);
    transform: translateX(-50%);
}
.timeline__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 24px 0;
}
.timeline__node {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--color-accent-soft, #1ec1ee);
    background: #1ec1ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
}
.timeline__node--red { background: var(--color-accent); }
.timeline__node--amber { background: #f5a524; }
.timeline__date {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
}
.timeline__card {
    background: #1ec1ee;
    color: #042b35;
    padding: 22px 24px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    position: relative;
}
.timeline__card--white { background: #fff; color: #0a0a0a; }
.timeline__card--red   { background: var(--color-accent); color: #fff; }
.timeline__card h3 {
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: inherit;
}
.timeline__card .org { font-weight: 500; opacity: 0.85; margin-bottom: 10px; }
.timeline__card p { color: inherit; opacity: 0.85; font-size: 0.95rem; margin: 0; }
.timeline__card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0; height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
}
.timeline__row--left .timeline__card::before {
    right: -22px;
    border-left-color: #1ec1ee;
}
.timeline__row--left .timeline__card--white::before { border-left-color: #fff; }
.timeline__row--left .timeline__card--red::before   { border-left-color: var(--color-accent); }
.timeline__row--right .timeline__card::before {
    left: -22px;
    border-right-color: #1ec1ee;
}
.timeline__row--right .timeline__card--white::before { border-right-color: #fff; }
.timeline__row--right .timeline__card--red::before   { border-right-color: var(--color-accent); }
.timeline__row--left  > :nth-child(1) { grid-column: 1; }
.timeline__row--left  > :nth-child(2) { grid-column: 2; }
.timeline__row--left  > :nth-child(3) { grid-column: 3; visibility: hidden; }
.timeline__row--right > :nth-child(1) { grid-column: 1; visibility: hidden; }
.timeline__row--right > :nth-child(2) { grid-column: 2; }
.timeline__row--right > :nth-child(3) { grid-column: 3; }
@media (max-width: 760px) {
    .timeline::before { left: 28px; }
    .timeline__row { grid-template-columns: 56px 1fr; }
    .timeline__row > :nth-child(1) { grid-column: 1; visibility: visible; }
    .timeline__row > :nth-child(2) { grid-column: 1; }
    .timeline__row > :nth-child(3) { grid-column: 2; visibility: visible; }
    .timeline__date { font-size: 0.85rem; }
    .timeline__card::before { display: none; }
}

/* ---------- C) Projects rich grid (red glow + tech pills) ---------- */
.projects-page { padding-top: 120px; }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 3vw, 36px);
    padding: 0 var(--gutter);
}
.project-card {
    background: #0c0c10;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
    position: relative;
    border: 1px solid rgba(229, 9, 20, 0.10);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(229,9,20,0.55), 0 0 0 1px rgba(229,9,20,0.6);
}
.project-card__media {
    aspect-ratio: 16/10;
    background: #1a1a22;
    overflow: hidden;
    border-bottom: 2px solid var(--color-accent);
}
.project-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body {
    padding: 24px 24px 28px;
}
.project-card__title {
    color: var(--color-accent);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.project-card__desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0 0 18px;
    line-height: 1.55;
}
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a22;
    color: rgba(255,255,255,0.92);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}
.tech-pill__icon {
    width: 14px; height: 14px;
    background: var(--color-text-muted);
    border-radius: 2px;
}

/* ---------- D) Skills page (grouped icon cards, Sumanth-style) ---------- */
.skills-page { padding-top: 120px; padding-bottom: 80px; }
.skill-group { margin: 0 0 80px; }
.skill-group__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 auto 48px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 14px;
}
.skill-group__title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 12%; right: 12%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}
.skill-group__wrap { text-align: center; }
.skill-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(14px, 2vw, 24px);
    padding: 0 var(--gutter);
    max-width: 1500px;
    margin: 0 auto;
}
.skill-tile {
    background: #16161b;
    border-radius: 12px;
    padding: 36px 22px 32px;
    text-align: center;
    transition: transform 300ms var(--ease-out), background 300ms;
    border: 1px solid rgba(255,255,255,0.04);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}
.skill-tile:hover { transform: translateY(-6px); background: #1c1c22; border-color: rgba(229,9,20,0.25); }
.skill-tile__icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 18px;
}
.skill-tile__icon svg { width: 100%; height: 100%; }
.skill-tile__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}
.skill-tile__desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ---------- E) Hire Me page (full-bleed dark form) ---------- */
.hire-page { padding-top: 120px; }
.hire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    padding: 0 var(--gutter);
}
@media (max-width: 880px) { .hire-grid { grid-template-columns: 1fr; } }
.hire-card {
    background: linear-gradient(135deg, #1a0303 0%, #0a0a0e 100%);
    border-radius: 16px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(229,9,20,0.18);
    box-shadow: 0 24px 60px rgba(229,9,20,0.18);
}
.hire-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
}
.hire-info { color: var(--color-text-muted); }
.hire-info strong { color: #fff; display: block; margin-bottom: 6px; font-size: 1.05rem; }

/* =========================================================
   13. Helpers
   ========================================================= */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px; width: 1px;
    word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   14. Persona Page — Horizontal Scroll Rows
   ========================================================= */

/* Row wrapper needs relative positioning for arrow buttons */
.nb-row {
    position: relative;
}

/* Override the grid with a horizontal flex scroll */
.nb-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding-bottom: 8px;
    /* Leave room for arrow buttons on sides */
    padding-right: 60px;
}

/* Hide scrollbar — all browsers */
.nb-cards::-webkit-scrollbar { display: none; }
.nb-cards { -ms-overflow-style: none; scrollbar-width: none; }

/* Each card: fixed width so they don't shrink */
.nb a.nb-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    scroll-snap-align: start;
}

/* Arrow button base styles */
.nb-row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(20,20,20,0.85);
    border: 2px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s, opacity 0.18s;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
}
.nb-row-arrow:hover {
    background: rgba(40,40,40,0.98);
    border-color: rgba(255,255,255,0.5);
    opacity: 1;
}
.nb-row-arrow.prev { right: auto; left: 10px; }
.nb-row-arrow.next { left: auto; right: 10px; }
.nb-row-arrow[disabled] { opacity: 0.18; cursor: default; pointer-events: none; }

/* On mobile, hide arrows — swipe is enough */
@media (max-width: 600px) {
    .nb-row-arrow { display: none; }
    .nb-cards { padding-right: 16px; }
    .nb a.nb-card { flex: 0 0 220px !important; width: 220px !important; }
}
