/* ===========================================
   CSS Variables & Theme
   =========================================== */
:root {
    /* AI-themed Color Palette */
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #10b981;
    --neon-purple: #a855f7;
    --neon-cyan: #06b6d4;
    --neon-green: #10b981;
    --neon-pink: #ec4899;

    /* Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d12;
    --bg-tertiary: #13131a;
    --bg-card: rgba(26, 26, 36, 0.6);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --text-glow: #a855f7;

    /* Glows */
    --glow-primary: 0 0 20px rgba(168, 85, 247, 0.5);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.5);
    --glow-accent: 0 0 20px rgba(16, 185, 129, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-holographic: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #10b981 100%);
    --gradient-matrix: linear-gradient(180deg, transparent 0%, #10b981 100%);

    /* Spacing */
    --section-padding: 8rem 0;
    --container-width: 1400px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================
   Global Reset & Base Styles
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ===========================================
   Cursor Glow Effect
   =========================================== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===========================================
   Canvas Backgrounds
   =========================================== */
#neural-canvas,
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

#matrix-canvas {
    opacity: 0.15;
}

/* ===========================================
   Navigation
   =========================================== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    transition: var(--transition);
}

.nav-container.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.terminal-prompt {
    color: var(--neon-green);
    margin-right: 0.5rem;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary);
}

.logo-glitch {
    position: relative;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary);
    overflow: hidden;
    width: 0;
    transition: width 0.3s;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: var(--glow-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: var(--glow-primary);
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.glitch-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    animation: glitch 3s infinite;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 0.4em;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.title-name {
    display: block;
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.holographic {
    position: relative;
    text-shadow:
        2px 2px 0 rgba(168, 85, 247, 0.5),
        -2px -2px 0 rgba(6, 182, 212, 0.5);
}

.typing-container {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2.5rem;
}

.typed-text {
    color: var(--primary-light);
}

.typing-cursor {
    color: var(--neon-green);
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.highlight {
    color: var(--primary-light);
    font-weight: 600;
    text-shadow: var(--glow-primary);
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-value::after {
    content: '+';
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 0 rgba(168, 85, 247, 0.3);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.3), 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-holographic {
    background: var(--gradient-holographic);
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-holographic:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 60px rgba(168, 85, 247, 0.6);
}

/* ===========================================
   AI Brain Visualization
   =========================================== */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.ai-brain-container {
    position: relative;
    width: 500px;
    height: 500px;
    animation: float 6s ease-in-out infinite;
}

.neural-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.6),
        inset 0 0 40px rgba(168, 85, 247, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(0deg);
    animation: orbit 10s linear infinite;
}

.orbit-2 {
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(60deg);
    animation: orbit 15s linear infinite reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(120deg);
    animation: orbit 20s linear infinite;
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    animation: particleOrbit 5s linear infinite;
}

.data-particle:nth-child(5) {
    animation-delay: 0s;
    animation-duration: 6s;
}

.data-particle:nth-child(6) {
    animation-delay: 2s;
    animation-duration: 8s;
}

.data-particle:nth-child(7) {
    animation-delay: 4s;
    animation-duration: 7s;
}

/* ===========================================
   Scroll Indicator
   =========================================== */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ===========================================
   Terminal Section
   =========================================== */
.terminal-section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.terminal-window {
    background: rgba(13, 13, 18, 0.95);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.terminal-header {
    background: rgba(26, 26, 36, 0.8);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 1rem;
}

.prompt {
    color: var(--neon-green);
    margin-right: 0.5rem;
}

.code-block {
    margin: 1.5rem 0;
}

.code-block pre {
    overflow-x: auto;
}

.keyword {
    color: #ff79c6;
}

.class-name {
    color: #50fa7b;
}

.function {
    color: #8be9fd;
}

.param {
    color: #ffb86c;
}

.string {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
    font-style: italic;
}

.built-in {
    color: #bd93f9;
}

/* ===========================================
   Section Headers
   =========================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===========================================
   Contribution Highlight Section
   =========================================== */
.highlight-section {
    padding: 4rem 0;
    position: relative;
}

.contribution-banner {
    background: var(--gradient-holographic);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.contribution-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.1;
}

.banner-icon {
    font-size: 5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

.banner-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 600;
}

.banner-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    margin-bottom: 1.5rem;
}

.contribution-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-highlight {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   Expertise Section
   =========================================== */
.expertise-section {
    padding: var(--section-padding);
    position: relative;
}

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

.tech-category {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.tech-category.full-width {
    grid-column: 1 / -1;
}

.tech-category:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(var(--glow-primary));
}

.category-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.tech-card {
    position: relative;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.tech-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.tech-card:hover .tech-glow {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.tech-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

.tech-content {
    position: relative;
    z-index: 1;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(var(--glow-primary));
}

.tech-card span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.skill-chip {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--glow-primary);
    transition: var(--transition);
    cursor: pointer;
}

.skill-chip:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

/* ===========================================
   Projects Section
   =========================================== */
.projects-section {
    padding: var(--section-padding);
    position: relative;
}

.project-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem 0;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.project-loader p {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

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

.project-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-date::before {
    content: '📅';
}

.project-card-3d {
    perspective: 1000px;
    height: 100%;
}

.project-hologram {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-3d:hover .project-hologram {
    transform: rotateY(5deg) rotateX(5deg);
    border-color: var(--primary);
    box-shadow: 0 30px 80px rgba(168, 85, 247, 0.3);
}

.hologram-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(var(--glow-primary));
}

.project-hologram h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-hologram p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-light);
    text-shadow: var(--glow-primary);
}

.project-link .arrow {
    transition: var(--transition);
}

.project-link:hover .arrow {
    transform: translateX(5px);
}

.github-cta {
    text-align: center;
}

/* ===========================================
   Articles Section
   =========================================== */
.articles-section {
    padding: var(--section-padding);
    position: relative;
}

.writing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

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

.medium-cta {
    text-align: center;
}

.article-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
}

.article-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(var(--glow-primary));
}

.article-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* ===========================================
   Contact Section
   =========================================== */
.contact-section {
    padding: var(--section-padding);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--glow-primary));
}

.contact-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-light);
    text-shadow: var(--glow-primary);
}

.philosophy-box {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.philosophy-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.1;
}

.quote-icon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: serif;
}

.philosophy-text {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    line-height: 1.8;
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: rgba(13, 13, 18, 0.95);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes glitch {
    0%, 100% {
        text-shadow:
            2px 0 var(--neon-cyan),
            -2px 0 var(--neon-pink);
    }
    25% {
        text-shadow:
            -2px 0 var(--neon-cyan),
            2px 0 var(--neon-pink);
    }
    50% {
        text-shadow:
            2px 2px var(--neon-cyan),
            -2px -2px var(--neon-pink);
    }
    75% {
        text-shadow:
            -2px 2px var(--neon-cyan),
            2px -2px var(--neon-pink);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotateX(60deg) rotateY(0deg); }
    to { transform: translate(-50%, -50%) rotateX(60deg) rotateY(360deg); }
}

@keyframes particleOrbit {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg) translateX(150px);
    }
    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(360deg) translateX(150px);
    }
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 1;
    }
    50% {
        height: 60px;
        opacity: 1;
    }
    100% {
        height: 60px;
        opacity: 0;
    }
}

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

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .ai-brain-container {
        width: 400px;
        height: 400px;
    }

    .contribution-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-icon {
        font-size: 4rem;
    }

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

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

    .writing-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s;
        border-top: 1px solid rgba(168, 85, 247, 0.2);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .ai-brain-container {
        width: 300px;
        height: 300px;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
}
