:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #000000;
    --text-black: #000000;
    --text-dark-gray: #333333;
    --text-gray: #555555;
    --text-muted: #777777;
    --text-white: #ffffff;
    --border-black: #000000;
    --border-light: #e5e5e5;
    --border-dark: #222222;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --nav-height: 72px;
}

/* ── Glassmorphism Custom Cursor ─────────────────────────────── */
#cursor-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    transition:
        width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
    will-change: transform;
    mix-blend-mode: normal;
}

#cursor-orb.hovering {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 3px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.14),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

#cursor-orb.clicking {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.12);
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.75);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.5);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

#cursor-dot.hovering {
    width: 8px;
    height: 8px;
}

#cursor-dot.clicking {
    width: 4px;
    height: 4px;
}

/* Hide cursor on touch devices */
@media (hover: none) {
    #cursor-orb,
    #cursor-dot { display: none; }
}

/* Apply default cursor hide globally when custom cursor active */
body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}
/* ──────────────────────────────────────────────────────────────── */

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-white);
    color: var(--text-black);
    overflow-x: hidden;
    line-height: 1.65;
}

/* ── Lenis Smooth Scrolling Engine Core ──────────────────────── */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Typography */
h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5.4vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-black);
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4.3rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--text-black);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-black);
    filter: none;
    margin-bottom: 24px;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4.5vw, 3.1rem);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--text-black);
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark-gray);
    max-width: 580px;
    margin-bottom: 28px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.18rem;
    color: var(--text-dark-gray);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Monochrome Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid var(--border-black);
    height: fit-content;
    box-sizing: border-box;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Primary CTA: Solid Black -> Inverts to White on Hover */
.btn-white,
.btn-primary-mono {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--border-black);
}

.btn-white:hover,
.btn-primary-mono:hover {
    background-color: var(--bg-white);
    color: var(--text-black);
    border-color: var(--border-black);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Secondary / Outline CTA: Clean White -> Inverts to Black on Hover */
.btn-blurple,
.btn-outline-mono {
    background-color: var(--bg-white);
    color: var(--text-black);
    border: 2px solid var(--border-black);
}

.btn-blurple:hover,
.btn-outline-mono:hover {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--border-black);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Brand Buttons - Minimalist Monochrome Variants */
.linkedin-btn,
.github-btn,
.credly-btn,
.tryhackme-btn,
.microsoft-btn,
.huggingface-btn,
.discord-btn {
    background-color: var(--bg-white) !important;
    color: var(--text-black) !important;
    border: 2px solid var(--border-black) !important;
    box-shadow: none !important;
    transition: all var(--transition-fast);
}

.linkedin-btn:hover,
.github-btn:hover,
.credly-btn:hover,
.tryhackme-btn:hover,
.microsoft-btn:hover,
.huggingface-btn:hover,
.discord-btn:hover {
    background-color: var(--bg-dark) !important;
    color: var(--text-white) !important;
    border-color: var(--border-black) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.hover-lift {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 32px));
    height: 64px;
    z-index: 100;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 232, 232, 0.82) 50%, rgba(255, 255, 255, 0.94) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 1.5px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1.5px rgba(0, 0, 0, 0.07),
        0 4px 12px rgba(0, 0, 0, 0.02),
        0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                height 0.3s ease;
    will-change: transform, top, background-color;
}

.navbar.scrolled {
    top: 10px;
    height: 58px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(228, 228, 228, 0.9) 50%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(0, 0, 0, 0.24);
    box-shadow:
        inset 0 1px 1.5px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1.5px rgba(0, 0, 0, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.03),
        0 16px 35px rgba(0, 0, 0, 0.12);
}

.navbar.nav-hidden {
    transform: translate(-50%, -100px);
}

.nav-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-black);
    font-family: var(--font-serif);
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-black);
    padding: 8px;
    transition: color var(--transition-fast), border-bottom 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.has-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background-color: var(--bg-white);
    border: 2px solid var(--border-black);
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-columns {
    display: flex;
    gap: 40px;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.dropdown-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.dropdown-col a {
    padding: 8px 0;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-black);
    transition: opacity var(--transition-fast);
}

