@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Theme Variables (Dark — default) ──────── */
:root {
  --navy: #0B0F1A;
  --navy-2: #111827;
  --navy-3: #1a2035;
  --purple: #6C63FF;
  --purple-dark: #4A3FCC;
  --purple-light: #8B85FF;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --border: rgba(108,99,255,0.15);
  --card-bg: rgba(255,255,255,0.03);
  --input-bg: rgba(255,255,255,0.04);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── Light Theme Overrides ─────────────────── */
html[data-theme="light"] {
  --navy: #F0F4FF;
  --navy-2: #FFFFFF;
  --navy-3: #E8EDF8;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: rgba(108,99,255,0.2);
  --card-bg: rgba(255,255,255,0.92);
  --input-bg: #FFFFFF;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
}
html[data-theme="light"] body { background: var(--navy); color: var(--text); }
html[data-theme="light"] .card {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] #navbar.scrolled {
  background: rgba(240,244,255,0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
html[data-theme="light"] .nav-link { color: #64748B; }
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { color: #0F172A; }
html[data-theme="light"] .tech-pill {
  background: rgba(108,99,255,0.07);
  color: var(--text);
}
html[data-theme="light"] .project-card {
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .project-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}
html[data-theme="light"] .form-input {
  background: var(--input-bg);
  color: var(--text);
  border-color: rgba(108,99,255,0.25);
}
html[data-theme="light"] #mobile-menu {
  background: rgba(240,244,255,0.99);
}
html[data-theme="light"] #mobile-menu a { color: #0F172A; }
html[data-theme="light"] .modal-inner { background: #FFFFFF; }
html[data-theme="light"] .video-card {
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .cta-bg {
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(74,63,204,0.06), rgba(240,244,255,0));
}
html[data-theme="light"] footer { background: rgba(108,99,255,0.04) !important; }
html[data-theme="light"] .footer-link { color: #64748B; }
html[data-theme="light"] .hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.12) 0%, transparent 60%);
}
html[data-theme="light"] .section-tag { background: rgba(108,99,255,0.1); }
html[data-theme="light"] .filter-tab {
  background: rgba(108,99,255,0.05);
  color: #64748B;
}
html[data-theme="light"] .filter-tab:hover,
html[data-theme="light"] .filter-tab.active {
  background: var(--purple);
  color: #fff;
}
html[data-theme="light"] .why-icon {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(108,99,255,0.06));
}
html[data-theme="light"] .social-icon {
  background: rgba(108,99,255,0.08);
  color: var(--text-muted);
}
html[data-theme="light"] #navbar:not(.scrolled) .nav-link { color: #64748B; }
html[data-theme="light"] #navbar:not(.scrolled) a[href="#"] span { color: #0F172A; }

/* ── Theme Toggle Button ─────────────────── */
#theme-toggle {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #fff;
  font-size: 17px;
  padding: 0;
  flex-shrink: 0;
}
#theme-toggle:hover {
  background: rgba(108,99,255,0.2);
  border-color: var(--purple);
}
html[data-theme="light"] #theme-toggle {
  background: rgba(108,99,255,0.1);
  border-color: rgba(108,99,255,0.2);
  color: #0F172A;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── Container ──────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 768px)  { .container { padding: 0 20px; } }
@media (max-width: 480px)  { .container { padding: 0 16px; } }

