/* ============================================================
   TECHNOID — Elite Portfolio Design System
   Palette: Indigo #4f46e5 | Black #0a0a0f | White #fafafa
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --brand: #4f46e5;
  --brand-2: #6d66ff;
  --accent: #00d4aa;
  --dark: #0a0a0f;
  --dark-2: #16161f;
  --mid: #2a2a38;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #fafafa;
  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(79, 70, 229, .12);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ── Utility ── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 52px 0;
}

.section-sm {
  padding: 32px 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
}

.mono {
  font-family: 'Space Mono', monospace;
}

/* ── Navigation ── */
/* ══════════════════════════════
   NAV BAR
══════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 0 16px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

[data-theme="dark"] .nav {
  background: rgba(10,10,18,0.96);
  border-bottom-color: rgba(255,255,255,.06);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
}

.brand {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  color: #0D0D1A;
  line-height: 1;
  white-space: nowrap;
}

.brand-fix {
  color: #0088CC;
}

[data-theme="dark"] .brand {
  color: #ffffff;
}

/* Inline nav links — always visible */
.nav-inline {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  margin-right: 4px;
  flex-shrink: 0;
}

.nav-inline a {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-inline a:hover {
  background: #f3f4f6;
  color: #111827;
}

.nav-inline a.active {
  background: var(--brand);
  color: #fff;
}

[data-theme="dark"] .nav-inline a {
  color: #9ca3af;
}

[data-theme="dark"] .nav-inline a:hover {
  background: #1f2937;
  color: #f3f4f6;
}

[data-theme="dark"] .nav-inline a.active {
  background: var(--brand);
  color: #fff;
}

/* Hamburger dropdown nav */
.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.nav nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  transition: all .2s;
  text-decoration: none;
}

.nav nav a.active,
.nav nav a:hover {
  background: var(--brand);
  color: #fff;
}

/* Contact — plain nav link, only highlighted when active */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  color: #4b5563;
  border: none;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 9px;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover,
.nav-cta:focus {
  background: #f3f4f6;
  color: #111827;
  opacity: 1;
}

.nav-inline a.nav-cta.active,
.nav nav a.nav-cta.active {
  background: var(--brand);
  color: #fff;
}

[data-theme="dark"] .nav-cta {
  background: none;
  color: #9ca3af;
}

[data-theme="dark"] .nav-cta:hover,
[data-theme="dark"] .nav-cta:focus {
  background: #1f2937;
  color: #f3f4f6;
}

/* ── Hamburger toggle ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  background: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all .2s;
}

.nav-hamburger:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.nav-hamburger:hover span {
  background: #fff;
}

[data-theme="dark"] .nav-hamburger {
  border-color: #374151;
}

[data-theme="dark"] .nav-hamburger span {
  background: #d1d5db;
}

/* Hamburger → X animation when open */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  overflow: hidden;
  position: relative;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.hero-img {
  flex: 1;
  min-width: 220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(79, 70, 229, .2);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  object-fit: contain;
}

[data-theme="dark"] .hero-img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2a3a;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 14px 0 16px;
  line-height: 1.1;
}

.hero p {
  color: #4b5563;
  font-size: 1.1rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 18px;
  align-items: center;
}

/* ── Pills & badges ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .02em;
}

.pill-green {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.pill-dark {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
  background: var(--brand);
  color: #fff;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, .35);
}

.btn-light {
  background: #fff;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-light:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: none;
}

.hero-actions .btn,
.hero-actions .btn-lg {
  padding: 8px 14px;
  font-size: .82rem;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-hero-sec {
  background: rgba(79, 70, 229, 0.05);
  border: 1.5px solid rgba(79, 70, 229, 0.2);
  color: var(--brand);
}

.btn-hero-sec:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

[data-theme="dark"] .btn-hero-sec {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

[data-theme="dark"] .btn-hero-sec:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Cards ── */
.grid {
  display: grid;
  gap: 16px;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .2s, box-shadow .2s;
}

