/* ==========================================================================
   CSS Neubrutalist Design Variables & Reset
   ========================================================================== */
:root, [data-theme="dark"] {
  --color-yellow: #FFEB3B; /* Acid Yellow */
  --color-pink: #FF3EA5;   /* Hot Pink */
  --color-blue: #3E7BFA;   /* Electric Blue */
  --color-lime: #C6FF00;   /* Lime Green */
  --color-white: #FFFFFF;  /* Pure White */
  --color-black: #000000;  /* Pure Black */
  
  --border-width: 4px;
  --shadow-offset: 8px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme Dependent Properties - Dark Mode Default */
  --theme-body-bg: #0c0e14;
  --theme-text-primary: #ffffff;
  --theme-text-secondary: #a0aec0;
  --theme-header-bg: #0c0e14;
  --theme-card-bg: #141722;
  --theme-card-text: #ffffff;
  
  --theme-hero-bg: #0e111a;
  --theme-hero-dot: rgba(255, 235, 59, 0.12);
  --theme-hero-card-bg: #141722;
  --theme-hero-card-text: #ffffff;
  --theme-hero-name-color: #ffffff;
  --theme-hero-name-shadow: 4px 4px 0px var(--color-yellow);
  
  --theme-about-bg: #101912;
  --theme-about-card-bg: #162219;
  --theme-about-card-text: #ffffff;
  
  --theme-tech-bg: #0c0e14;
  --theme-tech-card-bg: #141722;
  --theme-tech-card-text: #ffffff;
  
  --theme-exp-bg: #080a0f;
  --theme-exp-card-bg: #12151f;
  --theme-exp-card-text: #ffffff;
  
  --theme-projects-bg: #0c1224;
  --theme-project-card-bg: #141a2a;
  --theme-project-card-text: #ffffff;
  
  --theme-journey-bg: #18160c;
  --theme-journey-card-bg: #1f1c10;
  --theme-journey-card-text: #ffffff;
  
  --theme-contact-bg: #1c0d18;
  --theme-contact-card-bg: #241220;
  --theme-contact-card-text: #ffffff;
  
  --theme-footer-bg: #000000;
  --theme-footer-text: #ffffff;
}

[data-theme="light"] {
  --theme-body-bg: #ffffff;
  --theme-text-primary: #000000;
  --theme-text-secondary: #2d3748;
  --theme-header-bg: #ffffff;
  --theme-card-bg: #ffffff;
  --theme-card-text: #000000;
  
  --theme-hero-bg: #FFEB3B;
  --theme-hero-dot: rgba(0, 0, 0, 0.04);
  --theme-hero-card-bg: #ffffff;
  --theme-hero-card-text: #000000;
  --theme-hero-name-color: #000000;
  --theme-hero-name-shadow: 4px 4px 0px rgba(0,0,0,0);
  
  --theme-about-bg: #C6FF00;
  --theme-about-card-bg: #ffffff;
  --theme-about-card-text: #000000;
  
  --theme-tech-bg: #ffffff;
  --theme-tech-card-bg: #ffffff;
  --theme-tech-card-text: #000000;
  
  --theme-exp-bg: #f4f6fa;
  --theme-exp-card-bg: #161922;
  --theme-exp-card-text: #ffffff;
  
  --theme-projects-bg: #3E7BFA;
  --theme-project-card-bg: #ffffff;
  --theme-project-card-text: #000000;
  
  --theme-journey-bg: #FFEB3B;
  --theme-journey-card-bg: #ffffff;
  --theme-journey-card-text: #000000;
  
  --theme-contact-bg: #FF3EA5;
  --theme-contact-card-bg: #ffffff;
  --theme-contact-card-text: #000000;
  
  --theme-footer-bg: #000000;
  --theme-footer-text: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Global Smooth Theme Transition */
body, header, section, .brutal-card, .about-card, .tech-card, .project-card, .timeline-card, .experience-card, .contact-card, .hero-title, .hero-tagline, .nav-links, .social-btn, .floating-btn {
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

/* Selection Highlighting */
::selection {
  background-color: var(--color-black);
  color: var(--color-yellow);
}

/* ==========================================================================
   Core Neubrutalist Layout Utils
   ========================================================================== */
.brutal-border {
  border: var(--border-width) solid var(--color-black);
}

.brutal-shadow {
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-black);
}

.brutal-card {
  background-color: var(--theme-card-bg);
  color: var(--theme-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-black);
  padding: 24px;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
}

.brutal-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px var(--color-black);
}

