/* ==========================================================================
   Tech IT Easy With Akash — Design System
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Color tokens */
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --bg-alt: #050506;
  --bg-card: #131316;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-secondary: #a3a3ad;
  --text-tertiary: #6d6d76;
  --accent: #4d6fff;
  --accent-hover: #6d8bff;
  --accent-soft: rgba(77, 111, 255, 0.12);
  --accent-border: rgba(77, 111, 255, 0.35);
  --yt-red: #ed1c24;
  --yt-red-hover: #ff3b3b;

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / layout */
  --container-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --section-pad: clamp(64px, 9vw, 128px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, .h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h2, .h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3, .h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p { color: var(--text-secondary); }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.55;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.mr {
  font-family: "Noto Sans Devanagari", var(--font-sans);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: var(--section-pad) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  gap: 64px;
  align-items: center;
  grid-template-columns: var(--split-ratio, 1fr 1fr);
}

/* subtle technical grid background */
.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent-border); background: var(--accent-soft); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent-hover); }
.btn-yt {
  background: var(--yt-red);
  color: #fff;
}
.btn-yt:hover { background: var(--yt-red-hover); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  background: var(--bg-elevated);
}
.card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 100px;
  display: inline-block;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
a.tag:hover { color: var(--accent-hover); border-color: var(--accent-border); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease);
}
.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s var(--ease);
}
.nav.is-compact .nav-inner { padding-top: 12px; padding-bottom: 12px; }
.nav-logo {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent-hover); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 100px 28px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 1.15rem; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a, .footer-col li {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent-hover); }
.footer-col a.yt-link:hover { color: var(--yt-red-hover); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.footer-social { display: flex; gap: 16px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.form-note.is-visible { opacity: 1; color: var(--accent-hover); }

/* ---------- Misc components ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  white-space: nowrap;
}
.pill svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--accent-hover);
}
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.portrait-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.gallery-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease);
}
.gallery-photo:hover { transform: scale(1.02); }
.placeholder-photo {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
}
.stat { text-align: left; }
.stat .num { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
.stat .label { color: var(--text-tertiary); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Learning journey ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.journey-step {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-elevated);
}
.journey-step.is-accent { border-color: var(--accent-border); color: var(--accent-hover); background: var(--accent-soft); }
.journey-arrow {
  color: var(--text-tertiary);
  margin: 0 10px;
  flex-shrink: 0;
}
.info-block h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  font-weight: 600;
}
.info-block p, .info-block ul { margin-top: 12px; }
.info-block ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.info-block ul li:last-child { border-bottom: none; }

/* ---------- Video cards ---------- */
.video-card { display: block; }
.video-card .thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated); }
.video-card.is-short .thumb-wrap { aspect-ratio: 9/16; }
.video-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.video-card:hover .thumb-wrap img { transform: scale(1.04); }
.video-card .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
.video-card .play-badge svg {
  width: 44px;
  height: 44px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.video-card:hover .play-badge svg { opacity: 1; }
.video-card .video-title {
  padding: 16px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.short-card { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 9/16; display: block; }
.short-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.short-card:hover img { transform: scale(1.05); }
.short-card .short-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.playlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.playlist-card svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-tertiary); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.playlist-card:hover svg { color: var(--accent-hover); transform: translateX(3px); }

/* ---------- YouTube brand badge ---------- */
.logo-badge {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px -20px rgba(237, 28, 36, 0.25);
}
.logo-badge img { width: 100%; height: 100%; display: block; }

/* ---------- AI page accent ---------- */
.ai-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px circle at 82% 12%, rgba(77,111,255,0.16), transparent 70%),
    radial-gradient(360px circle at 8% 60%, rgba(124,92,255,0.10), transparent 70%);
  pointer-events: none;
}
.node-line {
  position: absolute;
  border-top: 1px dashed var(--border-strong);
  opacity: 0.6;
}

/* ---------- Resource library ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--accent-border); color: var(--text); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.resource-search {
  width: 100%;
  max-width: 420px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
}
.resource-search::placeholder { color: var(--text-tertiary); }
.resource-search:focus { outline: none; border-color: var(--accent); }
.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card .meta { display: flex; gap: 8px; margin-bottom: 14px; }
.resource-card .difficulty {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.resource-card p { flex-grow: 1; margin: 10px 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .journey { flex-direction: column; align-items: flex-start; }
  .journey-arrow { transform: rotate(90deg); margin: 6px 0 6px 18px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