/* ── Nav ───────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(11,15,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active { color: #fff; }
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { color: #0F172A; }

/* ── Buttons ───────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108,99,255,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(108,99,255,0.1);
  color: var(--purple-light);
}
html[data-theme="light"] .btn-outline {
  border-color: rgba(108,99,255,0.3);
  color: #0F172A;
}

/* ── Section ───────────────────────────── */
section { padding: 80px 0; position: relative; }
.section-tag {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(108,99,255,0.4);
  background: rgba(108,99,255,0.06);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

/* ── Hero ───────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(108,99,255,0.12); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(74,63,204,0.1); bottom: -100px; left: -50px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease;
}
.hero-title {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  animation: fadeInUp 0.7s ease 0.1s both;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
  line-height: 1.7;
}
.hero-btns { animation: fadeInUp 0.7s ease 0.3s both; }
.hero-stats { animation: fadeInUp 0.7s ease 0.4s both; margin-top: 60px; }

/* ── Stat ───────────────────────────────── */
.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--purple-light);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Hero 2-column layout ──────────────────── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ── Hero right stats panel ─────────────────── */
.hero-stats-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.hero-stats-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.6), transparent);
}
.hero-stats-panel::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  opacity: 0.8;
  margin-bottom: 28px;
}
.hero-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.hero-panel-stat-value {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.hero-panel-stat-value .stat-value {
  font-size: inherit;
  font-weight: inherit;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero-panel-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.hero-panel-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.hero-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.18);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.hero-service-tag:hover {
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.35);
  color: var(--text);
}
.hero-trust-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-trust-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(108,99,255,0.25), rgba(108,99,255,0.08));
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hero-trust-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-trust-text span { font-size: 12px; color: var(--text-muted); }

/* Light theme hero panel */
html[data-theme="light"] .hero-stats-panel {
  background: rgba(255,255,255,0.75);
  border-color: rgba(108,99,255,0.25);
}
html[data-theme="light"] .hero-trust-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(108,99,255,0.2);
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-left { align-items: center; }
  .hero-sub { margin: 0 auto 40px; max-width: 580px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .hero-panel-stat-value { font-size: 28px; }
  .hero-stats-panel { padding: 24px 20px; }
  .hero-trust-card { padding: 16px 18px; }
}

/* ── Section header utility ─────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

/* ── Service icons ──────────────────────── */
.service-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(108,99,255,0.08));
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.card:hover .service-icon {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 8px 24px rgba(108,99,255,0.4);
}

/* ── Tech grid ──────────────────────────── */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  color: var(--text);
}
.tech-pill:hover {
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
}

/* ── Portfolio ──────────────────────────── */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,15,26,0.9) 0%, transparent 50%);
}
.project-thumb-bg {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* filter tabs */
.filter-tab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* ── Project Modal ──────────────────────── */
#project-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  overflow-y: auto;
  padding: 40px 16px;
}
#project-modal.open { display: block; animation: fadeIn 0.3s ease; }
.modal-inner {
  max-width: 900px;
  margin: 0 auto;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.modal-hero {
  height: 340px;
  position: relative;
  overflow: hidden;
}
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy-2) 0%, rgba(11,15,26,0.5) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.modal-hero-bg {
  min-height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.modal-body { padding: 32px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.2s;
  z-index: 10;
}
.modal-close:hover { background: rgba(108,99,255,0.5); }

/* ── Video Section ──────────────────────── */
.video-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.video-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy-3);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
}
.video-card:hover {
  border-color: rgba(108,99,255,0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
}
.video-card-info {
  padding: 16px 18px 18px;
  background: var(--navy-3);
}
html[data-theme="light"] .video-card-info { background: #FFFFFF; }
.video-play-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 1;
  transition: opacity 0.2s, background 0.2s;
  pointer-events: auto;
  border-radius: 20px 20px 0 0;
  cursor: pointer;
}
.video-play-overlay:hover { background: rgba(0,0,0,0.45); }
.video-play-btn {
  width: 60px; height: 60px;
  background: rgba(108,99,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(108,99,255,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-play-overlay:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(108,99,255,0.8);
}
.video-play-btn svg { color: #fff; margin-left: 4px; }

/* Mobile video - full width stacked */
@media (max-width: 1024px) {
  .video-section-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .video-section-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .video-card video { aspect-ratio: 16/9; }
}

/* ── Contact Form ───────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--purple);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
html[data-theme="light"] .form-input:focus { background: rgba(108,99,255,0.03); }
.form-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 16px;
  display: none;
}
.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 16px;
  display: none;
}

/* ── Footer ─────────────────────────────── */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--purple-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.social-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px;
}
.social-icon:hover {
  background: rgba(108,99,255,0.2);
  border-color: var(--purple);
  color: var(--purple-light);
}

/* ── Animations ─────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Why choose us ──────────────────────── */
.why-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, rgba(108,99,255,0.25), rgba(108,99,255,0.1));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ── Glow divider ───────────────────────── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.5), transparent);
  margin: 0;
}

