/* ========================================
   SUSHEEL KUMAR PANDEY - PORTFOLIO
   Neural Data Flow Aesthetic
   ======================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-elevated: #1a1a25;

  --text-primary: #f0f0f5;
  --text-secondary: #9090a0;
  --text-muted: #606070;

  --accent-primary: #00d4ff;
  --accent-secondary: #7b5cff;
  --accent-tertiary: #ff6b6b;
  --accent-gold: #ffd700;

  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b5cff 100%);
  --gradient-glow: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 70%
  );

  /* Typography */
  --font-display: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.grid-bg {
  position: fixed;
  inset: 0;
  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: 60px 60px;
  pointer-events: none;
  z-index: -2;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: 20%;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-tertiary);
  bottom: -50px;
  right: 20%;
  animation-delay: -14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover .logo-icon {
  transform: rotate(90deg);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 60px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 30px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.line-1 {
  animation-delay: 0.2s;
}
.line-2 {
  animation-delay: 0.4s;
}
.line-3 {
  animation-delay: 0.6s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 35px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

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

.stat-inline {
  color: var(--accent-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.hero-cta {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Neural Network Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.neural-network {
  position: relative;
  width: 300px;
  height: 300px;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-primary);
  animation: nodePulse 3s ease-in-out infinite;
}

.node-center {
  width: 30px;
  height: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-secondary);
  box-shadow: 0 0 40px var(--accent-secondary);
}

.node-1 {
  top: 30px;
  left: 30px;
  animation-delay: 0s;
}
.node-2 {
  top: 30px;
  right: 30px;
  animation-delay: 0.5s;
}
.node-3 {
  bottom: 30px;
  left: 30px;
  animation-delay: 1s;
}
.node-4 {
  bottom: 30px;
  right: 30px;
  animation-delay: 1.5s;
}
.node-5 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}
.node-6 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2.5s;
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.connections {
  position: absolute;
  inset: 0;
}

.conn {
  stroke: var(--accent-primary);
  stroke-width: 1;
  opacity: 0.3;
  stroke-dasharray: 5 5;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-symbol {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */

section {
  padding: var(--section-padding) 60px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 50px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text-primary);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.detail-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateX(5px);
}

.detail-icon {
  font-size: 1.5rem;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========================================
   EXPERTISE SECTION
   ======================================== */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.expertise-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.expertise-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}

.expertise-card:hover .tech-tags span {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
}

.card-metric {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

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

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects-container {
  display: grid;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.project-card.featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.project-visual {
  background: var(--bg-secondary);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-diagram {
  width: 100%;
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-node {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.flow-node.agent {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-primary);
}

.flow-arrow {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.project-content {
  padding: 30px;
}

.project-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.project-tag {
  padding: 4px 12px;
  background: rgba(123, 92, 255, 0.1);
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.project-content > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
}

.project-stat .value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
}

.project-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-highlights {
  list-style: none;
  display: grid;
  gap: 10px;
}

.project-highlights li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 16px;
  transition: var(--transition-fast);
}

.project-link:hover {
  gap: 12px;
}

/* ========================================
   EXPERIENCE TIMELINE
   ======================================== */

.timeline {
  position: relative;
  padding-left: 40px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.timeline-content > p:last-child {
  color: var(--text-secondary);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

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

.contact-intro {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(20px);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
}

.contact-info {
  text-align: left;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-tagline {
  margin-top: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 30px 60px;
  }

  .hero-subtitle {
    margin: 0 auto 35px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-visual {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 60px 20px;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 20px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    flex: 1 1 40%;
  }

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

  .project-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .project-stat {
    flex: 1 1 40%;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.expertise-card,
.project-card,
.timeline-item,
.contact-card {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.expertise-card:nth-child(1) {
  transition-delay: 0.1s;
}
.expertise-card:nth-child(2) {
  transition-delay: 0.2s;
}
.expertise-card:nth-child(3) {
  transition-delay: 0.3s;
}
.expertise-card:nth-child(4) {
  transition-delay: 0.4s;
}

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

.contact-card:nth-child(1) {
  transition-delay: 0.1s;
}
.contact-card:nth-child(2) {
  transition-delay: 0.2s;
}
.contact-card:nth-child(3) {
  transition-delay: 0.3s;
}
.contact-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* ========================================
   ENHANCED TRANSITIONS & EFFECTS
   ======================================== */

/* Navbar hide on scroll */
.navbar {
  transform: translateY(0);
  transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Section header text reveal */
.section-header h2 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterReveal 0.5s ease forwards;
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header.visible h2 span {
  animation: letterReveal 0.5s ease forwards;
}

/* About text animation */
.about-text {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Detail cards stagger */
.detail-card {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease,
    background 0.3s ease;
}

.detail-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.detail-card:nth-child(1) {
  transition-delay: 0.2s;
}
.detail-card:nth-child(2) {
  transition-delay: 0.35s;
}
.detail-card:nth-child(3) {
  transition-delay: 0.5s;
}

.detail-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Stats animation */
.stat {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat:nth-child(1) {
  transition-delay: 0.1s;
}
.stat:nth-child(3) {
  transition-delay: 0.2s;
}
.stat:nth-child(5) {
  transition-delay: 0.3s;
}
.stat:nth-child(7) {
  transition-delay: 0.4s;
}

/* Button magnetic effect */
.btn {
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Enhanced expertise card hover */
.expertise-card {
  position: relative;
  overflow: hidden;
  --shine-x: 50%;
  --shine-y: 50%;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.05),
    transparent
  );
  transition: left 0.7s ease;
}

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

.expertise-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 70%
  );
  left: var(--shine-x);
  top: var(--shine-y);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.tech-tags span {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.expertise-card:hover .tech-tags span {
  transform: translateY(-2px);
}

/* Project card 3D tilt */
.project-card {
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Project stats counter animation */
.project-stat .value {
  display: inline-block;
  transition: transform 0.3s ease;
}

.project-card:hover .project-stat .value {
  transform: scale(1.1);
}

/* Flow diagram animation */
.diagram-flow {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.project-card:hover .diagram-flow {
  opacity: 1;
}

.flow-node {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.project-card:hover .flow-node {
  transform: translateY(-3px);
}

.flow-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.project-card:hover .flow-arrow {
  animation: arrowPulse 1s ease infinite;
}

@keyframes arrowPulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(5px);
    opacity: 0.5;
  }
}

/* Timeline enhanced animations */
.timeline-marker {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 20px var(--accent-primary);
}

.timeline-content {
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(10px);
}

/* Contact card hover glow */
.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 212, 255, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.contact-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 212, 255, 0.2);
}

/* Link hover animations */
a {
  position: relative;
}

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

.project-link:hover svg {
  transform: translate(3px, -3px);
}

/* Nav links enhanced hover */
.nav-links a {
  overflow: hidden;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a::after {
  display: none;
}

/* Hero badge pulse */
.hero-badge {
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(0, 212, 255, 0.2);
  }
}

/* Neural network enhanced animation */
.node {
  transition: transform 0.3s ease;
}

.neural-network:hover .node {
  animation-play-state: paused;
}

.neural-network:hover .node-center {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 60px var(--accent-secondary);
}

/* Connection lines on hover */
.neural-network:hover .conn {
  opacity: 0.6;
  stroke-width: 2;
}

/* Footer tagline shimmer */
.footer-tagline {
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

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

/* Page load animation */
body {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Scroll indicator */
.hero::after {
  content: "";
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transform: translateX(-50%);
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 48px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.3;
  }
}

/* Glitch effect on hover for hero title */
.hero-title:hover .highlight {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-2px, -2px);
  }
  80% {
    transform: translate(2px, 2px);
  }
}

/* Metric value glow on hover */
.card-metric:hover .metric-value {
  text-shadow: 0 0 20px var(--accent-primary);
}

/* Project highlights list animation */
.project-card .project-highlights li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.visible .project-highlights li {
  opacity: 1;
  transform: translateX(0);
}

.project-card.visible .project-highlights li:nth-child(1) {
  transition-delay: 0.3s;
}
.project-card.visible .project-highlights li:nth-child(2) {
  transition-delay: 0.4s;
}
.project-card.visible .project-highlights li:nth-child(3) {
  transition-delay: 0.5s;
}
.project-card.visible .project-highlights li:nth-child(4) {
  transition-delay: 0.6s;
}

.project-highlights li::before {
  transition: transform 0.3s ease, color 0.3s ease;
}

.project-highlights li:hover::before {
  transform: translateX(5px);
  color: var(--accent-secondary);
}

/* ========================================
   INTERACTIVE TERMINAL (hero)
   ======================================== */

.terminal {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  text-align: left;
  opacity: 0;
  animation: fadeIn 1s ease 0.4s forwards;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .red { background: #ff5f57; }
.terminal-bar .yellow { background: #febc2e; }
.terminal-bar .green { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--text-muted); font-size: 12px; }

.terminal-body {
  height: 260px;
  overflow-y: auto;
  padding: 14px 16px 4px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tline { margin-bottom: 6px; }
.tline.echo { color: var(--text-primary); }
.tline.muted { color: var(--text-muted); }
.tline.err { color: var(--accent-tertiary); }
.tline.ok { color: #28c840; }
.tline .k { color: var(--accent-primary); }
.tline a { color: var(--accent-primary); }
.terminal .prompt { color: var(--accent-secondary); margin-right: 6px; }

.terminal-input {
  display: flex;
  align-items: center;
  padding: 6px 16px 12px;
}

.terminal-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font: inherit;
  caret-color: var(--accent-primary);
}

.terminal-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-hints button {
  font: inherit;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.terminal-hints button:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

/* ========================================
   CLICKABLE EXPERTISE CARDS
   ======================================== */

.expertise-card[data-filter] { cursor: pointer; }
.expertise-card[data-filter]:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; }

.card-cta {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.expertise-card:hover .card-cta { opacity: 1; transform: translateX(4px); }

/* ========================================
   PROJECT FILTERS + GRID
   ======================================== */

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 12px;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.chip:hover { color: var(--text-primary); border-color: rgba(0, 212, 255, 0.4); }
.chip.active { color: #0a0a0f; background: var(--gradient-primary); border-color: transparent; }
.chip.active span { color: rgba(10, 10, 15, 0.7); }

.project-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  flex: 0 1 300px;
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
}

.project-search:focus-within { border-color: var(--accent-primary); }

.project-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font: 14px var(--font-display);
}

.project-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
  animation: cardIn 0.4s ease both;
}

.pcard:hover,
.pcard:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.08);
  outline: none;
}

.pcard.hidden { display: none; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-cats { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-align: right; }
.pcard h3 { font-size: 1.2rem; color: var(--text-primary); }
.pcard p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; flex: 1; }

.pcard-stack { display: flex; flex-wrap: wrap; gap: 6px; }

.pcard-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
}

.pcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pcard-foot .more { color: var(--text-muted); transition: var(--transition-fast); }
.pcard:hover .more { color: var(--accent-primary); }
.pcard-foot .gh { color: var(--text-secondary); text-decoration: none; }
.pcard-foot .gh:hover { color: var(--accent-primary); }

.status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.status.open-source { color: #28c840; }
.status.clarityx { color: var(--accent-gold); }
.status.mapmyindia { color: var(--accent-secondary); }

/* ========================================
   PROJECT MODAL
   ======================================== */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 18px;
  animation: cardIn 0.25s ease both;
}

.modal-panel h3 { font-size: 1.6rem; margin: 14px 0 10px; }
.modal-panel h4 {
  margin: 22px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.modal-summary { color: var(--text-secondary); line-height: 1.7; }
.modal-note { margin-top: 24px; font-size: 14px; color: var(--text-muted); font-style: italic; }
.modal-btn { margin-top: 26px; display: inline-flex; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.modal-close:hover { color: var(--text-primary); border-color: var(--accent-primary); }
body.modal-open { overflow: hidden; }

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */

@media (max-width: 1024px) {
  .hero-visual { display: flex; margin-top: 40px; }
  .terminal { margin: 0 auto; }
}

@media (max-width: 600px) {
  .terminal-body { height: 220px; font-size: 12px; }
  .project-search { flex: 1 1 100%; min-width: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .modal-panel, .terminal { animation: none; opacity: 1; }
}

html, body { overflow-x: clip; }

/* ========================================
   FX: hero canvas, rotator, scroll UI, marquee, hex map
   ======================================== */

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse at 60% 50%, #000 40%, transparent 85%);
}

.hero-content,
.hero-visual { position: relative; z-index: 1; }

.hero-rotator {
  margin: -8px 0 22px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
}

.rotator {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent-primary);
  animation: caretBlink 1s steps(1) infinite;
}

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

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

/* active nav link */
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::before { transform: scaleX(1); }

/* cursor glow */
.cursor-glow {
  position: fixed;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, rgba(123, 92, 255, 0.04) 35%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cursor-glow.on { opacity: 1; }

/* back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: rgba(22, 22, 31, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}

.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { border-color: var(--accent-primary); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }

/* tech marquee */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 45s linear infinite;
}

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

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: var(--bg-card);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.marquee-track span:hover { color: var(--accent-primary); border-color: rgba(0, 212, 255, 0.4); }

@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* timeline fill */
.timeline-progress {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  transform: scaleY(0);
  transform-origin: top;
}

/* card spotlight */
.pcard { position: relative; overflow: hidden; }

.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(0, 212, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pcard:hover::before { opacity: 1; }
.pcard > * { position: relative; }

/* ATLAS hex map */
.atlas-visual {
  flex-direction: column;
  gap: 24px;
  padding: 28px;
}

.hexmap {
  position: relative;
  width: 100%;
}

.hexmap canvas {
  display: block;
  width: 100%;
  height: 230px;
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: crosshair;
  touch-action: pan-y;
}

.hexmap-tip {
  position: absolute;
  z-index: 2;
  min-width: 130px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.hexmap-tip b { font-size: 16px; color: var(--accent-primary); margin-right: 6px; }
.hexmap-tip span { display: block; color: var(--text-muted); margin-top: 2px; }

.hexmap-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.hexmap-legend i {
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #121e30, #008cc8, #00d4ff, #7b5cff, #ff6b6b, #ffd700);
}

.hexmap-legend em { font-style: normal; margin-left: auto; }

@media (max-width: 1024px) {
  .hero-rotator { text-align: center; }
}

@media (max-width: 600px) {
  .hexmap canvas { height: 190px; }
  .hexmap-legend em { margin-left: 0; width: 100%; }
  .marquee-track span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .caret { animation: none; }
}

/* experience details */
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
}

.role-details { margin-top: 12px; }
.role-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: var(--transition-fast);
}
.role-details summary::-webkit-details-marker { display: none; }
.role-details summary::after { content: "+"; color: var(--accent-primary); font-size: 14px; }
.role-details[open] summary::after { content: "−"; }
.role-details summary:hover { color: var(--text-primary); border-color: var(--accent-primary); }
.role-details .when-open { display: none; }
.role-details[open] .when-open { display: inline; }
.role-details[open] .when-closed { display: none; }

.role-body {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  animation: cardIn 0.3s ease both;
}
.role-body h4 { font-size: 0.95rem; color: var(--text-primary); margin: 16px 0 8px; }
.role-body h4:first-child { margin-top: 0; }
.role-body .project-highlights li { font-size: 0.92rem; }
