/* BASE RESERTS & VARIABLES */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #FFD700; /* Stark Metallic Gold */
    --accent-secondary: #FF3131; /* Hot Iron Man Red */
    --accent-blue: #00e5ff; /* Jarvis Blue */
    --accent-glow: rgba(255, 215, 0, 0.3);
    
    --font-head: 'Bebas Neue', sans-serif;
    --font-heading-alt: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-small: 'Poppins', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* For custom cursor */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* CUSTOM CURSOR */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 65%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s, height 0.3s;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.1s, height 0.1s, background-color 0.1s;
}

.cursor-hover .custom-cursor {
    width: 12px;
    height: 12px;
}
.cursor-hover .custom-cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 215, 0, 0.08);
    border-color: var(--accent);
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.2;
}

.sub-heading {
    font-family: var(--font-head);
    letter-spacing: 2px;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.main-heading {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-content .micro-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--accent-blue);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
    transition: opacity 0.5s ease;
}

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    letter-spacing: 1px;
}

/* UTILITIES */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.hover-glow:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-line {
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    flex-grow: 1;
    max-width: 300px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-heading-alt);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-glow);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-disabled {
    pointer-events: none;
    opacity: 0.4;
    border-color: #555;
    color: #888;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 5%;
}

.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, black 40%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.navbar.scrolled {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

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

.logo a {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.hamburger span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

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

.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255, 49, 49, 0.1) 40%, rgba(0,0,0,0) 80%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.hero-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    width: 100%;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* HERO VISUAL (Hardware abstraction) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* HERO VISUAL (Jarvis TECH Core) */
.tech-core-link {
    text-decoration: none;
    z-index: 10;
}

.tech-core {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    cursor: pointer;
}

/* ARC REACTOR BACKGROUND HUD */
.arc-bg-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: -5;
    overflow: hidden;
    opacity: 0.08; /* Dimmer for Hero (approx 30% less than 0.12) */
    transition: opacity 1s ease, filter 1s ease;
}

.arc-bg-container.past-hero {
    opacity: 0.12; /* Restore original brightness */
}

.arc-reactor-img {
    width: 75vh;
    height: 75vh;
    max-width: 90vw;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 50px var(--accent-blue));
    mix-blend-mode: screen; 
    opacity: 0.25;
    animation: energyBreathing 7s infinite alternate ease-in-out;
}

@keyframes energyBreathing {
    0%, 100% { opacity: 0.15; transform: scale(1); filter: brightness(1) blur(1px); }
    50% { opacity: 0.35; transform: scale(1.05); filter: brightness(1.5) blur(0px); }
}

