*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0c1827; --navy2: #112038; --navy3: #1a2f4a;
  --teal: #00c9a7; --teal-glow: rgba(0,201,167,.12);
  --teal-border: rgba(0,201,167,.2);
  --white: #e8f0f8; --grey: #7a8fa6;
  --card-bg: rgba(17,32,56,.8);
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: linear-gradient(rgba(0,201,167,.035) 1px,transparent 1px), linear-gradient(90deg,rgba(0,201,167,.035) 1px,transparent 1px);
  background-size: 55px 55px; pointer-events: none; z-index: 0;
}
.glow { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
.glow-1 { width: 600px; height: 600px; background: rgba(0,201,167,.07); top: -150px; right: -100px; }
.glow-2 { width: 450px; height: 450px; background: rgba(0,80,200,.06); bottom: 0; left: -150px; }
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
header { position: sticky; top: 0; z-index: 100; background: rgba(12,24,39,.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--teal-border); padding: 16px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.15;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--teal); }
.header-right { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.status-dot { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--teal); border: 1px solid var(--teal-border); padding: 5px 12px; border-radius: 20px; background: var(--teal-glow); }
.status-dot::before { content: ''; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.85); } }
.btn-contact { font-size: 12px; font-weight: 600; font-family: var(--font-sans); background: var(--teal); color: #0c1827; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; text-decoration: none; transition: opacity .2s,transform .2s; }
.btn-contact:hover { opacity: .88; transform: translateY(-1px); }

/* HERO */
.hero { padding: 88px 0 64px; text-align: center; animation: fadeUp .7s ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 24px; font-weight: 500; }
.eyebrow::before,.eyebrow::after { content: ''; width: 30px; height: 1px; background: var(--teal); opacity: .5; }
h1 { font-family: var(--font-display); font-size: clamp(34px,5.2vw,56px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
h1 .accent { color: var(--teal); }
.hero-sub { font-size: 16px; color: var(--grey); max-width: 520px; margin: 0 auto 48px; line-height: 1.72; font-weight: 400; }
.stats { display: flex; justify-content: center; border: 1px solid var(--teal-border); border-radius: 12px; overflow: hidden; max-width: 480px; margin: 0 auto 64px; background: var(--card-bg); }
.stat { flex: 1; padding: 20px 16px; text-align: center; border-right: 1px solid var(--teal-border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--teal); display: block; line-height: 1; margin-bottom: 5px; letter-spacing: -0.01em; }
.stat-label { font-size: 11px; color: var(--grey); letter-spacing: .04em; font-weight: 500; }

/* SECTION HEAD */
.section-head { text-align: center; margin-bottom: 48px; margin-top: 80px; }
.section-head h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.section-head p { font-size: 14px; color: var(--grey); }

/* PROJECT CARDS */
.projects { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 24px; margin-bottom: 80px; animation: fadeUp .7s .15s ease both; }
.project-card { background: var(--card-bg); border: 1px solid var(--teal-border); border-radius: 14px; overflow: hidden; transition: transform .3s,border-color .3s,box-shadow .3s; cursor: pointer; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.project-card:hover { transform: translateY(-6px); border-color: rgba(0,201,167,.5); box-shadow: 0 20px 60px rgba(0,0,0,.4),0 0 0 1px rgba(0,201,167,.15); }
.card-bar { height: 4px; background: linear-gradient(90deg,var(--teal),#00a8ff); }
.card-bar.orange { background: linear-gradient(90deg,#ff6b35,#f7c59f); }
.card-bar.purple { background: linear-gradient(90deg,#7c3aed,#a78bfa); }
.card-body { padding: 24px; flex: 1; }
.card-icon { width: 44px; height: 44px; background: var(--teal-glow); border: 1px solid var(--teal-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.card-icon.orange-bg { background: rgba(255,107,53,.1); border-color: rgba(255,107,53,.2); }
.card-icon.purple-bg { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.2); }
.card-type { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; font-weight: 600; }
.card-type.orange { color: #ff6b35; }
.card-type.purple { color: #a78bfa; }
.card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.35; }
.card-desc { font-size: 13px; color: var(--grey); line-height: 1.7; margin-bottom: 18px; font-weight: 400; }
.features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.features li { font-size: 12px; color: var(--grey); display: flex; align-items: flex-start; gap: 8px; }
.features li::before { content: '✓'; color: var(--teal); font-size: 11px; margin-top: 1px; flex-shrink: 0; }
.features li.orange::before { color: #ff6b35; }
.features li.purple::before { color: #a78bfa; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-size: 10px; letter-spacing: .5px; color: var(--grey); border: 1px solid rgba(255,255,255,.08); padding: 3px 9px; border-radius: 4px; background: rgba(255,255,255,.04); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--teal-border); display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,.15); }
.demo-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--teal); }
.demo-badge::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
.demo-badge.coming { color: var(--grey); }
.demo-badge.coming::before { background: var(--grey); animation: none; }
.btn-demo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; font-family: var(--font-sans); background: var(--teal); color: #0c1827; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; text-decoration: none; transition: opacity .2s,transform .15s; }
.btn-demo:hover { opacity: .88; transform: scale(1.03); }
.btn-demo svg { width: 13px; height: 13px; }
.btn-demo.disabled { background: rgba(255,255,255,.06); color: var(--grey); cursor: not-allowed; border: 1px solid rgba(255,255,255,.08); }
.btn-demo.disabled:hover { opacity:1; transform:none; }

/* ABOUT STRIP */
.about-strip { background: var(--card-bg); border: 1px solid var(--teal-border); border-radius: 14px; padding: 40px; margin-bottom: 80px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; backdrop-filter: blur(10px); animation: fadeUp .7s .25s ease both; }
.about-strip h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.25; }
.about-strip p { font-size: 14px; color: var(--grey); line-height: 1.7; max-width: 560px; }
.about-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; font-family: var(--font-sans); padding: 9px 18px; border-radius: 7px; text-decoration: none; white-space: nowrap; transition: opacity .2s,transform .15s; }
.link-btn:hover { opacity: .85; transform: translateY(-1px); }
.link-btn.github { background: rgba(255,255,255,.07); color: var(--white); border: 1px solid rgba(255,255,255,.12); }
.link-btn.linkedin { background: #0077b5; color: white; border: none; }
.link-btn.whatsapp { background: #25d366; color: #fff; border: none; }
.link-btn.email { background: var(--teal); color: #0c1827; border: none; }

/* FOOTER */
footer { border-top: 1px solid var(--teal-border); padding: 28px 0; text-align: center; }
footer p { font-size: 12px; color: var(--grey); }
footer span { color: var(--teal); }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--navy2); border: 1px solid var(--teal-border); border-radius: 16px; padding: 36px; max-width: 420px; width: 90%; position: relative; animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--grey); font-size: 20px; cursor: pointer; line-height: 1; font-family: inherit; }
.modal-close:hover { color: var(--white); }
.modal h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--grey); margin-bottom: 24px; }
.cred-box { background: rgba(0,201,167,.06); border: 1px solid var(--teal-border); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.cred-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.cred-row:last-child { border-bottom: none; }
.cred-label { color: var(--grey); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 500; }
.cred-value { font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 13px; color: var(--teal); letter-spacing: .3px; }
.modal-note { font-size: 11px; color: var(--grey); line-height: 1.6; margin-bottom: 20px; }
.modal-note strong { color: rgba(255,165,0,.9); }
.btn-go { width: 100%; padding: 12px; background: var(--teal); color: #0c1827; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; text-decoration: none; display: block; text-align: center; transition: opacity .2s; }
.btn-go:hover { opacity: .88; }

@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

@media (max-width:768px) {
  h1 { letter-spacing: -0.02em; }
  .stats { max-width: 100%; }
  .about-strip { grid-template-columns: 1fr; }
  .about-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .projects { grid-template-columns: 1fr; }
  .header-right .status-dot { display: none; }
}
