/* ============ CSS RESET + THEME VARS ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }


:root {
  --bg: #0b0f1a;
  --bg-soft: #0f1524;
  --card: #11172a;
  --text: #e6ecff;
  --muted: #a7b1d6;
  --brand: #6aa7ff;
  --brand-2: #8b5cf6; /* violet */
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ring: #60a5fa66;
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.25);
  --radius: 18px;
}

[data-theme="light"] {
  --bg: #f7f9ff;
  --bg-soft: #eef3ff;
  --card: #ffffff;
  --text: #121826;
  --muted: #5b6479;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --shadow: 0 10px 30px rgba(2,6,23,.08), 0 2px 10px rgba(2,6,23,.06);
}

body {
  background:
    radial-gradient(1200px 900px at 80% -10%, #1b2546 0%, transparent 60%),
    radial-gradient(1000px 700px at -10% 10%, #251a52 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92%); margin-inline: auto; }

/* ============ UTILS ============ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; font-weight: 600; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn.ghost { background: transparent; border-color: #334155; color: var(--text); box-shadow: none; }
.chip {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem; border-radius: 999px; background: #1f2937;
  color: #cbd5e1; font-size: .8rem; border: 1px solid #334155;
}
.card { background: linear-gradient(180deg, var(--card), transparent 120%); border: 1px solid #26304a; border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 1.1rem; }
.pad-sm { padding: 1rem; }
.glass { backdrop-filter: blur(10px); background: #0b122466; border: 1px solid #1e293b; }
.muted { color: var(--muted); }
.grid { display:grid; gap: 1.2rem; }
.brand-accent { color: var(--brand); }
.title-accent { background:linear-gradient(90deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ HEADER ============ */
header { position: sticky; top: 0; z-index: 80; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(10,14,25,.7), rgba(10,14,25,.2)); border-bottom: 1px solid rgba(148,163,184,.15); }
.nav { display:flex; align-items:center; justify-content:space-between; padding: .7rem 0; }
.brand { display:flex; align-items:center; gap:.7rem; font-weight:800; letter-spacing:.4px; }
nav ul { display:flex; gap: .9rem; list-style:none; }
nav a { padding:.55rem .8rem; border-radius: 10px; color: var(--text); font-weight:600; }
nav a.active, nav a:hover { background: #0f172a; border: 1px solid #334155; }

.theme { display:flex; align-items:center; gap:.5rem; }
.toggle { position: relative; width: 54px; height: 28px; background: #0b1224; border: 1px solid #334155; border-radius: 999px; cursor: pointer; }
.toggle i { position:absolute; top: 50%; transform: translateY(-50%); left: 2px; width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(135deg, #eab308, #f97316); transition: left .25s ease, background .2s ease; }
[data-theme="light"] .toggle i { left: 28px; background: linear-gradient(135deg, #111827, #334155); }

/* ============ HERO ============ */
.hero { padding: 7rem 0 4rem; display:grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items:center; }
.hero .title { font-size: clamp(1.8rem, 3.6vw, 3.4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.hero .subtitle { margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.hero .cta { margin-top: 1.5rem; display:flex; gap:.8rem; flex-wrap:wrap; }
.hero .badges { display:flex; flex-wrap:wrap; gap:.6rem; margin-top: 1rem; }
.scrollcue { margin-top: 2rem; display:flex; align-items:center; gap:.6rem; color: var(--muted); font-weight: 600; }
.mouse { width: 20px; height: 30px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.mouse::after { content:""; position:absolute; top:6px; left:50%; width: 4px; height: 6px; transform: translateX(-50%); background: var(--muted); border-radius: 2px; animation: wheel 1.4s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translate(-50%, 0); opacity: 1;} 100% { transform: translate(-50%, 8px); opacity: 0;} }

.hero-image { border-radius: 16px; aspect-ratio: 1/1; object-fit: cover; width: 80%; }

/* ============ SECTION ============ */
section { padding: 4.5rem 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.01em; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ============ SKILLS ============ */
.filters { display:flex; gap:.6rem; flex-wrap:wrap; }
.filters button { padding:.5rem .75rem; border-radius: 999px; border:1px solid #334155; background:#0f172a; color:var(--text); cursor:pointer; font-weight:600; }
.filters button.active { background: linear-gradient(135deg, #0b162e, #101b36); border-color:#4b5563; }

.skills-grid { grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) ); }
.skill { padding: 1rem; display:grid; gap:.6rem; }
.skill .top { display:flex; align-items:center; justify-content:space-between; gap:.8rem; }
.meter { height: 10px; background: #0b1224; border: 1px solid #334155; border-radius: 999px; overflow:hidden; }
.meter > i { display:block; height:100%; width:0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-right:1px solid #1f2937; transition: width 1.1s ease; }

.stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.stat { padding: .9rem 1rem; display:grid; gap:.35rem; border: 1px dashed #334155; border-radius: 14px; }
.stat b { font-size: 1.35rem; }

/* ============ PROJECTS ============ */
.projects-grid { grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) ); }
.project { position:relative; overflow:hidden; }
.project .thumb { aspect-ratio: 16/10; background: #0b1224; border-bottom: 1px solid #26304a; }
.project .content { padding: 1rem; display:grid; gap:.6rem; }
.project .tags { display:flex; gap:.4rem; flex-wrap:wrap; }
.project .overlay { position:absolute; inset:0; display:grid; place-items:center; background: linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,.85)); opacity:0; transition: opacity .25s ease; }
.project:hover .overlay { opacity:1; }

/* ============ EDUCATION ============ */
.timeline { position: relative; }
.timeline::before { content:""; position:absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: #22314e; }
.tl-item { position:relative; padding-left: 48px; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-bullet { position:absolute; left: 8px; top: .2rem; width: 16px; height: 16px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 4px #0b1224; border: 1px solid #334155; }
.tl-list { margin-top:.5rem; display:grid; gap:.35rem; padding-left: 1rem; }

/* ============ CONTACT ============ */
.contact-grid { grid-template-columns: 1.1fr .9fr; }
form { display:grid; gap:.75rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid #334155; background: #0b1224; color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.help { font-size: .9rem; color: var(--muted); }

.social-card { display:flex; flex-direction:column; gap:1rem; }
.socials { display:flex; gap:1rem; flex-wrap:wrap; font-size:1.6rem }
.socials a { color: var(--text); }
.app-card h3 { margin-bottom: .2rem; }
.store-link { display:flex; align-items:center; gap:.8rem; text-decoration:none; color:var(--text); font-weight:600 }
.store-link img { height: 40px; width: auto; }
.zingers { list-style: '✨ '; padding-left: 1rem; color: var(--muted); font-size:1rem; line-height:1.6; display:grid; gap:.35rem; }

/* ============ FOOTER ============ */
footer { padding: 3rem 0; color: var(--muted); border-top: 1px solid #1f2b45; margin-top: 3rem; }
.footer-wrap { display:flex; justify-content:space-between; align-items:center; gap:.8rem; flex-wrap:wrap }

/* ============ MEDIA ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}

.tl-bullet {
  position:absolute;
  left: 0;
  top: .2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px #0b1224;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;            /* icon color */
  font-size: 14px;        /* adjust size */
}
/* === Hamburger (minimal) === */
.hamburger{display:none;align-items:center;justify-content:center;width:42px;height:42px;
  border-radius:10px;border:1px solid var(--border,rgba(148,163,184,.18));
  background:var(--glass,rgba(255,255,255,.06));cursor:pointer}
.hamburger i{display:block;width:18px;height:2px;background:currentColor;position:relative}
.hamburger i::before,.hamburger i::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;
  transition:transform .25s ease, top .25s ease, opacity .25s}
.hamburger i::before{top:-6px} .hamburger i::after{top:6px}
.hamburger[aria-expanded="true"] i{background:transparent}
.hamburger[aria-expanded="true"] i::before{top:0;transform:rotate(45deg)}
.hamburger[aria-expanded="true"] i::after{top:0;transform:rotate(-45deg)}

/* === Mobile panel (slide-down) === */
.mobile-panel{position:fixed;inset:64px 0 0;transform:translateY(-8px);opacity:0;pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  background:linear-gradient(180deg, var(--card,#0f172a), rgba(0,0,0,.3));
  backdrop-filter:saturate(180%) blur(10px); border-top:1px solid var(--border,rgba(148,163,184,.18)); z-index:40}
.mobile-panel.open{opacity:1;transform:translateY(0);pointer-events:auto}
.mobile-panel ul{list-style:none;margin:0;padding:16px;display:grid;gap:8px}
.mobile-panel a{display:block;padding:14px 12px;border-radius:12px;text-decoration:none;color:inherit;
  background:var(--glass,rgba(255,255,255,.06));border:1px solid var(--border,rgba(148,163,184,.18))}

/* === Responsive switch === */
@media (max-width: 780px){
  header nav{display:none;}         /* hide desktop nav */
  .hamburger{display:flex;}         /* show burger */
}

/* ====== SOLID Mobile Panel (no transparency) ====== */
.mobile-panel{
  position:fixed; inset:64px 0 0; z-index:40;
  transform:translateY(-8px); opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  background: var(--card, #0f172a);           /* solid background */
  border-top:1px solid var(--border, rgba(148,163,184,.18));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.mobile-panel.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
.mobile-panel ul{ list-style:none; margin:0; padding:16px; display:grid; gap:10px; }
.mobile-panel a{ display:block; padding:14px 12px; border-radius:12px; text-decoration:none; color:inherit;
  background: transparent; border:1px solid var(--border, rgba(148,163,184,.18)); }

/* ====== Project card head / thumb (structure) ====== */
.proj-head{ display:flex; align-items:center; gap:12px; }
.proj-thumb{ width:56px; height:56px; border-radius:12px; object-fit:cover; border:1px solid var(--border, rgba(148,163,184,.18)); }
.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.card-head h3{ margin:0 0 4px; }
.card-head p{ margin:0; }

/* ====== Mobile-first structured layout ====== */
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; gap:20px; padding-top:28px; }
  .hero-right{ order:-1; }
  .contact-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
}

/* Switch to 1-column on small screens for clear structure */
@media (max-width: 780px){
  header nav{ display:none; }
  .hamburger{ display:flex; }

  .skills-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
  .projects-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
  .stats{ display:grid; grid-template-columns:1fr; gap:12px; }

  .card.pad{ padding:16px; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:8px; }
  .badges{ gap:8px; }
}

/* Slight compaction for very small screens */
@media (max-width: 420px){
  .brand span{ font-size:15px; }
  .btn{ width:100%; text-align:center; }
}
@media (max-width: 780px){
  #resumeBtn { display: none; } /* hide desktop resume button on mobile */
}