/* Ensure centering on all screen sizes */
@media (max-width: 768px) {
    .arc-reactor-img {
        width: 35vh;
        height: 35vh;
    }
    
    .footer-links {
        gap: 8px;
    }
    
    .footer-link {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .footer-divider {
        font-size: 0.7rem;
    }
}

@media (min-width: 1200px) {
    .tech-core {
        width: 480px;
        height: 480px;
    }
}

.ring-layer {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Individualized ring mechanics */
.r1 { 
    width: 300px; height: 300px; 
    border: 1px dashed var(--accent-blue); 
    border-top-color: transparent; 
    border-bottom-color: transparent; 
    animation: rotateCW var(--core-speed, 25s) linear infinite; 
    opacity: 0.25; 
}
@media (min-width: 1200px) { .r1 { width: 460px; height: 460px; } }

.r2 { 
    width: 250px; height: 250px; 
    border: 2px solid var(--accent); 
    border-left-color: transparent; 
    border-right-color: transparent; 
    animation: rotateCCW calc(var(--core-speed, 25s) * 0.7) linear infinite; 
    opacity: 0.35; 
}
@media (min-width: 1200px) { .r2 { width: 390px; height: 390px; border-width: 3px; } }

.r3 { 
    width: 200px; height: 200px; 
    border: 1px dotted var(--accent-blue); 
    animation: rotateCW calc(var(--core-speed, 25s) * 0.5) linear infinite; 
    opacity: 0.45; 
}
@media (min-width: 1200px) { .r3 { width: 320px; height: 320px; } }

.r4 { 
    width: 150px; height: 150px; 
    border: 4px double var(--accent-secondary); 
    border-top-color: transparent; 
    animation: rotateCCW calc(var(--core-speed, 25s) * 0.3) linear infinite; 
    opacity: 0.6; 
}
@media (min-width: 1200px) { .r4 { width: 240px; height: 240px; border-width: 6px; } }

.core-text {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 6px;
    text-shadow: 0 0 15px var(--accent-glow);
    animation: corePulse 2s infinite alternate ease-in-out;
    z-index: 5;
    transition: all 0.4s ease;
}
@media (min-width: 1200px) { .core-text { font-size: 2.2rem; letter-spacing: 10px; } }

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

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

/* Hover Interface Feedback */
.tech-core-link:hover .r1 { transform: scale(1.15) perspective(1000px) rotateX(10deg); opacity: 0.9; filter: blur(0.5px); border-color: var(--accent-blue); }
.tech-core-link:hover .r2 { transform: scale(1.1) perspective(1000px) rotateY(-10deg); opacity: 1; border-color: var(--accent); }
.tech-core-link:hover .r3 { transform: scale(1.05); opacity: 1; border-color: var(--accent-blue); }
.tech-core-link:hover .r4 { transform: scale(0.95); box-shadow: 0 0 40px var(--accent-glow); border-color: var(--accent-secondary); }
.tech-core-link:hover .core-text { 
    letter-spacing: 12px; 
    text-shadow: 0 0 30px var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.hero-visual:hover {
    filter: saturate(1.2);
}

@keyframes corePulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
}

.hardware-model {
    width: 250px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    transform: rotateX(20deg) rotateY(-20deg);
    transform-style: preserve-3d;
}

.circuit-lines {
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--accent-glow);
    border-radius: 8px;
    opacity: 0.5;
}

.chip {
    width: 60px;
    height: 60px;
    background: #111;
    border: 2px solid #333;
    border-radius: 4px;
    position: relative;
    margin-bottom: 10px;
}

.chip::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    opacity: 0;
    animation: flash 3s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
}

/* SYSTEMS GRID */
.systems-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.system-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

