/*
 * New Theme CSS - Dark Tech Theme
 * Matches blog theme styling
 */

/* CSS Custom Properties */
:root {
  /* Neon Tech Color Palette */
  --neon-cyan: #00d4ff;
  --neon-purple: #a855f7;
  --neon-green: #00ff88;
  --neon-pink: #ff006e;
  --neon-orange: #ff6b35;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ff006e 100%);
  --gradient-secondary: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
  --gradient-animated: linear-gradient(270deg, #00d4ff, #a855f7, #ff006e, #00ff88, #00d4ff);

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Backgrounds */
  --bg-dark: #0a0a1a;
  --bg-darker: #050510;
  --bg-card: rgba(20, 20, 40, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Shadows */
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframe Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(168, 85, 247, 0.3); }
}

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

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

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 60%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Grid Pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--neon-purple);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition-base);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  padding: 0.75rem 2rem;
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-symbol {
  color: var(--neon-cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-prefix {
  color: var(--neon-cyan);
  margin-right: 0.25rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--neon-cyan);
  transition: var(--transition-base);
}

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

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

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-base);
    border-left: 1px solid rgba(0, 212, 255, 0.2);
  }

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

  .nav-link {
    font-size: 1.25rem;
  }
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--neon-purple);
  top: 50%;
  right: 10%;
  animation-delay: -2s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--neon-green);
  bottom: 10%;
  left: 30%;
  animation-delay: -4s;
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 2rem;
}

.hero-greeting {
  margin-bottom: 1rem;
}

.code-comment {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--neon-green);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--gradient-animated);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.terminal-prompt {
  color: var(--neon-cyan);
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  color: white;
}

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

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--shadow-glow);
  color: var(--neon-cyan);
}

/* Hero Social Links */
.hero-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Desktop: Fixed left sidebar */
@media (min-width: 769px) {
  .hero-social {
    position: fixed;
    left: 2rem;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    margin-top: 0;
  }

  .hero-social::after {
    content: '';
    width: 1px;
    height: 100px;
    background: linear-gradient(to top, var(--neon-cyan), transparent);
  }
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition-base);
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-role {
    flex-wrap: wrap;
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

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

  .hero-social {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .hero-social::after {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--neon-cyan);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 212, 255, 0.5), transparent);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-frame img {
  width: 100%;
  display: block;
  filter: grayscale(20%);
  transition: var(--transition-base);
}

.image-frame:hover img {
  filter: grayscale(0%);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
  mix-blend-mode: overlay;
  transition: var(--transition-base);
}

.image-frame:hover .image-overlay {
  opacity: 0;
}

.image-border {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  z-index: -1;
  transition: var(--transition-base);
}

.about-image:hover .image-border {
  top: 10px;
  left: 10px;
}

/* Terminal Window */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.terminal-body {
  padding: 1.5rem;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text:last-child {
  margin-bottom: 0;
}

.highlight {
  color: var(--neon-cyan);
  font-weight: 500;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Profile & Skills Grid */
.profile-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.json-content {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.json-line {
  margin-bottom: 0.5rem;
}

.json-key {
  color: var(--neon-cyan);
}

.json-value {
  color: var(--neon-green);
}

/* Skills */
.skill-item {
  margin-bottom: 1.25rem;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skill-name {
  color: var(--text-secondary);
}

.skill-percent {
  color: var(--neon-cyan);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1s ease;
}

.about-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .profile-skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Cool Shit Section - Marquee Style
   ========================================================================== */
.cool-shit-section {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.02), transparent, rgba(0, 212, 255, 0.02));
  overflow: hidden;
}

.cool-shit-section .container {
  margin-bottom: 3rem;
}

/* Marquee Animations */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
}

/* Fade edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-track {
  display: flex;
  width: fit-content;
}

.marquee-left {
  animation: marquee-left 30s linear infinite;
}

.marquee-right {
  animation: marquee-right 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.marquee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  white-space: nowrap;
  transition: var(--transition-base);
}

.marquee-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.marquee-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--neon-cyan);
  width: 24px;
  text-align: center;
}

.marquee-left .marquee-card:nth-child(odd) .marquee-icon {
  color: var(--neon-purple);
}

.marquee-right .marquee-card:nth-child(odd) .marquee-icon {
  color: var(--neon-green);
}

.marquee-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  max-width: 300px;
}

.marquee-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.marquee-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: normal;
  line-height: 1.4;
}

.marquee-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-cyan);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-left,
  .marquee-right {
    animation: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-content[aria-hidden="true"] {
    display: none;
  }
}

/* ==========================================================================
   Experience Accordion
   ========================================================================== */
.resume-section {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02), transparent);
}

.experience-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Experience Card */
.exp-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-base);
}

