* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Mono", monospace;
}

/* Theme Classes */
.dark-mode {
  background: #0d0d1a;
  color: #fff;
  transition: background-color 0.5s, color 0.5s;
}

.light-mode {
  background: linear-gradient(135deg, #f9fafb, #e0f2fe, #f3e8ff);
  color: #1f2937;
  transition: background-color 0.5s, color 0.5s;
}

/* Background Patterns - Simplified for better performance */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    rgba(236, 72, 153, 0.05) 100%
  );
}

.light-mode .bg-pattern {
  opacity: 1;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Theme Toggle Button - Now inside nav */
.theme-toggle {
  /* Day/night toggle temporarily disabled — site forced to dark mode (see script.js).
     Remove this `display: none` and restore the localStorage read in script.js to re-enable. */
  display: none !important;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-right: 30px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.toggle-icon {
  width: 22px;
  height: 22px;
  color: #00ffcc;
  transition: all 0.3s ease;
}

.light-mode .toggle-icon {
  color: #3b82f6;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #00ffcc;
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  transition: color 0.3s;
  position: relative;
}

.light-mode nav a {
  color: #3b82f6;
}

nav a:hover {
  color: #fff;
}

.light-mode nav a:hover {
  color: #1d4ed8;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ffcc;
  transition: width 0.3s ease;
}

.light-mode nav a::after {
  background: #3b82f6;
}

nav a:hover::after {
  width: 100%;
}

/* Particle Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Keep particles visible in light mode but with different colors */
.light-mode #particles-js {
  opacity: 0.6;
}

/* Header */
header {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 4.5rem;
  margin-bottom: 20px;
  color: #00ffcc;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.light-mode .hero h1 {
  color: #3b82f6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.pulse {
  animation: pulse 2s infinite;
}

.typewriter {
  font-size: 1.5rem;
  overflow: hidden;
  border-right: 2px solid #00ffcc;
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink 0.75s step-end infinite;
  font-family: "Roboto Mono", monospace;
  letter-spacing: 1px;
}

.light-mode .typewriter {
  border-right: 2px solid #3b82f6;
}

/* Sections */
section {
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: #00ffcc;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.light-mode h2 {
  color: #3b82f6;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #00ffcc;
  border-radius: 3px;
}

.light-mode h2::after {
  background: #3b82f6;
}

.parallax {
  background: url("https://via.placeholder.com/1500x1000") no-repeat center;
  background-attachment: fixed;
  background-size: cover;
}

.content {
  background: rgba(13, 13, 26, 0.8);
  padding: 40px;
  border-radius: 15px;
  max-width: 1200px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.light-mode .content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* About Section */
.intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-item {
  background: #1a1a3d;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.light-mode .about-item {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.about-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.light-mode .about-item:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.about-item h3 {
  margin-bottom: 15px;
  color: #00ffcc;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.light-mode .about-item h3 {
  color: #3b82f6;
}

.about-item h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #00ffcc;
}

.light-mode .about-item h3::after {
  background: #3b82f6;
}

.about-item p {
  line-height: 1.6;
  font-size: 1rem;
}

/* Interactive Story Section */
.story-container {
  margin: 50px 0;
}

.story-display {
  margin-bottom: 30px;
  perspective: 1000px;
}

.story-screen {
  background: #1a1a3d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 255, 204, 0.3);
}

.light-mode .story-screen {
  background: #f8fafc;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.story-screen:hover {
  transform: rotateX(2deg) rotateY(2deg);
  box-shadow: 0 25px 50px rgba(0, 255, 204, 0.2);
}

.light-mode .story-screen:hover {
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.terminal-header {
  background: #2d2d5a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.light-mode .terminal-header {
  background: #e2e8f0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.btn.close {
  background: #ff5f57;
}

.btn.minimize {
  background: #ffbd2e;
}

.btn.maximize {
  background: #28ca42;
}

.terminal-title {
  color: #00ffcc;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.light-mode .terminal-title {
  color: #3b82f6;
}

.terminal-content {
  padding: 20px;
  font-family: "Roboto Mono", monospace;
  min-height: 300px;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3d 100%);
}

.light-mode .terminal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.terminal-line {
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInLine 0.5s ease forwards;
}

.prompt {
  color: #00ffcc;
  margin-right: 8px;
}

.light-mode .prompt {
  color: #3b82f6;
}

.command {
  color: #ff79c6;
}

.light-mode .command {
  color: #8b5cf6;
}

.story-text {
  margin-top: 15px;
  line-height: 1.8;
  font-size: 1rem;
  color: #f8f8f2;
  min-height: 200px;
}

.light-mode .story-text {
  color: #374151;
}

.cursor-blink {
  color: #00ffcc;
  animation: blink 1s infinite;
  font-size: 1.2rem;
}

.light-mode .cursor-blink {
  color: #3b82f6;
}

/* Story Navigation */
.story-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.story-btn {
  background: rgba(0, 255, 204, 0.1);
  border: 2px solid rgba(0, 255, 204, 0.3);
  color: #00ffcc;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.light-mode .story-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.story-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.light-mode .story-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.story-btn.active {
  background: #00ffcc;
  color: #0d0d1a;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.light-mode .story-btn.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

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

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 30px;
  background: rgba(26, 26, 61, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.light-mode .stats-grid {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00ffcc;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  margin-bottom: 5px;
}

.light-mode .stat-number {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: #b3b3b3;
  font-family: "Roboto Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.light-mode .stat-label {
  color: #6b7280;
}

/* Skills Section - Force-Directed Graph */
.skills-intro {
  text-align: center;
  margin: 30px auto 50px;
  max-width: 600px;
}

.skills-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #b3b3b3;
  font-style: italic;
}

.light-mode .skills-intro p {
  color: #6b7280;
}

/* Skills Graph Container */
#skills-graph-container {
  position: relative;
  width: 100%;
  height: 700px;
  background: rgba(26, 26, 61, 0.3);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.light-mode #skills-graph-container {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#skills-graph {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#skills-graph:active {
  cursor: grabbing;
}

/* Graph Controls */
.graph-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.graph-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 204, 0.1);
  border: 2px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.light-mode .graph-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.graph-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.light-mode .graph-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.graph-btn svg {
  color: #00ffcc;
}

