/* =========================================================
   Avishka Nirmitha Portfolio — styles.css
   Plain CSS equivalent of the React + Tailwind source
   ========================================================= */

/* ---- 1. CSS CUSTOM PROPERTIES ---- */
:root {
  --background:    hsl(222, 47%, 6%);
  --foreground:    hsl(210, 40%, 98%);
  --card:          hsl(222, 47%, 8%);
  --primary:       hsl(218, 86%, 55%);
  --primary-fg:    hsl(210, 40%, 98%);
  --secondary:     hsl(217, 33%, 17%);
  --muted-fg:      hsl(215, 20%, 65%);
  --border:        hsl(217, 33%, 17%);
  --radius:        0.5rem;
  --blue-400:      hsl(213, 93%, 68%);
}

/* ---- 2. BASE RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  font-size: 82%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a  { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; color: inherit; font-family: inherit; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ---- 3. MATERIAL SYMBOLS ---- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
}

/* ---- 4. SHARED CUSTOM COMPONENTS (from index.css) ---- */

.glass-nav {
  background: rgba(16, 22, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: hsl(218 86% 55% / 0.4);
  transform: translateY(-4px);
}

.hero-gradient {
  background: radial-gradient(circle at 70% 30%, hsl(218 86% 55% / 0.15) 0%, transparent 50%);
}

.name-glow {
  text-shadow: 0 0 30px hsl(218 86% 55% / 0.5);
}

.scan-line {
  background: linear-gradient(to bottom, transparent, hsl(218 86% 55% / 0.2), transparent);
  height: 2px;
  width: 100%;
  position: absolute;
  z-index: 20;
}

.exp-badge-glow {
  box-shadow: 0 0 20px hsl(218 86% 55% / 0.4), inset 0 0 10px hsl(218 86% 55% / 0.2);
}

.font-signature {
  font-family: 'Dancing Script', cursive;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- 5. PAGE LAYOUT ---- */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding-top: 4rem; /* offset for fixed header (mobile) */
  position: relative;
}

/* ---- 6. HEADER ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--foreground);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.nav-link:hover       { color: var(--primary); }

.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.linkedin-btn-header {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-fg);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s;
  box-shadow: 0 4px 14px hsl(218 86% 55% / 0.3);
}

.linkedin-btn-header:hover { background-color: hsl(218 86% 60%); }

.linkedin-btn-header svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hamburger-btn {
  padding: 0.5rem;
  color: var(--foreground);
  transition: color 0.2s;
  line-height: 0;
}

.hamburger-btn:hover { color: var(--primary); }

/* ---- 7. MOBILE DRAWER ---- */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open {
  pointer-events: all;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--background);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-title {
  font-weight: 700;
  color: var(--foreground);
  font-size: 1rem;
}

.drawer-close-btn {
  padding: 0.25rem 0.5rem;
  color: var(--muted-fg);
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.drawer-close-btn:hover { color: var(--foreground); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-link {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: var(--muted-fg);
  transition: color 0.2s, background-color 0.2s;
}

.drawer-link:hover       { color: var(--primary); background-color: hsl(218 86% 55% / 0.05); }
.drawer-link.active      { color: var(--primary); background-color: hsl(218 86% 55% / 0.1); }

.drawer-contact-btn {
  display: block;
  margin-top: 1rem;
  background-color: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s;
  box-shadow: 0 4px 14px hsl(218 86% 55% / 0.3);
}

.drawer-contact-btn:hover { background-color: hsl(218 86% 60%); }

/* ---- 8. HERO SECTION ---- */

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Left column */
.hero-left {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.hero-heading-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: var(--foreground);
}

.hero-name .name-gradient {
  background: linear-gradient(to right, var(--primary), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.exp-badge {
  display: none; /* revealed at sm breakpoint */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  flex-shrink: 0;
  border-radius: 1.5rem;
  border: 1px solid hsl(218 86% 55% / 0.4);
  background-color: hsl(222 47% 6% / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 0.5rem;
}

.exp-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.exp-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(218 86% 55% / 0.8);
  font-family: monospace;
  font-weight: 700;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.25;
}

.hero-tagline {
  color: var(--muted-fg);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  text-align: left;
  max-width: fit-content;
  margin: 0 auto;
}

.hero-description {
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 36rem;
  line-height: 1.625;
  margin: 0 auto;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  min-width: 160px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  height: 3rem;
  padding: 0 1.5rem;
  background-color: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 0 30px hsl(218 86% 55% / 0.3);
  transition: transform 0.2s;
}

.btn-primary:hover { transform: scale(1.05); }

.btn-primary .material-symbols-outlined { font-size: 1.25rem; }

.btn-secondary {
  display: inline-flex;
  min-width: 160px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  height: 3rem;
  padding: 0 1.5rem;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s;
}

.btn-secondary:hover { background-color: hsl(217 33% 22%); }

.btn-secondary svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Skill badges */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(222 47% 6% / 0.5);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.skill-badge .material-symbols-outlined {
  color: var(--primary);
  font-size: 1rem;
}

/* ---- 9. HERO VISUAL BOX (right column) ---- */

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
}

.hero-glow-bg {
  position: absolute;
  inset: 0;
  background-color: hsl(218 86% 55% / 0.2);
  filter: blur(120px);
  border-radius: 9999px;
  pointer-events: none;
}

.hero-visual-box {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: hsl(217 33% 17% / 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
}

.visual-texture {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  z-index: 20;
  pointer-events: none;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

/* Corner bracket decorations */
.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 2rem;
  height: 2rem;
}

.corner-tl { top: 1rem;    left: 1rem;
  border-top: 2px solid hsl(218 86% 55% / 0.6);
  border-left: 2px solid hsl(218 86% 55% / 0.6); }

.corner-tr { top: 1rem;    right: 1rem;
  border-top: 2px solid hsl(218 86% 55% / 0.6);
  border-right: 2px solid hsl(218 86% 55% / 0.6); }

.corner-bl { bottom: 1rem; left: 1rem;
  border-bottom: 2px solid hsl(218 86% 55% / 0.6);
  border-left: 2px solid hsl(218 86% 55% / 0.6); }

.corner-br { bottom: 1rem; right: 1rem;
  border-bottom: 2px solid hsl(218 86% 55% / 0.6);
  border-right: 2px solid hsl(218 86% 55% / 0.6); }

.scan-line-1 { top: 30%; opacity: 0.4; }
.scan-line-2 { top: 60%; opacity: 0.2; }

/* Terminal text */
.terminal-tl {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.terminal-tl p {
  font-size: 10px;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.terminal-tl p:first-child {
  font-weight: 700;
  color: var(--primary);
  background-color: hsl(222 47% 6% / 0.4);
  padding: 0 0.25rem;
  display: inline-block;
}

.terminal-tl p:nth-child(2) { color: hsl(218 86% 55% / 0.8); }
.terminal-tl p:nth-child(3) { color: hsl(218 86% 55% / 0.6); }

.terminal-br {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.terminal-br p {
  font-size: 10px;
  font-family: monospace;
  text-transform: uppercase;
  color: hsl(218 86% 55% / 0.8);
  line-height: 1.4;
}

/* Concentric decorative circles */
.circle-inner {
  position: absolute;
  inset: 0;
  border: 1px solid hsl(218 86% 55% / 0.1);
  border-radius: 9999px;
  transform: scale(0.8);
  opacity: 0.2;
}

.circle-outer {
  position: absolute;
  inset: 0;
  border: 1px solid hsl(218 86% 55% / 0.05);
  border-radius: 9999px;
  transform: scale(1.1);
  opacity: 0.1;
}

.visual-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(222 47% 6% / 0.8), transparent, hsl(218 86% 55% / 0.05));
  z-index: 10;
}

/* Active status badge */
.active-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background-color: hsl(222 47% 6% / 0.8);
  border: 1px solid hsl(218 86% 55% / 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 20px hsl(218 86% 55% / 0.3);
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 40;
  white-space: nowrap;
}

.active-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  flex-shrink: 0;
}

/* ---- 10. TIMELINE SECTION ---- */

.timeline-section {
  position: relative;
  width: 100%;
  padding: 4rem 0;
}

.timeline-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.timeline-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.section-subtitle {
  color: var(--muted-fg);
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.timeline-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.timeline-btn:hover:not(:disabled) {
  background-color: hsl(218 86% 55% / 0.2);
  border-color: hsl(218 86% 55% / 0.4);
}

.timeline-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.timeline-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.timeline-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.timeline-track-inner {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.timeline-line-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 3.625rem;
  height: 1px;
  background-color: var(--border);
}

.timeline-line-progress {
  position: absolute;
  left: 0;
  top: 3.625rem;
  height: 1px;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--blue-400));
  transition: width 0.5s ease;
  box-shadow: 0 0 8px hsl(218 86% 55% / 0.6);
}

.timeline-track {
  display: grid;
  /* grid-template-columns set by JS */
}

.timeline-year-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.timeline-dot {
  position: relative;
  z-index: 10;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid var(--border);
  background-color: var(--background);
  transition: all 0.3s;
}

.timeline-dot.past {
  background-color: hsl(218 86% 55% / 0.6);
  border-color: hsl(218 86% 55% / 0.6);
}

.timeline-dot.active {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.25);
  box-shadow: 0 0 20px hsl(218 86% 55% / 0.7);
}

.timeline-year-btn:hover .timeline-dot:not(.active):not(.past) {
  border-color: hsl(218 86% 55% / 0.6);
}

.timeline-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--primary);
  opacity: 0.4;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.timeline-year-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.timeline-year-label.active { color: var(--primary); }

.timeline-year-btn:hover .timeline-year-label:not(.active) {
  color: var(--foreground);
}

.timeline-card-container {
  margin-top: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.timeline-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.timeline-card-year {
  color: var(--primary);
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.timeline-card-desc {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.625;
  list-style: disc;
  list-style-position: inside;
  text-align: left;
  display: inline-block;
}

.timeline-card-desc li + li { margin-top: 0.25rem; }

/* ---- 11. FOOTER ---- */

.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  background-color: hsl(222 47% 6% / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand { display: flex; flex-direction: column; }

.footer-name {
  font-size: 2.25rem;
  color: var(--foreground);
  letter-spacing: 0.025em;
}

.footer-role {
  font-size: 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--muted-fg);
  text-transform: uppercase;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.footer-tagline {
  font-size: 10px;
  font-family: monospace;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.625;
}

/* ---- 12. PROJECTS PAGE ---- */

.projects-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.projects-heading {
  margin-bottom: 2.5rem;
}

.projects-heading h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--foreground);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.projects-heading p {
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 48rem;
  line-height: 1.625;
}

/* Filter tabs */
.projects-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.75rem 1rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted-fg);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.filter-tab:hover {
  color: var(--primary);
  border-bottom-color: hsl(218 86% 55% / 0.5);
}

.filter-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Project list */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Project card */
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: border-color 0.3s;
  min-height: 480px;
}

.project-card:hover { border-color: hsl(218 86% 55% / 0.4); }

.project-card.hidden { display: none; }

.project-card-image {
  position: relative;
  overflow: hidden;
  background-color: var(--background);
  min-height: 300px;
}

.project-card-image-inner {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
}

.project-card:hover .project-card-image-inner {
  transform: scale(1.1);
}

.project-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(222 47% 6% / 0.2), transparent);
  z-index: 10;
  pointer-events: none;
}

