/* =========================================================
   ARUNKUMAR T — PORTFOLIO
   Design concept: an IDE / code-editor world.
   Palette: ink-navy surface, mint-cyan "cursor" accent,
   coffee-amber "Java" accent for calls to action.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (code, labels)
   ========================================================= */

:root {
  /* ---- color tokens ---- */
  --bg: #0A0D13;
  --bg-elevated: #10141C;
  --surface: #161B26;
  --surface-hover: #1C2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #EDEFF4;
  --text-secondary: #9BA3B7;
  --text-muted: #616B80;

  --accent-cyan: #5FE1C9;
  --accent-cyan-dim: rgba(95, 225, 201, 0.14);
  --accent-amber: #F2A93B;
  --accent-amber-dim: rgba(242, 169, 59, 0.14);
  --accent-blue: #7C93FF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 30px 60px -20px rgba(0, 0, 0, 0.65);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max-width: 1180px;
  --nav-height: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
    
}
* {
    box-sizing: border-box;
}

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

::selection { background: var(--accent-cyan); color: #06110E; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(10, 13, 19, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-bracket { color: var(--accent-cyan); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

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

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
}

.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}
.glow-a { background: var(--accent-cyan); top: -120px; left: -100px; }
.glow-b { background: var(--accent-amber); bottom: -160px; right: -80px; opacity: 0.16; }

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}

/* -- editor window signature element -- */
.editor-window {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  max-width: 820px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  text-align: left;
  overflow: hidden;
}

.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.editor-dots { display: flex; gap: 7px; }
.editor-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.editor-dots span:nth-child(1) { background: #F26B6B; }
.editor-dots span:nth-child(2) { background: #F2C36B; }
.editor-dots span:nth-child(3) { background: #6BF29B; }

.editor-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}

.editor-tabs::-webkit-scrollbar {
  display: none;
}
.editor-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.editor-tab.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.editor-body {
  display: flex;
  padding: 28px 0;
  font-family: var(--font-mono);
}

.editor-gutter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border);
}

.editor-content {
  padding: 0 24px;
  flex: 1;
  min-width: 0;
}

.code-line {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2.15;
}
.code-comment { color: var(--text-muted); font-style: italic; }
.code-keyword { color: var(--accent-blue); }
.code-var { color: var(--accent-cyan); }
.code-indent { padding-left: 24px; color: var(--text-secondary); }

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  line-height: 1.9;
  letter-spacing: -0.01em;
  padding-left: 24px;
}
.hero-name .code-indent {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  padding-left: 0;
  display: block;
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 4px;
}

.type-target { color: var(--text-primary); }
.type-cursor {
  display: inline-block;
  width: 3px;
  background: var(--accent-amber);
  animation: blink 0.9s steps(1) infinite;
  transform: translateY(3px);
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-role {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  padding-left: 24px;
}
.hero-role-text { color: var(--accent-amber); font-weight: 500; }

.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-right: 6px;
}
.status-right { margin-left: auto; }

.hero-summary {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--accent-amber);
  color: #1A1204;
  box-shadow: 0 12px 26px -10px rgba(242, 169, 59, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(242, 169, 59, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent-cyan); transform: translateY(-2px); }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: 130px 0; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  max-width: 780px;
  letter-spacing: -0.01em;
  margin-bottom: 60px;
}

/* reveal-on-scroll (JS toggles .in-view) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  margin-bottom: 90px;
}

.about-copy p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about-copy strong { color: var(--text-primary); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 36px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -6px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-amber);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-org {
  color: var(--accent-cyan);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.timeline-content ul { color: var(--text-secondary); font-size: 0.95rem; }
.timeline-content li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.timeline-content li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--accent-amber);
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  background: var(--surface-hover);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.skill-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.skill-icon svg { width: 22px; height: 22px; }

.skill-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(24px);
}
.project-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card.card-hidden { display: none; }

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-soft);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.06); }

.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 30% 20%, var(--accent-cyan-dim), transparent 60%),
    radial-gradient(circle at 80% 80%, var(--accent-amber-dim), transparent 60%);
  letter-spacing: 0.05em;
}

.project-thumb-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10,13,19,0.72);
  backdrop-filter: blur(6px);
  color: var(--accent-cyan);
  border: 1px solid var(--border-strong);
}

.project-info { padding: 24px; }

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.show-more-wrap { display: flex; justify-content: center; margin-top: 52px; }

/* =========================================================
   MODAL — project details
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-panel { transform: scale(1) translateY(0); }

.modal-close {
  position: sticky;
  top: 18px; left: calc(100% - 56px);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  z-index: 2;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--surface-hover); color: var(--text-primary); }

.modal-body { padding: 8px 44px 44px; margin-top: -38px; }

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.modal-body p { color: var(--text-secondary); margin-bottom: 20px; }

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.modal-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.modal-gallery img:hover { transform: translateY(-3px); border-color: var(--accent-cyan); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4, 5, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  transition: opacity 0.2s ease;
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.14); }

.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-intro {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 50px;
  margin-top: -34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-amber);
  background: var(--surface-hover);
}

.contact-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  margin-bottom: 8px;
}
.contact-icon svg { width: 19px; height: 19px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.contact-value {
  font-size: 0.98rem;
  font-weight: 500;
  word-break: break-word;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-built { font-family: var(--font-mono); font-size: 0.78rem; }

.back-to-top {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.back-to-top:hover { background: var(--surface); color: var(--accent-cyan); transform: translateY(-3px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-gutter { display: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(10,13,19,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 14px 16px; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 90px 0; }
  .container { padding: 0 16px; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .modal-body { padding: 8px 20px 32px; }

  .hero-name { font-size: clamp(1.4rem, 7vw, 2rem); line-height: 1.7; }
  .editor-content { padding: 0 14px; }

  .footer-inner { flex-direction: column; text-align: center; }
   .editor-tab:nth-child(2),
.editor-tab:nth-child(3){
    display:none;
}

.editor-statusbar{
    display:none;
}

.editor-gutter{
    display:none;
}

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

.hero-role{
    font-size:1.2rem;
}

.hero-summary{
    font-size:0.95rem;
    overflow-wrap:anywhere;
    word-break:break-word;
}
   /* Hide extra tabs */
.editor-tab:nth-child(2),
.editor-tab:nth-child(3){
    display:none;
}

/* Hide bottom status bar */
.editor-statusbar{
    display:none;
}

/* Remove line numbers */
.editor-gutter{
    display:none;
}

/* Smaller padding */
.editor-content{
    padding:18px;
}

/* Smaller heading */
.hero-name{
    font-size:1.8rem;
    line-height:1.4;
}

/* Smaller role text */
.hero-role{
    font-size:0.95rem;
}

/* Wrap summary */
.hero-summary{
    font-size:0.95rem;
    line-height:1.8;
    padding:0 10px;
    overflow-wrap:anywhere;
}
}

@media (max-width: 480px) {
  .editor-titlebar { flex-wrap: wrap; gap: 10px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
}