.light-mode .graph-btn svg {
  color: #3b82f6;
}

/* Tooltip */
.skill-tooltip {
  position: absolute;
  padding: 12px 16px;
  background: rgba(13, 13, 26, 0.95);
  border: 2px solid #00ffcc;
  border-radius: 8px;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 255, 204, 0.3);
}

.light-mode .skill-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: #3b82f6;
  color: #1f2937;
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.skill-tooltip.visible {
  opacity: 1;
}

.skill-tooltip .tt-name {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

.skill-tooltip .tt-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.75;
}

/* Visually-hidden accessible fallback list */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Projects Section - Showcase Style */
.projects-showcase {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.project-display {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(26, 26, 61, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.light-mode .project-display {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-card-showcase {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 1;
}

.project-card-showcase.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  z-index: 10;
}

.project-card-showcase.prev {
  transform: translateX(-100px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 255, 204, 0.3);
}

.light-mode .project-header {
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.project-number {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  color: #00ffcc;
  font-weight: 600;
  background: rgba(0, 255, 204, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 204, 0.3);
}

.light-mode .project-number {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  color: #00ffcc;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.light-mode .project-content h3 {
  color: #3b82f6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.project-description {
  flex: 1;
  margin-bottom: 25px;
}

.project-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.light-mode .project-description p {
  color: #4b5563;
}

.project-description ul {
  list-style: none;
  padding: 0;
}

.project-description li {
  padding: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #b3b3b3;
  position: relative;
  padding-left: 25px;
}

.light-mode .project-description li {
  color: #6b7280;
}

.project-description li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #00ffcc;
  font-size: 0.8rem;
}

.light-mode .project-description li::before {
  color: #3b82f6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-badge {
  background: rgba(0, 255, 204, 0.1);
  color: #00ffcc;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-family: "Roboto Mono", monospace;
  border: 1px solid rgba(0, 255, 204, 0.3);
  transition: all 0.3s ease;
}

.light-mode .tech-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tech-badge:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: translateY(-2px);
}

.light-mode .tech-badge:hover {
  background: rgba(59, 130, 246, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00ffcc, #0099cc);
  color: #0d0d1a;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Roboto Mono", monospace;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.light-mode .project-link {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
}

.light-mode .project-link:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Navigation Controls */
.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 20px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 204, 0.1);
  border: 2px solid rgba(0, 255, 204, 0.3);
  color: #00ffcc;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.light-mode .nav-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.nav-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: translateY(-2px);
}

.light-mode .nav-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.project-indicators {
  display: flex;
  gap: 12px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator.active {
  background: #00ffcc;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
  transform: scale(1.2);
}

.light-mode .indicator.active {
  background: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.indicator:hover:not(.active) {
  background: rgba(0, 255, 204, 0.5);
  transform: scale(1.1);
}

.light-mode .indicator:hover:not(.active) {
  background: rgba(59, 130, 246, 0.5);
}

/* Auto-play Controls */
.autoplay-controls {
  text-align: center;
}

.autoplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #00ffcc;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.light-mode .autoplay-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.autoplay-btn:hover {
  background: rgba(0, 255, 204, 0.2);
}

.light-mode .autoplay-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.autoplay-btn.playing {
  background: #00ffcc;
  color: #0d0d1a;
}

.light-mode .autoplay-btn.playing {
  background: #3b82f6;
  color: #ffffff;
}

/* Project Language Tag */
.lang-tag {
  background: #00ffcc;
  color: #0d0d1a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: "Roboto Mono", monospace;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.light-mode .lang-tag {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

/* Experience Section - Timeline Style */
.timeline-container {
  position: relative;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    #00ffcc 0%,
    rgba(0, 255, 204, 0.8) 30%,
    rgba(0, 255, 204, 0.6) 70%,
    rgba(0, 255, 204, 0.3) 100%
  );
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 1;
}

.light-mode .timeline-line {
  background: linear-gradient(
    180deg,
    #3b82f6 0%,
    rgba(59, 130, 246, 0.8) 30%,
    rgba(59, 130, 246, 0.6) 70%,
    rgba(59, 130, 246, 0.3) 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 60px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 60px;
  text-align: right;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #00ffcc 0%, #0099cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #0d0d1a;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
  position: relative;
  transition: all 0.3s ease;
}

.light-mode .timeline-dot {
  background: radial-gradient(circle, #3b82f6 0%, #8b5cf6 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.timeline-dot:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(0, 255, 204, 0.8);
}

.light-mode .timeline-dot:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

.timeline-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.timeline-year {
  position: absolute;
  top: 70px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00ffcc;
  background: rgba(13, 13, 26, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid rgba(0, 255, 204, 0.3);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.light-mode .timeline-year {
  color: #3b82f6;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.3);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

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

.experience-card {
  background: rgba(26, 26, 61, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.light-mode .experience-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ffcc, #0099cc, #00ffcc);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.light-mode .experience-card::before {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 255, 204, 0.2);
}

.light-mode .experience-card:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.card-header {
  margin-bottom: 20px;
}

.card-header h3 {
  color: #00ffcc;
  font-size: 1.6rem;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.light-mode .card-header h3 {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.company-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.company {
  font-family: "Roboto Mono", monospace;
  font-size: 1.1rem;
  color: #e0e0e0;
  font-weight: 500;
}

.light-mode .company {
  color: #4b5563;
}

.duration {
  background: rgba(0, 255, 204, 0.1);
  color: #00ffcc;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: "Roboto Mono", monospace;
  border: 1px solid rgba(0, 255, 204, 0.3);
}

.light-mode .duration {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-body {
  margin-top: 20px;
}

.role-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #b3b3b3;
  margin-bottom: 20px;
  font-style: italic;
}

.light-mode .role-description {
  color: #6b7280;
}

.achievements {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.achievements li {
  padding: 8px 0;
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 25px;
}

.light-mode .achievements li {
  color: #374151;
}

.achievements li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #00ffcc;
  font-size: 0.8rem;
}

.light-mode .achievements li::before {
  color: #3b82f6;
}

.skills-used {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.skill-tag {
  background: rgba(0, 255, 204, 0.1);
  color: #00ffcc;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-family: "Roboto Mono", monospace;
  border: 1px solid rgba(0, 255, 204, 0.3);
  transition: all 0.3s ease;
}

.light-mode .skill-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-tag:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: translateY(-2px);
}

.light-mode .skill-tag:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Timeline Start Point */
.timeline-start {
  position: relative;
  text-align: center;
  margin-top: 40px;
}

.start-marker {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.start-dot {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #00ffcc, #0099cc);
  border-radius: 50%;
  border: 3px solid #0d0d1a;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
  position: relative;
}

.light-mode .start-dot {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border: 3px solid #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.start-text {
  margin-top: 15px;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  color: #00ffcc;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.light-mode .start-text {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #1a1a3d;
  transition: background 0.5s;
  margin-top: 50px;
  border-top: 1px solid rgba(0, 255, 204, 0.2);
}

.light-mode footer {
  background: #f9fafb;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

footer a {
  color: #00ffcc;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
  font-weight: 500;
}

.light-mode footer a {
  color: #3b82f6;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.light-mode footer a:hover {
  color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    padding: 20px;
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-end;
  }

  .theme-toggle {
    margin-right: 0;
    margin-bottom: 20px;
  }

  nav ul {
    gap: 15px;
    flex-direction: column;
    align-items: flex-end;
  }

  nav a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .typewriter {
    font-size: 1.2rem;
  }

  section {
    padding: 60px 10px;
  }

  .content {
    padding: 20px;
  }

  .about-container,
  .project-container {
    grid-template-columns: 1fr;
  }

  /* Timeline responsive */
  .timeline-line {
    left: 30px;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-marker {
    left: 30px;
  }

  .timeline-year {
    left: 60px;
    top: 10px;
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .timeline-dot {
    width: 50px;
    height: 50px;
  }

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

  .experience-card {
    padding: 25px;
  }

  .card-header h3 {
    font-size: 1.4rem;
  }

  /* Projects showcase responsive */
  .project-display {
    height: 500px;
  }

  .project-card-showcase {
    padding: 25px;
  }

  .project-content h3 {
    font-size: 1.8rem;
  }

  .project-description p {
    font-size: 1rem;
  }

  .project-description li {
    font-size: 0.9rem;
  }

  .project-navigation {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .nav-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .skill-card {
    font-size: 1rem;
    padding: 10px 20px;
  }

  h2 {
    font-size: 2rem;
  }

  .project-card {
    padding: 20px;
  }

  .lang-tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  /* About section responsive */
  .story-nav {
    flex-direction: column;
    align-items: center;
  }

  .story-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .terminal-content {
    padding: 15px;
    min-height: 250px;
  }

  /* Skills section responsive */
  .skill-category {
    padding: 20px;
  }

  .category-header h3 {
    font-size: 1.2rem;
  }

  .category-icon {
    font-size: 1.5rem;
    margin-right: 10px;
  }

  .skill-name {
    font-size: 1rem;
  }

  .skill-percentage {
    font-size: 0.8rem;
  }
}

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

  .typewriter {
    font-size: 1rem;
  }

  .intro {
    font-size: 1rem;
  }

  .lang-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  nav {
    padding: 15px;
  }

  /* About section mobile responsive */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .story-btn {
    font-size: 0.8rem;
    padding: 10px 15px;
  }

  .terminal-content {
    padding: 10px;
    min-height: 200px;
  }

  .story-text {
    font-size: 0.9rem;
  }

  /* Skills section mobile responsive */
  .skill-category {
    padding: 15px;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
  }

  .category-icon {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .skills-intro p {
    font-size: 1rem;
  }

  /* Projects showcase mobile responsive */
  .project-display {
    height: 450px;
  }

  .project-card-showcase {
    padding: 20px;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-description p {
    font-size: 0.95rem;
  }

  .project-description li {
    font-size: 0.85rem;
  }

  .project-tech {
    gap: 6px;
  }

  .tech-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .project-link {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .nav-btn span {
    display: none;
  }

  .project-indicators {
    gap: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  /* Timeline mobile responsive */
  .timeline-line {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 60px;
    padding-left: 15px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
  }

  .timeline-icon {
    font-size: 1.2rem;
  }

  .timeline-year {
    left: 50px;
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .experience-card {
    padding: 20px;
  }

  .card-header h3 {
    font-size: 1.2rem;
  }

  .company-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .role-description {
    font-size: 1rem;
  }

  .achievements li {
    font-size: 0.9rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: inherit;
  }
}

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

/* Additional animations for light mode elements */
.light-mode .skill-card {
  animation: slideInLight 0.5s ease forwards var(--delay);
}

@keyframes slideInLight {
  from {
    transform: translateY(30px);
    opacity: 0;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  }
}

/* New animations for About section */
@keyframes fadeInLine {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

@keyframes countUp {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Skills animations */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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


/* ===== Professional Experience — WebGL particle journey ===== */
.exp-fallback { display: none; }
.exp-journey { display: block; }
@media (prefers-reduced-motion: reduce), (max-width: 820px) {
  .exp-journey { display: none !important; }
  .exp-fallback { display: block !important; }
}
#experience.no-webgl .exp-journey { display: none !important; }
#experience.no-webgl .exp-fallback { display: block !important; }

.exp-track { position: relative; height: 920vh; }
/* Pinned stage constrained to the same width as other .content blocks, floated
   as a rounded card that clears the fixed nav. Progress math reads the track +
   innerHeight, so the width/inset here does not affect chapter mapping. */
.exp-stage { position: sticky; top: 80px; height: calc(100vh - 100px); max-width: 1200px; margin: 0 auto;
  overflow: hidden; border-radius: 15px; border: 1px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: radial-gradient(120% 90% at 50% 45%, #0c1024 0%, #06070f 60%, #04040a 100%); }
#exp-canvas { display: block; width: 100%; height: 100%; }
.exp-sectiontitle { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); font-family: "Orbitron", sans-serif;
  font-size: 0.78rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(230,241,255,0.5); pointer-events: none; }
.exp-info { position: absolute; left: 7%; top: 17%; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.exp-info .period { font-family: "Orbitron", sans-serif; font-size: 0.9rem; letter-spacing: 3px; opacity: 0.9; }
.exp-bigname { position: absolute; left: 47%; top: 50%; transform: translate(-50%,-50%); font-family: "Orbitron", sans-serif;
  font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 3.1rem); letter-spacing: 0.04em; white-space: nowrap; opacity: 0;
  pointer-events: none; z-index: 5; will-change: transform, opacity, filter; }
.exp-card { position: absolute; right: 6%; top: 50%; transform: translateY(-50%) translateX(42px); width: 290px; opacity: 0;
  background: rgba(10,12,22,0.5); border: 1px solid rgba(255,255,255,0.12); border-left: 3px solid #fff; border-radius: 14px;
  padding: 20px 22px; backdrop-filter: blur(10px); pointer-events: none; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.exp-card .c-org { font-family: "Orbitron", sans-serif; font-size: 1.45rem; font-weight: 700; line-height: 1.12; }
.exp-card .c-title { font-size: 0.82rem; color: #cfe; opacity: 0.85; margin: 7px 0 15px; }
.exp-card .c-ach { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0 0 15px; padding: 0; }
.exp-card .c-ach li { font-size: 0.78rem; line-height: 1.4; padding-left: 17px; position: relative; color: #dde8f1; }
.exp-card .c-ach li::before { content: "\25B8"; position: absolute; left: 0; color: var(--accent, #fff); }
.exp-card .c-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-card .c-skills span { font-size: 0.68rem; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #e6f1ff; }
.exp-progress { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; gap: 10px; }
.exp-progress .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.25s ease; }
.exp-progress .dot.on { background: #00ffcc; box-shadow: 0 0 12px #00ffcc; transform: scale(1.25); }
.exp-hint { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); font-size: 0.72rem; color: #678; opacity: 0.7; pointer-events: none; }
