/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  /* Dark palette */
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #111118;
  --bg-card:       #16161e;
  --bg-card-hover: #1c1c28;

  /* Accent */
  --accent:        #64ffda;
  --accent-dim:    rgba(100, 255, 218, 0.12);
  --accent-muted:  #3ad8b5;

  /* Text */
  --text-primary:   #e6e6ef;
  --text-secondary: #8892b0;
  --text-muted:     #5a6380;

  /* Borders */
  --border:        #1e1e2e;
  --border-hover:  #2d2d44;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --nav-height: 72px;
  --section-py: 120px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition:      0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  overflow: hidden;
}

/* Subtle grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.35s forwards;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.5s forwards;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.65s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

/* Terminal */
.hero-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.95s forwards;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.prompt {
  color: var(--accent);
}

.cmd {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-secondary);
  margin-top: 8px;
}

.terminal-output div {
  white-space: pre;
  line-height: 1.7;
}

.cursor {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40%  { transform: translateX(-50%) translateY(-10px); }
  60%  { transform: translateX(-50%) translateY(-5px); }
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: var(--section-py) 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.title-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-right: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--accent);
}

.skills-group {
  margin-top: 20px;
}

.skills-group-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--accent-dim);
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(100, 255, 218, 0.08);
  transition: all var(--transition-fast);
}

.skills-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  filter: grayscale(20%) contrast(1.05);
  transition: all var(--transition);
}

.image-wrapper:hover img {
  filter: none;
  border-color: var(--accent);
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 12px;
  z-index: -1;
  transition: var(--transition);
}

.image-wrapper:hover::after {
  top: 10px;
  left: 10px;
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-primary);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(100, 255, 218, 0.3);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

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

.timeline-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-company {
  color: var(--accent);
  font-weight: 500;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.timeline-location i {
  color: var(--accent);
  margin-right: 6px;
  font-size: 0.8rem;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

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

.timeline-details li::before {
  content: '▹';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* Achievements */
.achievements {
  margin-top: 60px;
}

.achievements-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.achievements-title i {
  color: var(--accent);
  margin-right: 10px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
}

.achievement-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.achievement-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.achievement-item strong {
  font-size: 0.92rem;
  display: block;
  margin-bottom: 2px;
}

.achievement-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   WORK & WRITING — UNIFIED GRID
   ============================================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

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

.work-card {
  flex: none;
  transition: all var(--transition), opacity 0.3s ease, transform 0.3s ease;
}

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

/* Type badge */
.card-type-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.project-badge {
  background: rgba(100, 255, 218, 0.1);
  color: var(--accent);
  border: 1px solid rgba(100, 255, 218, 0.15);
}

.article-badge {
  background: rgba(168, 130, 255, 0.1);
  color: #a882ff;
  border: 1px solid rgba(168, 130, 255, 0.15);
}

/* Card header tweaks for unified cards */
.work-card .card-header {
  margin-bottom: 0;
  margin-top: -4px;
}

.work-card .card-date {
  margin-bottom: 10px;
}

/* ============================================================
   CARD SCROLLER (kept for potential future use)
   ============================================================ */
.projects-scroller {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
}

.cards-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cards-track::-webkit-scrollbar {
  display: none;
}

.scroller-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.scroller-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.scroller-btn-left  { left: 0; }
.scroller-btn-right { right: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

/* Project Card specifics */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 2rem;
  color: var(--accent);
}

.card-links {
  display: flex;
  gap: 14px;
}

.card-links a {
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.card-links a:hover {
  color: var(--accent);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.card:hover .card-title {
  color: var(--accent);
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-muted);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Blog Card specifics */
.blog-card {
  cursor: pointer;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-read-more {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition);
}

.card-read-more:hover {
  gap: 12px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
  text-align: center;
  max-width: 600px;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  margin-top: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
}

.social-links a {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* ============================================================
   CARD PREVIEW IMAGE
   ============================================================ */
.card-preview {
  position: relative;
  margin: 12px 0 16px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.card-preview:hover {
  border-color: var(--accent);
}

.card-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}

.card-preview:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.card-preview-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(10, 10, 15, 0.8);
  padding: 3px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-preview:hover .card-preview-label {
  opacity: 1;
}

/* Featured card - spans full width on larger grids */
.featured-card {
  border-color: rgba(100, 255, 218, 0.15);
}

/* ============================================================
   IMAGE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
}

.modal-gallery img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.modal-gallery img.active {
  display: block;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.modal-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer strong {
  color: var(--text-secondary);
}

.footer-small {
  margin-top: 6px;
  font-size: 0.75rem;
}

/* ============================================================
   SCROLL REVEAL (JS adds .revealed)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .image-wrapper {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 80px;
    --nav-height: 64px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 48px 32px;
    gap: 28px;
    border-left: 1px solid var(--border);
    transition: right var(--transition);
  }

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

  .nav-toggle {
    display: flex;
  }

  .card {
    flex: 0 0 290px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

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

  .scroller-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-terminal {
    max-width: 100%;
  }

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