/* Custom styling for André's portfolio */

/* Stat Box Styling - Modern, Fast, Beautiful */
.stat-box {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* Hide the blur glow elements inside stat boxes - we'll use our own colors */
.stat-box .absolute.blur-2xl {
    display: none !important;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Blue - Years Experience */
.stat-box:nth-child(1) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15)) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

html.dark .stat-box:nth-child(1) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2)) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.stat-box:nth-child(1):hover {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.2) !important;
}

/* Purple - Certifications */
.stat-box:nth-child(2) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.15)) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

html.dark .stat-box:nth-child(2) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(147, 51, 234, 0.2)) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

.stat-box:nth-child(2):hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.2) !important;
}

/* Cyan - Companies */
.stat-box:nth-child(3) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.15)) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

html.dark .stat-box:nth-child(3) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(8, 145, 178, 0.2)) !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
}

.stat-box:nth-child(3):hover {
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3), 0 0 40px rgba(6, 182, 212, 0.2) !important;
}

/* Green - THM Ranking */
.stat-box:nth-child(4) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15)) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html.dark .stat-box:nth-child(4) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2)) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.stat-box:nth-child(4):hover {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3), 0 0 40px rgba(16, 185, 129, 0.2) !important;
}

/* Orange - Technologies */
.stat-box:nth-child(5) {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.15)) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

html.dark .stat-box:nth-child(5) {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.2)) !important;
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
}

.stat-box:nth-child(5):hover {
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.3), 0 0 40px rgba(249, 115, 22, 0.2) !important;
}

/* Pink - Research */
.stat-box:nth-child(6) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.15)) !important;
    border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

html.dark .stat-box:nth-child(6) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.2)) !important;
    border: 1px solid rgba(236, 72, 153, 0.4) !important;
}

.stat-box:nth-child(6):hover {
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.3), 0 0 40px rgba(236, 72, 153, 0.2) !important;
}

/* Enhanced stat numbers with color-specific neon glows */
.stat-number {
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

/* Smooth fade-in animation for stats */
@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-box {
    animation: statFadeIn 0.6s ease-out forwards;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.15s; }
.stat-box:nth-child(3) { animation-delay: 0.2s; }
.stat-box:nth-child(4) { animation-delay: 0.25s; }
.stat-box:nth-child(5) { animation-delay: 0.3s; }
.stat-box:nth-child(6) { animation-delay: 0.35s; }

/* Experience Timeline Enhancements */
.experience-timeline-item {
    opacity: 0;
    animation: experienceFadeIn 0.8s ease-out forwards;
}

@keyframes experienceFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.04), rgba(6, 182, 212, 0.06)) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.dark .experience-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08), rgba(6, 182, 212, 0.1)) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dual shimmer effect */
.experience-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(16, 185, 129, 0.15) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 1;
    }
}

/* Glow border effect on hover */
.experience-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.4), 
        rgba(6, 182, 212, 0.4),
        rgba(59, 130, 246, 0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(8px);
}

.experience-card:hover::after {
    opacity: 1;
}

.experience-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
    box-shadow: 0 30px 80px rgba(16, 185, 129, 0.25), 
                0 0 50px rgba(16, 185, 129, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(16, 185, 129, 0.6) !important;
}

/* Timeline dot with multi-layer pulse */
.timeline-dot {
    animation: multiPulse 2.5s ease-in-out infinite;
    position: relative;
    background: linear-gradient(135deg, #10b981, #059669);
}

.timeline-dot::before,
.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -50%;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.6);
    animation: ripple 2.5s ease-out infinite;
}

.timeline-dot::after {
    animation-delay: 0.8s;
}

@keyframes multiPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7),
                    0 0 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0),
                    0 0 30px rgba(16, 185, 129, 0.6);
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Enhanced role title */
.experience-card h3 {
    background: linear-gradient(135deg, #10b981, #059669, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.experience-card:hover h3 {
    transform: translateX(4px);
    text-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}

/* Company link with icon bounce */
.experience-card a svg {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.experience-card a:hover svg {
    transform: translate(3px, -3px) rotate(5deg);
}

/* Enhanced country badge */
.experience-card span[class*="bg-green"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15)) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.experience-card:hover span[class*="bg-green"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25)) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Global smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to sections */
section {
    animation: fadeInUp 0.8s ease-out;
}