.dropdown-col a:hover {
    opacity: 0.65;
    text-decoration: underline;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 0%, #f4f4f4 0%, var(--bg-white) 70%);
    overflow: hidden;
    border-bottom: 2px solid var(--border-black);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    color: rgba(0, 0, 0, 0.15);
    animation: twinkle 4s infinite ease-in-out alternate;
}
.star-1 { top: 20%; left: 15%; font-size: 24px; animation-delay: 0s; }
.star-2 { top: 15%; right: 20%; font-size: 16px; animation-delay: 1s; }
.star-3 { top: 60%; left: 80%; font-size: 32px; animation-delay: 2s; }

@keyframes twinkle {
    0% { opacity: 0.15; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.15); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}



.hero-avatar {
    width: min(380px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--border-black);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Feature Sections */
.feature {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--border-black);
}

.feature.alt-bg {
    background-color: var(--bg-light);
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.styled-list li {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-dark-gray);
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.styled-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--text-black);
    font-size: 14px;
}

.styled-list strong {
    color: var(--text-black);
    font-family: var(--font-sans);
}

/* Section Title Pill / Heading Box */
.feature-container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.center-text {
    display: table;
    margin: 0 auto 50px auto;
    text-align: center;
    padding: 14px 40px;
    background: var(--bg-white);
    border: 2px solid var(--border-black);
    border-radius: 60px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--text-black);
    transition: all 0.25s ease;
    user-select: none;
    max-width: 95vw;
}

.center-text:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Projects Grid & Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.project-card {
    background: var(--bg-white);
    border: 2px solid var(--border-black);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.project-icon {
    font-size: 1.6rem;
}

.project-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 0;
}

.project-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.55;
    flex-grow: 1;
}

.project-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-badges span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-black);
    border: 1px solid var(--border-black);
}

/* Timeline Experience */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 30px auto 0;
    padding-left: 32px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-black);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-black);
    z-index: 2;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.25);
    background-color: var(--bg-dark);
}

.timeline-content {
    background: var(--bg-white);
    border: 2px solid var(--border-black);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-black);
    background: var(--bg-light);
    border: 1px solid var(--border-black);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 8px;
}

.timeline-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.55;
}

/* Certifications Timeline */
.certifications-timeline {
    position: relative;
    max-width: 800px;
    margin: 30px auto 0;
    padding-left: 32px;
}

.certifications-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-black);
}

.cert-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.cert-timeline-item:last-child {
    margin-bottom: 0;
}

.cert-timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-black);
    z-index: 2;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.cert-timeline-item:hover .cert-timeline-marker {
    transform: scale(1.25);
    background-color: var(--bg-dark);
}

.cert-timeline-content {
    background: var(--bg-white);
    border: 2px solid var(--border-black);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.cert-timeline-item:hover .cert-timeline-content {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-timeline-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-black);
    background: var(--bg-light);
    border: 1px solid var(--border-black);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-right: 12px;
}

.cert-timeline-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.cert-timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-black);
    margin-top: 8px;
    margin-bottom: 6px;
}

.cert-timeline-issuer {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
}

.cert-timeline-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-verify-timeline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-white);
    background: var(--bg-dark);
    border: 1px solid var(--border-black);
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.btn-verify-timeline:hover {
    background: var(--bg-white);
    color: var(--text-black);
    border-color: var(--border-black);
}

/* Hackathons & Events Section (High-Contrast Dramatic Accent) */
.hackathon-card-showcase {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: center;
    background: var(--bg-dark);
    color: var(--text-white);
    border: 2px solid var(--border-black);
    border-radius: 24px;
    padding: 32px;
    margin-top: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hackathon-card-showcase:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.hackathon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hackathon-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-white);
    border: 1px solid var(--bg-white);
    border-radius: 50px;
    color: var(--text-black);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hackathon-date {
    color: #a0a0a0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
}

.hackathon-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.25;
}

.hackathon-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #d0d0d0;
    line-height: 1.65;
    margin-bottom: 20px;
}

