/* ===== Design tokens ===== */
:root {
  /* Emerald, Dark Blue & Charcoal Palette */
  --bg: #0A0E14;
  --bg-2: #0F172A;
  --card: #161F30;
  --card-2: #1E293B;
  --card-border: rgba(16, 185, 129, 0.18);
  --line: rgba(16, 185, 129, 0.14);
  --line-2: rgba(16, 185, 129, 0.22);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --muted-2: #64748B;
  
  /* Primary Accent: Vibrant Emerald Green */
  --emerald: #10B981;
  --emerald-hover: #34D399;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.25);
  
  /* Backward-compatible accent alias */
  --red: #10B981;
  --red-2: #34D399;
  
  /* Secondary Accent: Deep Ocean & Midnight Blue */
  --ocean: #0284C7;
  --midnight: #1E3A8A;
  --blue: #0284C7;
  --green: #10B981;
  --amber: #F5B72E;

  /* Typography Structure - STRICTLY UNCHANGED */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', serif;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse 80% 55% at 50% -12%, rgba(2, 132, 199, 0.12), transparent 70%),
    radial-gradient(ellipse 65% 45% at 90% 22%, rgba(16, 185, 129, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 65%, rgba(30, 58, 138, 0.09), transparent 60%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body.modal-open {
  overflow: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.red, .emerald-text { color: var(--emerald); }
.green { color: var(--emerald); }

/* cursor glow */
.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.13), rgba(2, 132, 199, 0.05) 45%, transparent 68%);
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  left: 50%; top: 30%; transition: left 0.35s ease-out, top 0.35s ease-out;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.92), rgba(10, 14, 20, 0));
  backdrop-filter: blur(8px);
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); display: inline-block; box-shadow: 0 0 10px var(--emerald); }
.nav-pill {
  display: flex; gap: 4px; padding: 6px 8px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(22, 31, 48, 0.72); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.nav-pill a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 8px 16px; border-radius: 8px; transition: all 300ms ease;
}
.nav-pill a:hover, .nav-pill a.active { color: var(--text); background: rgba(16, 185, 129, 0.12); }
.nav-pill a.active { color: var(--emerald-hover); }
.menu-btn { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(16, 185, 129, 0.04); }
.menu-btn span { width: 18px; height: 1.5px; background: var(--text); transition: transform 0.3s, background-color 0.3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 150px 0 110px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 20% 0%, rgba(16, 185, 129, 0.18), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 28%, rgba(2, 132, 199, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(30, 58, 138, 0.12), transparent 70%);
}
.hero-watermark {
  position: absolute; left: -2%; top: 280px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(160px, 24vw, 340px);
  color: rgba(16, 185, 129, 0.035); line-height: 1; pointer-events: none; user-select: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hello { font-family: var(--font-serif); font-style: italic; font-size: 30px; color: #cfd0d6; margin-bottom: 4px; }
.hero-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.98; letter-spacing: 0.01em; margin-bottom: 22px;
}
.hero-title .accent { color: var(--emerald); text-shadow: 0 0 50px rgba(16, 185, 129, 0.45); }
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(16, 185, 129, 0.06);
}
.tag-pill .dot { width: 5px; height: 5px; }
.hero-text { color: var(--muted); max-width: 440px; font-size: 15.5px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 999px; transition: all 300ms ease; font-weight: 500;
  gap: 8px;
}
.btn-primary {
  background: var(--emerald); color: #0A0E14; font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.32);
}
.btn-primary:hover {
  background: var(--emerald-hover); transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(16, 185, 129, 0.48);
}
.btn-ghost {
  border: 1px solid var(--line-2); background: rgba(22, 31, 48, 0.5);
  backdrop-filter: blur(8px); color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--emerald); color: var(--emerald-hover); transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #0A0E14; font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.btn-whatsapp:hover {
  background: #34D399; transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}
