/* ===================================
   BIKE-INSPIRED COLOR PALETTE
   =================================== */

:root {
    /* Professional Bike Theme Colors */
    --matte-black: #1a1a1a;
    --carbon-fiber: #2c2c2c;
    --steel-gray: #64748b;
    --aluminum: #94a3b8;
    --chainring-gold: #f59e0b;
    --brake-red: #ef4444;
    --road-white: #f8fafc;
    --asphalt: #334155;

    /* Mapped to original variables for compatibility */
    --primary-color: #f59e0b;
    --secondary-color: #50c878;
    --dark-bg: #1a1a1a;
    --light-bg: #2c2c2c;
    --text-light: #94a3b8;
    --text-white: #f8fafc;
    --accent: #f59e0b;
    --navy: #1a1a1a;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);

    pointer-events: auto;         /* ← Navbar can be clicked */
    isolation: isolate;
}

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

.nav-logo a {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--road-white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background: var(--text-white);
    transition: 0.3s;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-bike {
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(44, 44, 44, 0.85)),
        url('../assets/images/other/bike-background.jpg') center/cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--matte-black) 100%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--chainring-gold), transparent);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS (ROLLING WHEEL EFFECT)
   =================================== */

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--chainring-gold);
    border-radius: 50px;
    background: transparent;
    color: var(--chainring-gold);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--chainring-gold);
    color: var(--matte-black);
    transform: translateX(5px) rotate(2deg);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: rotate(360deg);
}

.btn-primary {
    background-color: var(--chainring-gold);
    color: var(--matte-black);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--chainring-gold);
}

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    margin-top: -20px;
}

.btn-secondary:hover {
    background-color: rgba(245, 158, 11, 0.1);
}


/* ===================================
   SOCIAL LINKS
   =================================== */

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    opacity: 0;
}

.social-links a:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 700px;
    height: 525px;
    background: linear-gradient(135deg, var(--chainring-gold), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* ===================================
   SECTION TITLES (METAPHORICAL)
   =================================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px var(--chainring-gold));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.subtitle {
    font-size: 1rem;
    color: var(--steel-gray);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.underline {
    width: 100px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 2rem;
}

/* ===================================
   DIVIDERS (CHAIN & SPOKE PATTERNS)
   =================================== */

.chain-divider {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
    opacity: 0.4;
}

.chain-divider svg {
    width: 100%;
    height: 40px;
}

.spoke-divider {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--steel-gray),
        var(--steel-gray) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.3;
    margin: 4rem 0;
}

/* ===================================
   STATS SECTION
   =================================== */

.stats {
    padding: 80px 0;
    background: linear-gradient(
        180deg,
        var(--dark-bg) 0%,
        var(--light-bg) 50%,
        var(--dark-bg) 100%
    );
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' stroke='%23f59e0b' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--accent);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.stat-card p {
    color: var(--text-light);
}

.stat-conversion {
    font-size: 0.7rem;
    color: var(--accent);
    margin-top: 0.5rem;
    opacity: 0.8;
    font-style: italic;
    font-weight: 500;
}

/* ===================================
   BIKE STATS SECTION (LIVE METRICS)
   =================================== */

.bike-stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2332 0%, #0a192f 100%);
    position: relative;
    overflow: hidden;
}

.bike-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 45c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15z' stroke='%23f59e0b' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.bike-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.bike-stat-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(74, 144, 226, 0.05) 100%);
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bike-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bike-stat-card:hover::before {
    opacity: 1;
}

.bike-stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
    transition: transform 0.3s ease;
}

.bike-stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.route-showcase {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.route-showcase h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.route-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.route-info strong {
    color: var(--text-white);
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.route-info p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.route-quote {
    font-style: italic;
    color: var(--accent) !important;
    margin-top: 1rem !important;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.route-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.route-stats i {
    color: var(--accent);
}

/* ===================================
   FEATURED PROJECTS
   =================================== */

.featured-projects {
    padding: 80px 0;
    background: var(--light-bg);
}

.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--carbon-fiber);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(245, 158, 11, 0.1);
    position: relative;
    margin: 20px 0 15px 20px;

    isolation: isolate;           /* ← Isolates the card */
    outline: none;
}

.project-card:focus,
.project-card:active {
    outline: none;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #1a2332;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 158, 11, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 2rem;
    color: white;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-white);
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.project-card i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.learn-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 1rem 0 1rem 1rem;
    display: inline-block;
    position: relative;
}

.learn-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-color);
}

.learn-more:hover::after {
    margin-left: 1rem;
}

.view-all {
    text-align: center;
}

/* ===================================
   PROJECTS PAGE
   =================================== */

.projects-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* ===================================
   PROJECT DETAIL PAGE
   =================================== */

