/* ==========================================================================
   Bikee Prajapati — Portfolio Stylesheet (v2: bold indigo/violet theme)
   Sections: Variables & Reset, Typography, Nav, Hero, About, Projects,
   Résumé, Contact, Chat Widget, Animations, Responsive
   ========================================================================== */

:root{
  --bg: #100E1F;
  --surface: #1A1730;
  --surface-2: #221E3D;
  --line: #332D57;
  --text: #F3F1FA;
  --text-muted: #A9A2C7;
  --accent: #8B7CF6;
  --accent-2: #C8FF4D;
  --accent-dim: #4B4380;
  --good: #7EE6A8;
  --radius: 14px;
  --maxw: 1080px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Manrope', system-ui, sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:'Fraunces', Georgia, serif;
  font-weight:600;
  line-height:1.08;
  margin:0;
  letter-spacing:-0.01em;
}
.mono{font-family:'JetBrains Mono', monospace;}
a{color:inherit;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px; position:relative; z-index:1;}
::selection{background:var(--accent-2); color:#100E1F;}
:focus-visible{outline:2px solid var(--accent-2); outline-offset:3px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
  .reveal{opacity:1 !important; transform:none !important;}
}

/* ==========================================================================
   ANIMATION LAYER
   ========================================================================== */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}
.reveal.in{opacity:1; transform:translateY(0);}

@keyframes rise-in{
  from{opacity:0; transform:translateY(20px);}
  to{opacity:1; transform:translateY(0);}
}
.hero-anim > *{
  opacity:0;
  animation:rise-in 0.8s cubic-bezier(.16,.8,.24,1) forwards;
}
.hero-anim > *:nth-child(1){animation-delay:0.05s;}
.hero-anim > *:nth-child(2){animation-delay:0.16s;}
.hero-anim > *:nth-child(3){animation-delay:0.27s;}
.hero-anim > *:nth-child(4){animation-delay:0.38s;}
.hero-anim > *:nth-child(5){animation-delay:0.5s;}

.glow-cursor{
  position:fixed; top:0; left:0; width:520px; height:520px;
  pointer-events:none; z-index:0; border-radius:50%;
  background:radial-gradient(circle, rgba(139,124,246,0.14), transparent 70%);
  transform:translate(-50%,-50%);
  transition:opacity 0.3s ease;
  opacity:0;
}
@media (hover:hover) and (pointer:fine){ .glow-cursor{opacity:1;} }

/* ==========================================================================
   NAV
   ========================================================================== */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(16,14,31,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px;
}
.brand{
  font-family:'Fraunces', serif;
  font-weight:600; font-size:1.15rem; letter-spacing:-0.01em;
  text-decoration:none;
}
.brand .dot{color:var(--accent-2);}
.navlinks{display:flex; gap:28px; list-style:none; margin:0; padding:0;}
.navlinks a{
  text-decoration:none; color:var(--text-muted); font-size:0.9rem;
  font-family:'Manrope', sans-serif; font-weight:600;
  position:relative; padding-bottom:3px;
  transition:color 0.15s ease;
}
.navlinks a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:var(--accent-2); transition:width 0.25s ease; border-radius:2px;
}
.navlinks a:hover{color:var(--text);}
.navlinks a:hover::after{width:100%;}
@media (max-width:640px){ .navlinks{display:none;} }

/* ==========================================================================
   HERO + ANIMATED BANNER
   ========================================================================== */
.hero{
  padding:110px 0 60px;
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.hero-banner{
  position:absolute; inset:0; z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.blob{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:0.55;
  will-change:transform;
}
.blob-a{
  width:520px; height:520px;
  background:radial-gradient(circle, var(--accent), transparent 70%);
  top:-180px; left:-120px;
  animation:drift-a 22s ease-in-out infinite;
}
.blob-b{
  width:420px; height:420px;
  background:radial-gradient(circle, var(--accent-2), transparent 70%);
  top:60px; right:-140px;
  opacity:0.28;
  animation:drift-b 26s ease-in-out infinite;
}
.blob-c{
  width:360px; height:360px;
  background:radial-gradient(circle, #FF7AC6, transparent 70%);
  bottom:-160px; left:38%;
  opacity:0.22;
  animation:drift-c 30s ease-in-out infinite;
}
@keyframes drift-a{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(60px,40px) scale(1.12);}
}
@keyframes drift-b{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(-50px,50px) scale(1.08);}
}
@keyframes drift-c{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(40px,-30px) scale(1.15);}
}
.grain{
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:3px 3px;
  mix-blend-mode:overlay;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono', monospace;
  font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--good); margin-bottom:26px;
}
.pulse{
  width:7px; height:7px; border-radius:50%; background:var(--good);
  box-shadow:0 0 0 0 rgba(126,230,168,0.6);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(126,230,168,0.55);}
  70%{box-shadow:0 0 0 8px rgba(126,230,168,0);}
  100%{box-shadow:0 0 0 0 rgba(126,230,168,0);}
}
.hero h1{
  font-size:clamp(2.4rem, 6vw, 4.2rem);
  max-width:17ch;
  margin-bottom:24px;
}
.hero h1 .accent{color:var(--accent-2); font-style:italic;}
.hero p.lede{
  max-width:56ch; color:var(--text-muted); font-size:1.1rem;
  margin-bottom:36px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:52px;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 22px; border-radius:999px;
  font-family:'Manrope', sans-serif; font-size:0.92rem; font-weight:700;
  text-decoration:none; border:1px solid var(--line);
  transition:transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--accent-2); color:#100E1F; border-color:var(--accent-2);}