.btn-icon { width: 16px; height: 16px; shrink: 0; }
.hero-divider { height: 1px; width: 100%; max-width: 440px; background: linear-gradient(90deg, var(--line-2), transparent); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(22, 31, 48, 0.6); backdrop-filter: blur(8px);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 0 15px rgba(16, 185, 129, 0.16); }
.chip b { color: var(--text); font-weight: 600; }
.d { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.d.green, .d.emerald { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.d.red { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.d.blue { background: var(--ocean); box-shadow: 0 0 8px var(--ocean); }
.d.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.hero-photo {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  aspect-ratio: 1 / 1.04; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(16, 185, 129, 0.1);
  transition: transform 0.5s ease;
}
.hero-photo:hover { transform: translateY(-6px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 20%; transition: transform 1.2s ease; }
.hero-photo:hover img { transform: scale(1.04); }
.photo-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 20, 0.88)); }
.philosophy {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-radius: 14px; background: rgba(22, 31, 48, 0.75); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
}
.philosophy .mono { font-size: 9.5px; }
.philosophy p { font-family: var(--font-serif); font-style: italic; font-size: 14.5px; color: #e6e7ea; margin-top: 2px; }
.plus {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  font-size: 12px; background: rgba(16, 185, 129, 0.08); color: var(--emerald); animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Sections ===== */
.section { padding: 110px 0; border-top: 1px solid var(--line); position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow .dot { width: 5px; height: 5px; }
.star { color: var(--emerald); }
.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.03; letter-spacing: 0.015em;
  color: var(--text);
}
.display.big { font-size: clamp(44px, 6vw, 76px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.side-note { max-width: 300px; text-align: right; color: var(--muted); font-size: 13px; }
.side-note.left { text-align: left; margin-top: 22px; max-width: 280px; }
.side-note.wide { max-width: 380px; font-size: 14.5px; }

/* about */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 56px; }
.lead { font-size: 16px; line-height: 1.75; color: #cbd5e1; margin-bottom: 20px; }
.lead strong { color: #fff; font-weight: 600; }
.muted { color: var(--muted); font-size: 14.5px; margin-bottom: 30px; }
.direction-card {
  padding: 28px 32px; border: 1px solid var(--line-2); border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(22, 31, 48, 0.85) 55%);
  backdrop-filter: blur(12px);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.direction-card:hover {
  transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.14);
}
.direction-card h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; color: var(--text); }
.direction-card p { color: var(--muted); font-size: 13.5px; }

/* cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card, .edu-card {
  padding: 30px; border: 1px solid var(--card-border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.9), var(--card));
  backdrop-filter: blur(12px);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease; position: relative; overflow: hidden;
}
.card::before, .edu-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.16), transparent 65%); pointer-events: none;
}
.card:hover, .edu-card:hover {
  transform: translateY(-8px); border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 28px rgba(16, 185, 129, 0.15);
}
.card:hover::before, .edu-card:hover::before { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; position: relative; }
.badge {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald-hover); padding: 5px 10px; background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 4px;
}
.badge.emerald-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-hover);
}
.card h3, .edu-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; position: relative; color: var(--text); }
.card p, .edu-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; position: relative; }
.edu-card p { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.card .tags { padding-top: 22px; border-top: 1px solid var(--line); }
.tags span {
  font-size: 10.5px; color: var(--muted); padding: 6px 11px; border: 1px solid var(--line-2);
  border-radius: 6px; background: rgba(16, 185, 129, 0.04); transition: all 300ms ease;
}
.tags span:hover {
  color: #fff; border-color: var(--emerald); background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* ===== SECTION 03: SELECTED WORK (2 FEATURED CARDS) ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.95), rgba(30, 41, 59, 0.9));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  position: relative;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.18);
}
.project-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background: #0A0E14;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-media > video, .project-card-media > img, .card-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card-media > video,
.project-card:hover .project-card-media > img,
.project-card:hover .card-video-preview {
  transform: scale(1.04);
}
.media-overlay-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.35);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.project-card:hover .media-overlay-badge {
  opacity: 1;
}
.play-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.85);
  color: #0A0E14;
  display: grid;
  place-items: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  transform: scale(0.9);
  transition: transform 300ms ease;
}
.project-card:hover .play-ring {
  transform: scale(1.08);
}
.play-ring svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.project-card-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.status-pill {
  font-size: 10px;
  color: var(--emerald-hover);
  padding: 5px 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card-title {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 6px;
  color: var(--text);
}
.project-card .sub {
  color: var(--muted);
  margin-bottom: 16px;
}
.project-card-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.project-card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.btn-emerald-outline {
  width: 100%;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
  font-weight: 600;
  padding: 13px 20px;
}
.btn-emerald-outline:hover, .project-card:hover .btn-emerald-outline {
  background: var(--emerald);
  color: #0A0E14;
  border-color: var(--emerald);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ===== PAKCHAT CARD PREVIEW ENHANCEMENTS ===== */
.pakchat-card-preview-wrapper {
  position: relative;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, #070B10 75%);
}
.pakchat-card-preview-wrapper .card-video-preview {
  object-position: center 25%;
}
.card-app-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.2);
  z-index: 2;
  transition: transform 300ms ease, border-color 300ms ease;
}
.project-card:hover .card-app-badge {
  transform: translateY(-2px);
  border-color: var(--emerald);
}
.card-app-badge .card-app-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  max-width: 30px;
  border-radius: 7px;
  object-fit: cover !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  display: block;
}
.card-app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.card-app-badge-text .app-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.card-app-badge-text .app-sub {
  font-size: 9px;
  color: var(--emerald-hover);
  font-family: var(--font-mono);
}
.card-screens-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.screen-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  transition: all 250ms ease;
}
.screen-pill img {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  border-radius: 50%;
  object-fit: cover !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: inline-block;
}
.project-card:hover .screen-pill {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--text);
  background: rgba(16, 185, 129, 0.12);
}
.screen-pill-more {
  padding: 4px 11px;
  color: var(--emerald-hover);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
}

