:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --amber: #FFB800;
  --amber-dim: #8B7D3C;
  --orange: #FF6B00;
  --gold: #FFD700;
  --text: #F5F5DC;
  --text-muted: #666;
  --border: #2a2a2a;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .terminal, nav a, .btn {
  font-family: var(--font-mono);
}

a { color: var(--amber); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--gold); text-shadow: 0 0 8px var(--amber); }

/* === MATRIX RAIN CANVAS === */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav .logo img {
  height: 40px;
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links ul li a {
  color: var(--text);
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
  color: var(--amber);
  border-color: var(--amber);
  text-shadow: 0 0 10px var(--amber);
}

.nav-links ul li a.active::before {
  content: '> ';
  color: var(--amber);
}

nav .material-symbols-outlined {
  display: none;
  color: var(--amber);
  font-size: 30px;
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero .badge {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 16px;
  margin-bottom: 30px;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 5px var(--amber); }
  50% { box-shadow: 0 0 20px var(--amber); }
}

.hero h1 {
  font-size: clamp(40px, 8vw, 90px);
  color: var(--amber);
  text-shadow: 0 0 20px var(--amber), 0 0 60px rgba(255, 184, 0, 0.3);
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero h1 .glitch {
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 2px); }
  98% { transform: translate(1px, -2px); }
}

.hero .subtitle {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--gold);
  margin-bottom: 20px;
  min-height: 30px;
}

.hero .cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--amber);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

.hero .tagline {
  font-size: clamp(16px, 2.5vw, 26px);
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 300;
}

.hero .location {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero .location span { color: var(--amber); }

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 28px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  cursor: pointer;
  transition: 0.4s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: var(--amber);
  color: var(--bg);
  box-shadow: 0 0 25px var(--amber);
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--amber);
  box-shadow: 0 0 25px var(--amber);
}

/* === OPEN TO WORK BANNER === */
.otw-banner {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 107, 0, 0.05));
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  padding: 14px 24px;
  margin: 0 auto 40px;
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  animation: pulse-border 3s infinite;
}

.otw-banner .dot {
  width: 10px;
  height: 10px;
  background: #00ff41;
  border-radius: 50%;
  animation: blink 1.5s step-end infinite;
  flex-shrink: 0;
}

.otw-banner strong { color: var(--amber); }

/* === STATS BAR === */
.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.stats-bar span { color: var(--gold); font-weight: bold; }

/* === SUB-HEADER (Inner Pages) === */
.sub-header {
  position: relative;
  z-index: 1;
  padding: 100px 40px 50px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.03), transparent);
}

.sub-header .terminal-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sub-header .terminal-line .prompt { color: var(--amber); }

.sub-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 52px);
  color: var(--amber);
  text-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}

.sub-header .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* === PAGE CONTENT === */
.page-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  overflow: visible;
}

/* === ABOUT PAGE === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 280px;
  border-radius: 4px;
  border: 1px solid var(--amber);
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.1);
}

.about-image .caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.terminal-block .prompt { color: var(--amber); }
.terminal-block .comment { color: var(--text-muted); font-style: italic; }
.terminal-block .highlight { color: var(--gold); }

/* === STRENGTHS === */
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.strength-item {
  background: var(--surface);
  border-left: 3px solid var(--amber);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: 0.3s;
}

.strength-item:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
}

.strength-item .status { color: #00ff41; }

/* === EXPERIENCE / CAREER LOG === */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.timeline-item:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.05);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--amber);
}

.timeline-item .role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-item .role-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-item .role-title {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--amber);
}

.timeline-item .role-company {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-item .role-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-item .role-meta span { color: var(--gold); }

.timeline-item ul {
  list-style: none;
  padding: 0;
}

.timeline-item ul li {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.timeline-item ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--font-mono);
}

/* === SKILLS PAGE === */
.skills-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.skills-nav button {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.skills-nav button:hover,
.skills-nav button.active {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.1);
}

.skills-category {
  display: none;
}

.skills-category.active {
  display: block;
}

.skills-category h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  transition: 0.3s;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.1);
}

