/* ================================================================
   HORIZON TECHX — style.css
   Futuristic neon-green AI internship portal stylesheet
   ================================================================ */

/* ── CSS CUSTOM PROPERTIES ────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #080808;
  --bg-card:     rgba(12, 12, 12, 0.7);
  --accent:      #00ff88;
  --accent-dim:  rgba(0, 255, 136, 0.12);
  --accent-glow: rgba(0, 255, 136, 0.35);
  --accent-2:    #39ff14;
  --text-primary:   #f0f0f0;
  --text-secondary: #888;
  --text-muted:     #444;
  --border:      rgba(0, 255, 136, 0.15);
  --border-hover:rgba(0, 255, 136, 0.45);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --nav-h: 68px;

  /* Transitions */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none; /* custom cursor active */
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── CUSTOM CURSOR ────────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease), opacity 0.3s;
  mix-blend-mode: screen;
  opacity: 0;
}
#cursor-glow::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(8px);
}

/* ── BACKGROUND CANVAS ───────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── BLOBS ───────────────────────────────────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,255,136,0.18), transparent 70%);
  top: -150px; left: -150px;
  animation-duration: 14s;
}
.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(57,255,20,0.12), transparent 70%);
  bottom: 10%; right: -100px;
  animation-duration: 10s;
  animation-delay: -4s;
}
.blob-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,255,136,0.1), transparent 70%);
  top: 50%; left: 40%;
  animation-duration: 16s;
  animation-delay: -8s;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.08); }
}

/* ── NOISE OVERLAY ───────────────────────────────────────────── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ── UTILITY ─────────────────────────────────────────────────── */
.accent       { color: var(--accent); }
.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, #00ccff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hide-mobile  { display: block; }
a             { text-decoration: none; color: inherit; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8, 8, 8, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 0 30px rgba(0,255,136,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
}
.nav-logo-svg { width: 32px; height: 32px; }
.nav-brand-text { font-family: var(--font-display); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-link {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 1px; background: var(--accent);
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { left: 1rem; right: 1rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  text-align: center;
}
.hero-inner { max-width: 780px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.7s var(--ease) both;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero-heading {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s 0.1s var(--ease) both;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 3rem;
  animation: fadeSlideUp 0.8s 0.2s var(--ease) both;
}

/* Search bar */
.search-wrap {
  display: flex; justify-content: center;
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.8s 0.3s var(--ease) both;
}
.search-box {
  display: flex; align-items: center;
  width: 100%; max-width: 620px;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(12px);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 40px rgba(0,255,136,0.08);
}
.search-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--text-muted);
  margin-right: 10px;
  transition: color 0.3s;
}
.search-box:focus-within .search-icon { color: var(--accent); }

#search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-display); font-size: 0.95rem;
  color: var(--text-primary);
  min-width: 0;
}
#search-input::placeholder { color: var(--text-muted); }

.search-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  border: none; border-radius: 100px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.search-btn svg { width: 16px; height: 16px; }
.search-btn:hover {
  background: var(--accent-2);
  box-shadow: 0 0 20px rgba(0,255,136,0.5);
  transform: scale(1.02);
}
.search-btn:active { transform: scale(0.98); }

/* Suggestion chips */
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  animation: fadeSlideUp 0.8s 0.4s var(--ease) both;
}
.chip {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  animation: chipPulse 3s ease-in-out infinite;
}
.chip:nth-child(2){ animation-delay:-0.4s; }
.chip:nth-child(3){ animation-delay:-0.8s; }
.chip:nth-child(4){ animation-delay:-1.2s; }
.chip:nth-child(5){ animation-delay:-1.6s; }
.chip:nth-child(6){ animation-delay:-2.0s; }
.chip:nth-child(7){ animation-delay:-2.4s; }
.chip:nth-child(8){ animation-delay:-2.8s; }
@keyframes chipPulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(0,255,136,0); }
  50%    { box-shadow: 0 0 12px 2px rgba(0,255,136,0.15); }
}
.chip:hover {
  background: rgba(0,255,136,0.2); border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0,255,136,0.3);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeSlideUp 1s 1s var(--ease) both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-indicator span {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase;
}

/* ── SECTION SHARED STYLES ───────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 0.75rem;
}
.section-sub { color: var(--text-secondary); font-size: 0.95rem; }

/* ── TASK EXPLORER ───────────────────────────────────────────── */
.tasks-section {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 6rem 2rem;
}
.result-meta {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--text-muted); text-align: center;
  margin-bottom: 2.5rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Individual task card */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  animation: fadeSlideUp 0.5s var(--ease) both;
  /* tilt handled by JS */
  transform-style: preserve-3d;
}
.task-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,255,136,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.task-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 32px rgba(0,255,136,0.12), 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-4px) !important;
}
.task-card:hover::before { opacity: 1; }