/* ===== NO-SCROLL INTERACTIVE MODAL PAGES ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-window {
  width: 100%;
  max-width: 960px;
  max-height: 85vh;
  background: linear-gradient(145deg, #161F30, #1E293B);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(16, 185, 129, 0.16);
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}
.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}
.modal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  max-height: 85vh;
  overflow: hidden;
}
.modal-media-col {
  background: #0A0E14;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(16, 185, 129, 0.16);
  position: relative;
  overflow: hidden;
}
.modal-video-wrapper {
  width: 100%;
  height: 100%;
  max-height: calc(85vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2), 0 20px 40px rgba(0, 0, 0, 0.8);
  background: #05080c;
}
.modal-video {
  width: 100%;
  height: 100%;
  max-height: calc(85vh - 48px);
  object-fit: contain;
  background: #000;
  outline: none;
}
.modal-info-col {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  gap: 14px;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.95), rgba(30, 41, 59, 0.95));
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 250ms ease;
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--emerald);
  color: #0A0E14;
  border-color: var(--emerald);
  transform: rotate(90deg) scale(1.08);
}
.modal-title {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  margin-bottom: 4px;
  color: var(--text);
}
.features-label {
  font-size: 10px;
  color: var(--emerald);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.feat-icon {
  color: var(--emerald);
  font-size: 11px;
  line-height: 1.45;
  flex-shrink: 0;
}
.features-list li strong {
  color: var(--text);
  font-weight: 600;
}
.modal-footer-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 185, 129, 0.14);
}
.modal-tags {
  gap: 6px;
}
.modal-tags span {
  font-size: 9.5px;
  padding: 4px 9px;
}
.btn-modal-action {
  background: var(--emerald);
  color: #0A0E14;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  transition: all 300ms ease;
}
.btn-modal-action:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

/* ===== PAKCHAT STUDIO 2-COLUMN SHOWCASE ===== */
.modal-window-pakchat {
  position: relative;
  max-width: 1100px;
  width: 95vw;
  max-height: 92vh;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  background: rgba(11, 16, 24, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(16, 185, 129, 0.18);
}

.modal-close-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 21, 33, 0.92);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 200ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-close-corner:hover {
  background: var(--emerald);
  color: #0A0E14;
  border-color: var(--emerald);
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.pakchat-mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 6px;
  padding-right: 44px;
}

.modal-app-icon-sm {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.modal-title-sm {
  font-size: 20px;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}

.pakchat-studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 100%;
  max-height: 92vh;
  overflow: hidden;
}

/* Left Column: Device Showcase & Stage */
.pakchat-device-col {
  background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.12) 0%, rgba(6, 10, 15, 0.98) 75%);
  border-right: 1px solid rgba(16, 185, 129, 0.18);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.device-phone-outer {
  position: relative;
  padding: 7px;
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.4), rgba(255, 255, 255, 0.08), rgba(16, 185, 129, 0.15));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.92), 0 0 32px rgba(16, 185, 129, 0.25);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.device-phone-outer:hover {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.98), 0 0 42px rgba(16, 185, 129, 0.35);
}

.device-phone-frame {
  width: 236px;
  height: 420px;
  border-radius: 30px;
  background: #000;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 10;
  pointer-events: none;
}

.pakchat-slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  transition: opacity 250ms ease;
}

.gallery-slide.active {
  display: flex;
  opacity: 1;
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
  background: #000;
}

.slide-video-box {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: none;
}