.skill-tag .skill-source {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.skills-note {
  margin-top: 30px;
  padding: 16px 20px;
  background: var(--surface);
  border-left: 3px solid var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.skills-note strong { color: var(--gold); }

/* === SHOWCASE / GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 400px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  background: #0a0a0a;
  border: 1px solid var(--border);
  transition: 0.4s;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 73px;
  background: radial-gradient(ellipse at center, #ffda79 0%, #ffda79 25%, rgba(255,218,121,0.3) 50%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.gallery-item > * {
  position: relative;
  z-index: 1;
}

.gallery-item:hover {
  border-color: var(--amber);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.1);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item:has(img[src$=".png"]),
.gallery-item:has(img[src$=".jpg"]),
.gallery-item:has(img[src$=".JPG"]) {
  display: flex;
  flex-direction: column;
}

.gallery-item:has(img[src$=".png"]) img,
.gallery-item:has(img[src$=".jpg"]) img,
.gallery-item:has(img[src$=".JPG"]) img {
  object-fit: contain;
  padding: 8px;
  height: auto;
  transform: scale(0.85);
}

.gallery-item:has(img[src$=".svg"]) {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.gallery-item:has(img[src$=".svg"])::before { display: none; }
.gallery-item:has(img[src$=".svg"]) img {
  object-fit: contain;
  padding: 8px;
  height: auto;
  flex: 1;
  transform: scale(0.85);
}

.gallery-item img.square-crop,
.v3d-card img.square-crop {
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 0;
  height: auto;
}

.gallery-item .gallery-info {
  padding: 10px 14px 14px;
}

.gallery-item .gallery-info .name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

.gallery-item .gallery-info .tags {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.gallery-item .gallery-info .tags span {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 2px 8px;
  margin: 2px 2px 0 0;
  font-size: 10px;
}

/* Carousel (preserved from current) */
/* === 3D DRAGGABLE PARALLAX IMAGE RING === */
/* === VERTICAL 3D TEAM CAROUSEL === */
#view-carousel {
  margin-top: 10px;
}

.v3d-main {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 70vh;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.v3d-carousel-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.v3d-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.v3d-carousel-container {
  width: 100%;
  max-width: 420px;
  height: 65vh;
  position: relative;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v3d-carousel-track {
  width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.v3d-card {
  position: absolute;
  width: 340px;
  height: 340px;
  background: #0a0a0a;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.v3d-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #ffda79 0%, #ffda79 25%, rgba(255,218,121,0.3) 50%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.v3d-card:has(img[src$=".jpg"])::before,
.v3d-card:has(img[src$=".JPG"])::before {
  display: none;
}

.v3d-card:has(img[src$=".jpg"]),
.v3d-card:has(img[src$=".JPG"]) {
  background: var(--surface);
}

.v3d-card > * {
  position: relative;
  z-index: 1;
}

.v3d-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.v3d-card:has(img[src$=".png"]) img {
  transform: scale(0.85);
}

.v3d-card.v3d-center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
  border-color: var(--amber);
  box-shadow: 0 0 50px rgba(255, 184, 0, 0.3);
}

.v3d-card.v3d-center img {
  filter: none;
}

.v3d-card.v3d-up-2 {
  z-index: 1;
  transform: translateY(-280px) scale(0.75) translateZ(-300px);
  opacity: 0.5;
}

.v3d-card.v3d-up-2 img {
  filter: grayscale(80%);
}

.v3d-card.v3d-up-1 {
  z-index: 5;
  transform: translateY(-140px) scale(0.88) translateZ(-100px);
  opacity: 0.8;
}

.v3d-card.v3d-up-1 img {
  filter: grayscale(60%);
}

.v3d-card.v3d-down-1 {
  z-index: 5;
  transform: translateY(140px) scale(0.88) translateZ(-100px);
  opacity: 0.8;
}

.v3d-card.v3d-down-1 img {
  filter: grayscale(60%);
}

.v3d-card.v3d-down-2 {
  z-index: 1;
  transform: translateY(280px) scale(0.75) translateZ(-300px);
  opacity: 0.5;
}

.v3d-card.v3d-down-2 img {
  filter: grayscale(80%);
}

.v3d-card.v3d-hidden {
  opacity: 0;
  pointer-events: none;
}

.v3d-member-info {
  text-align: center;
  transition: all 0.5s ease-out;
}

.v3d-member-name {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  transition: opacity 0.3s;
}

.v3d-member-name::before,
.v3d-member-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 60px;
  height: 2px;
  background: var(--amber);
}

.v3d-member-name::before {
  left: -80px;
}

.v3d-member-name::after {
  right: -80px;
}

.v3d-member-role {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 0;
  margin-top: -10px;
  position: relative;
  transition: opacity 0.3s;
}

.v3d-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.v3d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-dim);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v3d-dot.v3d-active {
  background: var(--amber);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

.v3d-nav-arrow {
  position: relative;
  background: transparent;
  color: var(--amber);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  border: 1px solid var(--amber-dim);
  outline: none;
  margin: 0;
  padding: 0;
}

.v3d-nav-arrow:hover {
  background: var(--amber);
  color: var(--bg);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

.v3d-nav-arrow.v3d-up {
  transform: none;
}

.v3d-nav-arrow.v3d-down {
  transform: none;
}

@media(max-width: 768px) {
  .v3d-main {
    flex-direction: column;
    height: auto;
    gap: 20px;
    max-width: 100%;
  }

  .v3d-carousel-section {
    flex: none;
    width: 100%;
  }

  .v3d-info-section {
    flex: none;
    width: 100%;
    gap: 16px;
  }

  .v3d-carousel-container {
    height: 55vh;
    max-width: 360px;
  }

  .v3d-card {
    width: 280px;
    height: 280px;
  }

  .v3d-carousel-track {
    width: 320px;
  }

  .v3d-card.v3d-up-2 {
    transform: translateY(-180px) scale(0.75) translateZ(-300px);
  }

  .v3d-card.v3d-up-1 {
    transform: translateY(-90px) scale(0.88) translateZ(-100px);
  }

  .v3d-card.v3d-down-1 {
    transform: translateY(90px) scale(0.88) translateZ(-100px);
  }

  .v3d-card.v3d-down-2 {
    transform: translateY(180px) scale(0.75) translateZ(-300px);
  }

  .v3d-member-name {
    font-size: 1.3rem;
  }

  .v3d-member-name::before,
  .v3d-member-name::after {
    width: 30px;
  }

  .v3d-member-name::before {
    left: -50px;
  }

  .v3d-member-name::after {
    right: -50px;
  }
}

@media(max-width: 480px) {
  .v3d-card {
    width: 220px;
    height: 220px;
  }

  .v3d-carousel-track {
    width: 260px;
  }

  .v3d-card.v3d-up-2 {
    transform: translateY(-140px) scale(0.7) translateZ(-250px);
  }

  .v3d-card.v3d-up-1 {
    transform: translateY(-70px) scale(0.85) translateZ(-80px);
  }

  .v3d-card.v3d-down-1 {
    transform: translateY(70px) scale(0.85) translateZ(-80px);
  }

  .v3d-card.v3d-down-2 {
    transform: translateY(140px) scale(0.7) translateZ(-250px);
  }
}

/* === EDUCATION PAGE === */
.education-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.education-table th,
.education-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.education-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.education-table tr:hover td {
  background: var(--surface-hover);
}

.education-table .inst-name {
  color: var(--gold);
  font-weight: 600;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  transition: 0.3s;
}

.cert-card:hover {
  border-color: var(--amber);
}

.cert-card .cert-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
}

.cert-card .cert-issuer {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cert-card .cert-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.cert-card .cert-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
}

/* === CONTACT PAGE === */
.contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 6px;
}

.form-group label::before {
  content: '> ';
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: 0.3s;
  outline: none;
  font-family: var(--font-mono);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.1);
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.social-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.social-links a:hover {
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.1);
}

.thank-you-message {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.thank-you-message .terminal-icon {
  font-family: var(--font-mono);
  font-size: 40px;
  color: #00ff41;
  margin-bottom: 20px;
}

.thank-you-message h2 {
  font-family: var(--font-mono);
  color: var(--amber);
  margin-bottom: 12px;
}

.thank-you-message p {
  color: var(--text-muted);
  font-size: 14px;
}

/* === SYSTEM LOG / REFLECTION === */
.reflection-content {
  max-width: 800px;
  margin: 0 auto;
}

.reflection-content .log-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.reflection-content .log-line .prompt { color: var(--amber); }

.reflection-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.reflection-content .highlight-block {
  background: var(--surface);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--gold);
}

/* === FOOTER === */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 30px 40px;
  text-align: center;
}

footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

footer .footer-line {
  margin: 4px 0;
}

footer .amber { color: var(--amber); }

/* === VIEW TOGGLE === */
.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.view-toggle button {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.view-toggle button.active,
.view-toggle button:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* === RESPONSIVE === */
@media(max-width: 768px) {
  nav {
    padding: 12px 20px;
  }

  nav .material-symbols-outlined {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 60px 20px 20px;
    transition: 0.4s;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-links ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
  }

  .nav-links .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .page-content {
    padding: 40px 20px;
  }

  .sub-header {
    padding: 80px 20px 30px;
  }

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: auto;
  }

  .stats-bar {
    gap: 20px;
    font-size: 10px;
  }

  .hero-buttons .btn {
    font-size: 11px;
    padding: 10px 20px;
  }

  .education-table {
    font-size: 12px;
  }

  .education-table th,
  .education-table td {
    padding: 10px 12px;
  }
}

@media(max-width: 480px) {
  .hero {
    padding: 80px 16px 40px;
  }

  .otw-banner {
    font-size: 11px;
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .gallery-item img {
    height: auto;
    max-height: 160px;
  }

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