:root {
    /* FF Dark Theme */
    --bg-dark: #0D0D0D;
    --bg-dark-alt: #111111;
    --surface-dark: #1A1A1A;
    --text-dark: #FFFFFF;
    --text-dark-muted: rgba(255, 255, 255, 0.6);

    /* FF White Theme */
    --bg-white: #FFFFFF;
    --surface-white: #F5F5F5;
    --text-light: #0D0D0D;
    --text-light-muted: rgba(0, 0, 0, 0.6);

    /* FF Accent */
    --elem-color: #FFBA00;
    --elem-hover: #FFC933;
    --elem-glow: rgba(255, 186, 0, 0.4);

    /* Shared */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    --transition-fast: all 0.3s ease;

    /* FLUID TYPOGRAPHY */
    --fs-200: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);      /* Small text */
    --fs-300: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);      /* Body text */
    --fs-400: clamp(1.125rem, 1rem + 0.6vw, 1.3rem);       /* Sub-headings */
    --fs-500: clamp(1.5rem, 1.3rem + 1vw, 2rem);           /* H3 */
    --fs-600: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);    /* H2 */
    --fs-700: clamp(2.5rem, 5vw, 4rem);                    /* H1 Hero */

    /* FLUID SPACING */
    --space-xs: clamp(0.75rem, 0.69rem + 0.3vw, 0.9375rem);
    --space-s:  clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
    --space-m:  clamp(1.5rem, 1.38rem + 0.6vw, 1.875rem);
    --space-l:  clamp(2rem, 1.84rem + 0.8vw, 2.5rem);
    --space-xl: clamp(3rem, 2.76rem + 1.2vw, 4rem);
    --space-2xl: clamp(4rem, 3.68rem + 1.6vw, 6rem);
}

/* ===== MODERN CSS RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 100%; /* Scale with user preferences */
    scrollbar-gutter: stable; /* Prevent horizontal jump */
    overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: var(--fs-300);
    line-height: 1.6;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

/* Custom Cursor - Only apply on mice/trackpads */
@media (pointer: fine) {
    body, a { cursor: none; }
    .cursor-dot, .cursor-outline {
        position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
        border-radius: 50%; z-index: 9999; pointer-events: none;
    }
    .cursor-dot { width: 8px; height: 8px; background-color: var(--elem-color); }
    .cursor-outline {
        width: 40px; height: 40px; border: 1px solid var(--elem-glow);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
}
@media (pointer: coarse) {
    /* Ensure touch devices hide the dom elements */
    .cursor-dot, .cursor-outline { display: none !important; }
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1, .hero-title, .stat-box h3, .contact-box h2 { font-size: var(--fs-700); }
h2, .section-header h2, .karma-info h3, .modal-header h2 { font-size: var(--fs-600); }
h3, .about-intro, .resume-actions h3, .github-header h2 { font-size: var(--fs-500); }
h4, .project-info h3, .cert-info h3, .modal-body h4 { font-size: var(--fs-400); }
small, .text-sm, .detail-label, .cert-info p, .meta-label, .timeline-date { font-size: var(--fs-200); }
a { text-decoration: none; color: inherit; }

/* ===== FF SECTION DECORATION SVGs ===== */
.section-decoration {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: -2px;
}
.section-decoration.polygon { width: 100%; }
.section-decoration.trapezoid { width: 55%; margin-left: auto; }

/* ===== FF TITLE DECORATION ===== */
.title-decoration {
    display: block;
    width: 10.3125rem;
    height: 0.5625rem;
    margin-top: 1rem;
}

/* ===== NAVBAR (FF Style) ===== */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1rem 0; z-index: 1000;
    transition: var(--transition-fast);
    background-color: rgba(13, 13, 13, 0.95);
    border-bottom: 2px solid transparent;
    backdrop-filter: blur(12px);
}
.navbar.scrolled {
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--elem-color);
    box-shadow: 0 2px 20px var(--elem-glow);
}
.nav-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: flex-end; align-items: center; }
.logo { 
    font-family: var(--font-heading); font-weight: 900;  
    letter-spacing: 0.1em; color: #FFFFFF; display: block; 
    text-transform: uppercase;
}
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links li { display: inline-block; }
.nav-links a:not(.btn-primary) {
    font-weight: 800; color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
    text-transform: uppercase;
    
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    display: inline-block;
}
.nav-links a:not(.btn-primary):hover { 
    color: #000000; 
    background: var(--elem-color);
    transform: skewX(-15deg);
}