/* Device Controls Bar (Under Phone) */
.device-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.stage-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 21, 33, 0.9);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-hover);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.stage-nav-btn:hover {
  background: var(--emerald);
  color: #0A0E14;
  border-color: var(--emerald);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.device-nav-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gallery-counter {
  font-size: 10.5px;
  color: var(--emerald-hover);
  letter-spacing: 0.04em;
  white-space: nowrap;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 200ms ease;
}

.gallery-dot:hover {
  background: rgba(16, 185, 129, 0.7);
}

.gallery-dot.active {
  width: 16px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.btn-fullscreen-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text);
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-fullscreen-pill:hover {
  background: var(--emerald);
  color: #0A0E14;
  border-color: var(--emerald);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

/* Right Column: Details & Interactive Features */
.pakchat-details-col {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 92vh;
  gap: 9px;
}

.pakchat-details-col::-webkit-scrollbar {
  width: 5px;
}
.pakchat-details-col::-webkit-scrollbar-track {
  background: rgba(10, 14, 20, 0.5);
}
.pakchat-details-col::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.35);
  border-radius: 999px;
}
.pakchat-details-col::-webkit-scrollbar-thumb:hover {
  background: var(--emerald);
}

.pakchat-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.header-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.sub-accent {
  font-size: 11.5px;
  color: var(--emerald);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0;
}

.pakchat-summary-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* Interactive Feature Cards List */
.interactive-features-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0;
}

.feat-row-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(14, 21, 33, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.14);
  cursor: pointer;
  transition: all 200ms ease;
}

.feat-row-card:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(3px);
}

.feat-row-card.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.22);
}

.feat-row-icon {
  font-size: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.1);
}

.feat-row-card.active .feat-row-icon {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.feat-row-body {
  flex: 1;
  min-width: 0;
}

.feat-row-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.feat-row-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.feat-row-badge {
  font-size: 8.5px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feat-row-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.feat-row-arrow {
  font-size: 12px;
  color: var(--muted-2);
  transition: all 200ms ease;
  flex-shrink: 0;
}

.feat-row-card.active .feat-row-arrow,
.feat-row-card:hover .feat-row-arrow {
  color: var(--emerald);
  transform: translateX(3px);
}

/* Footer Actions */
.pakchat-action-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  flex-wrap: wrap;
}

.pakchat-action-footer .btn-modal-action {
  flex: 1;
  min-width: 180px;
  padding: 10px 18px;
  font-size: 11px;
}
.pakchat-action-footer .btn-ghost {
  padding: 10px 18px;
  font-size: 11px;
}

/* ===== FULLSCREEN LIGHTBOX MODAL ===== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 10, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-window {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  background: rgba(10, 14, 20, 0.9);
}
.lightbox-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.25), 0 25px 60px rgba(0, 0, 0, 0.95);
  background: #000;
  max-height: 84vh;
}
.lightbox-image-wrap img {
  max-height: 84vh;
  max-width: 88vw;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--emerald-hover);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  background: rgba(14, 21, 33, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--emerald);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(16, 185, 129, 0.35);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.toast-notice .toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* education */
.edu-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 56px; align-items: start; }
.edu-list { display: flex; flex-direction: column; gap: 18px; }
.edu-card { padding: 26px 30px; }
.edu-card .card-top { margin-bottom: 18px; }
.edu-card h3 { font-size: 20px; }

/* contact */
.contact { padding-bottom: 90px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.contact-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.touch { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; transition: color 300ms ease; }
.touch:hover { color: var(--emerald-hover); }
.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: rgba(16, 185, 129, 0.08); transition: all 300ms ease; color: var(--emerald-hover);
}
.social svg { width: 18px; height: 18px; }
.social:hover {
  background: var(--emerald); border-color: var(--emerald); color: #0A0E14;
  transform: translateY(-4px) scale(1.08); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}
.socials.small .social { width: 34px; height: 34px; }
.socials.small .social svg { width: 15px; height: 15px; }