.hackathon-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hackathon-tech-tags span {
    background: #1c1c1c;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-white);
    font-weight: 500;
}

.hackathon-highlights {
    gap: 10px;
}

.hackathon-highlights li {
    color: #d0d0d0;
}

.hackathon-highlights li::before {
    color: var(--text-white);
}

.hackathon-highlights strong {
    color: var(--text-white);
}

.hackathon-card-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-image-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--text-white);
}

.hackathon-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-image-wrapper:hover .hackathon-img {
    transform: scale(1.04);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
    border-top: 2px solid var(--border-black);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-col h3 {
    font-family: var(--font-mono);
    color: var(--text-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: #a0a0a0;
    margin-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .feature-container, .feature-container.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        white-space: normal;
        font-size: clamp(1.8rem, 5.4vw, 2.9rem);
    }
    
    .hero-content p, .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hackathon-card-showcase {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }

    .hackathon-img {
        height: 180px;
    }

    
    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    /* Hide navigation bar completely on mobile screens */
    header,
    .navbar {
        display: none !important;
    }

    /* Mobile Layout Order & Alignment (Preserved Responsive Behavior) */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content,
    .hero-image {
        display: contents;
    }

    .hero-avatar {
        order: 1;
        display: block;
        margin: 0 auto 22px auto;
        align-self: center;
        width: min(315px, 80vw);
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
        border: 5px solid var(--border-black);
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
    }

    .hero-title {
        order: 2;
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
        font-size: clamp(2.2rem, 8.8vw, 3.2rem) !important;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -0.015em;
    }

    .hero-subtitle {
        order: 3;
        width: 100%;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
        text-align: center;
        font-size: clamp(1.2rem, 4.4vw, 1.35rem) !important;
        line-height: 1.8;
        color: #2b2b2b;
    }

    .hero-buttons {
        order: 4;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }


    .feature-container-full {
        padding: 0 16px;
    }

    .center-text {
        padding: 10px 20px;
        border-radius: 40px;
        margin-bottom: 32px;
        max-width: 100%;
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
    }

    /* Projects Mobile */
    .project-card {
        padding: 16px;
        min-height: auto;
    }

    .project-card p {
        margin-bottom: 12px;
    }

    /* Timelines Mobile */
    .experience-timeline, .certifications-timeline {
        padding-left: 20px;
        margin-top: 30px;
    }

    .experience-timeline::before, .certifications-timeline::before {
        left: 4px;
    }

    .timeline-marker, .cert-timeline-marker {
        left: -24px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-content, .cert-timeline-content {
        padding: 16px;
    }

    .timeline-item:hover .timeline-content,
    .cert-timeline-item:hover .cert-timeline-content {
        transform: none !important;
    }

    .cert-timeline-tag {
        margin-bottom: 4px;
        margin-right: 8px;
    }

    /* Typography Adjustments */
    h1:not(.hero-title) {
        font-size: clamp(1.6rem, 6.7vw, 2.5rem);
        letter-spacing: -0.01em;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    h2 {
        font-size: clamp(1.2rem, 5vw, 2rem);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Spacing Adjustments */
    .hero {
        padding-top: 36px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .feature {
        padding: 50px 0;
    }

    /* Buttons Adjustments */
    .btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }

    /* List Items alignment */
    .styled-list li {
        text-align: left;
    }

    /* Footer adjustments */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 12px;
    }

    h1, .hero-title {
        font-size: clamp(1.2rem, 6vw, 1.7rem);
    }

    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .center-text {
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .hero-avatar {
        width: min(250px, 70vw);
        border-width: 5px;
        margin: 0 auto 20px auto;
    }

    .hero-buttons {
        gap: 12px;
    }
}

/* Proofs annotation */
.proofs-annotation {
    position: absolute;
    bottom: -60px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-black);
    font-family: 'Playfair Display', cursive;
    font-style: italic;
    font-weight: 800;
    font-size: 1.8rem;
    transform: rotate(-3deg);
    z-index: 10;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.drawn-arrow {
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .proofs-annotation {
        bottom: -70px;
        right: 10%;
        font-size: 1.5rem;
    }
}

/* ========================================================================= */
/* ── Welcome Intro Screen Overlay (5-second generative hero experience) ─── */
/* ========================================================================= */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50000;
    background-color: #0b0b0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1),
                border-radius 1.1s cubic-bezier(0.76, 0, 0.24, 1),
                box-shadow 1.1s cubic-bezier(0.76, 0, 0.24, 1),
                visibility 1.1s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform, border-radius;
}

/* Premium sliding down curtain motion */
#welcome-screen.slide-down,
#welcome-screen.fade-out {
    transform: translateY(100%);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.65);
    visibility: hidden;
    pointer-events: none;
}

#welcome-screen .tg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

#welcome-screen.slide-down .tg-canvas,
#welcome-screen.fade-out .tg-canvas {
    transform: translateY(-15%) scale(0.97);
    opacity: 0.3;
}

