/* ──────────────────────────────────────────
   CSS Custom Properties
────────────────────────────────────────── */
:root {
  --banana: #FFE135;
  --dark: #0A0A0A;
  --dark-card: #141414;
  --dark-border: #2a2a2a;
  --text: #E0E0E0;
  --glow-sm: 0 0 12px rgba(255, 225, 53, 0.35);
  --glow-md: 0 0 28px rgba(255, 225, 53, 0.3);
  --glow-lg: 0 0 50px rgba(255, 225, 53, 0.2);
}

/* ──────────────────────────────────────────
   Base / Reset
────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: var(--banana);
  color: var(--dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--banana);
  border-radius: 3px;
}

/* ──────────────────────────────────────────
   Navbar — nav-link with full box click area
────────────────────────────────────────── */
.nav-link {
  display: block;
  padding: 8px 14px;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--banana);
  background: rgba(255, 225, 53, 0.06);
}

.nav-link.text-banana {
  color: var(--banana);
}


/* ──────────────────────────────────────────
   Terminal Overlay
────────────────────────────────────────── */
#terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#terminal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#terminal-window {
  width: min(600px, 90vw);
  background: #0f0f0f;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glow-md), 0 40px 80px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--dark-border);
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot.red {
  background: #ff5f57;
}

.term-dot.yellow {
  background: #febc2e;
}

.term-dot.green {
  background: #28c840;
}

.terminal-title {
  margin-left: auto;
}

#terminal-body {
  min-height: 140px;
  padding: 16px;
}

.term-cursor {
  display: inline-block;
  color: var(--banana);
  animation: blink 1s step-end infinite;
  font-weight: bold;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  #terminal-window {
    width: 95vw;
  }

  #terminal-body {
    padding: 10px;
    font-size: 0.60rem;
    /* ~9.6px */
  }

  .terminal-header .terminal-title {
    font-size: 0.65rem;
  }

  .terminal-header {
    padding: 8px 10px;
  }
}

/* ──────────────────────────────────────────
   Custom Cursor
────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--banana);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--banana);
  opacity: 0.6;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

body.custom-cursor * {
  cursor: none !important;
}

.cursor-ring.cursor-hover {
  width: 56px;
  height: 56px;
  opacity: 0.4;
}

.cursor-dot.cursor-hover {
  transform: translate(-50%, -50%) scale(1.8);
  background: var(--banana);
}

/* ──────────────────────────────────────────
   Navbar
────────────────────────────────────────── */
#navbar {
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--dark-border);
  backdrop-filter: blur(12px);
}

.nav-link {
  color: #9ca3af;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--banana);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--banana);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ──────────────────────────────────────────
   Global Three.js Background Canvas
────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* ──────────────────────────────────────────
   Section Layers (over the fixed canvas)
────────────────────────────────────────── */
#page-content {
  position: relative;
  z-index: 1;
}

/* Fully transparent — Three.js shows through completely */
.section-transparent,
.section-overlay,
.section-overlay-dark {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ──────────────────────────────────────────
   Hero
────────────────────────────────────────── */

.hero-content {
  will-change: transform;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  color: var(--banana);
  animation: blink 0.7s step-end infinite;
  margin-left: 1px;
  font-weight: 300;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--banana), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ──────────────────────────────────────────
   Section Labels & Titles
────────────────────────────────────────── */
.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--banana);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 225, 53, 0.5);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.section-title span {
  color: var(--banana);
}

/* ──────────────────────────────────────────
   About
────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--banana);
  color: var(--banana);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.tag:hover {
  background: var(--banana);
  color: var(--dark);
}

.cube-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 360px;
}

#cube-canvas {
  width: 100%;
  height: 100%;
  max-height: 320px;
}

/* ──────────────────────────────────────────
   Skills
────────────────────────────────────────── */
.skill-card {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--banana);
  box-shadow: var(--glow-sm);
}

.skill-card i {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}

.skill-card .skill-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d1d5db;
}

.skill-card .skill-cat {
  font-size: 0.68rem;
  color: #6b7280;
  margin-top: 2px;
  font-family: 'Fira Code', monospace;
}

