/* Base Styles */
:root {
    --brand-blue: #2563eb;
    --brand-cyan: #0891b2;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

a,
button {
    touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* Tailwind plugin fallback */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Animations */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes float-orb {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-14px) scale(1.04);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* 3D Perspective for Hero Card */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.rotate-y-6 {
    transform: rotateY(6deg);
}

.group:hover .rotate-y-0 {
    transform: rotateY(0deg);
}

/* Hero ambience */
.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.24;
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-a {
    top: 12%;
    left: clamp(-120px, -4vw, -40px);
    width: clamp(230px, 24vw, 460px);
    height: clamp(230px, 24vw, 460px);
    background: radial-gradient(circle at 30% 30%, #3b82f6, #0ea5e9);
}

.hero-orb-b {
    right: clamp(-140px, -5vw, -50px);
    bottom: 8%;
    width: clamp(280px, 28vw, 540px);
    height: clamp(280px, 28vw, 540px);
    background: radial-gradient(circle at 60% 40%, #06b6d4, #2563eb);
    animation-delay: 1.2s;
}

.hero-grid {
    position: absolute;
    inset: 8% 0 auto;
    height: clamp(220px, 30vh, 340px);
    opacity: 0.25;
    background-image: linear-gradient(to right, rgba(37, 99, 235, 0.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(37, 99, 235, 0.09) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 10%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 85%);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Hide Scrollbar for horizontal strips */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Methodology Popover Transition */
.method-card {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .method-card {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

#methodology .group:hover {
    z-index: 30;
}

/* Reveal animation utilities */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal='left'] {
    transform: translateX(-20px);
}

[data-reveal='right'] {
    transform: translateX(20px);
}

[data-reveal='zoom'] {
    transform: scale(0.95);
}

[data-reveal='left'].is-visible,
[data-reveal='right'].is-visible,
[data-reveal='zoom'].is-visible {
    transform: none;
}

/* Recommendations scroll reel */
.reel-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1060px;
    gap: 0.625rem;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(248 250 252);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 1), 0 22px 50px rgba(2, 6, 23, 0.07);
    outline: none;
}

.reel-widget:focus-visible {
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 1), 0 0 0 2px rgb(59 130 246);
}

@media (min-width: 768px) {
    .reel-widget {
        flex-direction: row;
        min-height: 320px;
    }
}

.reel-stage {
    position: relative;
    height: 14rem;
    width: 100%;
    flex-shrink: 0;
    align-self: stretch;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

@media (min-width: 768px) {
    .reel-stage {
        height: auto;
        width: 380px;
    }
}

.reel-cols {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reel-col {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 8px;
    will-change: transform;
}

.reel-cell {
    flex-shrink: 0;
    width: 121.33px;
    height: 121.33px;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
    background: linear-gradient(to bottom, rgb(241 245 249), rgb(255 255 255));
    filter: blur(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 2px 0 rgba(255, 255, 255, 1);
}

.reel-featured {
    position: relative;
    flex-shrink: 0;
    width: 121.33px;
    height: 121.33px;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgb(226 232 240);
    box-shadow:
        0 1.008px 0.705px -0.563px rgba(0, 0, 0, 0.18),
        0 2.389px 1.672px -1.125px rgba(0, 0, 0, 0.17),
        0 4.357px 3.05px -1.688px rgba(0, 0, 0, 0.17),
        0 7.244px 5.07px -2.25px rgba(0, 0, 0, 0.16),
        0 11.698px 8.188px -2.813px rgba(0, 0, 0, 0.15),
        0 19.148px 13.404px -3.375px rgba(0, 0, 0, 0.13),
        0 32.972px 23.08px -3.938px rgba(0, 0, 0, 0.09),
        0 60px 42px -4.5px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.reel-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.reel-featured-sat {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #fff;
    mix-blend-mode: saturation;
}

.reel-featured-sheen {
    position: absolute;
    inset: 0;
    z-index: 3;
    filter: blur(6px);
    mix-blend-mode: overlay;
    background: linear-gradient(220.99deg, rgba(108, 92, 255, 0) 32%, rgb(108, 92, 255) 41%, rgb(173, 177, 255) 47%, rgba(130, 189, 237, 0.57) 54%, rgba(130, 189, 237, 0) 65%);
}

.reel-featured--initials {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-initials {
    color: #fff;
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.reel-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 1.75rem 1.25rem;
}

@media (min-width: 768px) {
    .reel-content {
        padding: 2.5rem 1.25rem;
    }
}

.reel-content-top {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.reel-quote-icon {
    display: block;
    height: 3rem;
    width: 3rem;
    color: rgba(100, 116, 139, 0.4);
}

.reel-textstage {
    position: relative;
    width: 100%;
    max-width: 390px;
    overflow: hidden;
}

.reel-sizer {
    visibility: hidden;
    display: flex;
    min-height: 140px;
    flex-direction: column;
    gap: 19px;
}

.reel-live {
    position: absolute;
    inset-inline: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 19px;
    will-change: transform, opacity;
}

.reel-quote {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgb(15 23 42);
}

@media (min-width: 640px) {
    .reel-quote {
        font-size: 22px;
    }
}

.reel-author {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(71 85 105);
}

.reel-word {
    display: inline-block;
    white-space: nowrap;
}

.scroll-reel-char {
    display: inline-block;
    animation: reel-char-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reel-char-rise {
    from {
        opacity: 0;
        transform: translateY(0.6em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reel-exit {
    animation: reel-block-exit 240ms ease forwards;
}

.scroll-reel-exit .scroll-reel-char {
    animation: none;
}

@keyframes reel-block-exit {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.reel-controls {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

@media (min-width: 768px) {
    .reel-controls {
        margin-top: 0;
    }
}

.reel-btn {
    display: grid;
    place-items: center;
    height: 1.5rem;
    width: 1.5rem;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: transparent;
    color: rgb(15 23 42);
    padding: 0;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reel-btn svg {
    height: 0.75rem;
    width: 0.75rem;
    opacity: 0.7;
}

.reel-btn:hover:enabled {
    transform: scale(1.08);
}

.reel-btn:active:enabled {
    transform: scale(0.94);
}

.reel-btn:disabled {
    cursor: default;
    opacity: 0.4;
}

.reel-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgb(59 130 246);
}

@media (prefers-reduced-motion: reduce) {
    .reel-col {
        transition: none !important;
    }

    .scroll-reel-char {
        animation: none;
    }
}

/* Cards */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Events photo gallery */
.event-scroll-shell {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.event-scroll-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    animation: event-scroll 80s linear infinite;
}

.event-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes event-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.event-scroll-item {
    position: relative;
    flex: 0 0 auto;
    width: clamp(220px, 22vw, 320px);
    height: clamp(220px, 22vw, 320px);
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(135deg, rgb(15 23 42), rgb(30 41 59) 55%, rgb(15 23 42));
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
    transition: transform 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
}

.event-scroll-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(148, 163, 184, 0.14) 50%, transparent 65%);
    background-size: 220% 100%;
    animation: event-card-shimmer 1.8s linear infinite;
}

@keyframes event-card-shimmer {
    0% {
        background-position: 130% 0;
    }

    100% {
        background-position: -90% 0;
    }
}

.event-scroll-item:hover {
    transform: scale(1.035);
    filter: brightness(1.1);
    border-color: rgba(34, 211, 238, 0.55);
}

.event-scroll-item img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-scroll-item:hover img {
    transform: scale(1.05);
}

.event-photo-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0));
}

.event-photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#photo-lightbox {
    opacity: 0;
    transition: opacity 0.25s ease;
}

#photo-lightbox.is-open {
    opacity: 1;
}

.event-photo-card.is-hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .event-scroll-track {
        animation: none;
    }
}

.filter-chip {
    border: 1px solid rgb(203 213 225);
    background: rgb(248 250 252);
    color: rgb(51 65 85);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: rgb(56 189 248);
    color: rgb(14 116 144);
    background: rgb(236 254 255);
}

.filter-chip.is-active {
    border-color: rgb(14 116 144);
    color: white;
    background: linear-gradient(120deg, rgb(14 116 144), rgb(37 99 235));
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.25);
}

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0;
    z-index: 70;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    box-shadow: 0 1px 10px rgba(37, 99, 235, 0.45);
}

/* Speaking timeline compact infinite strip */
.speaking-scroll-shell {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
    mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 91%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 91%, transparent 100%);
}

.speaking-scroll-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    animation: speaking-scroll 68s linear infinite;
}

.speaking-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes speaking-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.speaking-event-card {
    flex: 0 0 auto;
    width: clamp(260px, 26vw, 340px);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
    padding: 1rem;
    color: #e2e8f0;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.speaking-event-card .event-type {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

.speaking-event-card .event-date {
    color: #94a3b8;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}

.speaking-event-card .event-title {
    color: #f8fafc;
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.speaking-event-card .event-location {
    color: #cbd5e1;
    font-size: 0.86rem;
    margin-bottom: 0.7rem;
}

.speaking-event-card .event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.speaking-event-card .event-tag {
    font-size: 0.67rem;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
}

/* YouTube hero section */
.youtube-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(239, 68, 68, 0.22), transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(220, 38, 38, 0.16), transparent 45%),
        linear-gradient(140deg, #09090b 0%, #111827 52%, #1f2937 100%);
}

.youtube-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.youtube-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.35;
    animation: float-orb 10s ease-in-out infinite;
}

.youtube-orb-a {
    width: 260px;
    height: 260px;
    top: -70px;
    right: 10%;
    background: radial-gradient(circle at 30% 30%, #ef4444, #7f1d1d);
}

.youtube-orb-b {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: 6%;
    background: radial-gradient(circle at 40% 40%, #dc2626, #0f172a);
    animation-delay: 1.1s;
}

.youtube-shell {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.82), rgba(17, 24, 39, 0.94));
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(5px);
}

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

.youtube-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.youtube-stat {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(220, 38, 38, 0.14);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.youtube-cta-primary {
    color: #fff;
    background: linear-gradient(120deg, #ef4444, #dc2626);
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.35);
}

.youtube-cta-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.youtube-cta-secondary {
    color: #f8fafc;
    border: 1px solid rgba(248, 113, 113, 0.42);
    background: rgba(239, 68, 68, 0.08);
}

.youtube-cta-secondary:hover {
    background: rgba(239, 68, 68, 0.16);
}

.youtube-preview {
    position: relative;
    display: block;
    min-height: 360px;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(248, 113, 113, 0.38);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.5);
}

.youtube-graphic-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(248, 113, 113, 0.34), transparent 36%),
        radial-gradient(circle at 78% 72%, rgba(220, 38, 38, 0.28), transparent 42%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.9) 42%, rgba(127, 29, 29, 0.8) 100%);
}

.youtube-graphic-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(254, 202, 202, 0.22);
    box-shadow: inset 0 0 30px rgba(248, 113, 113, 0.14);
}