.brutal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-black) !important;
  border: var(--border-width) solid var(--color-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-black);
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 150ms ease, color 150ms ease;
  cursor: pointer;
}

.brutal-btn:hover {
  color: var(--color-black) !important;
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px var(--color-black);
}

.brutal-btn:active {
  transform: translate(8px, 8px);
  box-shadow: 0px 0px 0px var(--color-black);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-black) !important;
}

.btn-white:hover {
  background-color: var(--color-yellow);
  color: var(--color-black) !important;
}

.btn-resume {
  background-color: var(--color-lime);
  color: var(--color-black) !important;
  gap: 8px;
}

.btn-resume:hover {
  background-color: #d2ff1a;
  color: var(--color-black) !important;
}

.btn-resume .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.btn-resume:hover .btn-icon {
  transform: translateY(2px);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 3px solid var(--color-black);
  margin-right: 8px;
  margin-bottom: 8px;
}

.badge-yellow { background-color: var(--color-yellow); color: var(--color-black); }
.badge-pink { background-color: var(--color-pink); color: var(--color-black); }
.badge-blue { background-color: var(--color-blue); color: var(--color-white); }
.badge-lime { background-color: var(--color-lime); color: var(--color-black); }
.badge-black { background-color: var(--color-black); color: var(--color-white); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--theme-header-bg);
  border-bottom: var(--border-width) solid var(--color-black);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--color-black);
  padding: 4px 12px;
  border: var(--border-width) solid var(--color-black);
  background-color: var(--color-lime);
  box-shadow: 4px 4px 0px var(--color-black);
  transition: transform 100ms ease, width 200ms ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.logo:not(.game-active):hover {
  transform: rotate(-2deg);
}

.logo-text {
  transition: opacity 200ms ease-in-out;
  opacity: 1;
  display: inline-block;
  white-space: nowrap;
}

.logo-dino-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: opacity 200ms ease-in-out;
  opacity: 0;
  pointer-events: none;
  display: block;
  overflow: hidden;
}

#dinoCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dino States styling */
.logo.show-dino .logo-text {
  opacity: 0;
  pointer-events: none;
}

.logo.show-dino .logo-dino-container {
  opacity: 1;
  pointer-events: auto;
}

/* Idle Dino state sizing */
.logo.show-dino:not(.game-active) {
  width: 72px !important;
}

/* Game Active state sizing & border hide */
.logo.show-dino.game-active {
  flex-grow: 1;
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  max-width: calc(100% - 480px);
  height: 48px;
  padding: 0 !important;
  margin-right: 24px;
}

@media (max-width: 900px) {
  .logo.show-dino.game-active {
    max-width: calc(100% - 110px);
  }
}

/* Neubrutalist discoverability tooltip */
.logo-tooltip {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-yellow);
  color: var(--color-black);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0px var(--color-black);
  padding: 4px 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
  z-index: 1000;
}

.logo.show-dino:not(.game-active):hover .logo-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.nav-link {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--theme-text-primary);
  font-size: 1rem;
  padding: 8px 16px;
  border: var(--border-width) solid transparent;
  transition: all 100ms ease;
}

.nav-link:hover {
  border-color: var(--color-black);
  background-color: var(--color-yellow);
  color: var(--color-black) !important;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--color-black);
}

.nav-link:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--color-black);
}

/* Mobile Nav Toggle Menu (Hidden on Desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: var(--border-width) solid var(--color-black);
  padding: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  background-color: var(--color-yellow);
  box-shadow: 4px 4px 0px var(--color-black);
}

.menu-toggle:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--color-black);
}

/* ==========================================================================
   Section Styling Basics
   ========================================================================== */