/* ──────────────────────────────────────────
   Projects
────────────────────────────────────────── */
.filter-btn {
  padding: 6px 18px;
  border: 1px solid var(--dark-border);
  border-radius: 999px;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--banana);
  color: var(--banana);
  background: rgba(255, 225, 53, 0.06);
}

.project-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  /* allow ellipsis on flex children */
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--banana);
  box-shadow: var(--glow-sm);
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  /* ensure it doesn't stretch beyond the card's padding box */
  max-width: 100%;
}

.project-card p {
  font-size: 0.85rem;
  color: #9ca3af;
  flex: 1;
  line-height: 1.6;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.project-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--banana);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 7px;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--dark-border);
  border-top-color: var(--banana);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ──────────────────────────────────────────
   Timeline
────────────────────────────────────────── */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--banana), transparent);
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .timeline-container::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

@media (max-width: 640px) {

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 50px;
    gap: 16px;
  }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--banana);
  border: 3px solid var(--dark);
  box-shadow: var(--glow-sm);
  transform: translateX(-50%);
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }
}

.timeline-card {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px;
  width: calc(50% - 40px);
  transition: border-color 0.3s;
}

.timeline-card:hover {
  border-color: var(--banana);
}

@media (max-width: 640px) {
  .timeline-card {
    width: 100%;
  }
}

.timeline-card .period {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--banana);
  margin-bottom: 4px;
}

.timeline-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.timeline-card .org {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 2px;
}

.timeline-card p {
  font-size: 0.83rem;
  color: #9ca3af;
  margin-top: 8px;
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-tags {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-start;
  }
}

.timeline-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(255, 225, 53, 0.08);
  color: var(--banana);
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
}

/* ──────────────────────────────────────────
   Contact — Social links
────────────────────────────────────────── */
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-link:hover {
  border-color: var(--banana);
  background: rgba(255, 225, 53, 0.04);
  transform: translateX(4px);
}

.social-link i,
.social-link svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  font-size: 1.5rem;
  line-height: 1;
}

.social-link p:first-child {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.social-link p:last-child {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.2;
}

/* ──────────────────────────────────────────
   Contact — Floating label inputs
────────────────────────────────────────── */
.float-field {
  position: relative;
}

.input-field {
  width: 100%;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 22px 16px 8px;
  /* extra top padding to make room for floated label */
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

/* Fix autofill background */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 40px var(--dark-card) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-field::placeholder {
  color: transparent;
  /* hide native placeholder, we use the label */
}

.input-field:focus {
  border-color: var(--banana);
  box-shadow: 0 0 0 3px rgba(255, 225, 53, 0.08);
}

/* Floating label */
.float-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #6b7280;
  pointer-events: none;
  transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
  background: transparent;
  padding: 0 2px;
  line-height: 1;
}

/* For textarea the label should start from the top, not middle */
.float-field:has(textarea) label {
  top: 20px;
  transform: none;
}

/* Float up on focus or when field has content */
.float-field input:focus~label,
.float-field input:not(:placeholder-shown)~label {
  top: 8px;
  transform: none;
  font-size: 0.72rem;
  color: var(--banana);
}

.float-field textarea:focus~label,
.float-field textarea:not(:placeholder-shown)~label {
  top: 6px;
  font-size: 0.72rem;
  color: var(--banana);
}


.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.social-link:hover {
  border-color: var(--banana);
  box-shadow: var(--glow-sm);
  transform: translateX(4px);
}

/* ──────────────────────────────────────────
   GSAP Fade-in initial state
────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

/* ──────────────────────────────────────────
   Glow utility
────────────────────────────────────────── */
.glow-banana {
  text-shadow: 0 0 12px rgba(255, 225, 53, 0.6);
}

/* Custom skill image icons (e.g. Burp Suite) */
.skill-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 4px;
}

/* ──────────────────────────────────────────
   Project tab buttons
────────────────────────────────────────── */
.proj-tabs {
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 0;
}

.proj-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  color: var(--gray-400, #9ca3af);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.proj-tab-btn:hover {
  color: #fff;
  background: rgba(255, 225, 53, 0.05);
}

.proj-tab-btn.active {
  color: var(--banana);
  background: rgba(255, 225, 53, 0.08);
  border-color: var(--dark-border) var(--dark-border) transparent;
  border-bottom-color: #0A0A0A;
  /* same as bg so it 'sits on' the content */
}

