:root {
    /* Color System - Cyber Geospatial Dark Theme */
    --bg-deep: #030712;         /* Deepest obsidian black */
    --bg-dark: #0b0f19;         /* High-tech charcoal navy */
    --bg-card: rgba(15, 23, 42, 0.45); /* Sleek glass fill */
    --bg-glass: rgba(11, 15, 25, 0.7);
    
    /* Neon Accents - Geospatial Scanner Vibe */
    --accent-primary: #00ffaa;    /* Cybernetic green/lime */
    --accent-secondary: #00f2fe;  /* High-tech cyan */
    --accent-tertiary: #8b5cf6;   /* Deep electric violet */
    
    --gradient-primary: linear-gradient(135deg, #00ffaa, #00f2fe);
    --gradient-secondary: linear-gradient(135deg, #00f2fe, #8b5cf6);
    --gradient-glow: radial-gradient(circle, rgba(0, 255, 170, 0.12), transparent 70%);
    
    /* Neutral / Text */
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --text-muted: #475569;
    --white: #ffffff;
    
    /* Cyber borders */
    --border-light: rgba(0, 255, 170, 0.08);
    --border-accent: rgba(0, 255, 170, 0.25);
    
    /* Layout */
    --container: 1140px;
    --radius-xl: 16px;         /* Tighter, more modern technical corners */
    --radius-lg: 12px;
    --radius-md: 8px;
    --header-h: 70px;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-deep);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Repeating Cyber HUD Scanning Grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 170, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Layout Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    position: relative;
    padding: 100px 0;
}

/* Background Decorations */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.blob-1 { top: -200px; left: -200px; }
.blob-2 { bottom: -200px; right: -200px; background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%); }

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 0;
}

.site-header.scrolled {
    padding: 0.75rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.availability-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 2rem;
}