.project-detail {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.back-button {
    margin-bottom: 2rem;
}

.back-button a {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.back-button a:hover {
    transform: translateX(-5px);
}

.project-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.project-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.project-content {
    color: var(--text-light);
}

.project-section {
    margin-bottom: 3rem;
}

.project-section h2 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-list {
    list-style: none;
    margin-left: 1rem;
}

.project-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.project-list li:before {
    content: "⚙";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.9rem;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.figure {
    margin: 0;
}

.figure .caption {
    margin-top: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: center;
}

img.project-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(245, 158, 11, 0.1);
    transition: transform 0.3s ease;
}

img.project-img:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.max-400 { max-width: 400px; }
.max-500 { max-width: 500px; }
.max-600 { max-width: 600px; }
.max-720 { max-width: 720px; }
.img-center { margin-inline: auto; }

img[width][height] {
    height: auto;
}

.project-section details {
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 0.75rem;
    background: var(--light-bg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.project-section summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-white);
}

.project-section ol,
.project-section ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.project-section li {
    margin: 0.25rem 0;
}

.project-section ol {
    list-style-position: inside;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.metric {
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.05);
}

.metric h4 {
    margin: 0.2rem 0 0.3rem;
    font-size: 1rem;
    color: var(--text-white);
}

.metric p {
    color: var(--text-light);
    margin: 0;
}

.project-toc-wrapper {
    margin: 1rem 0 2rem;
    overflow-x: auto;
    padding-top: 10px;
}

.project-toc {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1rem;
    padding-bottom: 0.25rem;
}

.toc-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.5rem;
    background: rgba(245, 158, 11, 0.05);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

a.toc-card,
a.toc-card:link,
a.toc-card:visited {
    text-decoration: none !important; /* Remove underline entirely */
    color: inherit !important; /* Don't change text color */
}

a.toc-card:hover {
    text-decoration: none !important;
}

/* Keep your existing hover effects */
.toc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--accent);
    z-index: 10;
}

.toc-card:hover .toc-title,
.toc-card:hover .toc-num,
.toc-card:hover .toc-sub {
    color: var(--accent);
}

.toc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--accent);
    z-index: 10;
}

.toc-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.toc-num {
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-white);
}

.toc-body a {
    display: inline-block;
    text-decoration: underline;
    text-decoration-color: var(--steel-gray); /* Silver/gray underline */
    text-decoration-thickness: 1px;
    text-underline-offset: 3px; /* Space between text and line */
    color: var(--text-white);
    transition: all 0.3s;
}

.toc-body a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent); /* Orange on hover */
}

.toc-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-white);
}

.toc-sub {
    color: var(--steel-gray);
    font-size: 0.9rem;
    line-height: 1.3;
}

