/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
:root{
  /* Brand + theme (different from earlier projects) */
  --bg1:#0c1324;          /* deep indigo */
  --bg2:#10273a;          /* cool teal navy */
  --card:#111a2f;
  --text:#eaf1ff;
  --muted:#a9b7d6;
  --accent:#7aa7ff;       /* sky blue */
  --accent-2:#8c5bff;     /* purple for gradients */
  --radius:18px; --radius-lg:26px; --shadow:0 10px 28px rgba(0,0,0,.35);
  --maxw:1100px;
}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 10% -10%, #1a2b55 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, #163a4f 0%, transparent 60%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
  line-height:1.6;
  overflow-x:hidden; /* prevents any stray shapes from showing */
}
.container{ width:min(92%, var(--maxw)); margin:0 auto; }
.container.narrow{ width:min(92%, 820px); }
a{ color:inherit; text-decoration:none; }
p{ color:var(--muted); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(120%) blur(10px);
  background:linear-gradient(180deg, rgba(13,19,36,.85), rgba(13,19,36,.45));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand{ font-weight:800; letter-spacing:.4px; }
.nav-links{ display:flex; gap:26px; list-style:none; padding:0; margin:0; }
.nav-links a{ opacity:.85; transition:opacity .2s,color .2s; }
.nav-links a:hover,.nav-links a.active{ opacity:1; color:var(--accent); }
.nav-toggle{ display:none; background:none; border:0; width:36px; height:36px; position:relative; }
.nav-toggle span,.nav-toggle span:before,.nav-toggle span:after{
  content:""; position:absolute; left:7px; right:7px; height:2px; background:#fff; border-radius:2px;
}
.nav-toggle span{ top:17px; } .nav-toggle span:before{ top:-8px; } .nav-toggle span:after{ top:8px; }

/* ---------- Hero ---------- */
.hero{ padding:90px 0 40px; }
.hero-grid{ display:grid; align-items:center; gap:42px; grid-template-columns: 1.05fr .95fr; }
.eyebrow{ margin:0 0 6px; font-size:clamp(18px,2vw,22px); opacity:.85; }
h1{ margin:0; font-size:clamp(34px,6.5vw,64px); line-height:1.05; }
h2.subtitle{ margin:.35em 0 0; font-size:clamp(20px,3vw,30px); font-weight:800; opacity:.95; }
.accent{ color:var(--accent); }
.lead{ margin:18px 0 28px; font-size:clamp(15px,2vw,18px); }

/* CTA buttons — removed stray glow that created a shape under the button */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 18px; border-radius:999px; border:1px solid transparent;
  font-weight:600; letter-spacing:.3px; transition:transform .15s, box-shadow .2s, background .2s, border .2s;
}
.btn.primary{
  background:linear-gradient(135deg, var(--accent), #4a6aff);
  color:#fff;
  box-shadow:0 8px 16px rgba(90,123,255,.25); /* subtle – no weird crescent */
}
.btn.primary:hover{ transform:translateY(-2px); }
.btn.outline{ background:transparent; border-color:rgba(255,255,255,.18); color:#fff; }
.btn.outline:hover{ border-color:rgba(255,255,255,.35); transform:translateY(-2px); }
.hero-cta{ display:flex; gap:14px; }

/* ---------- Curvy blob + portrait ---------- */
.hero-visual{ display:flex; justify-content:center; }
.blob{
  position:relative; width:min(420px, 85vw); aspect-ratio:1/1;
  border-radius:56% 44% 60% 40% / 42% 58% 38% 62%;
  background: radial-gradient(60% 60% at 60% 40%, var(--accent) 0%, var(--accent-2) 70%);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.blob img{
  position:absolute; bottom:-2%; left:50%; transform:translateX(-50%);
  width:86%; max-width:360px;
  /* Soften JPEG white edges without changing your face */
  -webkit-mask-image: radial-gradient(120% 120% at 50% 30%, #000 60%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 30%, #000 60%, transparent 100%);
  filter: contrast(1.02) saturate(1.03);
}

/* ---------- Sections ---------- */
.section{ padding:86px 0; }
.section.alt{ background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.section-title{
  font-size:clamp(22px,3vw,28px); display:inline-block; margin:0 0 22px; position:relative;
}
.section-title:after{
  content:""; position:absolute; left:0; bottom:-6px; width:82px; height:3px;
  background:linear-gradient(90deg, var(--accent), transparent 70%); border-radius:3px;
}

/* About */
.bullets{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px 18px; padding-left:18px; }
.bullets li{ color:#d2daf3; }

/* Cards (skills) */
.cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.card{
  background:var(--card); border:1px solid rgba(255,255,255,.06);
  padding:22px; border-radius:var(--radius); box-shadow:var(--shadow);
  transition:transform .25s, box-shadow .25s;
}
.card h4{ margin:0 0 8px; }
.card:hover{ transform:translateY(-6px); box-shadow:0 12px 32px rgba(0,0,0,.35); }

/* Projects */
.projects{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:18px; }
.project{
  background:var(--card); border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius-lg); overflow:hidden; transform:translateZ(0);
  transition:transform .25s, box-shadow .25s;
}
.project:hover{ transform:translateY(-6px); box-shadow:0 12px 32px rgba(0,0,0,.35); }
.thumb{ height:150px; background:#0f1a2d; overflow:hidden; }
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.project-body{ padding:20px; }
.chip{
  display:inline-block; margin-right:8px; margin-top:10px; padding:6px 10px; font-size:12px;
  border-radius:999px; background:rgba(122,167,255,.16); color:#dbe4ff; border:1px solid rgba(122,167,255,.32);
}

/* Contact */
.contact-form .row{ display:flex; gap:12px; }
.contact-form input, .contact-form textarea{
  width:100%; background:#0f1a33; color:#fff; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:12px 14px; outline:none;
}
.contact-form input:focus, .contact-form textarea:focus{ border-color:var(--accent); }
.contact-form .actions{ align-items:center; }
.tiny{ font-size:12px; color:#9fb0d7; margin-top:10px; }

/* Footer */
.site-footer{ padding:28px 0; border-top:1px solid rgba(255,255,255,.06); text-align:center; color:#a2aed1; }

/* ---------- Scroll reveal (staggered) ---------- */
.reveal{ opacity:0; transform: translateY(22px); }
.reveal.is-visible{
  opacity:1; transform:none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s); /* small stagger */
}

/* Tilt micro‑interaction */
.tilt{ transform-style:preserve-3d; perspective:600px; }
.tilt:hover{ transform: rotateX(2deg) rotateY(-2deg) translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .nav-links{
    position:fixed; right:16px; top:72px; background:#0e152c; border:1px solid rgba(255,255,255,.08);
    border-radius:14px; padding:14px 18px; flex-direction:column; gap:14px; display:none;
  }
  .nav-toggle{ display:block; }
}
@media (max-width: 680px){
  .cards{ grid-template-columns:1fr; }
  .contact-form .row{ flex-direction:column; }
}

/* --- Image hover motion --- */
/* --- Project image hover motion --- */
.project .thumb img{
  transition: transform .8s cubic-bezier(.22,1,.36,1);
  transform: scale(1);
}
.project:hover .thumb img{
  transform: scale(1.15) translateY(-8px) rotateZ(.8deg); /* bigger zoom, lift, slight tilt */
}

/* Hero portrait motion */
.blob{ transition: transform .35s ease; }
.blob img{ transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.blob:hover{ transform: translateY(-2px); }
.blob:hover img{ transform: translateX(-50%) scale(1.04); }

/* --- Navbar hover motion --- */
.nav-links a{
  position: relative;
  transition: color .25s ease, transform .2s ease;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-8px; height:2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
  opacity:.85;
}
.nav-links a:hover{ transform: translateY(-2px); }
.nav-links a:hover::after,
.nav-links a.active::after{ transform: scaleX(1); }