.welcome-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.welcome-controls {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 10;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#welcome-screen.slide-down .welcome-controls,
#welcome-screen.fade-out .welcome-controls {
    opacity: 0;
    transform: translateY(20px);
}

.welcome-skip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #f4f4f6;
    font-family: var(--font-sans, -apple-system, sans-serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s ease;
    outline: none;
    user-select: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.welcome-skip-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.welcome-timer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 7px;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 600;
}

body.welcome-active {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .welcome-controls {
        bottom: 18px;
        right: 18px;
    }
}

/* ========================================================================= */
/* CONTRIBUTION SKYLINE COMPONENT (GitHub 2D Heatmap & 3D Skyline)           */
/* ========================================================================= */
.skyline-wrapper {
    margin-top: 48px;
    width: 100%;
}

.skyline-card {
    position: relative;
    width: 100%;
    min-height: calc(88vh - var(--nav-height, 72px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-white, #ffffff);
    color: var(--text-black, #000000);
    border: 2px solid var(--border-black, #000000);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-sans, -apple-system, sans-serif);
    overflow: hidden;
}

.skyline-card:hover {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.10);
}

.skyline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light, #e5e5e5);
}

.skyline-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.skyline-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    font-family: var(--font-mono, monospace);
}

.skyline-title {
    margin: 0;
    font-family: var(--font-sans, sans-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-black, #000000);
}

.skyline-title strong {
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    color: var(--text-black, #000000);
}

.skyline-toggle-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #f1f3f5;
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 999px;
    padding: 3px;
    user-select: none;
}

.skyline-toggle-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: #000000;
    border-radius: 999px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.skyline-toggle-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    color: #666666;
    transition: color 0.3s ease;
    outline: none;
}

.skyline-toggle-btn.active {
    color: #ffffff;
}

.skyline-stage-outer {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light, #e5e5e5);
    border-radius: 12px;
    background: #fafbfc;
    padding: 20px;
    overflow: hidden;
    min-height: 580px;
}

.skyline-stage {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    touch-action: pan-y;
}

.skyline-canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    outline: none;
}

/* Corner stats in 3D mode on desktop */
.skyline-corner-stats {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skyline-corner-tr {
    top: 18px;
    right: 20px;
    align-items: flex-end;
    text-align: right;
}

.skyline-corner-bl {
    bottom: 18px;
    left: 20px;
    align-items: flex-start;
    text-align: left;
}

.skyline-stat-cell {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skyline-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
}

.skyline-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    line-height: 1.1;
    margin: 2px 0;
}

.skyline-stat-unit {
    font-size: 12px;
    font-weight: 500;
    color: #555555;
    font-family: var(--font-sans, sans-serif);
}

.skyline-stat-sub {
    font-size: 11px;
    color: #888888;
    white-space: nowrap;
}

/* Interactive Tooltip */
.skyline-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.15s ease;
    font-family: var(--font-sans, sans-serif);
}

.skyline-tooltip.active {
    opacity: 1;
}

.skyline-tooltip strong {
    font-weight: 700;
    color: #9be9a8;
}

.skyline-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: var(--arrow-pos, 50%);
    margin-left: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000000;
}