section {
  padding: 80px 24px;
  border-bottom: var(--border-width) solid var(--color-black);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.5rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 48px;
  display: inline-block;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 12px 24px;
  border: var(--border-width) solid var(--color-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-pink);
  transform: rotate(-1deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  background-color: var(--theme-hero-bg);
  background-image: radial-gradient(var(--theme-hero-dot) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge Wobble & Entrance Animation Wrappers */
.hero-name-wrapper {
  display: block;
  width: fit-content;
  animation: drift-name 5s ease-in-out infinite;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 6rem;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 8px;
  color: var(--theme-hero-name-color);
  -webkit-text-stroke: 1px var(--color-black);
  text-shadow: var(--theme-hero-name-shadow);
  animation: slam-in 700ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  display: block;
}

.hero-title-wrapper {
  display: block;
  width: fit-content;
  margin-bottom: 24px;
  animation: wobble-title 4.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--theme-hero-card-text);
  margin-bottom: 0;
  background-color: var(--theme-hero-card-bg);
  padding: 8px 16px;
  border: var(--border-width) solid var(--color-black);
  box-shadow: 6px 6px 0px var(--color-black);
  display: inline-block;
}

.hero-tagline-wrapper {
  display: block;
  width: fit-content;
  margin-bottom: 32px;
  animation: wobble-tagline 3.8s ease-in-out infinite;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
  background-color: var(--theme-hero-card-bg);
  color: var(--theme-hero-card-text);
  padding: 12px 24px;
  border-left: 8px solid var(--color-black);
  border-top: 3px solid var(--color-black);
  border-right: 3px solid var(--color-black);
  border-bottom: 3px solid var(--color-black);
  display: inline-block;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-badge-wrapper {
  display: inline-block;
}

.hero-badge-wrapper:nth-child(1) {
  animation: wobble-badge1 4.5s ease-in-out infinite;
}

.hero-badge-wrapper:nth-child(2) {
  animation: wobble-badge2 5s ease-in-out infinite;
}

.hero-badge-item {
  font-size: 1rem;
  padding: 8px 16px;
  display: inline-block;
  margin-right: 0;
  margin-bottom: 0;
}

/* Status Pill Layout */
.hero-status-container {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.hero-status-pill {
  display: inline-block;
  margin-right: 0;
  margin-bottom: 0;
  min-width: 270px;
  text-align: center;
  transition: opacity 250ms ease, transform 250ms ease;
}

/* Reactive Dodge Badge Class */
.hero-dodge-badge {
  transition: transform 150ms cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  display: inline-block;
}

/* Pause animation on hover */
.hero-name-wrapper:hover,
.hero-title-wrapper:hover,
.hero-tagline-wrapper:hover,
.hero-badge-wrapper:hover {
  animation-play-state: paused;
}

/* Neubrutalist Keyframe Animations */
@keyframes slam-in {
  0% {
    opacity: 0;
    transform: scale(1.35) rotate(-5deg) translate(-20px, -20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translate(0, 0);
  }
}

@keyframes drift-name {
  0%, 100% { transform: rotate(-0.5deg); }
  50% { transform: rotate(0.5deg); }
}

@keyframes wobble-title {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@keyframes wobble-tagline {
  0%, 100% { transform: rotate(1deg); }
  50% { transform: rotate(-1deg); }
}

@keyframes wobble-badge1 {
  0%, 100% { transform: rotate(1.5deg); }
  50% { transform: rotate(-1.5deg); }
}

@keyframes wobble-badge2 {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(2.5deg); }
}

/* Prefers reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .hero-name-wrapper,
  .hero-title-wrapper,
  .hero-tagline-wrapper,
  .hero-badge-wrapper,
  .hero-dodge-badge {
    animation: none !important;
    transition: none !important;
  }
  .hero-title-wrapper,
  .hero-tagline-wrapper {
    transform: none !important;
  }
  .hero-name-wrapper {
    transform: none !important;
  }
  .hero-badge-wrapper:nth-child(1) {
    transform: rotate(1deg);
  }
  .hero-badge-wrapper:nth-child(2) {
    transform: rotate(-1deg);
  }
  .hero-name {
    animation: fade-in-simple 700ms ease both;
  }
}

@keyframes fade-in-simple {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Stats Banner Styling */
.hero-stats-panel {
  grid-column: 1 / -1;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 24px;
  border: var(--border-width) solid var(--color-black);
  box-shadow: 10px 10px 0px var(--color-blue);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-item span.accent {
  color: var(--color-yellow);
}

/* Hero Interactive Container & Particle Canvas */
.hero-interactive-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

#hero .section-container {
  position: relative;
  z-index: 2;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Terminal Card Styling */
.terminal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  height: 340px;
  background-color: var(--color-black) !important;
  color: var(--color-white) !important;
  border: var(--border-width) solid var(--color-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-black);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
  background-color: #1a1a1a;
  border-bottom: var(--border-width) solid var(--color-black);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-black);
  display: inline-block;
}

.term-red { background-color: #FF5F56; }
.term-yellow { background-color: #FFBD2E; }
.term-green { background-color: #27C93F; }

.terminal-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #888;
  font-family: var(--font-body);
}

.terminal-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
  background: #121212;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #444;
  border: 2px solid #121212;
}

.terminal-content {
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  position: relative;
  display: none; /* Hidden by default until intro finishes typing */
}

.prompt-user {
  color: var(--color-lime);
  font-weight: bold;
  white-space: nowrap;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  outline: none;
  flex-grow: 1;
  padding: 0;
  caret-color: var(--color-lime);
}

/* ==========================================================================
   About Section
   ========================================================================== */
#about {
  background-color: var(--theme-about-bg);
}

.about-card {
  background-color: var(--theme-about-card-bg);
  color: var(--theme-about-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 12px 12px 0px var(--color-black);
  padding: 48px;
  transform: rotate(-0.5deg);
}

.about-lead {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--theme-about-card-text);
  margin-bottom: 32px;
}

.about-badges-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: block;
  color: var(--theme-about-card-text);
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
#tech-stack {
  background-color: var(--theme-tech-bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.tech-card {
  background-color: var(--theme-tech-card-bg);
  color: var(--theme-tech-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 6px 6px 0px var(--color-black);
  padding: 24px;
  text-align: center;
  transition: all 150ms ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tech-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: grayscale(0);
  transition: transform 200ms ease, filter 200ms ease;
}

/* In Dark Mode, invert dark/black logos like GitHub so they are crisp and visible */
[data-theme="dark"] .tech-card img[src*="github"],
:root:not([data-theme="light"]) .tech-card img[src*="github"] {
  filter: invert(1) brightness(1.3);
}

.tech-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px var(--color-black);
}

.tech-card:hover img {
  transform: scale(1.1) rotate(5deg);
}

.tech-card:hover img[src*="github"] {
  filter: invert(0) !important;
}

/* Color variations for tech card hover */
.tech-card:nth-child(4n+1):hover { background-color: var(--color-yellow); }
.tech-card:nth-child(4n+2):hover { background-color: var(--color-pink); }
.tech-card:nth-child(4n+3):hover { background-color: var(--color-lime); }
.tech-card:nth-child(4n+4):hover { background-color: var(--color-blue); }
.tech-card:hover .tech-name { color: var(--color-black); }
.tech-card:nth-child(4n+4):hover .tech-name { color: var(--color-white); }

.tech-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--theme-tech-card-text);
  transition: color 150ms ease;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
#experience {
  background-color: var(--theme-exp-bg);
  color: var(--theme-exp-card-text);
  border-bottom: var(--border-width) solid var(--color-black);
}

#experience .section-title {
  background-color: var(--color-lime);
  color: var(--color-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-pink);
}

.experience-card {
  background-color: var(--theme-exp-card-bg);
  color: var(--theme-exp-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 12px 12px 0px var(--color-lime);
  padding: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
}

.experience-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 14px 14px 0px var(--color-lime);
}

.exp-terminal-header {
  background-color: var(--color-black);
  border-bottom: var(--border-width) solid var(--color-black);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.exp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-black);
  display: inline-block;
}

.dot-red { background-color: #FF5F56; }
.dot-yellow { background-color: #FFBD2E; }
.dot-green { background-color: #27C93F; }

.exp-terminal-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-lime);
  letter-spacing: 0.5px;
}

.exp-inner {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exp-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
}

.exp-role {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.exp-company-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-company {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exp-badge {
  margin: 0;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.exp-duration-badge .badge {
  margin: 0;
  font-size: 0.95rem;
  box-shadow: 4px 4px 0px var(--color-black);
}

.exp-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  color: #a0aec0;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 12px;
}

.exp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-badges .badge {
  margin: 0;
}

.exp-highlights-wrapper {
  margin-top: 4px;
}

.exp-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

.exp-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.exp-highlights-list li strong {
  color: var(--color-yellow);
  font-weight: 700;
}

.exp-marker {
  color: var(--color-lime);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
#projects {
  background-color: var(--theme-projects-bg);
}

#projects .section-title {
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-yellow);
}

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

.project-card {
  background-color: var(--theme-project-card-bg);
  color: var(--theme-project-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 12px 12px 0px var(--color-black);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  background-color: var(--color-yellow);
  border-bottom: var(--border-width) solid var(--color-black);
  padding: 20px 24px;
}

.project-card:nth-child(even) .project-header {
  background-color: var(--color-pink);
}

.project-tag {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--color-black);
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-description {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--theme-project-card-text);
}

.project-tech-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  color: var(--theme-project-card-text);
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.project-footer {
  margin-top: auto;
}

.project-btn {
  width: 100%;
  text-align: center;
  background-color: var(--color-lime);
  color: var(--color-black) !important;
}

.project-btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-black) !important;
}

