/* ---------- Reset & base ---------- */
:root{
  --bg-1: #fff7fb;      /* pastel light */
  --bg-2: #e8f6ff;      /* gradient mix */
  --accent: #f06292;    /* pink accent */
  --accent-2: #6ec6ff;  /* secondary blue */
  --muted: #667085;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 6px 20px rgba(15,23,42,0.08);
  --radius: 12px;
  --dark-bg: #0f1724;
}

/* Dark theme variables will be toggled via .dark on body */
body.dark {
  --bg-1: #071029;
  --bg-2: linear-gradient(135deg,#071029,#0b1630);
  --card: #0f1724;
  --glass: rgba(255,255,255,0.03);
  --muted: #9aa6b2;
  --shadow: 0 6px 30px rgba(2,6,23,0.7);
}

/* Base */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; font-family: 'Nunito', sans-serif; -webkit-font-smoothing:antialiased; }
body {
  background: linear-gradient(120deg, var(--bg-1), var(--bg-2));
  color: #0b1220;
  transition: background 400ms ease, color 300ms ease;
}

/* container */
.container { max-width:1100px; margin:0 auto; padding: 24px; }

/* sticky header */
.site-header { position: sticky; top:0; z-index:40; backdrop-filter: blur(6px); }
.nav {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding: 12px 0;
}
.brand { display:flex; align-items:center; gap:12px; }
.nav-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,255,255,0.6); }
.logo { font-weight:800; color:var(--accent); text-decoration:none; font-size:1.05rem; }

/* nav links */
.nav-links { display:flex; gap:14px; align-items:center; list-style:none; margin:0; padding:0; }
.nav-links a { color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:8px; }
.nav-links a:hover { background:var(--glass); color:var(--accent); }

/* hero */
.hero { display:flex; gap:30px; align-items:center; padding:40px 0; }
.hero-left { flex:1; text-align:left; }
.hero-right { width:320px; display:flex; justify-content:center; align-items:center; }
.hero-title { font-size:2.6rem; margin:0 0 6px; color:var(--accent); }
.name { color:#1e293b; font-weight:800; }
.hero-sub { color:var(--muted); margin:6px 0 14px; }
.typing { color:#0b1220; font-weight:600; margin-bottom:18px; min-height:26px; }

/* profile card */
.profile-card { background:var(--card); padding:18px; border-radius:16px; box-shadow:var(--shadow); text-align:center; width:100%; }
.profile-photo { width:120px; height:120px; object-fit:cover; border-radius:50%; border:4px solid var(--accent); display:block; margin:0 auto 12px; }

/* buttons */
.btn { display:inline-block; padding:10px 18px; border-radius:999px; text-decoration:none; font-weight:700; border:none; cursor:pointer; }
.btn.primary { background: linear-gradient(90deg,var(--accent), #ff8aa0); color:white; box-shadow:0 10px 20px rgba(240,92,142,0.15); }
.btn.ghost { background:transparent; border:2px solid rgba(0,0,0,0.06); color:var(--muted); }
.btn.small { padding:8px 12px; font-size:.9rem; }

/* sections */
.section { padding:60px 0; }
.section-title { text-align:center; font-size:1.9rem; color:var(--accent); margin-bottom:28px; }

/* projects grid */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.project-card { background:var(--card); border-radius:14px; overflow:hidden; min-height:260px; display:flex; flex-direction:column; box-shadow:var(--shadow); transition:transform .35s ease, box-shadow .35s ease; }
.project-card:hover { transform:translateY(-8px) scale(1.01); box-shadow:0 18px 40px rgba(2,6,23,0.12); }

/* project media */
.project-media img { width:100%; height:140px; object-fit:cover; display:block; }

/* body */
.project-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; }
.project-body h3 { margin:0 0 8px; color:var(--accent); }
.project-body p.muted { color:var(--muted); margin:0 0 10px; font-size:.95rem; }
.tags { margin-top:auto; display:flex; gap:8px; flex-wrap:wrap; }
.tags span { background: linear-gradient(90deg,#fff6fb,#fff2f6); color:#c2185b; padding:6px 8px; border-radius:8px; font-size:.78rem; }

/* tiny buttons */
.project-links { margin-top:12px; display:flex; gap:8px; }
.btn.tiny { padding:7px 10px; font-size:.85rem; border-radius:10px; }

/* skills */
.skills-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px; }
.skill-card { background:var(--card); padding:14px; border-radius:12px; box-shadow:var(--shadow); }
.progress { background:linear-gradient(90deg,#f5f7fa,#eef6ff); height:12px; border-radius:999px; overflow:hidden; margin-top:8px; }
.progress span { display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--accent), var(--accent-2)); transition:width 1.2s cubic-bezier(.2,.9,.3,1); }

/* contact */
.contact-form { max-width:700px; margin:18px auto 0; display:flex; flex-direction:column; gap:10px; }
.contact-form input, .contact-form textarea { padding:12px; border-radius:8px; border:1px solid #e6eef8; background:transparent; color:inherit; }
.form-status { margin-top:8px; min-height:22px; color:var(--muted); }

/* back to top */
#backTop { position:fixed; right:18px; bottom:18px; width:44px; height:44px; border-radius:50%; border:none; background:linear-gradient(90deg,var(--accent),#ff8aa0); color:white; font-weight:700; display:none; cursor:pointer; box-shadow:0 8px 20px rgba(240,92,142,0.15); }

/* floating shapes */
.float-shape { position:fixed; z-index:0; filter:blur(20px); opacity:.6; pointer-events:none; transform:translateZ(0); }
.float-shape.s1 { width:220px; height:220px; right:-50px; top:40%; background:radial-gradient(circle,#ffd6e8,#ffd6e8 60%,transparent); animation:float 8s ease-in-out infinite; }
.float-shape.s2 { width:160px; height:160px; left:-40px; top:10%; background:radial-gradient(circle,#d8f3ff,#d8f3ff 60%,transparent); animation:float 10s ease-in-out infinite; }
.float-shape.s3 { width:120px; height:120px; right:10%; bottom:20%; background:radial-gradient(circle,#ffe9d6,#ffe9d6 60%,transparent); animation:float 9s ease-in-out infinite; }
@keyframes float { 0%{ transform:translateY(0) }50%{ transform:translateY(-18px)}100%{ transform:translateY(0)} }

/* responsive */
@media (max-width:900px){
  .hero { flex-direction:column-reverse; text-align:center; }
  .hero-right { width:100%; }
  .nav-links { display:none; }
}