/* Corner glow line */
.task-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.task-card:hover::after { opacity: 1; }

.card-domain {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 10px;
  margin-bottom: 0.9rem;
}
.card-title {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.6rem; line-height: 1.3;
}
.card-desc {
  font-size: 0.84rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 1.4rem;
}
.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 1.4rem;
}
.card-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); border: 1px solid rgba(255,255,255,0.07);
  padding: 2px 8px; border-radius: 3px;
  background: rgba(255,255,255,0.02);
}

.open-task-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-display); font-size: 0.84rem; font-weight: 600;
  color: var(--accent);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.open-task-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.open-task-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0,255,136,0.25);
}

/* No results */
.no-results {
  text-align: center; padding: 5rem 1rem; color: var(--text-secondary);
}
.no-results svg { width: 56px; height: 56px; margin: 0 auto 1.5rem; display: block; }
.no-results h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-section {
  position: relative; z-index: 2;
  padding: 6rem 2rem;
  background: rgba(0,255,136,0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.about-lead {
  max-width: 620px; margin: 0 auto 3.5rem;
  color: var(--text-secondary); font-size: 1rem; line-height: 1.8;
}

.about-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 1.5rem;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  opacity: 0; transform: translateY(20px);
}
.about-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              border-color 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(0,255,136,0.1);
  transform: translateY(-3px) !important;
}
.about-icon {
  width: 40px; height: 40px; margin-bottom: 1rem;
}
.about-icon svg { width: 100%; height: 100%; }
.about-card h3 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.about-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section {
  position: relative; z-index: 2;
  padding: 6rem 2rem;
}
.contact-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.contact-lead {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 3rem;
}

.contact-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.5rem;
  font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.contact-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-card:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 20px rgba(0,255,136,0.15);
}

.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #000;
  border: none; border-radius: 100px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  padding: 14px 32px;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cta-btn svg { width: 18px; height: 18px; }
.cta-btn:hover {
  background: var(--accent-2);
  box-shadow: 0 0 30px rgba(0,255,136,0.45);
  transform: scale(1.03);
}

/* Ripple effect */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(0,0,0,0.25);
  transform: scale(0); animation: rippleAnim 0.55s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem;
}
.footer-neon-line {
  height: 1px; width: 80px; margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
}

/* ── PDF MODAL ───────────────────────────────────────────────── */
.pdf-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.pdf-modal.open { opacity: 1; pointer-events: all; }

.pdf-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}
.pdf-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 1000px;
  height: calc(100vh - 2rem);
  max-height: 900px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 0 80px rgba(0,255,136,0.08);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease);
}
.pdf-modal.open .pdf-panel { transform: scale(1) translateY(0); }

.pdf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.pdf-header-left { display: flex; align-items: center; gap: 10px; }
.pdf-icon { width: 20px; height: 20px; flex-shrink: 0; }
.pdf-title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdf-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: none;
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pdf-close svg { width: 15px; height: 15px; }
.pdf-close:hover {
  background: rgba(255,80,80,0.15); color: #ff6060;
  border-color: rgba(255,80,80,0.4);
}
.pdf-body {
  flex: 1; position: relative; overflow: hidden;
  background: #111;
}
#pdf-frame {
  width: 100%; height: 100%; border: none;
  display: block;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger card animations */
.task-card:nth-child(1){ animation-delay: 0.05s; }
.task-card:nth-child(2){ animation-delay: 0.10s; }
.task-card:nth-child(3){ animation-delay: 0.15s; }
.task-card:nth-child(4){ animation-delay: 0.20s; }
.task-card:nth-child(5){ animation-delay: 0.25s; }
.task-card:nth-child(6){ animation-delay: 0.30s; }
.task-card:nth-child(7){ animation-delay: 0.35s; }
.task-card:nth-child(8){ animation-delay: 0.40s; }
.task-card:nth-child(9){ animation-delay: 0.45s; }
.task-card:nth-child(n+10){ animation-delay: 0.50s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-glow { display: none; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem 0;
    transform: translateY(-110%); opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 0.9rem 2rem; width: 100%; font-size: 1rem; }
  .nav-link::after { display: none; }

  .hero-heading { font-size: 2.5rem; }
  .hero-sub { font-size: 0.9rem; }
  .hide-mobile { display: none; }

  .search-btn span { display: none; }
  .search-btn { padding: 10px 14px; }

  .chips { gap: 6px; }
  .chip { font-size: 0.72rem; padding: 5px 12px; }

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

  .pdf-panel {
    height: calc(100vh - 1rem);
    border-radius: 14px;
  }

  .contact-links { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .tasks-section, .about-section, .contact-section { padding: 4rem 1rem; }
}
