/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-glass: rgba(15, 15, 30, 0.6);
    
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    
    --accent-primary: #00f0ff;
    --accent-secondary: #7b2ffc;
    --accent-tertiary: #ff00aa;
    --accent-success: #00ff88;
    --accent-warning: #ffaa00;
    
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7b2ffc 50%, #ff00aa 100%);
    --gradient-accent: linear-gradient(135deg, #00f0ff 0%, #7b2ffc 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(123, 47, 252, 0.2));
    
    --border-color: rgba(0, 240, 255, 0.15);
    --border-glow: rgba(0, 240, 255, 0.4);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 6rem 2rem;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
    --shadow-glow-intense: 0 0 40px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   CURSOR GLOW
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========================================
   NEURAL CANVAS
   ======================================== */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   SCANLINES
   ======================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.008) 2px,
        rgba(0, 240, 255, 0.008) 4px
    );
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.7rem 0;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition-fast);
}

.logo-bracket {
    color: var(--accent-primary);
    opacity: 0.7;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-fast);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
    border-radius: 1px;
}

.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(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-success);
    border-radius: 100px;
    width: fit-content;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-success);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-glitch {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-glitch h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero-glitch::before,
.hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 2px;
    opacity: 0;
}

.hero-glitch::before {
    color: var(--accent-primary);
    animation: glitch-1 4s infinite;
}

.hero-glitch::after {
    color: var(--accent-tertiary);
    animation: glitch-2 4s infinite;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.typing-prefix {
    color: var(--accent-secondary);
    margin-right: 0.3rem;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

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

.btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

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

.btn-icon {
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual - AI Brain */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.6;
}

.ai-brain {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
}

.ring-1 {
    width: 250px;
    height: 250px;
    border-color: rgba(0, 240, 255, 0.2);
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(123, 47, 252, 0.15);
    animation: rotate 30s linear infinite reverse;
    border-style: dashed;
}

.ring-3 {
    width: 380px;
    height: 380px;
    border-color: rgba(255, 0, 170, 0.1);
    animation: rotate 40s linear infinite;
    border-style: dotted;
}

.brain-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-primary);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.4), 0 0 120px rgba(123, 47, 252, 0.2);
    animation: brainPulse 3s ease-in-out infinite;
    z-index: 1;
}

.brain-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.p1 { top: 10%; left: 50%; animation: float 6s ease-in-out infinite; }
.p2 { top: 25%; right: 10%; animation: float 5s ease-in-out infinite 0.5s; }
.p3 { top: 50%; right: 5%; animation: float 7s ease-in-out infinite 1s; }
.p4 { bottom: 25%; right: 15%; animation: float 6s ease-in-out infinite 1.5s; }
.p5 { bottom: 10%; left: 45%; animation: float 5s ease-in-out infinite 2s; }
.p6 { bottom: 30%; left: 10%; animation: float 7s ease-in-out infinite 0.8s; }
.p7 { top: 40%; left: 5%; animation: float 6s ease-in-out infinite 1.2s; }
.p8 { top: 15%; left: 25%; animation: float 5s ease-in-out infinite 1.8s; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.5;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
    position: relative;
    z-index: 2;
    padding: var(--section-padding);
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    opacity: 0.6;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
    letter-spacing: 3px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

.glitch-hover:hover::before,
.glitch-hover:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-display);
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.glitch-hover:hover::before {
    color: var(--accent-primary);
    animation: glitch-1 0.3s infinite;
    -webkit-text-fill-color: initial;
    opacity: 0.5;
}