.channels {
  padding: 30px 32px; border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.9), var(--card));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.08);
}
.channels > h3 { color: var(--text); padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 500; }
.channels dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.channels dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.channels dt { color: var(--muted-2); font-size: 9.5px; }
.channels dd { font-size: 12.5px; text-align: right; color: var(--text); }
.channels dd a.channel-link { color: var(--text); transition: color 300ms ease; }
.channels dd a.channel-link:hover { color: var(--emerald-hover); text-decoration: underline; text-underline-offset: 3px; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); display: inline-block;
  margin-right: 6px; box-shadow: 0 0 10px var(--emerald);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* footer */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--muted-2);
}
.footer .dot { margin-right: 10px; width: 5px; height: 5px; }
.footer a { transition: color 300ms ease; }
.footer a:hover { color: var(--emerald-hover); }
.footer .center { color: var(--muted-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .edu-grid, .contact-grid, .projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .side-note, .side-note.left, .side-note.wide { text-align: left; max-width: 100%; }
  .hero { padding: 120px 0 80px; }
  .menu-btn { display: flex; }
  .nav-pill {
    position: absolute; top: 66px; right: 20px; flex-direction: column; min-width: 190px;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.3s;
    background: rgba(22, 31, 48, 0.98); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); border: 1px solid var(--line);
  }
  .nav-pill.open { opacity: 1; pointer-events: auto; transform: none; }
  .section { padding: 80px 0; }
  .footer { justify-content: center; text-align: center; flex-direction: column; gap: 12px; }
}

@media (max-width: 860px) {
  .modal-window {
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-window-pakchat {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .modal-split {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: auto;
  }
  .modal-media-col {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.16);
    padding: 16px;
  }
  .modal-video-wrapper {
    max-height: 250px;
  }
  .pakchat-studio-layout {
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  .pakchat-brand-header.desktop-only {
    display: none;
  }
  .pakchat-mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 42px;
    margin-bottom: 8px;
  }
  .pakchat-mobile-header .header-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pakchat-mobile-header .badge,
  .pakchat-mobile-header .status-pill {
    font-size: 8.5px;
    padding: 2px 7px;
  }
  .pakchat-device-col {
    border-right: none;
    border-bottom: 1px solid rgba(16, 185, 129, 0.18);
    padding: 16px 14px 14px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .pakchat-details-col {
    padding: 18px 16px 24px;
    max-height: none;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .modal-info-col {
    padding: 22px 20px;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 100%); }
  .nav { padding: 12px 14px; }
  .nav-pill { top: 60px; right: 14px; left: 14px; min-width: auto; }
  .nav-pill a { text-align: center; padding: 12px; font-size: 11.5px; }
  
  .hero { padding: 90px 0 50px; }
  .hero-grid { gap: 28px; }
  .hero-watermark {
    font-size: clamp(80px, 20vw, 130px);
    top: 240px;
    max-width: 100vw;
    overflow: hidden;
  }
  .hero-title { font-size: clamp(30px, 8.2vw, 42px); line-height: 1.04; word-break: break-word; }
  .display { font-size: clamp(26px, 7.5vw, 30px); }
  .display.big { font-size: clamp(32px, 9vw, 40px); }
  
  .hero-cta { flex-direction: column; width: 100%; gap: 10px; }
  .hero-cta .btn { width: 100%; padding: 14px 20px; }
  .btn { font-size: 11px; }
  .chips { gap: 6px; }

  /* Mobile PakChat Modal optimizations */
  .modal-backdrop { padding: 8px 6px; box-sizing: border-box; overflow-x: hidden; }
  .modal-window-pakchat {
    border-radius: 16px;
    max-height: 95vh;
    width: 100%;
    max-width: calc(100vw - 12px);
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0 auto;
  }
  .modal-close-corner {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .device-phone-frame {
    width: 200px;
    height: 355px;
    border-radius: 26px;
  }
  .device-phone-outer {
    border-radius: 32px;
    padding: 6px;
  }
  .device-controls-bar {
    gap: 6px;
  }
  .gallery-counter {
    max-width: 110px;
    font-size: 9px;
  }
  .stage-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .btn-fullscreen-pill {
    padding: 3px 7px;
    font-size: 8.5px;
  }
  
  .feat-row-card {
    padding: 8px 10px;
  }
  .feat-row-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .feat-row-title {
    font-size: 11px;
  }
  .feat-row-desc {
    font-size: 10px;
  }
  
  .pakchat-action-footer {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .pakchat-action-footer .btn-modal-action,
  .pakchat-action-footer .btn-ghost {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-align: center;
  }
  
  .section { padding: 50px 0; }
  .card, .edu-card { padding: 20px 16px; }
  
  .project-card-title { font-size: clamp(22px, 6.5vw, 28px); }
  .project-card-body { padding: 20px 16px; }
  
  .direction-card { padding: 20px 16px; }
  .channels { padding: 20px 16px; }
  .contact-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .contact-actions .btn { font-size: 11px; text-align: center; width: 100%; }
  
  .channels dl > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .channels dd { text-align: left; }
  
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