.project-status-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--primary-fg);
}

.status-ongoing  { background-color: hsl(218, 86%, 55%); }
.status-finished { background-color: hsl(142, 70%, 40%); }

.project-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-tag.featured {
  background-color: hsl(218 86% 55% / 0.1);
  border: 1px solid hsl(218 86% 55% / 0.2);
  color: var(--primary);
}

.project-tag.standard {
  background-color: var(--secondary);
  color: var(--muted-fg);
}

.project-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.project-card-desc {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.625;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-view-project {
  display: inline-flex;
  min-width: 160px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  height: 3rem;
  padding: 0 1.5rem;
  background-color: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 14px hsl(218 86% 55% / 0.2);
  transition: background-color 0.2s;
}

.btn-view-project:hover { background-color: hsl(218, 86%, 60%); }

.project-no-image {
  min-height: 300px;
  background: linear-gradient(135deg, hsl(217, 33%, 12%), hsl(222, 47%, 10%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(218 86% 55% / 0.3);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- 13. PROJECT DETAIL PAGES ---- */

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--primary); }

.back-link .material-symbols-outlined { font-size: 1.125rem; }

.detail-header { margin-bottom: 2.5rem; }

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-category {
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background-color: hsl(218 86% 55% / 0.1);
  border: 1px solid hsl(218 86% 55% / 0.2);
  color: var(--primary);
}

.badge-status {
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-fg);
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--foreground);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.detail-description {
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 48rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.detail-meta-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 1rem;
}

/* Gallery */
.gallery-section { margin-bottom: 3rem; }

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card);
  margin-bottom: 0.75rem;
}

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(217, 33%, 12%), hsl(222, 47%, 10%));
  color: hsl(218 86% 55% / 0.3);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
  cursor: pointer;
  padding: 0;
  background: none;
}