/* Bottom Stats Row */
.skyline-stats-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light, #e5e5e5);
}

.skyline-stat-card {
    background: #f8f9fa;
    border: 1px solid var(--border-light, #e5e5e5);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
}

.skyline-stat-lbl {
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    text-transform: uppercase;
    font-weight: 700;
    color: #737373;
    letter-spacing: 0.04em;
}

.skyline-stat-num {
    font-size: 1.5rem;
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0 2px 0;
}

.skyline-stat-note {
    font-size: 11px;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer & Legend */
.skyline-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    font-size: 12px;
    color: #737373;
}

.skyline-hint {
    font-style: normal;
    color: #888888;
    font-size: 12px;
}

.skyline-legend {
    display: flex;
    align-items: center;
    gap: 5px;
}

.skyline-legend-text {
    font-size: 11px;
    color: #888888;
}

.skyline-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.skyline-swatch:hover {
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .skyline-card {
        padding: 16px;
    }
    .skyline-corner-stats {
        display: none !important;
    }
    .skyline-stats-bottom {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ========================================================================= */
/* HORIZONTAL PINNED-SCROLL TIMELINE SECTIONS (GSAP ScrollTrigger)           */
/* ========================================================================= */
.hz-timeline-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--border-black);
    padding: 0;
    overflow: visible;
}

.hz-timeline-section.alt-bg {
    background-color: var(--bg-light);
}

@media (min-width: 901px) {
    #projects { height: 500vh; }
    #experience { height: 420vh; }
    #certifications { height: 480vh; }
}

.hz-timeline-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height, 72px) + 20px);
}

.hz-timeline-track {
    display: flex;
    align-items: center;
    height: 78vh;
    gap: 4vw;
    padding: 0 10vw 0 4vw;
    will-change: transform;
    width: max-content;
}

.hz-timeline-lead {
    width: 24vw;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2vw;
}

.hz-timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #000000;
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    margin-bottom: 16px;
    width: fit-content;
}

.hz-timeline-lead h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--text-black);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.hz-timeline-lead p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.hz-timeline-rail {
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

/* Variables for Timeline Spacing */
:root {
    --hz-card-width: clamp(280px, 23vw, 380px);
    --hz-card-gap: clamp(80px, 10vw, 160px);
    --hz-stem-height: 52px;
}

/* Center Horizontal Rail Line */
.hz-center-line-wrap {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.hz-end-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--text-black);
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--text-black);
    flex-shrink: 0;
}

.hz-journey-line {
    position: relative;
    height: 4px;
    width: 0%;
    background-color: var(--text-black);
    border-radius: 999px;
    transition: none;
    flex-shrink: 0;
}

/* Moving Arrow Head leading the center line all the way to the last corner */
.hz-journey-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid var(--text-black);
    z-index: 25;
}

/* Top & Bottom Rows */
.hz-row {
    position: absolute;
    width: max-content;
    height: 50%;
    display: flex;
}

.hz-row-top {
    top: 0;
    align-items: flex-end;
    padding-bottom: var(--hz-stem-height);
    gap: var(--hz-card-gap);
    padding-left: 20px;
}

.hz-row-bottom {
    top: 50%;
    align-items: flex-start;
    padding-top: var(--hz-stem-height);
    gap: var(--hz-card-gap);
    padding-left: calc(20px + (var(--hz-card-width) + var(--hz-card-gap)) / 2);
}

.hz-item-card {
    position: relative;
    width: var(--hz-card-width);
    flex-shrink: 0;
}

/* Stem connectors, arrows, and center dots */
.hz-stem-wrap {
    position: absolute;
    left: 42px;
    width: 24px;
    margin-left: -12px;
    height: var(--hz-stem-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 15;
}

.hz-row-top .hz-stem-wrap {
    bottom: calc(-1 * var(--hz-stem-height));
}

.hz-row-bottom .hz-stem-wrap {
    top: calc(-1 * var(--hz-stem-height));
}

/* Arrows pointing directly into cards */
.hz-arrow {
    width: 0;
    height: 0;
    flex-shrink: 0;
    z-index: 6;
}

.hz-arrow-up {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid var(--text-black);
    margin-bottom: -1px; /* touches card border seamlessly */
}

.hz-arrow-down {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--text-black);
    margin-top: -1px; /* touches card border seamlessly */
}