.btn-primary:hover{background:#d4ff77;}
.btn-ghost{color:var(--text); background:transparent;}
.btn-ghost:hover{border-color:var(--accent-2); color:var(--accent-2);}

/* Skill marquee — signature banner element */
.skill-marquee{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  white-space:nowrap;
  padding:18px 0;
  margin-left:-24px; margin-right:-24px;
}
.skill-track{
  display:inline-flex; gap:14px;
  animation:scroll-left 28s linear infinite;
}
.skill-track span{
  font-family:'JetBrains Mono', monospace; font-size:0.85rem;
  padding:8px 18px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface);
  color:var(--text-muted); white-space:nowrap;
}
@keyframes scroll-left{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
section{padding:84px 0; border-bottom:1px solid var(--line);}
.section-head{margin-bottom:44px;}
.section-tag{
  font-family:'JetBrains Mono', monospace; font-size:0.78rem;
  color:var(--accent-2); text-transform:uppercase; letter-spacing:0.08em;
  display:block; margin-bottom:12px;
}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.3rem);}

/* ==========================================================================
   ABOUT AND STACK
   ========================================================================== */
.about-grid{display:grid; grid-template-columns:1.1fr 1fr; gap:56px;}
@media (max-width:800px){ .about-grid{grid-template-columns:1fr;} }
.about-grid p{color:var(--text-muted); margin:0 0 16px; font-size:1.02rem;}
.stack-group{margin-bottom:22px;}
.stack-group h3{
  font-family:'JetBrains Mono', monospace; font-size:0.76rem;
  color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em;
  margin-bottom:10px; font-weight:500;
}
.chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{
  font-family:'JetBrains Mono', monospace; font-size:0.82rem;
  padding:6px 13px; border:1px solid var(--line); border-radius:999px;
  background:var(--surface); color:var(--text);
  transition:border-color 0.2s ease;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project{
  display:grid; grid-template-columns:1fr; gap:18px;
  padding:34px; margin-bottom:24px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  transition:border-color 0.2s ease, transform 0.3s cubic-bezier(.16,.8,.24,1), box-shadow 0.3s ease;
}
.project:hover{
  border-color:var(--accent-dim);
  transform:translateY(-4px);
  box-shadow:0 18px 36px -20px rgba(0,0,0,0.6);
}
.project:hover .chip{border-color:var(--accent-dim);}
.project-top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap;
}
.project-title{font-family:'Fraunces', serif; font-size:1.4rem; margin-bottom:6px; font-weight:600;}
.status-tag{
  font-family:'JetBrains Mono', monospace; font-size:0.72rem;
  padding:5px 12px; border-radius:999px; text-transform:uppercase; letter-spacing:0.05em;
  white-space:nowrap; height:fit-content;
}
.status-live{background:rgba(126,230,168,0.14); color:var(--good); border:1px solid rgba(126,230,168,0.3);}
.status-shipped{background:rgba(139,124,246,0.16); color:var(--accent); border:1px solid rgba(139,124,246,0.35);}
.project-desc{color:var(--text-muted); max-width:70ch;}
.project-desc strong{color:var(--text); font-weight:700;}
.project-stack{display:flex; flex-wrap:wrap; gap:8px; margin-top:4px;}
.project-links{display:flex; gap:16px; margin-top:6px; flex-wrap:wrap;}
.project-links a{
  font-family:'JetBrains Mono', monospace; font-size:0.85rem;
  text-decoration:none; color:var(--accent-2); border-bottom:1px solid var(--accent-dim);
  padding-bottom:1px;
}
.project-links a:hover{border-color:var(--accent-2);}
.project-links .disabled{
  color:var(--text-muted); border-bottom:1px dashed var(--line); cursor:default;
  font-family:'JetBrains Mono', monospace; font-size:0.85rem;
}

/* ==========================================================================
   RÉSUMÉ
   ========================================================================== */
.resume-card{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:38px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  flex-wrap:wrap;
}
.resume-card h3{font-size:1.25rem; margin-bottom:6px; font-weight:600;}
.resume-card p{color:var(--text-muted); margin:0; max-width:44ch;}

/* ==========================================================================
   CONTACT AND FOOTER
   ========================================================================== */
