/* ════════════════════════════════════════════
   VANSH SHARMA — PORTFOLIO STYLES
   Sketch / Hand-drawn aesthetic
════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #faf9f6;
  --cream2:  #f5f3ee;
  --ink:     #1a1a1a;
  --ink2:    #3d3d3d;
  --ink3:    #6b6b6b;
  --ink4:    #9a9a9a;
  --yellow:  #fef08a;
  --yellow2: #fde047;
  --green:   #bbf7d0;
  --green2:  #4ade80;
  --pink:    #fecdd3;
  --pink2:   #fb7185;
  --blue:    #bfdbfe;
  --blue2:   #60a5fa;
  --purple:  #e9d5ff;
  --purple2: #c084fc;
  --orange:  #fed7aa;
  --orange2: #fb923c;
  --hand:    'Caveat', cursive;
  --body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--cream); color: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,249,246,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2.5px solid var(--ink);
  padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-photo {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); object-fit: cover; object-position: top center;
  box-shadow: 2px 2px 0 var(--ink);
}
.nav-logo { font-family: var(--hand); font-size: 20px; font-weight: 700; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-family: var(--hand); font-size: 17px; font-weight: 600; color: var(--ink2);
  position: relative; transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-social { display: flex; gap: 0.7rem; align-items: center; flex-shrink: 0; }
.nav-social a { color: var(--ink3); transition: color 0.15s; display: flex; align-items: center; }
.nav-social a:hover { color: var(--ink); }
.nav-resume-btn { font-size: 13px !important; padding: 5px 12px !important; box-shadow: 2px 2px 0 var(--ink) !important; }
.hamburger {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 8px;
  font-size: 20px; padding: 2px 8px; cursor: pointer; font-family: var(--hand);
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: var(--cream); border-bottom: 2.5px solid var(--ink);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--hand); font-size: 18px; font-weight: 600;
  padding: 12px 2rem; border-bottom: 1.5px solid #e8e4dc;
}
.mobile-menu a:hover { background: var(--yellow); }

/* ── BUTTONS ── */
.btn-sketch {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--hand); font-size: 17px; font-weight: 700;
  padding: 10px 22px; border-radius: 10px; border: 2.5px solid var(--ink);
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-sketch:hover  { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-sketch:active { transform: translate(1px,1px);   box-shadow: 1px 1px 0 var(--ink); }
.btn-fill    { background: var(--ink); color: var(--cream); }
.btn-outline { background: var(--cream); color: var(--ink); }
.btn-soft    { background: transparent; color: var(--ink); box-shadow: 3px 3px 0 var(--ink3); border-color: var(--ink3); }
.btn-soft:hover { box-shadow: 5px 5px 0 var(--ink3); }

/* ── HERO ── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 80px 2rem 40px; max-width: 1160px; margin: 0 auto;
  gap: 3rem; position: relative;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(254,240,138,.28) 0%, transparent 45%),
    radial-gradient(circle at 10% 75%, rgba(187,247,208,.2) 0%, transparent 40%);
}
/* bg doodle decorations */
.bg-doodle { position: absolute; opacity: 0.1; pointer-events: none; }
.d1 { width: 80px; height: 80px; top: 130px; right: 240px; }
.d2 { width: 60px; height: 60px; bottom: 100px; left: 380px; }
.bg-star { position: absolute; pointer-events: none; }
.s1 { top: 110px; left: 180px; font-size: 28px; opacity: 0.18; color: #f59e0b; }
.s2 { bottom: 130px; right: 150px; font-size: 20px; opacity: 0.14; color: #a78bfa; }
.s3 { top: 200px; right: 120px; font-size: 14px; opacity: 0.12; color: #4ade80; }

.hero-left { flex: 1; position: relative; z-index: 1; }

.open-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 2px solid var(--ink); border-radius: 100px;
  padding: 5px 14px; font-family: var(--hand); font-size: 15px; font-weight: 600;
  background: var(--yellow); margin-bottom: 1.4rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-greeting { font-family: var(--hand); font-size: 20px; font-weight: 500; color: var(--ink3); margin-bottom: 0.3rem; }

.hero-name {
  font-family: var(--hand); font-size: clamp(3.2rem, 6.5vw, 5rem);
  font-weight: 700; line-height: 1.05; margin-bottom: 0.2rem;
}
.squiggle-underline { width: 260px; height: 12px; display: block; margin-top: 2px; }

.hero-subtitle {
  font-family: var(--hand); font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600; color: var(--ink2); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.curr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 2px 10px; background: var(--green); font-size: 0.78em; font-weight: 700;
}

.hero-desc { font-size: 15px; line-height: 1.78; color: var(--ink2); max-width: 490px; margin-bottom: 1.8rem; }
.hero-desc strong { color: var(--ink); font-weight: 600; }

.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  font-family: var(--hand); font-size: 15px; color: var(--ink3); align-items: center;
}
.hero-meta a { display: flex; align-items: center; gap: 5px; transition: color 0.15s; }
.hero-meta a:hover { color: var(--ink); }

/* hero right — photo card */
.hero-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; position: relative; z-index: 1; }

.photo-card {
  width: 220px; background: #fff;
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 1.2rem 1rem 1rem; text-align: center;
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(1.5deg); position: relative;
}
.photo-card::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 20px; height: 20px;
  background: var(--cream2); border-top: 2px solid #c8c4bc; border-left: 2px solid #c8c4bc;
  border-radius: 0 0 14px 0;
}
.deco-tl { position: absolute; top: -14px; right: -12px; font-size: 26px; transform: rotate(20deg); color: #f59e0b; }
.deco-br { position: absolute; bottom: -10px; left: -10px; font-size: 20px; transform: rotate(-15deg); color: #a78bfa; }

.profile-img {
  width: 130px; height: 130px; border-radius: 50%;
  border: 3px solid var(--ink); object-fit: cover; object-position: top center;
  display: block; margin: 0 auto 0.8rem;
}
.card-name   { font-family: var(--hand); font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.card-role   { font-family: var(--hand); font-size: 12px; color: var(--ink3); margin-bottom: 4px; }
.card-school { font-family: var(--hand); font-size: 11px; color: var(--ink4); }

.that-me { font-family: var(--hand); font-size: 14px; color: var(--ink3); display: flex; align-items: center; gap: 5px; }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  background: #fff; padding: 10px 0;
}
.ticker-inner {
  display: flex; white-space: nowrap;
  animation: scroll-l 38s linear infinite;
}
.ticker-inner span { font-family: var(--hand); font-size: 16px; font-weight: 600; color: var(--ink2); padding: 0 1rem; }
.t-star { color: var(--orange2) !important; }
@keyframes scroll-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── STATS ── */
.stats-row {
  max-width: 1160px; margin: 0 auto;
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  padding: 2.5rem 2rem;
  border-bottom: 2px dashed #d0ccc4;
}
.stat-card {
  flex: 1; min-width: 130px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 1rem 1.2rem; box-shadow: 4px 4px 0 var(--ink); text-align: center;
}
.stat-num   { font-family: var(--hand); font-size: 2.8rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-family: var(--hand); font-size: 13px; color: var(--ink3); margin-top: 4px; }

/* ── SECTION ── */
.section { max-width: 1160px; margin: 0 auto; padding: 65px 2rem; }

.sec-title {
  font-family: var(--hand); font-size: 2rem; font-weight: 700;
  margin-bottom: 2rem; display: inline-block; position: relative;
}
.sec-title::before {
  content: ''; position: absolute; bottom: 0; left: -4px; right: -4px;
  height: 38%; background: var(--yellow); z-index: -1; border-radius: 4px;
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.about-text { font-size: 15px; line-height: 1.8; color: var(--ink2); }
.about-text p { margin-bottom: 1rem; }
.about-text strong { color: var(--ink); font-weight: 600; }

.vibe-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.vibe-tag {
  font-family: var(--hand); font-size: 15px; font-weight: 600;
  border: 2px solid var(--ink); border-radius: 100px;
  padding: 3px 12px; background: var(--cream2);
}
.interest-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.int-chip {
  font-family: var(--hand); font-size: 14px; font-weight: 600;
  border: 2px solid var(--ink); border-radius: 8px; padding: 4px 12px;
}

.skill-panel { display: flex; flex-direction: column; gap: 1rem; }
.skill-group { }
.sg-label {
  font-family: var(--hand); font-size: 13px; font-weight: 700;
  color: var(--ink3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.sg-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.stag {
  font-family: var(--hand); font-size: 14px; font-weight: 600;
  padding: 3px 10px; border-radius: 8px; border: 2px solid transparent;
  transition: transform 0.12s; cursor: default;
}
.stag:hover { transform: scale(1.06); }
.sy  { background: var(--yellow); border-color: #ca8a04; }
.sg  { background: var(--green);  border-color: #16a34a; }
.sp  { background: var(--purple); border-color: #9333ea; }
.sb  { background: var(--blue);   border-color: #2563eb; }
.so  { background: var(--orange); border-color: #ea580c; }
.spk { background: var(--pink);   border-color: #e11d48; }

/* ── EXPERIENCE ── */
.exp-card {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 1.6rem 2rem; box-shadow: 5px 5px 0 var(--ink);
  display: flex; gap: 1.4rem; align-items: flex-start;
  position: relative; margin-top: 1.5rem;
}
.exp-card::before { content: '📌'; position: absolute; top: -14px; left: 20px; font-size: 22px; }
.exp-dot {
  width: 48px; height: 48px; border-radius: 12px; border: 2.5px solid var(--ink);
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.exp-body h3    { font-family: var(--hand); font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.exp-body .org  { font-family: var(--hand); font-size: 16px; font-weight: 600; color: var(--ink2); margin-bottom: 3px; }
.exp-body .period {
  font-family: var(--hand); font-size: 13px; color: var(--ink4);
  border: 1.5px solid var(--ink4); border-radius: 100px;
  display: inline-block; padding: 1px 10px; margin-bottom: 0.8rem;
}
.exp-body ul { font-size: 14px; color: var(--ink2); padding-left: 1.2rem; list-style: disc; display: flex; flex-direction: column; gap: 5px; }

/* ── PROJECTS ── */
.proj-header-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.2rem; }

.proj-card {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 1.3rem; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.proj-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

.more-card {
  border-style: dashed; box-shadow: none; background: var(--cream2);
  align-items: center; justify-content: center; text-align: center; min-height: 200px;
}
.more-card:hover { transform: none; box-shadow: none; }

.proj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.proj-title-row { display: flex; align-items: center; gap: 8px; }
.proj-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.proj-title { font-family: var(--hand); font-size: 18px; font-weight: 700; }
.proj-desc  { font-size: 13px; color: var(--ink2); line-height: 1.6; flex: 1; }

.proj-lnks { display: flex; gap: 5px; flex-wrap: wrap; }
.plnk {
  font-family: var(--hand); font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--ink3); border-radius: 6px;
  padding: 2px 8px; color: var(--ink3);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  display: inline-flex; align-items: center; gap: 3px;
}
.plnk:hover { border-color: var(--ink); color: var(--ink); background: var(--cream2); }

.proj-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ptag { font-family: var(--hand); font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 6px; }

/* ── CURRENTLY ── */
.curr-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.curr-card {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 1.1rem 1.3rem; box-shadow: 3px 3px 0 var(--ink);
  position: relative; overflow: hidden;
}
.curr-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.curr-card:nth-child(1)::before { background: var(--yellow2); }
.curr-card:nth-child(2)::before { background: var(--green2); }
.curr-card:nth-child(3)::before { background: var(--pink2); }
.curr-lbl { font-family: var(--hand); font-size: 13px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.curr-txt { font-family: var(--hand); font-size: 16px; font-weight: 600; color: var(--ink); }

/* ── DIVIDERS ── */
.dashed-div {
  height: 2px; max-width: 1160px; margin: 0 auto;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 8px, transparent 8px, transparent 18px);
  opacity: 0.15;
}
.solid-div { background: var(--ink); height: 2.5px; }

/* ── CONTACT ── */
.contact-section { background: #fff; }
.contact-inner {
  max-width: 700px; margin: 0 auto; padding: 80px 2rem;
  text-align: center; position: relative;
}
.c-star { position: absolute; pointer-events: none; }
.cs1 { top: 30px; right: 50px; font-size: 70px; opacity: 0.13; color: #f59e0b; }
.cs2 { bottom: 60px; left: 30px; font-size: 45px; opacity: 0.11; color: #4ade80; }
.c-circle { position: absolute; top: 70px; left: 40px; width: 60px; height: 60px; opacity: 0.07; pointer-events: none; }

.contact-title {
  font-family: var(--hand); font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700; margin-bottom: 0.7rem; line-height: 1.1;
}
.contact-desc { font-size: 15px; color: var(--ink2); margin-bottom: 2rem; max-width: 380px; margin-left: auto; margin-right: auto; }
.contact-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { border-top: 2.5px solid var(--ink); background: #fff; padding: 2.5rem 2rem; }
.foot-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.foot-photo { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; object-position: top center; }
.foot-brand { font-family: var(--hand); font-size: 18px; font-weight: 700; }
.foot-tag { font-family: var(--hand); font-size: 14px; color: var(--ink3); margin-bottom: 4px; }
.foot-loc { font-family: var(--hand); font-size: 13px; color: var(--ink4); }
.foot-col h4 { font-family: var(--hand); font-size: 16px; font-weight: 700; margin-bottom: 0.7rem; color: var(--ink3); }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.foot-col ul li a { font-family: var(--hand); font-size: 15px; color: var(--ink2); transition: color 0.15s; }
.foot-col ul li a:hover { color: var(--ink); }
.foot-copy { max-width: 1160px; margin: 1.5rem auto 0; border-top: 1.5px dashed #d0ccc4; padding-top: 1rem; font-family: var(--hand); font-size: 14px; color: var(--ink4); text-align: center; }

/* ── AI CHAT ── */
.ai-float { position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 200; }
.ai-toggle {
  width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid var(--ink);
  background: var(--yellow); cursor: pointer; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s;
}
.ai-toggle:hover { transform: scale(1.08); }
.ai-box {
  position: absolute; bottom: 66px; right: 0; width: 320px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink); overflow: hidden;
  display: none; flex-direction: column;
}
.ai-box.open { display: flex; }
.ai-head {
  padding: 0.8rem 1rem; border-bottom: 2px solid var(--ink); background: var(--yellow);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--hand); font-size: 16px; font-weight: 700;
}
.dg { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: blink 2s infinite; }
.ai-close { margin-left: auto; cursor: pointer; font-size: 20px; line-height: 1; }
.ai-msgs { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; max-height: 240px; overflow-y: auto; }
.ai-msg { padding: 8px 12px; border-radius: 10px; max-width: 88%; line-height: 1.5; font-family: var(--hand); font-size: 14px; }
.ai-msg.bot { background: var(--cream2); border: 1.5px solid #d0ccc4; align-self: flex-start; border-radius: 4px 12px 12px 12px; }
.ai-msg.usr { background: var(--yellow); border: 1.5px solid var(--ink); align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.ai-row { padding: 0.7rem; border-top: 2px solid var(--ink); display: flex; gap: 7px; }
.ai-row input {
  flex: 1; border: 2px solid var(--ink); border-radius: 8px;
  padding: 6px 10px; font-family: var(--hand); font-size: 14px;
  background: var(--cream); outline: none; color: var(--ink);
}
.ai-row input:focus { background: #fff; }
.ai-row button {
  border: 2px solid var(--ink); border-radius: 8px; background: var(--ink);
  color: #fff; font-family: var(--hand); font-size: 14px; font-weight: 700;
  padding: 6px 12px; cursor: pointer;
}

/* ── REVEAL ANIM ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.vis { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero-section { flex-direction: column; padding-top: 80px; gap: 2rem; align-items: flex-start; }
  .hero-right { align-self: center; }
  .about-grid { grid-template-columns: 1fr; }
  .curr-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-resume-btn { display: none; }
  .hamburger { display: block; }
  .d1, .d2, .s1, .s2, .s3 { display: none; }
}

@media (max-width: 500px) {
  .hero-name { font-size: 2.8rem; }
  .squiggle-underline { width: 180px; }
  .hero-btns .btn-sketch { font-size: 15px; padding: 8px 16px; }
  .stats-row { gap: 0.8rem; padding: 1.5rem 1rem; }
  .stat-num { font-size: 2rem; }
  .section { padding: 50px 1.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .ai-box { width: 290px; }
}