/* Stem Line */
.hz-stem {
    width: 3px;
    background-color: var(--text-black);
    flex: 1;
    border-radius: 2px;
}

.hz-row-top .hz-stem {
    transform-origin: bottom center;
}

.hz-row-bottom .hz-stem {
    transform-origin: top center;
}

/* Center rail node dot */
.hz-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--text-black);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--text-black);
    flex-shrink: 0;
    z-index: 20;
    margin-bottom: -7px; /* centers dot directly on the center rail line */
}

.hz-row-bottom .hz-dot {
    margin-bottom: 0;
    margin-top: -7px; /* centers dot directly on the center rail line */
}

/* Content Box inside Timeline Item */
.hz-item-content {
    background: #ffffff;
    border: 2px solid var(--border-black);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
    position: relative;
    z-index: 5;
    opacity: 0.88;
}

.hz-item-content:hover,
.hz-item-card.is-active .hz-item-content {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    border-color: #000000;
}

.hz-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hz-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f3f5;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-black);
    text-transform: uppercase;
}

.hz-item-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-black);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.hz-item-sub {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hz-item-desc {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-dark-gray);
    line-height: 1.55;
    margin-bottom: 8px;
}

.hz-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-black);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
    margin-top: 4px;
}

.hz-item-link:hover {
    opacity: 0.65;
}

/* Certification Badge Row & Online Verifiable Tag */
.hz-cert-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hz-cert-badge-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    padding: 2px;
}

.hz-tag-verified {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: 700;
}

.hz-item-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark-gray);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Verify Button with Icon */
.btn-verify-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--text-black);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-black);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 8px;
    width: fit-content;
}