/* ──────────────────────────────────────────
   Site preview cards
────────────────────────────────────────── */
.site-preview-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.site-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 225, 53, 0.12);
  border-color: rgba(255, 225, 53, 0.3);
}

/* The iframe is scaled-down to look like a browser thumbnail */
.site-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid var(--dark-border);
}

.site-preview-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  /* transparent overlay so clicks pass-through to the link below */
  pointer-events: none;
}

/* "browser chrome" bar at top */
.site-preview-frame::after {
  content: '● ● ●';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #1a1a1a;
  color: #555;
  font-size: 10px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  letter-spacing: 3px;
  z-index: 3;
  pointer-events: none;
  /* CSS doesn't support display:flex on ::after, use line-height instead */
  line-height: 28px;
}

.site-preview-frame iframe {
  position: absolute;
  top: 28px;
  /* push below the fake browser bar */
  left: 0;
  width: 250%;
  /* render at pseudo-desktop width (2.5x container width) */
  height: calc(250% - 70px);
  /* deduct the 28px fake browser bar scaled (28 * 2.5 = 70) */
  transform: scale(0.4);
  /* shrink to exactly fit the parent container! */
  transform-origin: top left;
  pointer-events: none;
  /* non-interactive thumbnail */
  border: none;
}

.site-preview-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--banana);
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  transition: gap 0.2s;
}

.site-preview-link:hover {
  gap: 10px;
  text-decoration: underline;
}

/* ── Skills — fix dark-by-default icons ─────────────────── */
/* Flask and Three.js are black/dark SVGs — invert to white on dark bg */
[class*="devicon-flask"],
[class*="devicon-threejs"],
[class*="devicon-github"] {
  filter: invert(1) brightness(2);
}

/* Burp Suite img — match devicon sizing and centering */
.skill-img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE  (≤ 768 px)
══════════════════════════════════════════════════════ */

/* ── Navbar ──────────────────────────────────────────── */
@media (max-width: 768px) {

  #navbar.scrolled,
  #mobile-menu {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  /* Bigger tap targets for nav links in mobile menu */
  #mobile-menu a {
    padding: 10px 0;
    font-size: 1rem;
    display: block;
  }
}

/* ── Hero ────────────────────────────────────────────── */
@media (max-width: 640px) {
  #hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  #hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.15;
  }

  #hero .hero-content p {
    font-size: 0.9rem;
  }

  /* Stack CTA buttons vertically */
  #hero .hero-content>div:has(a) {
    flex-direction: column;
    align-items: center;
  }

  #hero .hero-content a {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}

/* ── About ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* 3D cube is not interactive on mobile — hide it */
  .cube-container {
    display: none;
  }

  #about .grid {
    grid-template-columns: 1fr;
  }
}

/* ── Skills grid ─────────────────────────────────────── */
@media (max-width: 640px) {
  #skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .skill-card {
    padding: 14px 10px;
  }

  .skill-card i {
    font-size: 1.8rem;
  }
}

/* ── Projects ────────────────────────────────────────── */
@media (max-width: 640px) {
  #projects-grid {
    grid-template-columns: 1fr;
  }

  #project-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}

/* ── Timeline ────────────────────────────────────────── */
@media (max-width: 768px) {
  .timeline-container::before {
    display: none;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
    padding-left: 0;
    gap: 12px;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-card {
    width: 100%;
    padding: 16px;
  }

  .timeline-tags,
  .timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-start;
  }
}

/* ── Contact ─────────────────────────────────────────── */
@media (max-width: 640px) {
  #contact .grid {
    grid-template-columns: 1fr;
  }

  .social-link {
    padding: 10px 12px;
  }

  .input-field {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ── Section padding ─────────────────────────────────── */
@media (max-width: 640px) {

  #about,
  #skills,
  #projects,
  #timeline,
  #contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

/* ── Safe area (iPhone notch/Dynamic Island) ─────────── */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* ── Disable custom cursor on touch devices ──────────── */
@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ── Glow utility ────────────────────────────────────── */
.glow-banana {
  text-shadow: 0 0 12px rgba(255, 225, 53, 0.6);
}