/* ==========================================================================
   Journey Timeline Section
   ========================================================================== */
#journey {
  background-color: var(--theme-journey-bg);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

/* The vertical line in neubrutalism is a thick black block */
.timeline-container::before {
  content: '';
  position: absolute;
  width: 8px;
  background-color: var(--color-black);
  top: 0;
  bottom: 0;
  left: 40px;
  margin-left: -4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 80px;
}

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

/* Chronological Dot Marker */
.timeline-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  background-color: var(--color-pink);
  border: 4px solid var(--color-black);
  left: 40px;
  top: 16px;
  margin-left: -16px;
  z-index: 10;
  box-shadow: 4px 4px 0px var(--color-black);
}

.timeline-item:nth-child(even) .timeline-marker {
  background-color: var(--color-blue);
}

.timeline-card {
  background-color: var(--theme-journey-card-bg);
  color: var(--theme-journey-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 8px 8px 0px var(--color-black);
  padding: 32px;
  position: relative;
}

.timeline-date {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  background-color: var(--color-lime);
  color: var(--color-black);
  padding: 4px 12px;
  border: 3px solid var(--color-black);
  display: inline-block;
  margin-bottom: 16px;
  transform: rotate(-1deg);
}

.timeline-card:nth-child(even) .timeline-date {
  background-color: var(--color-yellow);
}

.timeline-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--theme-journey-card-text);
}