/* ===== FF BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1.2rem, 4vw, 2rem);
    min-height: 44px; /* Minimum tap target for mobile */
    min-width: 44px;
    border-radius: 0;
    font-weight: 800; font-size: var(--fs-200);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    touch-action: manipulation; /* Fix mobile double-tap zoom/delays */
}
.btn-primary {
    background: var(--elem-color); color: #000 !important;
    border: none;
    box-shadow: inset 0 0 0 2px var(--elem-color);
}
.btn-primary.large, .btn-secondary.large { 
    padding: clamp(0.8rem, 3vw, 1rem) clamp(2rem, 5vw, 3rem); 
    font-size: var(--fs-300); 
}
.btn-secondary {
    background-color: transparent; color: #FFFFFF;
    border: none;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background: #000000; color: var(--elem-color) !important;
        box-shadow: inset 0 0 0 2px var(--elem-color);
    }
    .btn-secondary:hover { 
        box-shadow: inset 0 0 0 2px var(--elem-color); 
        color: var(--elem-color); 
    }
}

/* ===== HERO (FF Dark Section with Texture) ===== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex; align-items: center; max-width: 1200px;
    margin: 0 auto; padding: 120px var(--space-m) var(--space-xl); gap: var(--space-xl); position: relative;
}
.gaming-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background:
        linear-gradient(180deg, transparent 0%, rgba(13,13,13,0.9) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,186,0,0.05) 40px, rgba(255,186,0,0.05) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,186,0,0.05) 40px, rgba(255,186,0,0.05) 41px);
}
/* Crosshair accent in center */
.gaming-bg::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60vh; height: 60vh;
    border: 1px solid rgba(255,186,0,0.1); border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, rgba(255,186,0,0.03) 100%);
    z-index: 0; pointer-events: none;
}

.hero-content { flex: 1; z-index: 1; }
.greeting { color: var(--elem-color); font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem;  }
.hero-title {
     font-weight: 900;
    letter-spacing: 0em; margin-bottom: 0.5rem;
    color: var(--elem-color); text-transform: uppercase;
    position: relative;
    line-height: 1;
    display: inline-block;
    font-style: italic;
    text-shadow: 5px 5px 0px #FFFFFF;
}

.hero-subtitle-bold {
     font-weight: 800; color: #FFFFFF;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
    border-left: 4px solid var(--elem-color); padding-left: 1rem;
}
.hero-subtitle {  color: var(--text-dark-muted); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1;}
.abstract-shape {
    width: 350px; height: 450px;
    background: #111;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    border: 2px solid var(--elem-color);
    position: relative;
    box-shadow: inset 0 0 50px rgba(255, 186, 0, 0.2);
}
.abstract-shape::after {
    content: '';
    position: absolute; inset: 10px;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 10px);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: var(--text-dark-muted); animation: bounce 2s infinite; z-index: 10;
}
.scroll-indicator a { color: inherit; transition: var(--transition-fast); }
.scroll-indicator a:hover { color: var(--elem-color); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== FF SECTION MODULE PATTERN ===== */
/* Dark sections with white text */
.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    padding: 0;
}
.section-dark .section-inner {
    max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-m);
}
.section-dark .section-header h2 { color: var(--text-dark); }
.section-dark .section-header p { color: var(--text-dark-muted); }

/* White sections with dark text (FF white theme!) */
.section-white {
    background-color: var(--bg-white);
    color: var(--text-light);
    padding: 0;
}
.section-white .section-inner {
    max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-m);
}
.section-white .section-header h2 { color: var(--text-light); }
.section-white .section-header p { color: var(--text-light-muted); }

/* Base Sections */
section { padding: 0; max-width: none; margin: 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-m); }

.section-header { margin-bottom: 3.5rem; }
.section-header h2 {
     font-weight: 900;
    text-transform: uppercase; line-height: 1;
    margin-bottom: 0.5rem;
}
.section-header p {  margin-top: 0.75rem; }