@media (min-width: 640px) {
  .card {
    padding: 24px;
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: .92rem;
}

/* ── Stats strip ── */
.stats {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  gap: 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand);
  font-family: 'Space Mono', monospace;
  letter-spacing: -.04em;
}

.stat-label {
  font-size: .85rem;
  color: #4b5563;
  margin-top: 4px;
  font-weight: 600;
}

.stat-accent {
  color: var(--accent);
}

/* ── Section header ── */
.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 8px 0 8px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
}

/* ── About ── */

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}

.about-text p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 14px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.skill-tag {
  padding: 5px 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── Testimonials ── */
.testimonials {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 60px 40px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

@media (min-width: 640px) {
  .testi-card {
    padding: 28px;
  }
}

.testi-stars {
  font-size: 1rem;
  color: #f59e0b;
  margin-bottom: 12px;
}

.testi-quote {
  font-size: .98rem;
  color: #374151;
  line-height: 1.7;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: .92rem;
}

.testi-role {
  font-size: .8rem;
  color: var(--muted);
}

/* ── Case study ── */
.case-study {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-study-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  padding: 28px;
}

.case-study-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.case-study-body {
  padding: 28px;
}

.case-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .case-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-item label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  display: block;
  margin-bottom: 4px;
}

.case-item p {
  font-size: .9rem;
  color: #374151;
  line-height: 1.55;
}

.result-pill {
  display: inline-block;
  padding: 4px 12px;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  color: #065f46;
  margin: 2px;
}

/* ── Service page hero ── */
.service-hero {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--dark);
  position: relative;
  overflow: hidden;
}

.service-hero h1 {
  color: var(--dark);
}

.service-hero p {
  color: #4b5563;
}

.service-hero .pill {
  background: #fff;
  border-color: #c7d2fe;
  color: var(--brand);
}

.service-hero-img {
  flex: 1;
  min-width: 220px;
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.service-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  object-fit: contain;
}

[data-theme="dark"] .service-hero-img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2a3a;
}

[data-theme="dark"] .service-hero-img img {
  box-shadow: none;
  border: none;
}

[data-theme="dark"] .service-hero {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .service-hero h1 {
  color: #e5e7eb;
}

[data-theme="dark"] .service-hero p {
  color: #9ca3af;
}

[data-theme="dark"] .service-hero .pill {
  background: #1e1e2e;
  border-color: #3a3a5a;
  color: var(--brand-2);
}

/* ── Process steps ── */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-family: 'Space Mono', monospace;
}

.step h4 {
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: .88rem;
  color: var(--muted);
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 100%);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-banner .btn {
  background: #fff;
  color: var(--brand);
}

.cta-banner .btn:hover {
  background: #f0f0ff;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-form p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: .95rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  background: linear-gradient(135deg, #1e1e2e 0%, #0f0f17 100%);
  border-radius: var(--radius);
  border: 1px solid #2a2a3a;
  padding: 36px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-info>p {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 28px;
  font-size: .9rem;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.2);
  border: 1px solid rgba(79, 70, 229, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--brand-2);
}

.info-label {
  font-size: .75rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.info-value a {
  color: #f8fafc;
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}

.info-value a:hover {
  color: var(--brand-2);
}

.info-value {
  font-weight: 600;
  font-size: .95rem;
  color: #f8fafc;
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #25d366;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  transition: background-color .2s, transform .15s;
  margin-top: 10px;
}

.wa-btn:hover {
  background: #1aab4f;
  transform: translateY(-1px);
}

/* ── Social ── */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
  transition: all .2s;
}

.social-links a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Skills / credentials ── */
.skills-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-cat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.skill-cat h4 {
  font-weight: 700;
  margin-bottom: 14px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}