.btn-verify-link:hover {
    background: var(--text-black);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-verify-link svg {
    transition: transform 0.2s ease;
}

.btn-verify-link:hover svg {
    transform: translate(2px, -2px);
}

/* Post-Timeline Skyline Spacing */
.hz-skyline-footer-box {
    width: 100%;
    max-width: 1480px;
    margin: 50px auto 100px auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* ========================================================================= */
/* RTL HORIZONTAL TIMELINE MODIFIER (Right-to-Left Track)                    */
/* Flows from Right to Left: Lead on right, Arrow points Left, moves L <- R  */
/* ========================================================================= */
@media (min-width: 901px) {
    .hz-timeline-rtl .hz-timeline-track {
        flex-direction: row-reverse;
        padding-left: 120px;
        padding-right: clamp(24px, 5vw, 60px);
    }

    .hz-timeline-rtl .hz-timeline-lead {
        margin-right: 0;
        margin-left: clamp(30px, 4vw, 60px);
        text-align: right;
    }

    .hz-timeline-rtl .hz-timeline-lead .hz-timeline-badge {
        margin-left: auto;
    }

    /* Rail Center Line Wrap in Reverse: Start dot on Right, End dot on Left */
    .hz-timeline-rtl .hz-center-line-wrap {
        flex-direction: row-reverse;
    }

    /* Moving Arrow Head leading the center line towards the LEFT */
    .hz-timeline-rtl .hz-journey-line::after {
        right: auto;
        left: -6px;
        border-left: none;
        border-right: 15px solid var(--text-black);
    }

    /* Top & Bottom Rows positioned from the right */
    .hz-timeline-rtl .hz-row {
        right: 0;
        left: auto;
        flex-direction: row-reverse;
    }

    .hz-timeline-rtl .hz-row-top {
        padding-left: 0;
        padding-right: 20px;
    }

    .hz-timeline-rtl .hz-row-bottom {
        padding-left: 0;
        padding-right: calc(20px + (var(--hz-card-width) + var(--hz-card-gap)) / 2);
    }

    /* Stems and connection dots mirrored to right side of cards */
    .hz-timeline-rtl .hz-stem-wrap {
        left: auto;
        right: 42px;
        margin-left: 0;
        margin-right: -12px;
    }
}

/* ========================================================================= */
/* MOBILE ADAPTIVE TIMELINE (max-width: 900px)                              */
/* Transforms horizontal pinned scroll into an elegant vertical timeline     */
/* ========================================================================= */
@media (max-width: 900px) {
    .hz-timeline-section {
        height: auto !important;
        min-height: auto !important;
        padding: 50px 0 70px 0 !important;
    }

    .hz-timeline-sticky {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 16px !important;
        display: block !important;
    }

    .hz-timeline-track {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        transform: none !important;
        gap: 24px !important;
        padding: 0 !important;
    }

    .hz-timeline-lead {
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 8px !important;
    }

    .hz-timeline-lead h2 {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
    }

    .hz-timeline-rail {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
        gap: 20px !important;
        padding-left: 30px !important;
    }

    /* Center line becomes the vertical left-side journey rail */
    .hz-center-line-wrap {
        position: absolute !important;
        left: 8px !important;
        top: 24px !important;
        bottom: 24px !important;
        width: 3px !important;
        height: calc(100% - 48px) !important;
        transform: none !important;
        display: block !important;
        background: var(--text-black) !important;
        border-radius: 999px !important;
        z-index: 2 !important;
    }

    .hz-center-line-wrap .hz-end-dot {
        position: absolute !important;
        left: -5.5px !important;
        width: 14px !important;
        height: 14px !important;
    }
    .hz-center-line-wrap .hz-end-dot:first-child {
        top: -6px !important;
    }
    .hz-center-line-wrap .hz-end-dot:last-child {
        bottom: -6px !important;
    }

    .hz-journey-line {
        display: none !important;
    }

    /* Flatten rows so cards flow in natural sequence */
    .hz-row,
    .hz-row-top,
    .hz-row-bottom {
        display: contents !important;
    }

    .hz-item-card {
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Stem connectors point horizontally from vertical line into card */
    .hz-stem-wrap {
        position: absolute !important;
        left: -30px !important;
        top: 24px !important;
        width: 30px !important;
        height: 2px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        z-index: 10 !important;
    }

    .hz-dot {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        position: absolute !important;
        left: -5.5px !important;
        top: -5px !important;
        transform: scale(1) !important;
        background-color: var(--text-black) !important;
        border: 2px solid var(--bg-white) !important;
        box-shadow: 0 0 0 1.5px var(--text-black) !important;
    }

    .hz-stem {
        width: 24px !important;
        height: 2px !important;
        background-color: var(--text-black) !important;
        position: absolute !important;
        left: 4px !important;
        top: 0 !important;
        transform: scaleX(1) !important;
    }

    .hz-arrow {
        position: absolute !important;
        left: 25px !important;
        top: -4px !important;
        transform: scale(1) !important;
        width: 0 !important;
        height: 0 !important;
        border-top: 5px solid transparent !important;
        border-bottom: 5px solid transparent !important;
        border-left: 6px solid var(--text-black) !important;
        border-right: none !important;
    }

    .hz-item-content {
        width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    .hz-item-title {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
    }

    .hz-item-desc {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }

    .hz-cert-badge-row {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    /* Order cards chronologically in natural 0, 1, 2, 3... flow */
    #item-proj-0 { order: 0; }
    #item-proj-1 { order: 1; }
    #item-proj-2 { order: 2; }
    #item-proj-3 { order: 3; }
    #item-proj-4 { order: 4; }
    #item-proj-5 { order: 5; }
    #item-proj-6 { order: 6; }

    #item-exp-0 { order: 0; }
    #item-exp-1 { order: 1; }
    #item-exp-2 { order: 2; }
    #item-exp-3 { order: 3; }

    #item-cert-0 { order: 0; }
    #item-cert-1 { order: 1; }
    #item-cert-2 { order: 2; }
    #item-cert-3 { order: 3; }
    #item-cert-4 { order: 4; }
    #item-cert-5 { order: 5; }
    #item-cert-6 { order: 6; }
    #item-cert-7 { order: 7; }
    #item-cert-8 { order: 8; }
}