.system-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.system-visual {
    background: #0a0a0a;
    border-radius: 8px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

/* Abstract Visuals */
.techdeck-abstract {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.key {
    width: 40px;
    height: 40px;
    background: #151515;
    border-radius: 6px;
    border: 1px solid #333;
    box-shadow: 0 4px 0 #0a0a0a;
    transition: 0.1s;
}

.system-card:hover .key:nth-child(2) { background: var(--accent); transform: translateY(4px); box-shadow: 0 0 0 #0a0a0a; }

.infra-abstract {
    position: relative;
    width: 100px;
    height: 100px;
}

.node {
    position: absolute;
    border-radius: 50%;
    background: #333;
}

.node.central {
    width: 40px;
    height: 40px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.node.p1 { width: 15px; height: 15px; top: 0; left: 50%; transform: translateX(-50%); }
.node.p2 { width: 20px; height: 20px; bottom: 10px; left: 0; }
.node.p3 { width: 10px; height: 10px; bottom: 20px; right: 0; }

.data-abstract {
    width: 80px;
    height: 100px;
    border: 2px solid #333;
    border-radius: 8px;
    position: relative;
    background: repeating-linear-gradient(0deg, transparent, transparent 10px, #111 10px, #111 20px);
}

.wipe-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-secondary);
    box-shadow: 0 0 12px var(--accent-secondary);
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.nas-abstract {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rack {
    width: 120px;
    height: 30px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    position: relative;
}

.rack::before {
    content: '';
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #0f0;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sys-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading-alt);
    font-size: 0.85rem;
    margin-bottom: -5px;
}

.sys-id {
    color: #666;
    letter-spacing: 1px;
}

.sys-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.sys-status.deployed { color: #00ff00; background: rgba(0, 255, 0, 0.1); }
.sys-status.indoc { color: #ffaa00; background: rgba(255, 170, 0, 0.1); }
.sys-status.active { color: var(--accent); background: var(--accent-glow); }

.sys-title {
    font-size: 1.8rem;
}

.sys-subtitle {
    color: var(--accent);
    font-weight: 500;
    font-size: 1rem;
}

.sys-description {
    color: var(--text-muted);
}

.sys-depth {
    font-size: 0.9rem;
    color: #ccc;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-left: 2px solid var(--accent);
}

.sys-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-small);
    border: 1px solid rgba(255,255,255,0.1);
}

.sys-metrics {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.metric {
    font-family: var(--font-heading-alt);
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.proof-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

/* PROOF CARDS */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.proof-card {
    padding: 30px;
}

.proof-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.proof-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.proof-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* EXPERIENCE TIMELINE */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

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

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    padding: 25px;
}

.tl-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.tl-title {
    font-size: 1.4rem;
}

.tl-company {
    color: var(--accent);
    font-weight: 600;
}

.tl-company a {
    color: inherit;
    text-decoration: none;
}

.tl-company a:hover {
    text-decoration: underline;
}

.tl-date {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tl-list {
    color: var(--text-main);
    padding-left: 20px;
}

.tl-list li {
    margin-bottom: 8px;
}

/* BUILD STACK */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.stack-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    min-height: 120px;
    padding: 10px;
}

.stack-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    will-change: transform;
}

.stack-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

/* ACHIEVEMENTS */
.achievement-list {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ach-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ach-icon {
    font-size: 1.5rem;
}

.ach-text {
    font-size: 1.1rem;
}

.ach-text strong {
    color: #fff;
}

/* PROOF OF EXECUTION REFINEMENT */
.proof-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background 0.4s ease,
                border-color 0.4s ease;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.proof-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        500px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), 
        rgba(255, 215, 0, 0.06), 
        transparent 50%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.proof-card:hover {
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.08); 
    background: rgba(255, 215, 0, 0.02); 
    border-color: rgba(255, 215, 0, 0.35); /* Soft gold outline */
    z-index: 10;
}

/* ACHIEVEMENT CARD REFINEMENT */
.ach-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background 0.4s ease,
                border-color 0.4s ease;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.ach-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        500px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), 
        rgba(0, 229, 255, 0.04), 
        transparent 50%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.ach-card:hover {
    box-shadow: 0 10px 35px rgba(0, 229, 255, 0.05); 
    background: rgba(0, 229, 255, 0.015); 
    border-color: rgba(0, 229, 255, 0.15); /* Extremely subtle blue outline */
    z-index: 10;
}

/* TIMELINE CONNECTIVITY FIX */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%; /* Ensures it reaches the last item */
    background: linear-gradient(to bottom, var(--accent-blue) 0%, #222 100%);
    z-index: 1;
}

/* FINALIZED ACHIEVEMENT GRID */
.ach-grid-final {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.ach-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.ach-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

@media (max-width: 992px) {
    .ach-grid-final {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ach-grid-final {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 15px;
    }
}

/* Cleanup of experimental option styles */
.achievement-options, .ach-option-a, .ach-option-b, .section-divider, .ach-grid-a, .ach-chips-container {
    display: none;
}

/* NOW / NEXT */
.nn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.nn-card {
    padding: 40px;
}

.nn-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: #222;
    font-family: var(--font-head);
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.nn-badge.highlight {
    background: var(--accent);
    color: #000;
}

.nn-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* CONTACT */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-head);
    margin-bottom: 3rem;
}

.contact-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.contact-ctas .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* FOOTER */
.glass-footer {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 100%);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.footer-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-divider {
    color: #444;
}

.system-status-msg {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    letter-spacing: 1px;
}

/* ANIMATIONS (Intersection Observer classes) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .system-card {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-visual {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Disable custom cursor on mobile */
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
}