.gallery-thumb:hover { border-color: hsl(218 86% 55% / 0.5); }
.gallery-thumb.active { border-color: var(--primary); }

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

/* LinkedIn / video sections */
.detail-section { margin-bottom: 3rem; }

.detail-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.linkedin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.linkedin-card {
  display: flex;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1rem;
}

.linkedin-card iframe { max-width: 100%; border-radius: 0.5rem; }

/* Overview + sidebar grid */
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.detail-overview-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.detail-long-desc {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.detail-features-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.625;
}

.feature-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Tech stack sidebar */
.tech-sidebar-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}

.tech-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-sidebar-header .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.25rem;
}

.tech-sidebar-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.tech-list { display: flex; flex-direction: column; }

.tech-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.tech-item:last-child { border-bottom: none; padding-bottom: 0; }
.tech-item:first-child { padding-top: 0; }

.tech-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.tech-purpose {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.btn-github:hover {
  border-color: hsl(218 86% 55% / 0.5);
  color: var(--primary);
}

/* ---- 14. ANIMATIONS ---- */

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

@keyframes blink {
  from, to { border-color: transparent; }
  50%       { border-color: var(--primary); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

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

.animate-bounce-subtle { animation: bounce-subtle 2s infinite; }
.animate-pulse         { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---- 13. RESPONSIVE BREAKPOINTS ---- */

/* sm ≥ 640px */
@media (min-width: 640px) {
  .exp-badge { display: flex; }

  .hero-name-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
  }

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

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .page-main        { padding-top: 5rem; }

  .header-inner     { height: 5rem; padding: 0 1.5rem; }
  .header-logo      { font-size: 1.25rem; }
  .desktop-nav      { display: flex; }
  .linkedin-btn-header { display: flex; }
  .hamburger-btn    { display: none; }

  .hero-container   { padding: 5rem 1.5rem; }
  .hero-name        { font-size: 6rem; }
  .hero-tagline     { font-size: 1.5rem; }
  .hero-description { font-size: 1.125rem; }

  .btn-primary,
  .btn-secondary    { height: 3.5rem; font-size: 1rem; padding: 0 2rem; }

  .skill-badge      { font-size: 0.875rem; padding: 0.5rem 1rem; gap: 0.75rem; }
  .skill-badge .material-symbols-outlined { font-size: 1.125rem; }
  .skills-grid      { gap: 0.75rem; }

  .timeline-section  { padding: 6rem 0; }
  .timeline-heading  { margin-bottom: 4rem; }
  .section-title     { font-size: 3.75rem; }
  .section-subtitle  { font-size: 1rem; }

  .timeline-btn      { width: 3rem; height: 3rem; }
  .timeline-controls { gap: 1rem; }
  .timeline-dot      { width: 1.5rem; height: 1.5rem; }
  .timeline-line-bg,
  .timeline-line-progress { top: 3.75rem; }
  .timeline-year-label    { font-size: 0.875rem; }
  .timeline-card          { padding: 2rem; }
  .timeline-card-title    { font-size: 1.5rem; }
  .timeline-card-desc     { font-size: 1rem; }

  .footer-inner  { flex-direction: row; align-items: flex-end; }
  .footer-right  { width: auto; align-items: flex-end; }
  .footer-tagline { text-align: right; }

  /* projects page */
  .projects-page     { padding: 5rem 1.5rem 8rem; }
  .projects-heading h1 { font-size: 3.75rem; }
  .projects-heading p  { font-size: 1.25rem; }
  .projects-filters  { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .filter-tab        { padding: 1rem 2rem; font-size: 0.75rem; }
  .project-card-body { padding: 3.5rem; }
  .project-card-title { font-size: 2rem; }
  .btn-view-project  { height: 3.5rem; font-size: 1rem; padding: 0 2rem; }

  /* project detail pages */
  .detail-page           { padding: 4rem 1.5rem 8rem; }
  .detail-title          { font-size: 3rem; }
  .detail-description    { font-size: 1.25rem; }
  .detail-section-title  { font-size: 2rem; }
  .detail-overview-title { font-size: 2rem; }
  .gallery-thumbs        { grid-template-columns: repeat(4, 1fr); }
  .linkedin-grid         { grid-template-columns: 1fr 1fr; }
  .detail-long-desc      { font-size: 1.125rem; }
}

/* lg ≥ 1024px */
@media (min-width: 1024px) {
  .hero-container { grid-template-columns: 1fr 1fr; }
  .hero-left      { text-align: left; gap: 2rem; }
  .hero-tagline   { margin: 0; }
  .hero-description { margin: 0; }
  .hero-cta       { justify-content: flex-start; }
  .skills-grid    { justify-content: flex-start; margin: 0; }
  .hero-right     { justify-content: flex-end; }

  /* projects page */
  .project-card            { flex-direction: row; }
  .project-card-image      { width: 55%; min-height: 480px; }
  .project-card-body       { width: 45%; }
  .project-card-desc       { font-size: 1.125rem; }

  /* project detail pages */
  .detail-title            { font-size: 3.75rem; }
  .detail-content-grid     { grid-template-columns: 2fr 1fr; }
  .tech-sidebar-card       { position: sticky; top: 6rem; }
}

/* =============================================
   15. AWARDS PAGE
   ============================================= */

.awards-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  position: relative;
  z-index: 10;
}

.awards-heading {
  margin-bottom: 3rem;
}

.awards-heading h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.awards-heading p {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 42rem;
}

/* Layout toggle */
.layout-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.layout-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.layout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  color: var(--muted-fg);
  transition: background-color 0.2s, color 0.2s;
}

.layout-btn .material-symbols-outlined { font-size: 1.125rem; }

.layout-btn.active { background-color: var(--primary); color: #fff; }
.layout-btn:not(.active):hover { color: var(--foreground); }

/* Grid layout */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.award-card {
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.award-card:hover { border-color: hsl(218 86% 55% / 0.3); }

.award-card-image {
  position: relative;
  width: 100%;
  height: 22rem;
  overflow: hidden;
}

.award-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.award-card:hover .award-card-image img { transform: scale(1.05); }

.award-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(222 47% 8% / 0.8), transparent);
}

.award-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.award-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.award-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: hsl(218 86% 55% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-icon-wrap .material-symbols-outlined { color: var(--primary); font-size: 1.5rem; }

.award-icon-wrap.small {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.award-icon-wrap.small .material-symbols-outlined { font-size: 1.25rem; }

.award-date-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--muted-fg);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.award-date-badge .material-symbols-outlined { font-size: 0.875rem; }

.award-card-text { display: flex; flex-direction: column; gap: 0.25rem; }

.award-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.2s;
}

.award-card:hover .award-title,
.award-row-card:hover .award-title { color: var(--primary); }

.award-org {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(218 86% 55% / 0.8);
}

.award-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.625;
  flex-grow: 1;
}

.btn-view-moment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: hsl(213, 93%, 50%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px 0 hsl(213 93% 50% / 0.39);
}

.btn-view-moment:hover {
  background-color: hsl(213, 93%, 42%);
  box-shadow: 0 6px 20px hsl(213 93% 50% / 0.23);
  transform: translateY(-1px);
}

.btn-view-moment .material-symbols-outlined { font-size: 1.125rem; }

.btn-view-moment.row-btn { width: fit-content; padding: 0.625rem 1.25rem; }

/* Row layout */
.awards-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.award-row-card {
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.award-row-card:hover { border-color: hsl(218 86% 55% / 0.3); }

.award-row-image {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  flex-shrink: 0;
}

.award-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.award-row-card:hover .award-row-image img { transform: scale(1.05); }

.award-row-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, hsl(222 47% 8% / 0.6));
}

