/* ── Reset & Variables ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #030712;
  --surface:  #0f172a;
  --surface2: #1e293b;
  --border:   #1e293b;
  --indigo:   #6366f1;
  --purple:   #8b5cf6;
  --emerald:  #10b981;
  --amber:    #f59e0b;
  --text:     #f8fafc;
  --muted:    #94a3b8;
  --dim:      #64748b;
  --radius:   16px;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; transition: all .3s; }
.nav.scrolled { background: rgba(3,7,18,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.logo-icon { font-size: 22px; pointer-events: none; cursor: default; }
.logo-text { background: linear-gradient(135deg, var(--indigo), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 900; letter-spacing: -.5px; text-decoration: none; }
.logo-text:hover { text-decoration: none; }

/* Hero logo */
.hero-logo-wrap { margin-bottom: 28px; }
.hero-logo { height: 90px; width: auto; object-fit: contain; filter: drop-shadow(0 0 32px rgba(99,102,241,.5)); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--indigo); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 20px; border-radius: 10px; transition: background .2s; text-decoration: none; white-space: nowrap; }
.btn-nav:hover { background: #4f46e5; text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 18px; margin-left: auto; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 16px; background: rgba(3,7,18,.95); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); padding: 10px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-menu a:hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.18) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 60%, rgba(139,92,246,.12) 0%, transparent 60%); pointer-events: none; }
.hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.3); color: #a5b4fc; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 999px; margin-bottom: 28px; }
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px; }
.gradient-text { background: linear-gradient(135deg, var(--indigo), var(--purple), #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn-primary { background: var(--indigo); color: #fff; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 12px; transition: all .2s; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: #4f46e5; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { color: var(--text); font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 12px; border: 1px solid var(--border); transition: all .2s; text-decoration: none; }
.btn-ghost:hover { border-color: var(--indigo); color: #a5b4fc; text-decoration: none; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 900; background: linear-gradient(135deg, var(--indigo), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: var(--dim); }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.3); color: #a5b4fc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -.5px; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto; }

/* ── Services ──────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; transition: all .3s; }
.service-card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-4px); }
.service-card.featured { border-color: rgba(99,102,241,.4); background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.05)); }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-list li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.service-list li::before { content: '✓'; color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.service-badge { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, var(--amber), #ea580c); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ── Projects ──────────────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.project-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.project-card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.project-header { padding: 32px 24px; display: flex; align-items: flex-start; justify-content: space-between; }
.project-emoji { font-size: 48px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag { background: rgba(0,0,0,.3); color: rgba(255,255,255,.8); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.project-body { padding: 24px; }
.project-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.project-body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.project-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project-features span { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); color: #a5b4fc; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 8px; }
.project-stack { font-size: 12px; color: var(--dim); border-top: 1px solid var(--border); padding-top: 12px; }

/* ── Stack ─────────────────────────────────────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.stack-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stack-item:hover { border-color: rgba(99,102,241,.4); color: var(--text); transform: translateY(-2px); }
.stack-icon { font-size: 28px; }

/* ── Process ───────────────────────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.process-step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; position: relative; transition: all .3s; }
.process-step:hover { border-color: rgba(99,102,241,.4); }
.step-num { font-size: 48px; font-weight: 900; background: linear-gradient(135deg, var(--indigo), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.process-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon { width: 44px; height: 44px; background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-label { font-size: 12px; color: var(--dim); margin-bottom: 2px; }
.contact-item a { color: var(--text); font-weight: 600; font-size: 15px; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-family: inherit; transition: border-color .2s; outline: none; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--indigo); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.btn-full { width: 100%; justify-content: center; font-size: 16px; padding: 16px; }
.form-note { text-align: center; font-size: 12px; color: var(--dim); }
.form-privacy { text-align: center; font-size: 11px; color: var(--dim); line-height: 1.5; }
.privacy-link { color: var(--indigo); text-decoration: underline; }

/* ── Privacy Section (legacy, kept for reference) ──────────────────────── */
.privacy-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.privacy-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.privacy-block h3 { font-size: 16px; font-weight: 700; color: #a5b4fc; margin-bottom: 12px; }
.privacy-block p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.privacy-block ul { color: var(--muted); font-size: 14px; line-height: 1.7; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.privacy-block strong { color: var(--text); }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,7,18,.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border: 1px solid rgba(99,102,241,.3);
  border-radius: 24px; width: 100%; max-width: 620px; max-height: 90vh;
  overflow-y: auto; display: flex; flex-direction: column;
  transform: translateY(24px) scale(.97);
  transition: transform .3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(99,102,241,.15);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-header {
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08));
  border-bottom: 1px solid var(--border);
}
.modal-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-tag { background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.35); color: #a5b4fc; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.modal-close { background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.modal-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 10px; }
.modal-subtitle { color: var(--muted); font-size: 14px; }
.modal-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.modal-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.modal-item:hover { border-color: rgba(99,102,241,.3); }
.modal-item-icon { font-size: 28px; flex-shrink: 0; width: 48px; height: 48px; background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.modal-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.modal-item p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.modal-footer { padding: 20px 32px 28px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

@media (max-width: 480px) {
  .modal-header, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; }
  .modal-item { flex-direction: column; gap: 12px; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.footer-name { background: linear-gradient(135deg, var(--indigo), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-copy { font-size: 13px; color: var(--dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Animations ────────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .menu-btn { display: block; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 20px; }
  .stat-div { display: none; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