.timeline-institution {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-blue);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.timeline-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--theme-journey-card-text);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
#contact {
  background-color: var(--theme-contact-bg);
  text-align: center;
  padding: 100px 24px;
}

#contact .section-title {
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-blue);
}

.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--theme-contact-card-bg);
  color: var(--theme-contact-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 12px 12px 0px var(--color-black);
  padding: 48px 24px;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--theme-contact-card-text);
}

.contact-copy {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--theme-contact-card-text);
}

.contact-btn {
  background-color: var(--color-yellow);
  color: var(--color-black) !important;
  font-size: 1.3rem;
  padding: 16px 36px;
}

.contact-btn:hover {
  background-color: var(--color-lime);
  color: var(--color-black) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 48px 24px;
  border-top: var(--border-width) solid var(--color-black);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 3px solid var(--color-white);
  color: var(--color-black) !important;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.3);
  transition: all 100ms ease;
}

.social-btn:hover {
  background-color: var(--color-lime);
  color: var(--color-black) !important;
  border-color: var(--color-black);
  box-shadow: 4px 4px 0px var(--color-lime);
  transform: translate(-2px, -2px);
}

.social-btn:nth-child(2):hover {
  background-color: var(--color-pink);
  color: var(--color-black) !important;
  box-shadow: 4px 4px 0px var(--color-pink);
}

.social-btn:nth-child(3):hover {
  background-color: var(--color-yellow);
  color: var(--color-black) !important;
  box-shadow: 4px 4px 0px var(--color-yellow);
}

.social-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

/* ==========================================================================
   Responsive Design & Media Queries
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: var(--border-width) solid var(--color-black);
    padding: 24px;
    gap: 16px;
    box-shadow: 0px 8px 0px var(--color-black);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-name {
    font-size: 4rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta-group {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-stats-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-interactive-container {
    height: auto;
    margin-top: 16px;
    margin-bottom: 24px;
  }

  #particleCanvas {
    display: none;
  }

  .terminal-card {
    height: 300px;
    max-width: 100%;
  }

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

  .exp-inner {
    padding: 24px 20px;
    gap: 20px;
  }

  .exp-role {
    font-size: 1.6rem;
  }

  .exp-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 20px;
  }

  .contact-heading {
    font-size: 2.2rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .mail-btn-container {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2rem;
    padding: 8px 16px;
  }
  .about-card {
    padding: 24px 16px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .hero-cta-group .brutal-btn,
  .hero-cta-group .mail-btn-container {
    width: 100%;
  }
  .hero-cta-group .brutal-btn {
    text-align: center;
    justify-content: center;
  }
  .mail-btn-container {
    align-items: center;
    width: 100%;
  }
  .exp-inner {
    padding: 20px 16px;
  }
  .exp-role {
    font-size: 1.35rem;
  }
  .exp-company {
    font-size: 1.1rem;
  }
  .exp-highlights-list li {
    font-size: 0.95rem;
  }
  .contact-card {
    padding: 32px 16px;
  }
}

/* Email Button Fallback Styling */
.mail-btn-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mail-fallback-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 150ms ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mail-fallback-link:hover {
  opacity: 0.75;
}