/* Stagger animations for child elements */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Lazy loading image fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* Enhanced code blocks with better syntax highlighting colors */
pre code {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Minimal, Notion-like code blocks: remove line numbers and table layout */
pre, pre code, .article-content pre, .article-content pre code {
  counter-reset: none !important;
  background: #23272e !important;
  color: #f3f4f6 !important;
  border-radius: 0.7em !important;
  padding: 1.2em 1.6em !important;
  font-size: 1.08em !important;
  font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace !important;
  box-shadow: 0 4px 24px rgba(30,41,59,0.10) !important;
  border: 1.5px solid #23272e !important;
  margin: 2em 0 !important;
  overflow-x: auto !important;
  position: relative !important;
  max-width: 100% !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;
}
pre table, pre > table, pre > table td, pre > table tr,
.article-content pre table, .article-content pre > table, .article-content pre > table td, .article-content pre > table tr,
.article-content pre .chroma .ln, .article-content pre .linenumber, .article-content pre .hljs-ln-numbers {
  display: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Security-themed accent colors for links in dark mode */
.dark a:hover {
    color: #60a5fa; /* Brighter blue for better visibility */
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

/* Enhance tag styling */
.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Better spacing for experience cards */
.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

.experience-item:hover {
    transform: translateX(4px);
}

/* Enhanced project cards */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.project-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(96, 165, 250, 0.1);
    transform: translateY(-6px) scale(1.01);
}

/* Better blog post preview styling */
.blog-preview {
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 3px solid transparent;
}

.blog-preview:hover {
    background-color: rgba(96, 165, 250, 0.08);
    transform: translateX(12px);
    border-left-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

/* Enhanced tech stack carousel */
.tech-icon {
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.tech-icon:hover {
    filter: grayscale(0%);
    transform: scale(1.15);
}

/* Better typography for headings */
h1, h2, h3, h4 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* Security badge styling */
.security-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

/* Enhanced profile image */
.profile-image {
    transition: all 0.3s ease;
    border: 3px solid rgba(96, 165, 250, 0.3);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 10px 40px rgba(96, 165, 250, 0.3);
}


/* Better footer styling */
footer {
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced social icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

/* Better responsive tables for mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Certification/badge highlights */
.certification {
    position: relative;
    padding-left: 1.5rem;
}

.certification::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Command-line code block styling: custom prompt for bash/shell, only once per line */
code.language-bash > span:not(.no-prompt)::before,
code.language-shell > span:not(.no-prompt)::before {
  content: "k24@black $ ";
  color: #10b981;
  font-weight: bold;
}

/* Highlight important security-related keywords in code */
.highlight .k,
.highlight .kd {
    color: #f472b6 !important; /* Pink for keywords */
}

/* Better blockquote styling */
blockquote {
    border-left: 4px solid #60a5fa;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.dark blockquote {
    color: #9ca3af;
    border-left-color: #3b82f6;
}

/* Animated gradient for headings on hover */
.page-title:hover {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Better contrast for dark mode */
.dark {
    --tw-prose-body: #d1d5db;
    --tw-prose-headings: #f9fafb;
    --tw-prose-links: #60a5fa;
    --tw-prose-code: #e5e7eb;
}

/* Subtle animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Enhanced button styling */
button, .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::after, .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::after, .btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Better card shadows with depth */
.card, .project-card, article {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark .card, .dark .project-card, .dark article {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Glow effect for interactive elements */
.interactive-glow:hover {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4), 0 0 40px rgba(96, 165, 250, 0.2);
}

/* Enhanced focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Better spacing rhythm */
.content-section {
    margin-bottom: 4rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Enhanced list styling */
ul li::marker {
    color: #60a5fa;
}

ol li::marker {
    color: #60a5fa;
    font-weight: 600;
}

/* Subtle background patterns for sections */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dark .pattern-dots {
    background-image: radial-gradient(circle, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
}

/* Enhanced selection color */
::selection {
    background-color: #60a5fa;
    color: #ffffff;
}

::-moz-selection {
    background-color: #60a5fa;
    color: #ffffff;
}

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
}

/* Better navbar blur effect */
nav {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Enhanced tag pills */
.tag, span[class*="tag"] {
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag:hover, span[class*="tag"]:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(96, 165, 250, 0.25);
}

/* Improved header hierarchy */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}

/* Responsive container padding */
.container {
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
}

/* Better mobile experience */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .project-card:hover {
        transform: translateY(-3px) scale(1.005);
    }
    
    .blog-preview:hover {
        transform: translateX(6px);
    }
}

/* Stat Box Neon Glow & Background */
.stat-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(17, 24, 39, 0.3));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.1), 0 0 30px rgba(96, 165, 250, 0.05);
}

.stat-number {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 
                 0 0 10px rgba(96, 165, 250, 0.7), 
                 0 0 20px rgba(96, 165, 250, 0.5), 
                 0 0 40px rgba(96, 165, 250, 0.3);
}

/* Deep visual emphasis for numbered sections in writeups */
.article-content h2 {
  position: relative;
  font-size: 2.3rem;
  font-weight: 900;
  margin-top: 3.2em;
  margin-bottom: 1.5em;
  color: #1e293b;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #a78bfa 0%, #60a5fa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 0.1em;
  z-index: 1;
}
.article-content h2::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.7em;
  background: linear-gradient(180deg, #a78bfa 0%, #60a5fa 100%);
  border-radius: 0.4em;
  margin-right: 0.7em;
  vertical-align: middle;
  box-shadow: 0 2px 12px 0 #a78bfa33;
}
/* Extra highlight for h2s that start with a number and period */
.article-content h2.numbered-section {
    background: linear-gradient(90deg, #f3f4f6 60%, #e0e7ff 100%);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #1e293b;
    border-radius: 0.5em;
    padding: 0.25em 1.2em 0.25em 0.5em;
    box-shadow: 0 2px 16px 0 #a78bfa22;
    border-left: 8px solid #a78bfa;
    margin-left: -0.5em;
    margin-right: -0.5em;
}

/* Experience Map Theme */
#experience-map {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(2,6,23,0.65), rgba(7,16,30,0.6));
    border: 1px solid rgba(96, 165, 250, 0.06);
    box-shadow: 0 10px 40px rgba(2,6,23,0.6), 0 0 30px rgba(16, 185, 129, 0.04);
    height: 420px; /* fallback, inline already sets this */
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.9rem;
    align-items: center;
    color: rgba(226, 233, 245, 0.95);
}

.map-legend .legend-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(96,165,250,0.04);
}

.map-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 10px rgba(96,165,250,0.08);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Leaflet control overrides to match dark theme */
.leaflet-control-zoom, .leaflet-control-attribution, .leaflet-control-scale {
    background: rgba(2,6,23,0.6) !important;
    color: rgba(226,233,245,0.95) !important;
    box-shadow: 0 6px 18px rgba(2,6,23,0.6) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(96,165,250,0.04) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(7, 12, 23, 0.95) !important;
    color: #e6eef8 !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 50px rgba(2,6,23,0.6) !important;
    border: 1px solid rgba(96,165,250,0.06) !important;
}

.leaflet-popup-tip {
    background: rgba(7, 12, 23, 0.95) !important;
}

.leaflet-container {
    font-family: inherit;
    color: #e6eef8;
}

/* Make the circle markers a bit glowy on hover */
.leaflet-container .leaflet-interactive:hover {
    filter: drop-shadow(0 6px 18px rgba(16,185,129,0.18));
    transform-origin: center center;
}

@media (max-width: 768px) {
    #experience-map { height: 320px; }
    .map-legend { font-size: 0.8rem; gap: 0.5rem; }
}

/* End Leaflet Theme */