.award-row-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.award-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.award-row-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =============================================
   16. AWARD MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: hsl(222 47% 6% / 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px hsl(0 0% 0% / 0.5);
  transform: scale(0.95);
  transition: transform 0.25s;
}

.modal-overlay.open .modal-panel { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: hsl(222 47% 8% / 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.modal-header-info { flex-grow: 1; }

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: var(--muted-fg);
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover { background-color: var(--secondary); color: var(--foreground); }
.modal-close-btn .material-symbols-outlined { font-size: 1.5rem; }

.modal-body { padding: 1.25rem 1.5rem 1.5rem; }

.modal-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #000;
}

.modal-img { width: 100%; height: 100%; object-fit: contain; }

/* Awards responsive */
@media (min-width: 768px) {
  .awards-page        { padding: 4rem 1.5rem 8rem; }
  .awards-heading h1  { font-size: 4.5rem; }
  .awards-heading p   { font-size: 1.125rem; }
  .awards-grid        { grid-template-columns: repeat(2, 1fr); }
  .modal-title        { font-size: 1.5rem; }

  .award-row-card     { flex-direction: row; height: 14rem; }
  .award-row-image    { width: 16rem; height: 100%; }
}

@media (min-width: 1024px) {
  .awards-heading h1  { font-size: 5.5rem; }
}

/* =============================================
   17. CONTACT PAGE
   ============================================= */

.contact-page {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
  position: relative;
  z-index: 10;
}

.contact-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Terminal widget */
.contact-terminal {
  width: 100%;
  max-width: 28rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--card);
  border: 1px solid hsl(218 86% 55% / 0.3);
  box-shadow: 0 25px 50px -12px hsl(0 0% 0% / 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 0.375rem; }

.terminal-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}