.contact-fallback {
  color: var(--theme-contact-card-text);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--theme-header-bg);
    border-bottom: var(--border-width) solid var(--color-black);
    padding: 24px;
    gap: 16px;
    box-shadow: 0px 8px 0px var(--color-black);
  }
}

/* ==========================================================================
   Floating Action Controls (Theme Toggle + Sound Toggle)
   ========================================================================== */
.floating-controls {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  background-color: var(--color-yellow);
  color: var(--color-black);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0px var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 150ms ease;
  outline: none;
}

.floating-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-black);
  background-color: var(--color-lime);
}

.floating-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--color-black);
}

.floating-btn.sound-on {
  background-color: var(--color-lime);
}

.floating-btn.sound-on:hover {
  background-color: var(--color-yellow);
}

.floating-btn.gravity-on {
  background-color: var(--color-pink);
  color: var(--color-white) !important;
}

.floating-btn.gravity-on:hover {
  background-color: var(--color-yellow);
  color: var(--color-black) !important;
}

.floating-btn svg {
  display: block;
}

.fab-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 2px solid var(--color-black);
  box-shadow: 3px 3px 0px var(--color-yellow);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
  user-select: none;
}

.floating-btn:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 480px) {
  .floating-controls {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
  }
  .fab-tooltip {
    right: 56px;
  }
}

/* ==========================================================================
   404 Error Page Styling
   ========================================================================== */
.error-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.error-card {
  max-width: 780px;
  width: 100%;
  background-color: var(--theme-card-bg);
  color: var(--theme-card-text);
  border: var(--border-width) solid var(--color-black);
  box-shadow: 12px 12px 0px var(--color-pink);
  padding: 0;
  overflow: hidden;
}

.error-header {
  background-color: var(--color-black);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border-width) solid var(--color-black);
}

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

.error-terminal-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-lime);
}

.error-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-code-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  background-color: var(--color-pink);
  color: var(--color-white);
  padding: 8px 16px;
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0px var(--color-black);
  display: inline-block;
  transform: rotate(-1.5deg);
}

.error-banner-text h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.error-banner-text p {
  color: var(--theme-text-secondary);
  font-size: 1.05rem;
}

.error-terminal-block {
  background-color: #0b0c10;
  color: #e2e8f0;
  border: 3px solid var(--color-black);
  box-shadow: 6px 6px 0px var(--color-black);
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.error-terminal-block .term-cmd {
  color: var(--color-lime);
  font-weight: bold;
}

.error-terminal-block .term-err {
  color: #FF5F56;
  font-weight: bold;
}

.error-terminal-block .term-dir {
  color: var(--color-blue);
}

.error-terminal-block .term-file {
  color: var(--color-yellow);
}

.error-terminal-block a {
  color: var(--color-yellow);
  text-decoration: underline;
  font-weight: bold;
  transition: opacity 100ms ease;
}

.error-terminal-block a:hover {
  opacity: 0.8;
}

.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.error-actions .brutal-btn {
  flex-grow: 1;
  text-align: center;
}

@media (max-width: 600px) {
  .error-body {
    padding: 24px 18px;
    gap: 20px;
  }
  .error-code-badge {
    font-size: 2.2rem;
  }
  .error-banner-text h1 {
    font-size: 1.5rem;
  }
  .error-actions {
    flex-direction: column;
  }
  .error-actions .brutal-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Gravity Mode Physics Easter Egg Styles
   ========================================================================== */
.gravity-body {
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
  will-change: transform;
}

.gravity-body:active,
.gravity-dragging {
  cursor: grabbing !important;
}

body.gravity-mode-active {
  user-select: none;
}