footer{padding:56px 0 40px; border-bottom:none;}
.contact-row{
  display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap;
}
footer h2{font-size:clamp(1.7rem,3.5vw,2.4rem); max-width:14ch; margin-bottom:14px;}
.contact-links{display:flex; gap:22px; flex-wrap:wrap;}
.contact-links a{
  font-family:'JetBrains Mono', monospace; font-size:0.9rem;
  text-decoration:none; color:var(--text-muted); border-bottom:1px solid transparent;
}
.contact-links a:hover{color:var(--accent-2); border-color:var(--accent-2);}
.foot-note{
  margin-top:48px; padding-top:20px; border-top:1px solid var(--line);
  font-family:'JetBrains Mono', monospace; font-size:0.78rem; color:var(--text-muted);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}

/* ==========================================================================
   CHAT WIDGET
   ========================================================================== */
.chat-widget{
  position:fixed; right:22px; bottom:22px; z-index:100;
  display:flex; flex-direction:column; align-items:flex-end; gap:14px;
}
.chat-toggle{
  width:58px; height:58px; border-radius:50%;
  background:var(--accent-2); color:#100E1F; border:none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 10px 28px -8px rgba(139,124,246,0.55);
  transition:transform 0.2s ease;
}
.chat-toggle:hover{transform:scale(1.06);}
.chat-toggle .icon-close{display:none;}
.chat-toggle.is-open .icon-chat{display:none;}
.chat-toggle.is-open .icon-close{display:block;}

.chat-panel{
  width:360px; max-width:calc(100vw - 44px);
  height:520px; max-height:calc(100vh - 110px);
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
  display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 24px 60px -20px rgba(0,0,0,0.6);
}
.chat-panel[hidden]{display:none;}

.chat-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px; border-bottom:1px solid var(--line);
  background:var(--surface-2);
}
.chat-header-info{display:flex; align-items:center; gap:12px;}
.chat-avatar{
  width:36px; height:36px; border-radius:50%;
  background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif; font-weight:700; font-size:1rem;
}
.chat-title{font-weight:700; font-size:0.92rem;}
.chat-subtitle{
  font-size:0.76rem; color:var(--text-muted);
  display:flex; align-items:center; gap:6px;
}
.pulse-dot{
  width:6px; height:6px; border-radius:50%; background:var(--good);
  animation:pulse 2s infinite;
}
.chat-close{
  background:none; border:none; color:var(--text-muted);
  font-size:1.4rem; line-height:1; cursor:pointer; padding:4px 8px;
}
.chat-close:hover{color:var(--text);}

.chat-messages{
  flex:1; overflow-y:auto; padding:16px 18px;
  display:flex; flex-direction:column; gap:12px;
  min-height:0;
}
.chat-msg{
  max-width:82%; padding:10px 14px; border-radius:14px;
  font-size:0.88rem; line-height:1.55;
  flex-shrink:0;
}
.chat-msg.bot{
  background:var(--surface-2); color:var(--text);
  border-bottom-left-radius:4px; align-self:flex-start;
}
.chat-msg.user{
  background:var(--accent); color:#fff;
  border-bottom-right-radius:4px; align-self:flex-end;
}
.chat-msg a{color:var(--accent-2); text-decoration:underline;}
.chat-msg.bot a{color:var(--accent-2);}

.chat-typing{
  display:flex; gap:4px; padding:12px 14px;
  background:var(--surface-2); border-radius:14px; border-bottom-left-radius:4px;
  align-self:flex-start; width:fit-content; flex-shrink:0;
}
.chat-typing span{
  width:6px; height:6px; border-radius:50%; background:var(--text-muted);
  animation:typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2){animation-delay:0.15s;}
.chat-typing span:nth-child(3){animation-delay:0.3s;}
@keyframes typing-bounce{
  0%,60%,100%{transform:translateY(0); opacity:0.5;}
  30%{transform:translateY(-4px); opacity:1;}
}

.chat-suggestions{
  display:flex; flex-wrap:wrap; gap:8px;
  padding:12px 18px;
  border-top:1px solid var(--line);
  background:var(--surface-2);
  flex-shrink:0;
}
.chat-suggestions[hidden]{display:none;}
.chat-chip{
  font-family:'Manrope', sans-serif; font-size:0.78rem; font-weight:600;
  padding:7px 13px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--text-muted);
  cursor:pointer; transition:border-color 0.15s ease, color 0.15s ease;
}
.chat-chip:hover{border-color:var(--accent-2); color:var(--accent-2);}

.chat-input-row{
  display:flex; gap:8px; padding:14px 18px;
  border-top:1px solid var(--line);
}
.chat-input{
  flex:1; background:var(--surface-2); border:1px solid var(--line);
  border-radius:999px; padding:10px 16px; color:var(--text);
  font-family:'Manrope', sans-serif; font-size:0.86rem;
}
.chat-input:focus{outline:none; border-color:var(--accent-2);}
.chat-send{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:var(--accent-2); color:#100E1F; border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.chat-send:hover{background:#d4ff77;}
.chat-disclaimer{
  font-size:0.68rem; color:var(--text-muted); text-align:center;
  padding:0 12px 12px; font-family:'JetBrains Mono', monospace;
}

@media (max-width:480px){
  .chat-widget{right:14px; bottom:14px;}
  .chat-panel{width:calc(100vw - 28px); height:min(70vh, 520px);}
}