.youtube-graphic-ring-a {
    width: 210px;
    height: 210px;
    top: 18%;
    left: 12%;
}

.youtube-graphic-ring-b {
    width: 320px;
    height: 320px;
    bottom: -90px;
    right: -70px;
}

.youtube-graphic-dot {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.2px);
}

.youtube-graphic-dot-a {
    width: 18px;
    height: 18px;
    top: 26%;
    right: 24%;
    background: #fb7185;
    box-shadow: 0 0 26px rgba(251, 113, 133, 0.65);
}

.youtube-graphic-dot-b {
    width: 12px;
    height: 12px;
    bottom: 21%;
    left: 23%;
    background: #fca5a5;
    box-shadow: 0 0 22px rgba(252, 165, 165, 0.72);
}

.youtube-preview-top {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    right: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.youtube-live-pill,
.youtube-topic-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.youtube-live-pill {
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
}

.youtube-topic-pill {
    color: #fee2e2;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(220, 38, 38, 0.95);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.18);
}

.youtube-preview:hover .youtube-play-btn {
    transform: translate(-50%, -50%) scale(1.05);
}

.youtube-preview-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
}

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

    .youtube-preview {
        min-height: 300px;
    }
}

/* GitHub badge size tuning */
.cert-badge-github {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    transform-origin: center;
    transform: scale(1.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link.is-active {
    color: #0f172a;
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

/* Accessibility: reduced motion */
@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;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