.exp-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.exp-card.expanded {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

/* Header - Always Visible */
.exp-header {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.exp-header:hover {
  background: rgba(0, 212, 255, 0.03);
}

.exp-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exp-indicator {
  min-width: 80px;
}

.exp-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.exp-status.current {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
}

.exp-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.exp-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exp-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp-role {
  font-size: 0.95rem;
  color: var(--neon-purple);
  font-weight: 500;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.exp-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.exp-toggle i {
  transition: transform 0.3s ease;
}

.exp-card.expanded .exp-toggle i {
  transform: rotate(180deg);
}

.exp-card.expanded .exp-toggle {
  color: var(--neon-cyan);
}

/* Summary - Always Visible */
.exp-summary {
  padding: 0 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.exp-promotions-preview {
  margin-top: 1rem;
}

.exp-promotions-preview h4 {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.exp-promotions-preview h4 .prefix {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.exp-highlights-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.highlight-pill i {
  font-size: 0.7rem;
  color: var(--neon-cyan);
}

/* Details - Collapsible */
.exp-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.exp-card.expanded .exp-details {
  max-height: 1000px;
  padding: 1.5rem;
}

.exp-overview {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0 8px 8px 0;
}

.exp-overview p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.exp-promotions,
.exp-achievements,
.exp-responsibilities,
.exp-tech {
  margin-bottom: 1.5rem;
}

.promotion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.promotion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
}

.promotion-role {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.promotion-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
}

.exp-details h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-details h4 .prefix {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

/* Achievement Grid */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.achievement-item {
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  text-align: center;
}

.ach-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.ach-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsibilities */
.exp-responsibilities ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exp-responsibilities li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.exp-responsibilities li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--neon-green);
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.6rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--neon-purple);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 900px) {
  .exp-header {
    grid-template-columns: 1fr 32px;
    gap: 0.5rem;
  }

  .exp-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .exp-right {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    padding-left: 0;
  }

  .exp-toggle {
    grid-row: 1 / 3;
    grid-column: 2;
  }

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

  .promotion-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .exp-highlights-mini {
    flex-direction: column;
  }
}

/* Education */
.education-section {
  margin-top: 4rem;
}

.subsection-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subsection-title::before {
  content: '>';
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

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

.education-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
}

.edu-icon {
  font-size: 1.5rem;
  color: var(--neon-cyan);
}

.edu-content h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-purple);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.02) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Contact Form Container */
.contact-form-container .terminal-window {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.contact-form-container .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.contact-form-container .terminal-dots {
  display: flex;
  gap: 6px;
}

.contact-form-container .terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.contact-form-container .terminal-dots .dot.red { background: #ff5f56; }
.contact-form-container .terminal-dots .dot.yellow { background: #ffbd2e; }
.contact-form-container .terminal-dots .dot.green { background: #27c93f; }

.contact-form-container .terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-form-container .terminal-body {
  padding: 1.5rem;
}

/* Form Styles */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form .form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
}

.contact-form .form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.contact-form .form-input::placeholder {
  color: var(--text-muted);
}

.contact-form .form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.contact-form textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.contact-form .captcha-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-form .captcha-group .form-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.contact-form .captcha-input {
  width: 80px;
  text-align: center;
}

/* Submit Button */
.contact-form .submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  border-radius: 8px;
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.contact-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.contact-form .submit-btn .btn-loader {
  display: none;
}

.contact-form .submit-btn.loading .btn-text,
.contact-form .submit-btn.loading .btn-icon {
  opacity: 0;
}

.contact-form .submit-btn.loading .btn-loader {
  display: block;
  position: absolute;
}

.contact-form .submit-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Form Messages */
.form-messages {
  margin-top: 1rem;
}

.form-messages .message {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.form-messages .message.show {
  display: flex;
}

.form-messages .success-message {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.form-messages .error-message {
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
}

/* Contact Info Container */
.contact-info-container {
  padding: 2rem;
}

.contact-info-container .contact-intro h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info-container .contact-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  color: var(--neon-cyan);
  font-size: 1.1rem;
}

.method-content h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.method-content a,
.method-content p {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0;
  text-decoration: none;
  transition: var(--transition-base);
}

.method-content a:hover {
  color: var(--neon-cyan);
}

.method-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Social Links in Contact */
.contact-social {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-form .captcha-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

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

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

.footer-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--shadow-glow);
  color: var(--neon-cyan);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  background: var(--bg-dark);
}

.blog-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-post-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  /* Only animate hover-related properties - NO opacity/transform animations */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* Force visibility - prevent any JS from hiding these */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  /* Prevent any animation from being applied */
  animation: none !important;
}

.blog-post-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow);
}

.blog-post-card .post-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: rgba(0, 212, 255, 0.05);
  /* Prevent layout shift - reserve space for image */
  min-height: 180px;
  position: relative;
}

.blog-post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Only animate the hover scale effect */
  transition: transform 0.3s ease;
  /* Force visibility - prevent flickering */
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  /* Prevent paint flickering */
  will-change: transform;
  backface-visibility: hidden;
}

.blog-post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* Ensure blog posts container doesn't flicker */
#blogPosts {
  opacity: 1 !important;
  visibility: visible !important;
  /* Contain layout to prevent reflow affecting other elements */
  contain: layout style;
}

#blogPosts * {
  /* Prevent any element inside blog posts from being hidden by animations */
  animation: none !important;
}

/* Loading state style */
.loading-posts {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-family: var(--font-mono);
}

.blog-post-card .post-content {
  padding: 1.5rem;
}

.blog-post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-post-card .post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 20px;
}

.blog-post-card .post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-post-card .post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.blog-post-card .post-title a:hover {
  color: var(--neon-cyan);
}

.blog-post-card .post-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-purple);
  text-decoration: none;
  transition: var(--transition-base);
}

.blog-post-card .read-more:hover {
  color: var(--neon-cyan);
}

.blog-post-card .read-more .arrow {
  transition: transform 0.3s ease;
}

.blog-post-card .read-more:hover .arrow {
  transform: translateX(4px);
}

/* Loading State */
.posts-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.posts-loading span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Error State */
.posts-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  grid-column: 1 / -1;
  text-align: center;
}

.posts-error p {
  color: var(--text-secondary);
}

/* Blog CTA */
.blog-cta {
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  background: transparent;
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-base);
}

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

.btn-outline i {
  transition: transform 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .blog-posts-container {
    grid-template-columns: 1fr;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background: var(--bg-darker);
}

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

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.project-badge.personal {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--neon-cyan);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tech .tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--neon-purple);
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-base);
}

.project-link:hover {
  color: var(--neon-green);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* Projects Responsive */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.5rem;
  }
}