.availability-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.hero-pills span {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.button {
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.button-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--border-light);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

.hero-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.hero-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.panel-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.metric-card span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Impact Strip */
.impact-strip {
    margin-top: -50px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.impact-title {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.impact-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Section Headings */
.section-kicker {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--white);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.spotlight-card {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.spotlight-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.chip-list li {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Section */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    padding-left: 60px;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--bg-deep);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.job-meta {
    color: var(--accent-primary);
    font-weight: 500;
}

.job-date {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.detail-list {
    list-style: none;
}

.detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--border-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.project-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.project-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, var(--accent-color), transparent 70%);
    opacity: 0.4;
    transition: opacity 0.4s;
}

.project-card:hover .project-accent {
    opacity: 0.8;
}

.accent-green { --accent-color: #10b981; }
.accent-blue { --accent-color: #3b82f6; }
.accent-orange { --accent-color: #f59e0b; }
.accent-rose { --accent-color: #f43f5e; }
.accent-gold { --accent-color: #fbbf24; }
.accent-violet { --accent-color: #8b5cf6; }
.accent-slate { --accent-color: #64748b; }
.accent-cyan { --accent-color: #00f2fe; }
.accent-neon { --accent-color: #00ffaa; }

.project-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

 .tech-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
 .tech-table th, .tech-table td { padding: 0.75rem 1rem; border: 1px solid var(--border-light); }
 .tech-table th { background: var(--bg-card); color: var(--white); text-align: left; }
 .tech-table td { background: rgba(255,255,255,0.02); color: var(--text-dim); }

.tag-row span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--text-muted);
}

.project-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-accent);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.skill-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Credentials */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.credential-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.credential-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.credential-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.credential-card h3:first-of-type {
    margin-top: 0;
}

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 2rem 0;
}

/* Contact Section */
.contact-shell {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-copy {
    padding: 4rem;
}

.contact-panel {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-row:hover .contact-value {
    color: var(--accent-primary);
}

/* Footer */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {
    section {
        padding: 70px 0;
    }

    .hero-grid, .about-grid, .contact-shell {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-grid {
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 2.5rem;
    }

    .hero-pills, .hero-actions, .hero-links {
        justify-content: center;
    }
    
    .hero-panel {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .credential-card {
        padding: 2rem;
    }

    /* Skills Globe centered on tablet */
    .stack-section > .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .skills-globe-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    /* Premium Mobile Navigation with glassmorphic transition */
    .site-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        z-index: 999;
    }
    
    .site-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-copy, .contact-panel {
        padding: 2rem;
    }

    .wave-divider {
        height: 50px;
    }

    /* Hide skills globe on mobile */
    .skills-globe-wrap {
        display: none !important;
    }

    .footer-wrap {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }

    /* Brand scaling */
    .brand-text {
        font-size: 0.9rem;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Hero elements */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .hero-pills {
        gap: 8px;
        margin-bottom: 2rem;
    }

    .hero-pills span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Metrics */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-card {
        padding: 1.25rem;
    }

    /* Cards & Spacers */
    .spotlight-card {
        padding: 1.5rem;
    }

    .project-card, .credential-card, .contact-copy, .contact-panel {
        padding: 1.5rem;
    }

    /* Timeline overrides */
    .timeline-item {
        padding-left: 35px;
        margin-bottom: 2.5rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: 2px;
        width: 16px;
        height: 16px;
        top: 6px;
    }

    .job-title {
        font-size: 1.25rem;
    }

    .timeline-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-date {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    /* Prevent email text overflow */
    .contact-value {
        font-size: 0.95rem;
        word-break: break-all;
    }
}


/* ==========================================
   3D VISUAL EFFECTS
   ========================================== */

/* Three.js Background Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Page content layered above canvas */
.page-shell {
    position: relative;
    z-index: 1;
}

/* Fade CSS blobs when Three.js takes over */
.three-active .bg-blob {
    opacity: 0 !important;
    transition: opacity 1.2s ease;
}

/* ---- 3D Card Tilt Glow ---- */
.tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-card,
.metric-card,
.impact-card,
.skill-card {
    transform-style: preserve-3d;
}

.project-card,
.metric-card,
.impact-card,
.skill-card,
.credential-card,
.hero-panel,
.contact-shell {
    position: relative;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Cyber corner reticles */
.project-card::before,
.project-card::after,
.metric-card::before,
.metric-card::after,
.impact-card::before,
.impact-card::after,
.skill-card::before,
.skill-card::after,
.credential-card::before,
.credential-card::after,
.hero-panel::before,
.hero-panel::after,
.contact-shell::before,
.contact-shell::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Top-left corner cap */
.project-card::before,
.metric-card::before,
.impact-card::before,
.skill-card::before,
.credential-card::before,
.hero-panel::before,
.contact-shell::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
}

/* Bottom-right corner cap */
.project-card::after,
.metric-card::after,
.impact-card::after,
.skill-card::after,
.credential-card::after,
.hero-panel::after,
.contact-shell::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
}

/* Hover effect on reticles */
.project-card:hover::before,
.project-card:hover::after,
.metric-card:hover::before,
.metric-card:hover::after,
.impact-card:hover::before,
.impact-card:hover::after,
.skill-card:hover::before,
.skill-card:hover::after,
.credential-card:hover::before,
.credential-card:hover::after,
.hero-panel:hover::before,
.hero-panel:hover::after,
.contact-shell:hover::before,
.contact-shell:hover::after {
    opacity: 1;
    width: 14px;
    height: 14px;
    border-color: var(--accent-secondary);
}

/* ---- Interactive Skills Globe ---- */
.stack-section > .container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem 3rem;
}

.stack-section .section-heading {
    grid-column: 1 / -1;
}

.skills-globe-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#skills-globe {
    width: 380px;
    height: 380px;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
}

#skills-globe:active {
    cursor: grabbing;
}

.globe-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    pointer-events: auto;
    will-change: transform, opacity;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.globe-tag:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
}

/* ---- Animated Wave Dividers ---- */
.wave-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Accessibility: disable all 3D effects for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #three-canvas,
    .tilt-glow,
    .skills-globe-wrap {
        display: none !important;
    }

    .stack-section > .container {
        display: block;
    }

    .wave-divider {
        display: none;
    }
}
