:root {
  /* Default (dark mode) theme colors */
  --bg-dark: #0A192F;
  --text-dark: #E0F7FA;
  --accent: #64FFDA;
  --glow: #A7FFEB;

  --dropdown-bg: #0F2A44;
  --dropdown-fg: #E0F7FA;
}

/* ──── Scrollbar ──── */

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 255, 218, 0.25) transparent;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, 0.25);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.45);
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:start,
::-webkit-scrollbar-button:end,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Base page styling */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
  transition: background 0.5s, color 0.5s;
}


/* Light mode override when 'dark-theme' class is applied */
body.dark-theme {
  --bg-dark: #FFFFFF;
  --text-dark: #0A192F;
  --accent: #00796B;
  --glow: #4DB6AC;

  --dropdown-bg: #E0F7FA;
  --dropdown-fg: #0A192F;
}

/* Full-screen animated background canvas */
canvas#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Hamburger button to toggle dropdown nav */
.dropdown-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  z-index: 1001;
}

/* Dropdown container (initially hidden) */
.dropdown-menu {
  position: fixed;
  top: 3.5rem;
  left: 1rem;
  display: none;
  flex-direction: column;
  background-color: var(--dropdown-bg);
  color: var(--dropdown-fg);
  border: 1px solid var(--glow);
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  z-index: 1000;
}

/* Each dropdown item (link or button) */
.dropdown-menu a,
.dropdown-menu button {
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

/* Highlight on hover for dropdown items */
.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* Center main content and add spacing from top nav */
main {
  padding-top: 6rem;
  text-align: center;
  z-index: 2;
  position: relative;
}

/* Main header styling */
.me h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1.25rem;
}

/* Animated subheading text (typewriter effect) */
.subheading {
  font-size: 1.25rem;
  color: var(--accent);
  font-family: monospace;
  min-height: 2rem;
  margin-bottom: 1.75rem;
}

/* Intro paragraph about the user */
.about-brief {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  color: var(--text-dark);
  text-align: left;
}

/* Container for action buttons */
.actions {
  margin: 0 auto 5rem;
}

/* Base button styles */
.btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: #0A192F;
  text-decoration: none;
  font-weight: bold;
  margin: 0.5rem;
  border-radius: 8px;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.3s;
}

/* Hover effect for buttons */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--glow);
}

/* Optional outlined button style */
.btn.outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* ──── Section Title ──── */

.section-title {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 2rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  opacity: 0.6;
}

/* ──── Skills Section ──── */

.skills {
  max-width: 860px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
  text-align: left;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.skill-category {
  background: rgba(100, 255, 218, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 6px;
  padding: 1.25rem 1.4rem 1.4rem;
}

.skill-category h3 {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--accent);
  opacity: 0.55;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
  font-weight: normal;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-chip {
  font-family: monospace;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: 4px;
  color: var(--text-dark);
  opacity: 0.75;
  line-height: 1.6;
}

/* ──── Lab Teaser Section ──── */

.lab-teaser {
  max-width: 860px;
  margin: 5rem auto 6rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  background: rgba(100, 255, 218, 0.02);
}

.lab-teaser-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.lab-teaser-text {
  flex: 1;
  min-width: 220px;
  text-align: left;
}

.lab-teaser-text h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.lab-teaser-text p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dark);
  opacity: 0.75;
  margin: 0 0 2.25rem;
}

.lab-mini-terminal {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  background: rgba(5, 13, 26, 0.85);
  border: 1px solid rgba(100, 255, 218, 0.12);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--accent);
  line-height: 1.8;
}

.mini-line {
  display: block;
}

.mini-dim {
  opacity: 0.38;
}

.mini-ok {
  color: #64FFDA;
}

.mini-indent {
  padding-left: 1.2em;
  opacity: 0.6;
}

/* ──── Contact Row ──── */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 600px;
  font-family: monospace;
  font-size: 0.78rem;
  color: rgba(100, 255, 218, 0.38);
  padding: 0 1rem;
}

.contact-row > * + *::before {
  content: '·';
  display: inline-block;
  margin: 0 0.75rem;
  opacity: 0.4;
}

.contact-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row a:hover {
  color: var(--accent);
}

/* ──── Experience Section ──── */

.experience {
  max-width: 860px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
  text-align: left;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exp-card {
  background: rgba(100, 255, 218, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-company {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.exp-role {
  display: block;
  font-size: 0.87rem;
  color: var(--text-dark);
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.exp-meta {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dark);
  opacity: 0.42;
}

.exp-dates {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.1rem;
}


.exp-note {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-dark);
  opacity: 0.35;
  margin: 1rem 0 0;
  text-align: right;
}

/* ──── Education Section ──── */

.education {
  max-width: 860px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
  text-align: left;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-card {
  background: rgba(100, 255, 218, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.edu-school {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.edu-degree {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 0.15rem;
}

.edu-meta {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dark);
  opacity: 0.42;
}

.edu-dates {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