.callout {
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

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

/* Image Grid Layouts */
.project-images.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-images.grid-2 img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.project-images.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-images.grid-3 img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.project-images.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.project-images.grid-4 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-images.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.project-images.grid-5 img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-images.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.project-images.grid-2x2 .figure {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-images.grid-2x2 .project-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #f5f5f5;
}

.project-images.grid-2x2 .caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* ===================================
   EXPERIENCE PAGE
   =================================== */

.experience-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -45px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--dark-bg);
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.timeline-content h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    margin: 1rem 0;
    list-style: none;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content ul li:before {
    content: "⚙";
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (max-width: 760px) {
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-date {
        padding: 0;
    }
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ===================================
   SKILLS PAGE (GEAR RINGS)
   =================================== */

.skills-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.skills-category {
    margin-bottom: 4rem;
}

.category-title {
    color: var(--text-white);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.category-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: var(--accent);
    margin: 0.5rem auto 2rem;
}

.skills-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Legacy skill card (for compatibility) */
.skill-card {
    background-color: var(--light-bg);
    border: 2px solid rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    min-width: 140px;
    flex: 0 0 auto;
    text-decoration: none;
    display: block;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--accent);
}

.skill-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover img {
    transform: scale(1.1);
}

.skill-card p {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ===================================
   EDUCATION PAGE
   =================================== */

.edu-page .section-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.edu-card {
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    background: var(--light-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.bike-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M312.1 32c-13.3 0-24 10.7-24 24s10.7 24 24 24h25.7l34.6 64H222.9l-27.4-38C191 99.7 183.7 96 176 96H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h43.7l22.1 30.7-26.6 53.1c-10-2.5-20.5-3.8-31.2-3.8C57.3 224 0 281.3 0 352s57.3 128 128 128c65.3 0 119.1-48.9 127-112h49c8.5 0 16.3-4.5 20.7-11.8l84.8-143.5 21.7 40.1C402.4 276.3 384 312 384 352c0 70.7 57.3 128 128 128s128-57.3 128-128-57.3-128-128-128c-13.5 0-26.5 2.1-38.7 6L375.4 48.8C369.8 38.4 359 32 347.2 32H312.1zM458.6 303.7l32.3 59.7c6.3 11.7 20.9 16 32.5 9.7s16-20.9 9.7-32.5l-32.3-59.7c3.6-.6 7.4-.9 11.2-.9 39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72c0-18.6 7-35.5 18.6-48.3zM133.2 368h65c-7.3 32.1-36 56-70.2 56-39.8 0-72-32.2-72-72s32.2-72 72-72c1.7 0 3.4 .1 5.1 .2l-24.2 48.5c-9 18.1 4.1 39.4 24.3 39.4zm33.7-48l50.7-101.3 72.9 101.2-.1 .1H166.8zm90.6-128H365.9L317 274.8 257.4 192z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.edu-card h2 {
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.edu-card h3 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-card h3 i {
    color: var(--accent);
    font-size: 1rem;
}

.edu-grid {
    display: grid;
    gap: 1rem;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.edu-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.edu-meta i {
    font-size: 0.9rem;
}

.involvements-section {
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.involvements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.involvement-item {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.involvement-item i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.involvement-item:hover {
    background: var(--accent);
    color: var(--matte-black);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.involvement-item:hover i {
    transform: scale(1.2);
}

.leadership-badge {
    background: #fbbf24;
    color: #78350f;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.coursework-section {
    margin-top: 1.5rem;
}

.coursework-dropdown {
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.5rem;
    background: rgba(245, 158, 11, 0.05);
    overflow: hidden;
}

.coursework-header {
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    transition: background 0.2s ease;
    list-style: none;
}

.coursework-header::-webkit-details-marker {
    display: none;
}

.coursework-header::before {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

details:not([open]) .coursework-header::before {
    transform: rotate(-90deg);
}

.coursework-header:hover {
    background: rgba(245, 158, 11, 0.15);
}

.coursework-header i {
    color: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.coursework-header:hover i {
    transform: rotate(180deg);
}

.course-list {
    list-style: none;
    padding: 1rem 1.25rem 1rem 2.5rem;
    margin: 0;
    background: var(--carbon-fiber);
}

.course-list li {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(245, 158, 11, 0.05);
    transition: all 0.2s ease;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1rem;
}

.course-list li:hover {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
    padding-left: 1.75rem;
}

/* ===================================
   LOADING SCREEN
   =================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
}

.bike-track {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 280px;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.bike-track::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-image: url('../assets/svgs/loading/terrain.svg');
    background-size: 100% 100%;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 2;
}

#loading-bike {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 330px;
    height: 195px;
    /*filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));*/
    z-index: 1;
}

@keyframes rotate-wheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#loading-screen.active #rear-wheel {
    animation: rotate-wheel 0.6s linear infinite;
    transform-origin: 430px 1219px;
}

#loading-screen.active #front-wheel {
    animation: rotate-wheel 0.6s linear infinite;
    transform-origin: 1610px 1220px;
}

@keyframes rotate-crank {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#loading-screen.active #crank,
#loading-screen.active #crankset,
#loading-screen.active #drivetrain {
    animation: rotate-crank 0.9s linear infinite;
    transform-origin: 902px 1298px;
}

.loading-text {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(245, 158, 11, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .btn {
        padding: 0.9rem 1.75rem;
        font-size: 1rem;
    }

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

    .timeline {
        padding-left: 20px;
    }

    .skills-row {
        gap: 1rem;
    }

    .skill-gear,
    .skill-card {
        min-width: 120px;
    }

    .gear-ring {
        width: 100px;
        height: 100px;
    }

    .skill-gear img,
    .skill-card img {
        width: 40px;
        height: 40px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .project-toc {
        grid-auto-columns: minmax(220px, 1fr);
    }

    .toc-num {
        font-size: 1.5rem;
    }

    .bike-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .bike-stat-card {
        padding: 2rem 1rem;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .route-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .loading-container {
        padding: 0 1rem;
    }

    .bike-track {
        height: 240px;
        padding-bottom: 50px;
    }

    .bike-track::before {
        height: 65px;
    }

    #loading-bike {
        width: 270px;
        height: 160px;
        bottom: 10px;
    }

    .edu-card {
        padding: 1.25rem;
    }

    .bike-accent {
        width: 100px;
        height: 100px;
        top: -15px;
        right: -15px;
    }

    .project-images.grid-2,
    .project-images.grid-3,
    .project-images.grid-4,
    .project-images.grid-2x2 {
        grid-template-columns: 1fr;
    }

    .project-images.grid-2 img,
    .project-images.grid-3 img,
    .project-images.grid-4 img {
        height: 250px;
    }

    .project-images.grid-2x2 .project-img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .skills-row {
        gap: 0.75rem;
    }

    .skill-gear,
    .skill-card {
        padding: 1rem 0.75rem;
        min-width: 100px;
    }

    .gear-ring {
        width: 80px;
        height: 80px;
    }

    .skill-gear img,
    .skill-card img {
        width: 32px;
        height: 32px;
    }

    .bike-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .loading-container {
        padding: 0 0.5rem;
    }

    .bike-track {
        height: 200px;
        padding-bottom: 40px;
    }

    .bike-track::before {
        height: 55px;
    }

    #loading-bike {
        width: 220px;
        height: 130px;
        bottom: 8px;
    }

    .loading-text {
        font-size: 1rem;
    }

    .project-images.grid-2 img,
    .project-images.grid-3 img,
    .project-images.grid-4 img,
    .project-images.grid-2x2 .project-img {
        height: 200px;
    }
}

/* ===================================
   ABOUT PAGE
   =================================== */

.about-page {
    padding: 120px 0 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.about-card,
.about-panel {
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: var(--light-bg);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

/* Left column (profile) */
.avatar-wrap {
    text-align: center;
}

.avatar {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 9999px;
    border: 6px solid rgba(245, 158, 11, 0.1);
    background: var(--carbon-fiber);
    display: inline-block;
}

.contact-links {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--accent);
}

.quick-list {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.75rem;
    list-style: none;
}

.quick-list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--text-light);
}

.quick-list i {
    color: var(--accent);
}

/* Right column (bio & sections) */
.about-panel h2 {
    margin: 0.25rem 0 0.5rem;
    color: var(--text-white);
}

.about-panel h3 {
    color: var(--text-white);
}

.about-panel h4 {
    color: var(--text-white);
}

.lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-light);
}

.subtle {
    color: var(--steel-gray);
}

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

.chip {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.list-check {
    padding-left: 1.25rem;
    list-style: none;
}

.list-check li {
    margin: 0.3rem 0;
    color: var(--text-light);
    position: relative;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: -1.25rem;
    color: var(--accent);
    font-weight: bold;
}

.cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    border: 1px dashed rgba(245, 158, 11, 0.3);
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.05);
    justify-content: space-between;
}

.cta .btn {
    margin-left: auto;
}

.btn.secondary {
    background: var(--accent);
    color: var(--matte-black);
    border-color: var(--accent);
}

.btn.secondary:hover {
    background: transparent;
    color: var(--accent);
}

/* Add to existing @media (max-width: 768px) section */
@media (max-width: 920px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

.bike-scroll-indicator {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 20px; /* ← INCREASED to fit the bike */
    background: transparent; /* ← No background on container */
    z-index: 998;
    pointer-events: none;
    overflow: visible;
}

.bike-scroll-track {
    position: absolute;
    top: 2px; /* ← Position bar lower in the 20px container */
    left: 0;
    height: 3px; /* ← Actual bar is still 3px */
    background: linear-gradient(90deg, var(--accent), rgba(245, 158, 11, 0.8));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    z-index: 1;
}

.bike-icon {
    position: absolute;
    top: -2px; /* ← Positioned from top of 20px container */
    left: 0;
    transform: translateX(-8px); /* Centers the 16px icon */
    transition: left 0.1s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    z-index: 1000;
}

.bike-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--road-white);
}

@media (max-width: 768px) {
    .bike-scroll-indicator {
        height: 16px;
    }

    .bike-scroll-track {
        top: 6px;
        height: 2px;
    }

    .bike-icon {
        top: 1px;
        width: 14px;
        height: 14px;
        transform: translateX(-7px);
    }
}


.stat-subtext {
    font-size: 0.75rem;
    color: var(--steel-gray);
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* Parallax horizon background */
.featured-projects {
    position: relative;
}

/* Gradient background layer - FULL coverage */
.featured-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--dark-bg) 0%,
        #1e1f21 10%,
        #212428 15%,
        #262f38 25%,
        #232b36 35%,
        #1f3240 50%,
        #1c3544 60%,
        #183548 75%,
        #142f45 85%,
        #0f2a42 92%,
        #0a1e3d 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Moving horizon effect - FULL coverage */
.featured-projects::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%; /* ← Full height */
    background:
        radial-gradient(
            ellipse at bottom,
            rgba(245, 158, 11, 0.08) 0%,
            rgba(245, 158, 11, 0.03) 40%,
            transparent 70%
        );
    animation: horizon-drift 80s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none; /* ← Clicks pass through to button */
}

/* Button ALWAYS on top */
.featured-projects .container,
.featured-projects .view-all,
.btn-primary,
.btn.secondary,
.btn-secondary {  /* ← ADD THESE */
    position: relative;
    z-index: 100;
}

@keyframes horizon-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(25%); }
}