/* ── Mobile nav ─────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,15,26,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--purple-light); }

/* ── Grid utilities ─────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .nav-links-desktop { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (min-width: 769px) {
  .hamburger { display: none !important; }
}

/* ── About section stagger ──────────────── */
@media (max-width: 900px) {
  #about .grid-2 { gap: 40px; }
}

.fiverr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,191,115,0.12);
  border: 1px solid rgba(29,191,115,0.3);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1dbf73;
}

/* CTA section */
.cta-bg {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(74,63,204,0.1) 50%, rgba(11,15,26,0) 100%);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 28px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 640px) {
  .cta-bg { padding: 48px 24px; border-radius: 20px; }
}

/* ══════════════════════════════════════════════ */
/*  PROJECT DETAIL PAGE STYLES                    */
/* ══════════════════════════════════════════════ */

.project-page-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  max-height: 580px;
  overflow: hidden;
  margin-top: 68px;
}
.project-page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(11,15,26,1) 0%,
    rgba(11,15,26,0.7) 40%,
    rgba(11,15,26,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
}
html[data-theme="light"] .project-page-hero-overlay {
  background: linear-gradient(to top,
    rgba(240,244,255,1) 0%,
    rgba(240,244,255,0.6) 40%,
    rgba(240,244,255,0.1) 100%);
}

.project-page-hero-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--purple-light); }
html[data-theme="light"] .back-link { color: #64748B; }
html[data-theme="light"] .back-link:hover { color: var(--purple); }

.project-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Project detail sections */
.project-content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
@media (max-width: 1024px) { .project-content-wrap { padding: 40px 24px 60px; } }
@media (max-width: 768px)  { .project-content-wrap { padding: 32px 20px 60px; } }
@media (max-width: 480px)  { .project-content-wrap { padding: 28px 16px 48px; } }

/* Two-column layout: overview + gallery side by side */
.project-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}
.project-main-left,
.project-main-right { min-width: 0; }
@media (max-width: 860px) {
  .project-main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-main-right { order: -1; }
}

.project-section {
  margin-bottom: 52px;
}
.project-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Gallery */
.gallery-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
}
.gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
  max-height: 400px;
}
.gallery-hero-img:hover { transform: scale(1.02); }
.gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.gallery-side img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.2s;
  display: block;
}
.gallery-side img:hover { transform: scale(1.04); opacity: 0.92; }
.gallery-extra {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
  display: grid;
}
.gallery-extra img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
  display: block;
}
.gallery-extra img:hover { transform: scale(1.03); }

@media (max-width: 680px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .gallery-hero-img { max-height: 260px; }
  .gallery-side {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: unset;
  }
}

/* Challenges */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.challenge-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.3s;
}
.challenge-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-2px);
}
html[data-theme="light"] .challenge-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.challenge-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.challenge-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Two-col layout for features/tech */
.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) { .detail-two-col { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  transition: all 0.2s;
  user-select: none;
}
.lightbox-nav:hover { background: rgba(108,99,255,0.5); border-color: var(--purple); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── Project page hero responsive ───────── */
@media (max-width: 768px) {
  .project-page-hero { height: 45vh; min-height: 300px; }
  .project-page-hero-overlay { padding: 28px 24px; }
  .project-page-hero-gradient { padding: 28px 24px; }
}