.glitch-hover:hover::after {
    color: var(--accent-tertiary);
    animation: glitch-2 0.3s infinite;
    -webkit-text-fill-color: initial;
    opacity: 0.5;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image-frame {
    position: relative;
    padding: 3px;
    background: var(--gradient-accent);
    border-radius: 20px;
    overflow: hidden;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    z-index: 2;
}

.frame-corner.top-left { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.frame-corner.top-right { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.frame-corner.bottom-left { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.frame-corner.bottom-right { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.about-avatar {
    background: var(--bg-secondary);
    border-radius: 18px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    position: relative;
}

.avatar-circuit {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.avatar-initials {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: saturate(0.85) contrast(1.1) brightness(0.9);
    transition: var(--transition-smooth);
}

.about-image-frame:hover .avatar-photo {
    filter: saturate(1) contrast(1.05) brightness(0.95);
    transform: scale(1.03);
}

.about-avatar .avatar-circuit {
    z-index: 2;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.image-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 240, 255, 0.15);
    animation: scanline 4s linear infinite;
    z-index: 2;
}

.about-status {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.status-label {
    color: var(--text-muted);
    letter-spacing: 1px;
}

.status-value {
    color: var(--text-primary);
    font-weight: 600;
}

.status-value.online {
    color: var(--accent-success);
}

/* Terminal */
.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

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

.terminal-line:first-child {
    margin-top: 0;
}

.prompt {
    color: var(--accent-success);
    margin-right: 0.5rem;
    font-weight: 700;
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 1.2rem;
    margin-top: 0.3rem;
}

.terminal-code {
    color: var(--accent-primary);
    padding-left: 1.2rem;
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

.terminal-cursor {
    color: var(--accent-success);
    animation: blink 1s step-end infinite;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.skill-category:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.skill-category:hover::before {
    opacity: 1;
}

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

.category-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.category-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
}

.category-level {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.level-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category.visible .level-bar {
    width: var(--level);
}

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

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    border: 1px solid;
    transition: var(--transition-fast);
    cursor: default;
    letter-spacing: 0.3px;
}

.skill-tag[data-level="advanced"] {
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

.skill-tag[data-level="intermediate"] {
    border-color: rgba(123, 47, 252, 0.3);
    color: var(--accent-secondary);
    background: rgba(123, 47, 252, 0.05);
}

.skill-tag[data-level="beginner"] {
    border-color: rgba(255, 0, 170, 0.2);
    color: var(--accent-tertiary);
    background: rgba(255, 0, 170, 0.05);
}

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

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.filter-btn.active {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border-color: transparent;
    font-weight: 600;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-intense);
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gradient-1 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.gradient-2 { background: linear-gradient(135deg, #1a0533, #2d1b69, #341f97); }
.gradient-3 { background: linear-gradient(135deg, #0c0c1d, #1a1a3e, #2d2d6b); }
.gradient-4 { background: linear-gradient(135deg, #0d1117, #1b3a4b, #065a82); }
.gradient-5 { background: linear-gradient(135deg, #1a0a2e, #3d1a54, #6a1b9a); }
.gradient-6 { background: linear-gradient(135deg, #0a1628, #1a2a4a, #2a4070); }

.placeholder-icon {
    font-size: 3rem;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.placeholder-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.overlay-content {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    background: var(--gradient-accent);
    color: var(--bg-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

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

.overlay-btn:hover {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-primary);
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.project-metrics {
    display: flex;
    gap: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    transform: translateX(-50%);
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    position: relative;
    z-index: 1;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    animation: pulse 2s infinite;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    margin-left: 1rem;
}

.timeline-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.date-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0.8rem;
    letter-spacing: 0.5px;
}

.timeline-company {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-top: 0.3rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    line-height: 1.6;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(123, 47, 252, 0.3);
    color: var(--accent-secondary);
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* Education */
.education-cards {
    position: sticky;
    top: 100px;
}

.education-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.edu-icon {
    font-size: 1.3rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.edu-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.edu-degree {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.edu-detail {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-secondary);
    margin-top: 0.5rem;
}

.edu-gpa {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.gpa-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.gpa-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Certifications */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.cert-item:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.cert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cert-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-headline {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1px;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    border-color: var(--border-glow);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.link-icon {
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 10px;
    flex-shrink: 0;
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.link-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-value {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.form-status.success {
    color: var(--accent-success);
}

.form-status.error {
    color: var(--accent-tertiary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    background: rgba(10, 10, 15, 0.5);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    gap: 2px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

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

@keyframes blink {
    50% { opacity: 0; }
}

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

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); opacity: 0.7; }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -1px); opacity: 0; }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 1px); opacity: 0.5; }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -2px); opacity: 0; }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
    20% { clip-path: inset(65% 0 10% 0); transform: translate(3px, -2px); opacity: 0; }
    40% { clip-path: inset(15% 0 70% 0); transform: translate(-3px, 1px); opacity: 0.5; }
    60% { clip-path: inset(50% 0 30% 0); transform: translate(2px, 2px); opacity: 0; }
    80% { clip-path: inset(30% 0 50% 0); transform: translate(-1px, -1px); opacity: 0.7; }
}

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

@keyframes brainPulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(0, 240, 255, 0.4), 0 0 120px rgba(123, 47, 252, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 80px rgba(0, 240, 255, 0.6), 0 0 160px rgba(123, 47, 252, 0.3);
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

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

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* Reveal animation for sections */
.section-header,
.about-grid,
.skill-category,
.project-card,
.timeline-item,
.education-cards,
.contact-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-header.visible,
.about-grid.visible,
.skill-category.visible,
.project-card.visible,
.timeline-item.visible,
.education-cards.visible,
.contact-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.skill-category:nth-child(1) { transition-delay: 0s; }
.skill-category:nth-child(2) { transition-delay: 0.1s; }
.skill-category:nth-child(3) { transition-delay: 0.2s; }
.skill-category:nth-child(4) { transition-delay: 0.3s; }
.skill-category:nth-child(5) { transition-delay: 0.4s; }
.skill-category:nth-child(6) { transition-delay: 0.5s; }

.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.15s; }
.project-card:nth-child(4) { transition-delay: 0.2s; }
.project-card:nth-child(5) { transition-delay: 0.25s; }
.project-card:nth-child(6) { transition-delay: 0.3s; }

.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.15s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .experience-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .education-cards {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 1000;
    }
    
    .nav-links.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-glitch h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-headline {
        font-size: 1.4rem;
    }
    
    .projects-filter {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   LUCIDE ICONS
   ======================================== */
.lucide-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.lucide-icon-sm {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.lucide-icon-lg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    display: inline-block;
    vertical-align: middle;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
}

.lucide-icon-inline {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: inline-block;
    vertical-align: -2px;
    margin: 0 2px;
}

/* Icon colors in specific contexts */
.category-icon .lucide-icon {
    color: var(--accent-primary);
}

.link-icon .lucide-icon {
    color: var(--accent-primary);
}

.cert-icon .lucide-icon {
    color: var(--accent-secondary);
}

.edu-icon .lucide-icon {
    color: var(--accent-primary);
}

.metric-icon .lucide-icon-sm {
    color: var(--accent-warning);
}

.metric .lucide-icon-sm[data-lucide="git-fork"],
.metric-icon:has([data-lucide="git-fork"]) .lucide-icon-sm {
    color: var(--accent-primary);
}

.btn-primary .lucide-icon {
    color: var(--bg-primary);
}

.btn-secondary .lucide-icon {
    color: var(--accent-primary);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
}

.footer-bottom .lucide-icon-inline[data-lucide="heart"] {
    color: var(--accent-tertiary);
}

.footer-bottom .lucide-icon-inline[data-lucide="coffee"] {
    color: var(--accent-warning);
}

/* Placeholder icon (projects) needs no emoji sizing */
.placeholder-icon {
    font-size: 0;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   PREMIUM EFFECTS — ANIMATED GRADIENT BORDERS,
   GLASSMORPHISM, 3D TILT, SPOTLIGHT,
   STAGGERED REVEALS, TEXT GRADIENT & MORE
   ======================================== */

/* -----------------------------------------
   1. ANIMATED GRADIENT BORDER ON CARDS
   Uses @property (Houdini) to animate a
   conic-gradient rotation on hover.
   ----------------------------------------- */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

.project-card::before,
.timeline-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--border-angle),
        transparent 25%,
        var(--accent-primary) 35%,
        var(--accent-secondary) 50%,
        var(--accent-tertiary) 65%,
        transparent 75%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
}

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

/* Inner mask to keep the card interior clean */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--bg-card);
    z-index: -1;
}

.timeline-card {
    position: relative;
    z-index: 0;
}

.timeline-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--bg-card);
    z-index: -1;
}

/* -----------------------------------------
   2. GLASSMORPHISM ENHANCEMENT
   Deeper blur + saturation for frosted glass.
   ----------------------------------------- */
.terminal-window {
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    background: rgba(20, 20, 35, 0.65);
    box-shadow:
        var(--shadow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.timeline-card {
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.project-card .project-info {
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    background: rgba(20, 20, 35, 0.6);
}

/* -----------------------------------------
   3. 3D TILT CARD PREP CSS
   Perspective container + preserve-3d.
   JS will set transform: rotateX / rotateY.
   ----------------------------------------- */
.project-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition:
        transform 0.15s ease-out,
        border-color var(--transition-smooth),
        box-shadow var(--transition-smooth);
    will-change: transform;
}

/* Ensure children don't flatten the 3D space */
.project-card .project-image,
.project-card .project-info {
    transform: translateZ(0);
}

/* Slightly lift inner content for depth */
.project-card:hover .project-title {
    transform: translateZ(20px);
    transition: transform 0.2s ease-out;
}

.project-card:hover .project-tech {
    transform: translateZ(10px);
    transition: transform 0.2s ease-out;
}

/* -----------------------------------------
   4. SPOTLIGHT / GLOW EFFECT ON CARDS
   Radial gradient overlay tracks mouse via
   --mouse-x, --mouse-y custom properties.
   ----------------------------------------- */
.project-card > .card-spotlight,
.timeline-card > .card-spotlight,
.skill-category > .card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 240, 255, 0.08),
        rgba(123, 47, 252, 0.03) 40%,
        transparent 70%
    );
    mix-blend-mode: screen;
}

.project-card:hover > .card-spotlight,
.timeline-card:hover > .card-spotlight,
.skill-category:hover > .card-spotlight {
    opacity: 1;
}

/* Fallback for cards without JS-injected .card-spotlight:
   Use the card's own pseudo or a global hover glow */
.project-card,
.timeline-card,
.skill-category {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* -----------------------------------------
   5. STAGGERED REVEAL ANIMATION — SKILL TAGS
   Cascade delay via nth-child. Tags pop in
   with scale + fade when parent is .visible.
   ----------------------------------------- */
@keyframes skillTagReveal {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.85);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.skill-category .skill-tag {
    opacity: 0;
}

.skill-category.visible .skill-tag {
    animation: skillTagReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.skill-category.visible .skill-tag:nth-child(1)  { animation-delay: 0.05s; }
.skill-category.visible .skill-tag:nth-child(2)  { animation-delay: 0.10s; }
.skill-category.visible .skill-tag:nth-child(3)  { animation-delay: 0.15s; }
.skill-category.visible .skill-tag:nth-child(4)  { animation-delay: 0.20s; }
.skill-category.visible .skill-tag:nth-child(5)  { animation-delay: 0.25s; }
.skill-category.visible .skill-tag:nth-child(6)  { animation-delay: 0.30s; }
.skill-category.visible .skill-tag:nth-child(7)  { animation-delay: 0.35s; }
.skill-category.visible .skill-tag:nth-child(8)  { animation-delay: 0.40s; }
.skill-category.visible .skill-tag:nth-child(9)  { animation-delay: 0.45s; }
.skill-category.visible .skill-tag:nth-child(10) { animation-delay: 0.50s; }
.skill-category.visible .skill-tag:nth-child(11) { animation-delay: 0.55s; }
.skill-category.visible .skill-tag:nth-child(12) { animation-delay: 0.60s; }

/* -----------------------------------------
   6. ANIMATED TEXT GRADIENT — HERO H1
   Background-position shift creates a
   flowing liquid-chrome gradient effect.
   ----------------------------------------- */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-glitch h1 {
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

/* -----------------------------------------
   7. FLOATING BADGE ANIMATION
   Gentle hover float for .hero-badge.
   ----------------------------------------- */
@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out, badgeFloat 3s ease-in-out 1s infinite;
}

/* Subtle glow pulse on the badge border */
@keyframes badgeGlow {
    0%, 100% {
        border-color: var(--accent-success);
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.15);
    }
    50% {
        border-color: rgba(0, 255, 136, 0.7);
        box-shadow: 0 0 18px rgba(0, 255, 136, 0.3);
    }
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out, badgeFloat 3s ease-in-out 1s infinite, badgeGlow 4s ease-in-out infinite;
}

/* -----------------------------------------
   8. ENHANCED NAV-LINK HOVER
   Glowing underline with box-shadow bloom.
   ----------------------------------------- */
.nav-link::after {
    background: var(--gradient-accent);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    height: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 24px rgba(0, 240, 255, 0.2);
}

.nav-link:hover {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.nav-link.active {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* -----------------------------------------
   9. CONTACT LINK CARD GLOW ON HOVER
   Colored edge glow + lift on hover.
   ----------------------------------------- */
.contact-link {
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        ellipse at 20% 50%,
        rgba(0, 240, 255, 0.08),
        transparent 60%
    );
    pointer-events: none;
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.15),
        0 0 40px rgba(0, 240, 255, 0.05),
        inset 0 0 20px rgba(0, 240, 255, 0.03);
}

.contact-link:hover .link-icon {
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
    transition: var(--transition-smooth);
}

.contact-link:hover .link-value {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* -----------------------------------------
   10. PULSE RING ANIMATION — TIMELINE MARKER
   Expanding rings on .marker-dot for the
   active / current timeline item.
   ----------------------------------------- */
@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        border-color: var(--accent-primary);
    }
    70% {
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
        border-color: transparent;
    }
}

@keyframes pulseRingDelay {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
        border-color: var(--accent-secondary);
    }
    70% {
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
        border-color: transparent;
    }
}

/* Active marker: double pulse ring */
.timeline-item:first-child .marker-dot::before,
.timeline-item:first-child .marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: pulseRing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.timeline-item:first-child .marker-dot::after {
    border-color: var(--accent-secondary);
    animation: pulseRingDelay 2.5s cubic-bezier(0, 0, 0.2, 1) 0.8s infinite;
}

/* Bright core glow for active dot */
.timeline-item:first-child .marker-dot {
    background: var(--accent-primary);
    box-shadow:
        0 0 10px rgba(0, 240, 255, 0.6),
        0 0 25px rgba(0, 240, 255, 0.3),
        0 0 50px rgba(0, 240, 255, 0.1);
}

/* -----------------------------------------
   PERFORMANCE: Reduce motion for users
   who prefer reduced motion.
   ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-glitch h1 {
        animation: none;
    }

    .hero-badge {
        animation: fadeInUp 0.8s ease-out;
    }

    .skill-category.visible .skill-tag {
        animation: none;
        opacity: 1;
    }

    .project-card::before,
    .timeline-card::before {
        animation: none;
    }

    .timeline-item:first-child .marker-dot::before,
    .timeline-item:first-child .marker-dot::after {
        animation: none;
        opacity: 0;
    }
}