/* ===== ABOUT (Player Dossier Style) ===== */
.about-container {
    background: #111111; padding: 4rem; border-radius: 0;
    max-width: 900px; margin: 0 auto;
    position: relative;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    color: #FFFFFF;
}
.about-container .section-header h2 {
    color: #FFFFFF;
}
/* Yellow glowing accent borders */
.about-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    border: 4px solid var(--elem-color);
    clip-path: polygon(0 0, 10% 0, 10% 100%, 0 100%);
    pointer-events: none;
}
.about-container::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    border: 4px solid var(--elem-color);
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 90% 100%);
    pointer-events: none;
}
.about-intro {  font-weight: 700; margin-bottom: 2rem; line-height: 1.5; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.05em; border-left: 3px solid var(--elem-color); padding-left: 1rem;}
.profile-details {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
    background: #050505; padding: 2rem; border-radius: 0;
    margin-bottom: 2.5rem;
    position: relative;
    border: 1px solid #333;
}
/* HUD Bracket accents */
.profile-details::before {
    content: '['; position: absolute; top: -10px; left: -10px;  font-weight: 900; color: var(--elem-color);
}
.profile-details::after {
    content: ']'; position: absolute; bottom: -15px; right: -10px;  font-weight: 900; color: var(--elem-color);
}
.detail-label {  color: #888888; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.25rem; font-weight: 800; }
.detail-value {  font-weight: 700; color: var(--elem-color); text-transform: uppercase;}
.about-bio {  color: #BBBBBB; line-height: 1.8; }

/* ===== SKILLS (Inventory Loadout Style) ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.skill-category {
    background-color: #0a0a0a;
    padding: 2.5rem 2rem;
    border: none;
    position: relative;
    --aug-tl: 20px;
    --aug-br: 20px;
    --aug-border-all: 2px;
    --aug-border-bg: #333;
    --aug-bg: #0a0a0a;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.skill-category:hover {
    --aug-border-bg: var(--elem-color);
    transform: translateY(-5px);
}
/* Yellow glow at bottom mimicking item rarity */
.skill-category::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--elem-color);
    box-shadow: 0 -5px 15px rgba(255,186,0,0.3);
}
.skill-category h3 {
     font-weight: 800; color: #FFFFFF;
    margin-bottom: 1.5rem; text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 0.5rem;
    border-bottom: none;
}
.skill-category h3::before {
    content: ''; display: inline-block; width: 12px; height: 12px;
    background: var(--elem-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.skill-tags span {
    background: #FFFFFF; color: #000000;
    padding: 0.5rem 1rem;
     font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    border-left: 4px solid var(--elem-color);
    transform: skewX(-15deg);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.skill-tags span:hover {
    background: var(--elem-color); color: #000000;
    transform: skewX(0deg) scale(1.05);
}
/* ===== FAQ (Mission Intel) ===== */
.faq-container {
    display: flex; flex-direction: column; gap: 1rem;
    max-width: 800px; margin: 0 auto;
}
.faq-item {
    background-color: #0a0a0a;
    border: none;
    --aug-tr: 15px; --aug-bl: 15px;
    --aug-border-all: 2px;
    --aug-border-bg: #333;
    --aug-bg: #0a0a0a;
    transition: all 0.3s ease;
}
.faq-item[open] {
    --aug-border-bg: var(--elem-color);
}
.faq-item summary {
    padding: 1.5rem 2rem;
     font-weight: 800; color: #FFFFFF;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '[+]';
    color: var(--elem-color);
    font-family: var(--font-heading);
    
}
.faq-item[open] summary::after {
    content: '[-]';
}
.faq-item .faq-content {
    padding: 0 2rem 1.5rem 2rem;
    color: #BBBBBB;
     line-height: 1.6;
}
.faq-item .faq-content p {
    margin: 0;
}

/* ===== CERTIFICATIONS (Achievement Badges) ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 3rem; padding-top: 2rem; }
.cert-card {
    background-color: #0a0a0a;
    border: none;
    --aug-tr: 15px; --aug-bl: 15px;
    --aug-border-all: 2px;
    --aug-border-bg: #222;
    --aug-bg: #0a0a0a;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-5px);
    --aug-border-bg: var(--elem-color);
}
.cert-img-container {
    width: 100%;
    height: 220px;
    background: #111;
    overflow: hidden;
}
.cert-img-container img.cert-img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.85; transition: opacity 0.3s ease;
}
.cert-card:hover .cert-img {
    opacity: 1;
}
.cert-info {
    padding: 1.5rem;
    position: relative;
}
.cert-year {
    display: inline-block;
    background: var(--elem-color); color: #000;
    padding: 0.2rem 1.5rem; font-weight: 900; 
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    margin-bottom: 1rem;
    position: absolute; top: -15px; left: 1.5rem;
}
.cert-info h3 {  color: #FFFFFF; font-weight: 800; text-transform: uppercase; margin-bottom: 0.5rem; line-height: 1.2; padding-top: 0.5rem;}
.cert-info p {  color: #888888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0;}

/* ===== FEATURED PROJECT (KARMA SHOWCASE) ===== */
.karma-container {
    display: flex; flex-direction: column; gap: 3rem; margin-top: 2rem;
}
.karma-hero {
    display: flex; background: var(--bg-dark); border-radius: 0;
    border: 1px solid #333; border-left: 5px solid var(--elem-color);
    color: var(--text-dark);
}
.karma-info { flex: 1; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.karma-info h3 {  font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; color: var(--elem-color); }
.karma-desc {  color: var(--text-dark-muted); margin-bottom: 2rem; line-height: 1.7; }
.karma-meta { display: flex; gap: 3rem; margin-bottom: 1.5rem; }
.meta-label { display: block;  text-transform: uppercase; color: var(--elem-color); letter-spacing: 0.1em; font-weight: 800; }
.meta-value {  font-weight: 700; }
.karma-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.karma-visual { flex: 1; background: #0a0a0a; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.karma-placeholder {
    width: 100%; height: 100%; min-height: 300px;
    background: linear-gradient(45deg, #1a1a1a, #000);
    display: flex; align-items: center; justify-content: center;
    color: var(--elem-color); font-weight: 800; 
    border: 2px dashed rgba(255, 186, 0, 0.3); text-transform: uppercase;
}
.karma-architecture {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.arch-box {
    background: var(--surface-white); border: 1px solid #eee;
    padding: 2rem; border-top: 3px solid var(--elem-color);
}
.arch-box h4 {  margin-bottom: 1rem; text-transform: uppercase; color: var(--text-light); font-weight: 800; }
.arch-box p { color: var(--text-light-muted);  }

/* ===== PROJECTS (FF White/Dark Section) ===== */
.project-filters { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-dark-muted); padding: 0.5rem 1.5rem; cursor: none;
    font-weight: 700; text-transform: uppercase;  transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--elem-color); color: var(--elem-color);
}
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); 
    gap: 2rem; 
}
.project-card {
    background-color: #0a0a0a; border-radius: 0; padding: 0;
    border: none;
    display: flex; flex-direction: column;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --aug-tr: 20px;
    --aug-bl: 20px;
    --aug-border-all: 2px;
    --aug-border-bg: var(--elem-color);
    --aug-bg: #0a0a0a;
}
.project-card:hover { 
    transform: translateY(-5px);
    --aug-border-bg: #FFFFFF;
}
.project-img {
    height: 200px; border-radius: 0; margin-bottom: 0;
    background-color: #eee;
}
.placeholder-1 { background: linear-gradient(135deg, #FFBA00 0%, #B8860B 100%); }
.placeholder-2 { background: linear-gradient(120deg, #666 0%, #333 100%); }
.placeholder-3 { background: url('flutter-logo.png') center/contain no-repeat #f5f5f5; }
.placeholder-4 { background: url('tournament-logo.png') center/contain no-repeat #f5f5f5; }
.project-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-info h3 {  margin-bottom: 0.5rem; font-weight: 900; text-transform: uppercase; color: #FFFFFF; }
.project-info p { color: #BBBBBB; margin-bottom: 1rem;  }
.tech-chips { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tech-chips span {
     padding: 0.2rem 0.6rem;
    background: transparent; border: 1px solid var(--elem-color);
    border-radius: 0; font-weight: 700; color: #FFFFFF;
    text-transform: uppercase;
    transform: skewX(-12deg);
    font-style: italic;
    display: inline-block;
}
.project-link {
    background-color: #111111;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 800;
    margin-top: auto;
    text-transform: uppercase;
    
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s ease;
    align-self: flex-start;
    --aug-br: 15px;
    --aug-border-all: 2px;
    --aug-border-bg: var(--elem-color);
    --aug-bg: #111111;
}
.project-link:hover {
    --aug-bg: var(--elem-color);
    color: #FFFFFF;
}

/* ===== GITHUB (FF Dark Section) ===== */
.github-container {
    background: var(--surface-dark); padding: 3rem; border-radius: 0;
    border: 1px solid #333; border-bottom: 4px solid var(--elem-color);
    max-width: 900px; margin: 0 auto;
}
.github-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.github-header h2 { color: var(--elem-color); text-transform: uppercase;  }
.github-graph { display: flex; flex-direction: column; gap: 4px; margin-bottom: 2.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.graph-row { display: flex; gap: 4px; height: 12px; min-width: max-content; }
.graph-row > div { flex-shrink: 0; }
.graph-row::before { content: ''; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, #222 0 12px, transparent 12px 16px); opacity: 0.6; }
.stats-counter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-box h3 {  color: var(--elem-color); margin-bottom: 0.5rem; font-weight: 900; }
.stat-box p { font-weight: 700; text-transform: uppercase; color: var(--text-dark-muted);  letter-spacing: 0.05em; }

/* ===== EXPERIENCE TIMELINE (FF White Section) ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #ddd; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
    position: absolute; left: -2.65rem; top: 0.25rem;
    width: 18px; height: 18px; background: var(--elem-color);
    border-radius: 0; transform: rotate(45deg);
    box-shadow: 0 0 12px var(--elem-glow);
}
.timeline-content {
    background: var(--surface-white); padding: 1.5rem 2rem; border-radius: 0;
    border: 1px solid #eee; border-left: 3px solid var(--elem-color);
}
.timeline-content h3 { color: var(--text-light); text-transform: uppercase;  }
.timeline-content p { color: var(--text-light-muted); }
.timeline-date {
    display: inline-block;  color: #000;
    font-weight: 800; margin-bottom: 0.75rem;
    background: var(--elem-color); padding: 0.2rem 0.75rem;
    border-radius: 0; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ===== RESUME (FF White Section) ===== */
.resume-container { display: flex; gap: 4rem; align-items: center; }
.resume-preview { flex: 1; display: flex; justify-content: center; }
.resume-mock {
    width: 300px; height: 400px; background: #0a0a0a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); border: 1px solid #333;
    padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
    transform: rotate(-2deg); transition: transform 0.4s ease;
}
.resume-mock:hover { transform: rotate(0); box-shadow: 0 25px 50px rgba(0,255,255,0.2); border-color: var(--elem-color); }
.rm-header {  font-weight: 900; color: #fff; text-transform: uppercase; }
.rm-line { width: 100%; height: 4px; background: var(--elem-color); }
.rm-block { width: 100%; height: 10px; background: #333; margin-bottom: 0.5rem; }
.rm-block.short { width: 60%; }
.resume-actions { flex: 1; }
.resume-actions h3 {  text-transform: uppercase; margin-bottom: 1rem; color: var(--text-light); }
.resume-actions p { color: var(--text-light-muted); margin-bottom: 2rem;  }

/* ===== CONTACT (FF Dark Section) ===== */
.contact-box {
    text-align: center; padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--bg-dark) 100%);
    border-radius: 0;
    border-top: 4px solid var(--elem-color);
    border-bottom: 4px solid var(--elem-color);
    position: relative;
}
.contact-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,186,0,0.02) 30px, rgba(255,186,0,0.02) 60px);
    pointer-events: none;
}
.contact-box h2 {  margin-bottom: 0.75rem; color: var(--elem-color); text-transform: uppercase; }
.contact-box p { color: var(--text-dark-muted); }
.contact-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ===== FOOTER (FF Style) ===== */
footer {
    padding: 3rem 2rem; text-align: center;
    border-top: 3px solid var(--elem-color);
    background: #000; color: var(--text-dark-muted);
}
footer p {  }
.footer-quote { font-style: italic; color: var(--elem-color); margin: 1rem 0; font-weight: 600; text-transform: uppercase;  letter-spacing: 0.05em; }
.social-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 0.5rem; }
.social-links a {
    color: rgba(255,255,255,0.6); font-weight: 700; text-transform: uppercase;
     transition: var(--transition-fast);
    border-bottom: 2px solid transparent; padding-bottom: 2px; letter-spacing: 0.05em;
}
.social-links a:hover { color: var(--elem-color); border-bottom-color: var(--elem-color); }

/* ===== MODAL ===== */
.modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px);
}
.modal-content {
    position: relative; z-index: 2001; width: 90%; max-width: 800px;
    background: #ffffff; color: #0D0D0D;
    border: 4px solid #000000;
    padding: 0;
    transform: scale(0.95) translateY(20px); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; overflow-y: auto;
    box-shadow: 15px 15px 0px var(--elem-color);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.modal.active .modal-content { transform: scale(1) translateY(0); }
.close-btn {
    position: absolute; top: 0.5rem; right: 1rem; font-size: var(--fs-600); font-weight: 300;
    color: #ffffff; cursor: pointer; z-index: 2002; line-height: 1; padding: 0.5rem;
    background: none; border: none; transition: color 0.3s ease;
}
.close-btn:hover { color: var(--elem-color); }
.modal-header { 
    display: flex; align-items: center; gap: 1.5rem; 
    padding: 2rem 2.5rem;
    background: #0D0D0D;
    border-bottom: 4px solid var(--elem-color);
}
.modal-header .tech-chips span {
    color: #000000;
    background: var(--elem-color);
    border: none;
}
.modal-header img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: #fff; padding: 0.5rem; border: 2px solid var(--elem-color); }
.modal-header h2 {  color: #ffffff; margin-bottom: 0; text-transform: uppercase; font-weight: 900; }
.modal-body { padding: 2.5rem; }
.modal-body p { margin-bottom: 1.5rem; line-height: 1.8; color: #333333;  }
.modal-body h4 { color: #000000; margin-top: 1.5rem; margin-bottom: 0.75rem; text-transform: uppercase;  font-weight: 900; letter-spacing: 0.05em; display: inline-block; border-bottom: 3px solid var(--elem-color); padding-bottom: 0.2rem; }
.modal-body ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #333333; }
.modal-body li { margin-bottom: 0.75rem; font-weight: 500; }
.modal-actions { margin-top: 2rem; display: flex; gap: 1rem; }

/* ===== ANIMATIONS ===== */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delayed { animation-delay: 0.2s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== RESPONSIVE ===== */

/* --- Tablet and below (max-width: 900px) --- */
@media (max-width: 900px) {
    .cursor-dot, .cursor-outline { display: none !important; }
    body { cursor: auto; }
    a, button { cursor: pointer; }

    .hamburger { display: flex; }
    .nav-content { justify-content: flex-end; padding: 0 1.25rem; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 1000;
        padding: 2rem;
    }
    .nav-links.active { display: flex; }
    .nav-links li { display: block; width: 100%; text-align: center; }
    .nav-links a:not(.btn-primary) {
        display: block;
        padding: 1.2rem 2rem;
        
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links a:not(.btn-primary):hover { transform: none; }
    .nav-links .btn-primary { margin-top: 1.5rem;  padding: 1rem 3rem; }

    .hero {
        flex-direction: column; text-align: center;
        padding: 120px 1.5rem 3rem; gap: 2rem; min-height: auto;
    }
    .hero-title {  text-shadow: 3px 3px 0px #FFFFFF; }
    .hero-subtitle-bold { text-align: left; }
    .hero-actions { justify-content: center; }
    .abstract-shape { width: 200px; height: 280px; }
    .scroll-indicator { display: none; }

    .section-dark .section-inner,
    .section-white .section-inner,
    .section-inner { padding: 3.5rem 1.5rem; }
    .section-header h2 {  }
    .section-decoration { display: none; }

    .about-container { padding: 2.5rem 1.5rem; clip-path: none; }
    .about-intro {  }
    .profile-details { grid-template-columns: 1fr; padding: 1.5rem; }

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

    .faq-item summary { padding: 1.2rem 1.5rem;  }
    .faq-item .faq-content { padding: 0 1.5rem 1.2rem; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-filters { justify-content: center; }

    .cert-grid { grid-template-columns: 1fr; gap: 2rem; }

    .github-container { padding: 2rem 1.5rem; }
    .github-header { flex-direction: column; gap: 0.5rem; text-align: center; }
    .stats-counter { grid-template-columns: 1fr; gap: 1.5rem; }

    .karma-hero { flex-direction: column; }
    .karma-info { padding: 2rem 1.5rem; }
    .karma-info h3 {  }
    .karma-meta { flex-direction: column; gap: 1rem; }
    .karma-architecture { grid-template-columns: 1fr; }

    .resume-container { flex-direction: column; gap: 2rem; text-align: center; }
    .resume-mock { width: 220px; height: 300px; transform: none; margin: 0 auto; }
    .resume-mock:hover { transform: none; }
    .resume-actions { text-align: center; }
    .resume-actions h3 {  }

    .contact-box { padding: 3rem 1.5rem; }
    .contact-box h2 {  }
    .contact-actions { flex-direction: column; align-items: center; }
    .contact-actions a { width: 100%; max-width: 320px; justify-content: center; }

    .modal-content { width: 95%; max-height: 95vh; }
    .modal-header { flex-direction: column; text-align: center; padding: 1.5rem; gap: 1rem; }
    .modal-header h2 {  }
    .modal-header img { width: 60px; height: 60px; }
    .modal-body { padding: 1.5rem; }
    .modal-content { box-shadow: 8px 8px 0px var(--elem-color); }

    .featured-card { flex-direction: column; }

    footer { padding: 2rem 1.5rem; }
    .footer-quote {  }
}

/* --- Small phones (max-width: 480px) --- */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-title {  }
    .hero-subtitle {  }
    .greeting {  }
    .btn-primary, .btn-secondary { padding: 0.6rem 1.5rem;  }
    .btn-primary.large, .btn-secondary.large { padding: 0.8rem 2rem;  }
    .about-container { padding: 2rem 1.2rem; }
    .about-intro {  }
    .profile-details { padding: 1rem; }
    .detail-value {  }
    .skill-category { padding: 2rem 1.5rem; }
    .project-info h3 {  }
    .project-link { padding: 0.6rem 1.5rem;  }
    .cert-img-container { height: 180px; }
    .stat-box h3 {  }
    .section-header h2 {  }
    .title-decoration { width: 6rem; }
    .contact-box h2 {  }
    .nav-links a:not(.btn-primary) {  padding: 1rem; }
}


/* ===== TIMELINE (JOURNEY) ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--elem-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 4px solid var(--elem-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.left::after {
    right: -16px;
}
.timeline-item.right::after {
    left: -16px;
}
.timeline-content {
    padding: 2rem;
    background-color: #ffffff;
    color: #0d0d0d;
    position: relative;
    --aug-border-all: 2px;
    --aug-border-bg: #ccc;
    transition: transform 0.3s ease, --aug-border-bg 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.timeline-content:hover {
    transform: translateY(-5px);
    --aug-border-bg: var(--elem-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item.right {
        left: 0;
    }
}

/* ===== CONTACT (FF Dark Section) ===== */
.contact-box {
    text-align: center; padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--bg-dark) 100%);
    border-radius: 0;
    border-top: 4px solid var(--elem-color);
    border-bottom: 4px solid var(--elem-color);
    position: relative;
}
.contact-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,186,0,0.02) 30px, rgba(255,186,0,0.02) 60px);
    pointer-events: none;
}
.contact-box h2 {  margin-bottom: 0.75rem; color: var(--elem-color); text-transform: uppercase; }
.contact-box p { color: var(--text-dark-muted); }
.contact-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ===== FOOTER (FF Style) ===== */
footer {
    padding: 3rem 2rem; text-align: center;
    border-top: 3px solid var(--elem-color);
    background: #000; color: var(--text-dark-muted);
}
footer p {  }
.footer-quote { font-style: italic; color: var(--elem-color); margin: 1rem 0; font-weight: 600; text-transform: uppercase;  letter-spacing: 0.05em; }
.social-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 0.5rem; }
.social-links a {
    color: rgba(255,255,255,0.6); font-weight: 700; text-transform: uppercase;
     transition: var(--transition-fast);
    border-bottom: 2px solid transparent; padding-bottom: 2px; letter-spacing: 0.05em;
}
.social-links a:hover { color: var(--elem-color); border-bottom-color: var(--elem-color); }

/* ===== MODAL ===== */
.modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px);
}
.modal-content {
    position: relative; z-index: 2001; width: 90%; max-width: 800px;
    background: #ffffff; color: #0D0D0D;
    border: 4px solid #000000;
    padding: 0;
    transform: scale(0.95) translateY(20px); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; overflow-y: auto;
    box-shadow: 15px 15px 0px var(--elem-color);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.modal.active .modal-content { transform: scale(1) translateY(0); }
.close-btn {
    position: absolute; top: 0.5rem; right: 1rem; font-size: var(--fs-600); font-weight: 300;
    color: #ffffff; cursor: pointer; z-index: 2002; line-height: 1; padding: 0.5rem;
    background: none; border: none; transition: color 0.3s ease;
}
.close-btn:hover { color: var(--elem-color); }
.modal-header { 
    display: flex; align-items: center; gap: 1.5rem; 
    padding: 2rem 2.5rem;
    background: #0D0D0D;
    border-bottom: 4px solid var(--elem-color);
}
.modal-header .tech-chips span {
    color: #000000;
    background: var(--elem-color);
    border: none;
}
.modal-header img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: #fff; padding: 0.5rem; border: 2px solid var(--elem-color); }
.modal-header h2 {  color: #ffffff; margin-bottom: 0; text-transform: uppercase; font-weight: 900; }
.modal-body { padding: 2.5rem; }
.modal-body p { margin-bottom: 1.5rem; line-height: 1.8; color: #333333;  }
.modal-body h4 { color: #000000; margin-top: 1.5rem; margin-bottom: 0.75rem; text-transform: uppercase;  font-weight: 900; letter-spacing: 0.05em; display: inline-block; border-bottom: 3px solid var(--elem-color); padding-bottom: 0.2rem; }
.modal-body ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #333333; }
.modal-body li { margin-bottom: 0.75rem; font-weight: 500; }
.modal-actions { margin-top: 2rem; display: flex; gap: 1rem; }

/* ===== ANIMATIONS ===== */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delayed { animation-delay: 0.2s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


/* ===== TIMELINE (JOURNEY) ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

/* ===== BRANCHING TIMELINE (DEEPSEEK) ===== */
.branching-timeline {
    width: 100%;
    max-width: 1100px;
    margin: 4rem auto;
}

.bt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr auto 1fr;    /* top – line – bottom */
    gap: 0;
    align-items: stretch;
}

.bt-line {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 8px;
    background: #000;
    border-radius: 4px;
    z-index: 1;
    align-self: center;
}

.bt-entry {
    position: relative;          /* for pseudo-element branches */
    display: flex;
    flex-direction: column;
    /* customisable branch dimensions */
    --stem-offset: 24px;         /* distance of stem from left/right edge */
    --arm-length: 50px;          /* length of the horizontal arm */
    --branch-gap: 70px;          /* vertical space between main line and card */
    justify-self: center;
    width: fit-content;
}

/* Top entries – sit in row 1, pushed to the bottom (main line) */
.bt-entry.top {
    grid-row: 1;
    align-self: end;             /* bottom of row touches the line */
    align-items: flex-start;     /* card will be offset to the right */
}

/* Bottom entries – sit in row 3, pushed to the top (main line) */
.bt-entry.bottom {
    grid-row: 3;
    align-self: start;           /* top of row touches the line */
    align-items: flex-end;       /* card will be offset to the left */
}

/* L-SHAPED BRANCHES */
.bt-entry::before,
.bt-entry::after {
    content: '';
    position: absolute;
    background: #000;
    border-radius: 2px;
    z-index: 0;
}

/* --- Top entry: stem up, then arm to the right --- */
.bt-entry.top::before {
    bottom: 0;                          /* starts at main line */
    left: var(--stem-offset);
    width: 6px;
    height: var(--branch-gap);          /* goes up exactly branch-gap */
}
.bt-entry.top::after {
    bottom: calc(var(--branch-gap) - 2px);          
    left: var(--stem-offset);
    width: var(--arm-length);
    height: 6px;
    border-radius: 0 4px 4px 0;
}

/* --- Bottom entry: stem down, then arm to the left --- */
.bt-entry.bottom::before {
    top: 0;                             /* starts at main line */
    right: var(--stem-offset);
    width: 6px;
    height: var(--branch-gap);
}
.bt-entry.bottom::after {
    top: calc(var(--branch-gap) - 2px);
    right: var(--stem-offset);
    width: var(--arm-length);
    height: 6px;
    border-radius: 4px 0 0 4px;
}

/* CARDS */
.bt-entry .bt-card {
    background: #ffffff;
    color: #0d0d0d;
    padding: 1.5rem 2rem;
    /* augmented-ui custom properties */
    --aug-bg: #ffffff;
    --aug-border-all: 2px;
    --aug-border-bg: #ccc;
    /* Card placement relative to branch */
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, --aug-border-bg 0.3s ease;
}

.bt-entry.top .bt-card {
    margin-top: calc(var(--branch-gap) - 28px);
    margin-bottom: -10px;
}
.bt-entry.bottom .bt-card {
    margin-bottom: calc(var(--branch-gap) - 28px);
    margin-top: -10px;
}

.bt-entry .bt-card:hover {
    --aug-border-bg: var(--elem-color);
}
.bt-entry.top .bt-card:hover { transform: translateY(-4px); }
.bt-entry.bottom .bt-card:hover { transform: translateY(4px); }

/* Offset cards horizontally so they attach to the arm */
.bt-entry.top .bt-card {
    margin-left: calc(var(--stem-offset) + var(--arm-length) - 5px);
}
.bt-entry.bottom .bt-card {
    margin-right: calc(var(--stem-offset) + var(--arm-length) - 5px);
}

.bt-entry .bt-card h3 {
    color: var(--elem-color);
    margin-bottom: 0.5rem;
    
    font-weight: 800;
}
.bt-entry .bt-card h4 {
    font-weight: 800;
    
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.bt-entry .bt-card p {
    color: #555;
    
    margin: 0;
}

@media (max-width: 768px) {
    .branching-timeline {
        overflow-x: auto;
        padding-bottom: 2rem;
    }
    .bt-grid {
        min-width: 800px;
    }
}

/* ===== FLOATING BACKGROUND ICONS ===== */
.floating-certificates {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.float-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.04);
    animation: float-around 20s infinite linear;
}
.float-1 { width: 120px; top: 10%; left: 15%; animation-duration: 25s; animation-direction: reverse; }
.float-2 { width: 80px; top: 60%; left: 80%; animation-duration: 18s; }
.float-3 { width: 150px; top: 70%; left: 20%; animation-duration: 22s; animation-delay: -5s; }
.float-4 { width: 100px; top: 20%; right: 25%; animation-duration: 30s; }

@keyframes float-around {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, -20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

