:root {
  --bg: #0a0f1e;
  --bg2: #0d1528;
  --card: #141d33;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent2: #22d3ee;
}
* { scroll-behavior: smooth; }
body {
  background: radial-gradient(1000px 500px at 20% -5%, rgba(56,189,248,.12), transparent), var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  padding-top: 70px;
}
.text-accent { color: var(--accent) !important; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

/* NAV */
.custom-nav { background: rgba(10,15,30,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.logo-box { background: var(--accent); color: #0a0f1e; border-radius: 10px; padding: 4px 9px; margin-right: 6px; font-size: .95rem; }
.navbar-dark .nav-link { color: #cbd5e1; font-weight: 500; }
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active { color: var(--accent); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #081220; font-weight: 700; border: none; border-radius: 12px; padding: .7rem 1.4rem; }
.btn-accent:hover { filter: brightness(1.08); color: #081220; transform: translateY(-1px); }

/* HERO */
.hero { padding: 2rem 0 1rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; color: #cbd5e1; background: rgba(255,255,255,.03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.15); display: inline-block; }
.hello { color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.hero h1 { letter-spacing: -1px; }
.role { color: #cbd5e1; font-weight: 600; font-size: 1.6rem; }
.tagline { color: var(--muted); max-width: 560px; }
.tech-pills span { border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; color: #cbd5e1; background: rgba(255,255,255,.03); }
.socials a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 1.1rem; transition: .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.profile-card { position: relative; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--card); }
.profile-img { width: 100%; height: 420px; object-fit: cover; object-position: top; display: block; }
.profile-overlay { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; background: rgba(8,12,24,.75); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 14px; padding: .7rem .9rem; }
.profile-overlay small { display: block; color: var(--muted); }
.status { font-size: .8rem; border: 1px solid var(--border); border-radius: 999px; padding: .25rem .7rem; display: inline-flex; gap: .4rem; align-items: center; }

.code-card { background: #0b1226; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.code-head { display: flex; gap: 6px; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.code-head span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; display: inline-block; }
.code-head span:nth-child(2) { background: #f59e0b; } .code-head span:nth-child(3) { background: #22c55e; }
.code-head em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.code-card pre { margin: 0; padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #7dd3fc; overflow-x: auto; }

.hero-stats .stat { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; text-align: center; }
.hero-stats strong { display: block; font-size: 1.5rem; } .hero-stats span { color: var(--muted); font-size: .85rem; }

/* SECTIONS */
.section { padding: 4rem 0; }
.kicker { color: var(--accent); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: .4rem; }
.section-title { font-weight: 800; letter-spacing: -.5px; }
.card-dark { background: var(--card); border: 1px solid var(--border); border-radius: 18px; transition: transform .2s, border-color .2s; }
.card-dark:hover { transform: translateY(-3px); border-color: rgba(56,189,248,.4); }
.edu { display: flex; gap: .7rem; align-items: flex-start; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px; padding: .8rem; }
.edu i { font-size: 1.4rem; color: var(--accent); }
.edu span { display: block; color: var(--muted); font-size: .85rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { padding-left: 1.8rem; position: relative; color: #d1d5db; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; background: rgba(56,189,248,.15); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }

/* SKILLS */
.skill-icon { font-size: 1.6rem; color: var(--accent); }
.skill h5 { margin: .7rem 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.tags span { font-size: .78rem; border: 1px solid var(--border); border-radius: 999px; padding: .25rem .7rem; background: rgba(56,189,248,.08); color: #bae6fd; }
.skill small { color: var(--muted); }

/* PROJECTS */
.badge-accent { background: rgba(56,189,248,.15); color: var(--accent); border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; font-weight: 600; }
.project-img { border-radius: 18px 18px 0 0; height: 240px; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); }
.feat { color: #cbd5e1; padding-left: 1.1rem; } .feat li { margin-bottom: .25rem; }

/* PROJECTS — video / portrait media */
.media-demo { display: flex; align-items: center; justify-content: center; background: #0b1226; border-right: 1px solid var(--border); padding: .75rem; }
.media-demo video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: #05070e; display: block; }
@media (max-width: 991.98px) { .media-demo { border-right: none; border-bottom: 1px solid var(--border); } }

/* DEMO MODAL */
.demo-modal { background: #0b1226; border: 1px solid var(--border); }
.demo-modal .modal-header { border-color: var(--border); }
.demo-modal .modal-title { color: var(--text); font-weight: 700; }
.demo-modal .modal-body { padding: .75rem; }
.demo-modal video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: #05070e; display: block; }
@media (max-width: 575.98px) { .demo-modal .modal-title { font-size: 1.05rem; } .demo-modal .modal-body { padding: .5rem; } }

/* JOURNEY */
.timeline, .roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.timeline li, .roadmap li { position: relative; padding-left: 1.6rem; color: #d1d5db; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline span { display: block; color: var(--muted); font-size: .9rem; }
.roadmap { counter-reset: step; } .roadmap li { counter-increment: step; }
.roadmap li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; background: rgba(56,189,248,.15); color: var(--accent); font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* CONTACT */
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: 1.2rem; text-decoration: none; color: var(--text); height: 100%; }
.contact-card:hover { color: var(--text); }
.contact-card i { font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: .5rem; }
.contact-card strong { display: block; font-size: 1rem; line-height: 1.2; }
.contact-card span { display: block; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; line-height: 1.4; }
.form-control { background: #0b1226; border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: .7rem .9rem; }
.form-control::placeholder { color: #64748b; opacity: 1; }
.form-control:focus { background: #0b1226; color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(56,189,248,.15); }
.form-label { font-weight: 600; }
.form-hint { display: block; margin-top: .6rem; }

.footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); }
.footer a { color: var(--muted); font-size: 1.2rem; } .footer a:hover { color: var(--accent); }

/* REVEAL — with no-JS / fail-safe fallback */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 576px) {
  .profile-img { height: 340px; }
  .project-img { height: 190px; }
  .section { padding: 3rem 0; }
}