/* ── Footer ── */
.footer {
  background: #f8fafc;
  color: var(--dark);
  border-top: 1px solid var(--border);
  padding: 36px 20px 24px;
  margin-top: 0;
  text-align: center;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-tagline {
  color: #4b5563;
  font-size: .9rem;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-links a {
  color: #4b5563;
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.footer-bottom {
  font-size: .85rem;
  color: #6b7280;
}

.footer-bottom a {
  color: #4b5563;
  font-weight: 600;
  transition: color .2s;
}

.footer-bottom a:hover {
  color: var(--brand);
}

/* ── Toast ── */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: .25s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  font-size: .9rem;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 767px) {

  /* Hamburger visible on mobile */
  .nav-hamburger {
    display: flex;
  }

  /* Dropdown panel — compact slide-out card from right edge */
  .nav>nav {
    display: flex;
    position: fixed;
    top: 54px;
    right: -160px;
    width: 148px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transition: right .22s cubic-bezier(.4,0,.2,1), opacity .22s;
    opacity: 0;
    pointer-events: none;
  }

  [data-theme="dark"] .nav>nav {
    background: #0f0f17;
    border-color: #1e1e2e;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }

  .nav>nav.open {
    right: 12px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Remove MENU label */
  .nav>nav::before {
    display: none;
  }

  .nav>nav a {
    width: auto;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: .82rem;
    color: #111827;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  [data-theme="dark"] .nav>nav a {
    color: #e5e7eb;
  }

  .nav>nav a:hover {
    background: #f3f4f6;
    color: #111827;
  }

  [data-theme="dark"] .nav>nav a:hover {
    background: #1f2937;
    color: #f9fafb;
  }

  /* Contact button inside dropdown — plain, active only when on that page */
  .nav>nav a.nav-cta {
    width: auto;
    border-radius: 7px;
    padding: 8px 12px;
    background: none;
    color: #111827;
    font-size: .82rem;
    justify-content: flex-start;
  }

  [data-theme="dark"] .nav>nav a.nav-cta {
    color: #e5e7eb;
  }

  .nav>nav a.nav-cta.active {
    background: var(--brand) !important;
    color: #fff !important;
  }

  /* Divider before theme toggle */
  .nav>nav .nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 2px 0;
    border: none;
  }

  [data-theme="dark"] .nav>nav .nav-divider {
    background: #1e1e2e;
  }

  /* Theme toggle row */
  .nav>nav .theme-toggle {
    width: auto;
    text-align: left;
    background: none;
    border: none;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    white-space: nowrap;
  }

  [data-theme="dark"] .nav>nav .theme-toggle {
    color: #e5e7eb;
  }

  .nav>nav .theme-toggle:hover {
    background: #f3f4f6;
    color: #111827;
  }

  [data-theme="dark"] .nav>nav .theme-toggle:hover {
    background: #1f2937;
    color: #f9fafb;
  }

  .hero,
  .service-hero {
    padding: 36px 24px;
  }

  .stats {
    padding: 36px 24px;
  }

  .testimonials {
    padding: 36px 24px;
  }

  .contact-form,
  .contact-info {
    padding: 24px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .section {
    padding: 36px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 10px 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  /* Mobile overflow safety */
  .project-card,
  .comments-section,
  .comment-input-row {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ── btn-dark ── */
.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #1e1e2e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

[data-theme="dark"] .btn-dark {
  background: #2a2a3a;
  border: 1px solid #3a3a5a;
}

[data-theme="dark"] .btn-dark:hover {
  background: #3a3a5a;
}


/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  animation: fadeUp .5s ease both;
}

.anim-delay-1 {
  animation-delay: .1s;
}

.anim-delay-2 {
  animation-delay: .2s;
}

.anim-delay-3 {
  animation-delay: .3s;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --border: #2a2a3a;
  --white: #0f0f17;
  --muted: #9ca3af;
}

[data-theme="dark"] body {
  background: #0f0f17;
  color: #e5e7eb;
}

[data-theme="dark"] .nav {
  background: rgba(15, 15, 23, .92);
  border-bottom-color: #1e1e2e;
}

[data-theme="dark"] .nav nav a {
  color: #d1d5db;
}

[data-theme="dark"] .card {
  background: #16161f;
  border-color: #2a2a3a;
  color: #e5e7eb;
}

[data-theme="dark"] .card p {
  color: #9ca3af;
}

[data-theme="dark"] .hero {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .hero p {
  color: #9ca3af;
}

[data-theme="dark"] .section-header p {
  color: #9ca3af;
}

[data-theme="dark"] .skills-grid .skill-cat,
[data-theme="dark"] .step,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .case-study {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .testi-card {
  color: #e5e7eb;
}

[data-theme="dark"] .card-icon {
  background: #1e1e2e;
  border: 1px solid #3a3a5a;
}

[data-theme="dark"] .stats {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .stat-label {
  color: #9ca3af;
}

[data-theme="dark"] .testi-quote {
  color: #d1d5db;
}

[data-theme="dark"] .testi-author {
  border-top-color: #2a2a3a;
}

[data-theme="dark"] .testimonials {
  background: #0d0d14;
}

[data-theme="dark"] .skill-item {
  background: #1e1e2e;
  color: #d1d5db;
}

[data-theme="dark"] .skill-tag {
  background: #1e1e2e;
  color: var(--brand-2);
  border-color: #3a3a5a;
}

[data-theme="dark"] .contact-form {
  background: #16161f;
  border-color: #2a2a3a;
  color: #e5e7eb;
}

[data-theme="dark"] .contact-form h2,
[data-theme="dark"] .contact-form label {
  color: #e5e7eb;
}

[data-theme="dark"] .contact-form p {
  color: #9ca3af;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #0f0f17;
  border-color: #2a2a3a;
  color: #e5e7eb;
}

[data-theme="dark"] .btn-light {
  background: #1e1e2e;
  color: #e5e7eb;
  border-color: #2a2a3a;
}

[data-theme="dark"] .btn-outline {
  border-color: var(--brand-2);
  color: var(--brand-2);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--brand-2);
  color: #fff;
}

[data-theme="dark"] .about-text p {
  color: #9ca3af;
}

[data-theme="dark"] .about-text h2 {
  color: #e5e7eb;
}

[data-theme="dark"] .social-links a {
  background: #1e1e2e;
  border-color: #2a2a3a;
  color: #d1d5db;
}

[data-theme="dark"] .case-study-header {
  background: #1e1e2e;
  border-bottom-color: #2a2a3a;
  color: #e5e7eb;
}

[data-theme="dark"] .case-study-header h3 {
  color: #e5e7eb;
}

[data-theme="dark"] .case-study-body .case-item p {
  color: #9ca3af;
}

[data-theme="dark"] .case-study-body label {
  color: var(--brand-2);
}

[data-theme="dark"] .step h4 {
  color: #e5e7eb;
}

[data-theme="dark"] .step p {
  color: #9ca3af;
}

[data-theme="dark"] .pill {
  background: #1e1e2e;
  border-color: #3a3a5a;
  color: var(--brand-2);
}

[data-theme="dark"] .pill-green {
  background: #052e16;
  border-color: #166534;
  color: #4ade80;
}

[data-theme="dark"] .footer {
  background: #0f0f17;
  color: #e5e7eb;
  border-top-color: #2a2a3a;
}

[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .footer-bottom {
  color: #9ca3af;
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-bottom a {
  color: #d1d5db;
}

[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-bottom a:hover {
  color: var(--brand);
}

[data-theme="dark"] .footer-divider {
  border-top-color: #2a2a3a;
}

[data-theme="dark"] .info-urgency {
  background: #16161f;
  border-color: #2a2a3a;
  color: #e5e7eb;
}

/* ── Dark mode toggle button ── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .2s;
  flex-shrink: 0;
  color: var(--dark);
}

.theme-toggle:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

[data-theme="dark"] .theme-toggle {
  color: #fff;
  border-color: #2a2a3a;
}

/* ============================================================
   PROJECTS / PORTFOLIO FEED
   ============================================================ */
.projects-feed {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .projects-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .projects-feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
}

.project-card .project-media {
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .project-card {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .project-media {
  background: #0a0a0f;
  border-bottom: 1px solid #2a2a3a;
}

.project-media {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.project-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-caption {
  font-size: .95rem;
  color: var(--dark);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.project-caption.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.caption-toggle {
  background: none;
  border: none;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font-family: inherit;
  display: block;
  transition: opacity .15s;
}

.caption-toggle:hover {
  opacity: .7;
}

[data-theme="dark"] .project-caption {
  color: #d1d5db;
}

.project-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.project-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .project-actions {
  border-top-color: #2a2a3a;
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--dark);
  transition: all .18s;
}

[data-theme="dark"] .proj-btn {
  color: #d1d5db;
  border-color: #2a2a3a;
}

.proj-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.proj-btn.liked {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

[data-theme="dark"] .proj-btn.liked {
  background: #3f1111;
}

.proj-btn-share {
  margin-left: auto;
}

/* Comments */
.comments-section {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: none;
}

[data-theme="dark"] .comments-section {
  border-top-color: #2a2a3a;
}

.comments-section.open {
  display: block;
}

.comment-item {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: .85rem;
}

[data-theme="dark"] .comment-item {
  border-bottom-color: #1e1e2e;
}

.comment-author {
  font-weight: 700;
  color: var(--brand);
  font-size: .78rem;
}

.comment-text {
  color: #374151;
  margin-top: 2px;
}

[data-theme="dark"] .comment-text {
  color: #9ca3af;
}

.comment-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.comment-input-row input,
.comment-input-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
  font-family: inherit;
  box-sizing: border-box;
}

.comment-name-input {
  width: 100%;
}

.comment-text-input {
  width: 100%;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  line-height: 1.4;
  overflow-y: auto;
}

[data-theme="dark"] .comment-input-row input,
[data-theme="dark"] .comment-input-row textarea {
  background: #0f0f17;
  border-color: #2a2a3a;
  color: #e5e7eb;
}

.comment-input-row button {
  align-self: flex-end;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* Upload panel */
.upload-panel {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  display: none;
}

[data-theme="dark"] .upload-panel {
  background: #16161f;
  border-color: #2a2a3a;
}

.upload-panel.open {
  display: block;
}

.upload-panel h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.upload-drop {
  border: 2px dashed #c7d2fe;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  margin: 20px 0;
  background: #f5f7ff;
  transition: background-color .2s;
}

[data-theme="dark"] .upload-drop {
  background: #0f0f17;
  border-color: #3a3a5a;
}

.upload-drop:hover,
.upload-drop.drag-over {
  background: #eef2ff;
}

.upload-drop input {
  display: none;
}

.upload-drop-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.upload-drop p {
  color: var(--muted);
  font-size: .9rem;
  margin: 4px 0;
}

.upload-preview {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  margin: 12px auto;
  display: none;
}

.upload-preview-video {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  margin: 12px auto;
  display: none;
}

/* Password visibility toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 220px;
  min-width: 0;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 38px !important;
  max-width: 100% !important;
  flex: initial !important;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1;
  transition: color .2s;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: var(--brand);
}

[data-theme="dark"] .password-toggle-btn {
  color: #6b7280;
}

[data-theme="dark"] .password-toggle-btn:hover {
  color: var(--brand-2);
}

@media (max-width: 600px) {
  .password-input-wrapper {
    max-width: 100%;
  }
}

/* Password modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  display: none;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  position: relative;
}

[data-theme="dark"] .modal-box {
  background: #16161f;
  color: #e5e7eb;
  border: 1px solid #2a2a3a;
}

.modal-box h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.modal-box p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* Promo banners */
.promo-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
}

.promo-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: .15;
}

.promo-store {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
}

.promo-store::before {
  background: #3b82f6;
}

.promo-game {
  background: linear-gradient(135deg, #1a0533, #3b0764);
  color: #fff;
}

.promo-game::before {
  background: #a855f7;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  width: fit-content;
}

.promo-store .promo-badge {
  background: rgba(59, 130, 246, .25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, .4);
}

.promo-game .promo-badge {
  background: rgba(168, 85, 247, .25);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, .4);
}

.promo-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.promo-card p {
  font-size: .88rem;
  opacity: 1;
  margin: 0;
  flex: 1;
}

.promo-card .btn {
  width: fit-content;
}

.promo-store .btn {
  background: #3b82f6;
}

.promo-store .btn:hover {
  background: #2563eb;
}

.promo-game .btn {
  background: #a855f7;
}

.promo-game .btn:hover {
  background: #9333ea;
}

.promo-emoji {
  position: absolute;
  right: 24px;
  bottom: 16px;
  font-size: 3.5rem;
  opacity: .25;
  line-height: 1;
}

/* Secondary footer promo links */
.promo-link-store,
.promo-link-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 700;
  transition: all .2s;
}

.promo-link-store {
  background: #2563eb;
  border: 1px solid #1d4ed8;
  color: #fff;
  font-weight: 800;
}

.promo-link-store:hover {
  background: #1d4ed8;
}

.promo-link-game {
  background: #9333ea;
  border: 1px solid #7e22ce;
  color: #fff;
  font-weight: 800;
}

.promo-link-game:hover {
  background: #7e22ce;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: .95rem;
}

/* ── Niche block full dark-mode fix ── */
.niche-block {
  background: #f8fafc;
  border: 1px solid var(--border);
}

.niche-card {
  background: #fff;
  border: 1px solid var(--border);
}

.niche-card strong {
  color: var(--dark);
}

.niche-desc {
  color: #4b5563;
}

[data-theme="dark"] .niche-block {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .niche-card {
  background: #1e1e2e;
  border-color: #2a2a3a;
}

[data-theme="dark"] .niche-card strong {
  color: #eef0f3;
}

[data-theme="dark"] .niche-desc {
  color: #9ca3af;
}

/* ============================================================
   ADDITIONAL THEME FIXES — DARK & LIGHT COMPLETENESS
   ============================================================ */

/* ── All headings adapt in dark mode ── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #e5e7eb;
}

/* Exceptions: keep gradient/brand-coloured headings as-is */
[data-theme="dark"] .cta-banner h2,
[data-theme="dark"] .cta-banner p {
  color: #fff;
}

/* ── Result pills inside case studies ── */
[data-theme="dark"] .result-pill {
  background: #052e16;
  border-color: #166534;
  color: #4ade80;
}

/* ── Info-urgency inner text ── */
[data-theme="dark"] .info-urgency strong {
  color: #e5e7eb;
}

/* ── Project cards (image feed) ── */
[data-theme="dark"] .project-caption {
  color: #d1d5db;
}

/* ── Upload / modal panel headings ── */
[data-theme="dark"] .upload-panel h3,
[data-theme="dark"] .modal-box h3 {
  color: #e5e7eb;
}

/* ── Niche card icon tint ── */
[data-theme="dark"] .niche-card i {
  color: var(--brand-2);
}

/* ── Card inner spans / strongs inherit ── */
[data-theme="dark"] .card span,
[data-theme="dark"] .card strong {
  color: inherit;
}

/* ── Promo-link buttons: keep vivid/solid in dark mode too ── */
[data-theme="dark"] .promo-link-store {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}

[data-theme="dark"] .promo-link-store:hover {
  background: #1d4ed8;
}

[data-theme="dark"] .promo-link-game {
  background: #9333ea;
  border-color: #7e22ce;
  color: #fff;
}

[data-theme="dark"] .promo-link-game:hover {
  background: #7e22ce;
}

/* ── Stat numbers: use brand-2 in dark for vibrancy ── */
[data-theme="dark"] .stat-num {
  color: var(--brand-2);
}

/* ── Footer brand stays readable ── */
[data-theme="dark"] .footer-brand {
  color: #e5e7eb;
}

/* ── FA icon replacements for former emoji elements ── */

/* Star ratings */
.testi-stars i {
  color: #f59e0b;
  font-size: 1rem;
  margin-right: 1px;
}

/* Empty state icon */
.empty-state-icon i {
  font-size: 3rem;
  color: var(--muted);
}

/* Like button heart icon */
.proj-btn .fa-heart {
  color: #b91c1c;
}

.proj-btn.liked .fas.fa-heart {
  color: #b91c1c;
}

/* Card-icon FA icons sizing */
.card-icon i {
  font-size: 1.4rem;
  color: var(--brand);
}

[data-theme="dark"] .card-icon i {
  color: var(--brand-2);
}

/* Upload drop icon FA */
.upload-drop-icon i {
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}

/*  CV Modal  */
.cv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(8px);
}

.cv-modal.open {
  opacity: 1;
  visibility: visible;
}

.cv-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.cv-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
}

.cv-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  transition: color 0.2s;
}

.cv-modal-close:hover {
  color: var(--brand);
}
/* ── Estimator Feature Card ── */
.estimator-feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  align-items: center;
}

@media (max-width: 767px) {
  .estimator-feature-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.estimator-features-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.estimator-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
}

.estimator-features-list li i {
  color: #0088CC;
  font-size: .8rem;
  flex-shrink: 0;
}

.estimator-preview {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ep-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: .82rem;
}

.ep-label {
  color: var(--muted);
}

.ep-val {
  font-weight: 600;
  color: #111827;
}

.ep-num {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
}

.ep-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.ep-total {
  padding-top: 10px;
}

.ep-total .ep-label {
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .estimator-feature-card {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .estimator-preview {
  background: #0f0f17;
  border-color: #2a2a3a;
}

[data-theme="dark"] .ep-val {
  color: #e5e7eb;
}

[data-theme="dark"] .ep-total .ep-label {
  color: #e5e7eb;
}

/* ── Skill cat full-row ── */
.skill-cat-full {
  grid-column: 1 / -1;
}

/* ── Comment Section ── */
.comment-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.comment-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .84rem;
  font-family: inherit;
  resize: vertical;
  background: #f9fafb;
  color: #111827;
  outline: none;
  transition: border-color .15s;
  min-height: 72px;
}

.comment-textarea:focus {
  border-color: var(--brand);
  background: #fff;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #0088CC);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  flex-shrink: 0;
}

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

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-name {
  font-weight: 700;
  font-size: .78rem;
  color: #111827;
}

.comment-time {
  font-size: .72rem;
  color: var(--muted);
}

.comment-text {
  font-size: .82rem;
  color: #374151;
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}

.comments-empty {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 24px 0;
}

.comment-login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: .83rem;
  color: #92400e;
  margin-bottom: 12px;
}

.comment-login-alert i {
  flex-shrink: 0;
  color: #f59e0b;
}

[data-theme="dark"] .comment-form-wrap {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .comment-textarea {
  background: #0f0f17;
  border-color: #2a2a3a;
  color: #e5e7eb;
}

[data-theme="dark"] .comment-textarea:focus {
  border-color: var(--brand);
  background: #16161f;
}

[data-theme="dark"] .comment-card {
  background: #16161f;
  border-color: #2a2a3a;
}

[data-theme="dark"] .comment-name {
  color: #e5e7eb;
}

[data-theme="dark"] .comment-text {
  color: #9ca3af;
}

[data-theme="dark"] .comment-login-alert {
  background: #1c1200;
  border-color: #78350f;
  color: #fcd34d;
}

/* ── Comment delete button (admin only) ── */
.comment-delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #d1d5db;
  font-size: .72rem;
  padding: 2px 5px;
  border-radius: 5px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.comment-delete-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}
[data-theme="dark"] .comment-delete-btn {
  color: #4b5563;
}
[data-theme="dark"] .comment-delete-btn:hover {
  color: #f87171;
  background: #2a1010;
}

/* ── Card background: home, design, web match contact "What Happens Next" ── */
.page-tinted-cards .card {
  background: #f8fafc;
}

[data-theme="dark"] .page-tinted-cards .card {
  background: #16161f;
}