.terminal-dot.red   { background-color: hsl(0 84% 60% / 0.5); }
.terminal-dot.amber { background-color: hsl(43 96% 56% / 0.5); }
.terminal-dot.green { background-color: hsl(142 71% 45% / 0.5); }

.terminal-label {
  font-size: 0.625rem;
  font-family: monospace;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1rem;
  min-height: 6.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
}

@keyframes term-appear {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.typing-line-1 { color: var(--blue-400); opacity: 0; animation: term-appear 0.4s ease forwards 0.4s; }
.typing-line-2 { color: var(--blue-400); opacity: 0; animation: term-appear 0.4s ease forwards 1.2s; }
.typing-line-3 { color: hsl(142, 71%, 55%); opacity: 0; animation: term-appear 0.4s ease forwards 2s; }

/* Status ping badge */
.contact-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: hsl(218 86% 55% / 0.1);
  border: 1px solid hsl(218 86% 55% / 0.2);
  margin-bottom: 1rem;
}

.badge-ping-wrap {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.badge-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--primary);
  opacity: 0.75;
}

.badge-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
}

/* Heading */
.contact-heading {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-subtext {
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 42rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* Contact cards */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 56rem;
}

.contact-card {
  display: block;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  border-color: hsl(218 86% 55% / 0.2);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  border-color: hsl(218 86% 55% / 0.5);
  background-color: hsl(218 86% 55% / 0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -15px hsl(213 93% 50% / 0.3);
}

.contact-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contact-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.contact-card:hover .contact-card-icon {
  background-color: hsl(218 86% 55% / 0.2);
  border-color: hsl(218 86% 55% / 0.3);
}

.contact-card-icon .material-symbols-outlined {
  font-size: 1.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.contact-card:hover .contact-card-icon .material-symbols-outlined { color: var(--primary); }

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.contact-card:hover .contact-card-label { color: var(--foreground); }

.contact-card-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contact responsive */
@media (min-width: 768px) {
  .contact-heading { font-size: 3.75rem; }
  .contact-subtext  { font-size: 1.125rem; }
  .contact-card     { width: calc(50% - 0.75rem); }
  .terminal-line    { font-size: 0.875rem; }
}

@media (min-width: 1024px) {
  .contact-heading { font-size: 4.5rem; }
}
