
/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TOKENS ── */
:root {
  --bg:       #0d0f14;
  --bg2:      #13161d;
  --bg3:      #1a1e28;
  --card:     #181c26;
  --border:   rgba(0,234,255,.12);
  --text:     #e8eaf0;
  --muted:    #7a8099;
  --accent:   #00eaff;
  --accent2:  #0091ff;
  --danger:   #ff4f6a;
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --glow:     0 0 20px rgba(0,234,255,.25);
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --nav-h:    64px;
  --trans:    0.25s ease;
}

.light {
  --bg:       #f0f4f8;
  --bg2:      #e4eaf2;
  --bg3:      #d8e2ee;
  --card:     #ffffff;
  --border:   rgba(0,100,160,.15);
  --text:     #111827;
  --muted:    #6b7280;
  --shadow:   0 4px 24px rgba(0,0,0,.1);
  --glow:     0 0 20px rgba(0,145,255,.2);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--trans), color var(--trans);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── CONTAINER ── */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--trans), transform var(--trans);
}
.card:hover {
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* ─────────────────────────────────
   NAVBAR
───────────────────────────────── */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  background: rgba(13,15,20,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-right: auto;
}
.dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: .25rem;
}
.nav-link {
  padding: .4rem .8rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--trans), background var(--trans);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(0,234,255,.08);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 1rem;
  transition: color var(--trans), border-color var(--trans);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
  order: 2;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: var(--nav-h);
  padding-inline: clamp(1rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

/* background effects */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,234,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,234,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.g1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00eaff 0%, transparent 70%);
  top: -100px; right: -100px;
}
.g2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0091ff 0%, transparent 70%);
  bottom: -80px; left: -80px;
}

/* content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  animation: fadeUp .8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,234,255,.1);
  border: 1px solid rgba(0,234,255,.3);
  color: var(--accent);
  font-size: .8rem;
  font-family: var(--font-mono);
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

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

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  padding: .7rem 1.6rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  box-shadow: 0 4px 20px rgba(0,234,255,.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(0,234,255,.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stack {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.hero-stack span {
  font-family: var(--font-mono);
  font-size: .78rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .25rem .6rem;
  color: var(--muted);
}

/* image */
.hero-img-wap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: fadeUp .8s ease .2s both;
}
.hero-img-ing {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent2), transparent, var(--accent));
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-img {
  width: clamp(180px, 25vw, 300px);
  height: clamp(180px, 25vw, 300px);
  object-fit: "";
  border-radius: 50%;
  border: 4px solid var(--bg);
  position: relative;
}

/* ─────────────────────────────────
   SECTIONS — shared
───────────────────────────────── */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.section-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

/* ─────────────────────────────────
   ABOUT
───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}
.about-text strong { color: var(--text); }
.highlight { color: var(--accent); font-weight: 700; }

.quick-info h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.info-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  margin-bottom: .5rem;
}
.info-item i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.info-item div { display: flex; flex-direction: column; gap: .1rem; }
.info-label { font-size: .72rem; color: var(--muted); font-family: var(--font-mono); }
.info-item strong { font-size: .9rem; font-weight: 700; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-size: .85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ─────────────────────────────────
   SKILLS
───────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-tags span {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .35rem .8rem;
  font-size: .85rem;
  font-family: var(--font-mono);
  color: var(--text);
  transition: border-color var(--trans), color var(--trans);
}
.skill-tags span:hover { border-color: var(--accent); color: var(--accent); }

.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  transition: border-color var(--trans);
}
.tool-item:hover { border-color: var(--accent); }
.tool-item img { width: 28px; height: 28px; object-fit: contain; }
.tool-item span { font-size: .88rem; font-weight: 600; }

/* ─────────────────────────────────
   PROJECTS
───────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  padding: 0;
}
.project-img-wrap {
  position: relative;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: '';
  background: grey;
}


.project-image-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: '';
}
.project-image-placeholder i{
  font-size: 3rem;
}
.project-card:hover .project-img-wrap img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  opacity: 0;
  transition: opacity var(--trans);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background var(--trans);
}
.project-overlay button:hover { background: rgba(0,234,255,.15); }

.project-info {
  padding: 1.2rem;
}
.project-info h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.project-info p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag {
  font-size: .75rem;
  font-family: var(--font-mono);
  padding: .2rem .55rem;
  border-radius: 5px;
  font-weight: 700;
}
.tag.html { background: rgba(255,100,50,.12); color: #ff6432; border: 1px solid rgba(255,100,50,.25); }
.tag.css  { background: rgba(0,145,255,.12);  color: #0091ff; border: 1px solid rgba(0,145,255,.25); }
.tag.js   { background: rgba(255,215,0,.12);  color: #ffd700; border: 1px solid rgba(255,215,0,.25); }

.coming-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  position: relative;
}
.cs-label {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,234,255,.1);
  border: 1px solid rgba(0,234,255,.3);
  color: var(--accent);
  font-size: .72rem;
  font-family: var(--font-mono);
  padding: .2rem .6rem;
  border-radius: 5px;
}

/* ─────────────────────────────────
   WORKFLOW / TIMELINE
───────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-block: 1.2rem;
  position: relative;
}

.tl-icon {
  position: absolute;
  left: -2.9rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0,234,255,.3);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tl-body{margin-inline-start: 20px;}
.tl-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.tl-body p { font-size: .88rem; color: var(--muted);}

/* ─────────────────────────────────
   JOURNEY
───────────────────────────────── */
.journey-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.journey-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.journey-year {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 60px;
}

.journey-desc h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.journey-desc p { font-size: .88rem; color: var(--muted); }

/* ─────────────────────────────────
   CONTACT
───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 2rem 1rem;
  transition: transform var(--trans), box-shadow var(--trans);
}
.contact-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: .3rem;
}
.contact-card h4 { font-size: .95rem; font-weight: 700; }
.contact-card p  { font-size: .82rem; color: var(--muted); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.footer p { font-size: .88rem; color: var(--muted); }
.footer-note { font-size: .78rem !important; opacity: .6; }

/* ─────────────────────────────────
   ANIMATIONS
───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────
   RESPONSIVE
───────────────────────────────── */

/* Tablet  (≤ 900px) */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 3rem;
  }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stack { justify-content: center; }
  .hero-sub { margin-inline: auto; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    background: rgba(13,15,20,.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    gap: .25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link {
    padding: .75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .hamburger { display: flex; }

  .stats-row { grid-template-columns: 1fr; }
  .tools-list { grid-template-columns: 1fr 1fr; }

  .hero-img { width: 160px; height: 170px; }
  .hero-img-ring { inset: -6px; }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .journey-list { grid-template-columns: 1fr; }
}

/* Very small (≤ 380px) */
@media (max-width: 380px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-title   { font-size: 2.2rem; }
}
