/* ========== RESET ========== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:system-ui,sans-serif;
}
html,body{
  width:100%;
  min-height:100%;
}
body{
  background:black;
  color:white;
  overflow-x:hidden;
}

/* ========== BACKGROUND CANVAS ========== */
canvas{
  position:fixed;
  inset:0;
  z-index:-1;
}

/* ========== BRAND ========== */
.brand{
  position:fixed;
  top:20px;
  left:25px;
  font-size:26px;
  font-weight:900;
  color:white;
  text-decoration:none;
}
.brand span{
  display:block;
  font-size:12px;
  color:#8fd3ff;
}

/* ========== HERO ========== */
#hero{
  height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
#hero h1{font-size:44px;}
#hero p{color:#b8dcff;margin-top:10px;}

/* ===== HERO GLASS TAG STRIP ===== */
.hero-tags{
  margin-top:20px;
  padding:18px 34px;
  border-radius:26px;
  text-align:center;
  display:inline-flex;
  flex-direction:column;
  gap:8px;
}

/* Softer than cards */
.glass-strip{
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.015)
  );
  backdrop-filter:blur(18px);
  border:1px solid rgba(140,210,255,.22);
  box-shadow:
    0 10px 26px rgba(0,120,255,.18),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* Text hierarchy */
.tagline-role{
  font-size:13px;
  color:#8fd3ff;
  letter-spacing:.5px;
}

.tagline-main{
  font-size:14px;
  color:#e6f6ff;
  font-weight:500;
}

.tagline-sub{
  font-size:13px;
  color:#b8dcff;
}

/* === HERO GLASS HOVER EFFECT === */
.glass-strip{
  transition: 
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

/* Soft lift + glow */
.glass-strip:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:
    0 18px 40px rgba(0,140,255,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
}

/* Ambient breathing glow */
@keyframes heroGlow{
  0%{
    box-shadow:0 12px 26px rgba(0,120,255,.18);
  }
  50%{
    box-shadow:0 22px 50px rgba(0,180,255,.35);
  }
  100%{
    box-shadow:0 12px 26px rgba(0,120,255,.18);
  }
}

.glass-strip{
  animation:heroGlow 5s ease-in-out infinite;
}

/* ========== PAGE TITLE ========== */
.page-title{
  text-align:center;
  margin-top:110px;
  font-size:42px;
}

/* ========== BACK BUTTON ========== */
.back-btn{
  position:fixed;
  bottom:24px;
  left:24px;
  padding:10px 22px;
  border-radius:20px;
  color:#9bdcff;
  text-decoration:none;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 0 18px rgba(0,150,255,.25);
  transition:.3s;
}
.back-btn:hover{
  transform:scale(1.1);
  color:white;
  box-shadow:0 0 30px rgba(0,180,255,.35);
}

/* ========== PREMIUM GLASS ========== */
.glass{
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(18px);
  border:1px solid rgba(140,210,255,.25);
  border-radius:24px;
  box-shadow:0 12px 30px rgba(0,140,255,.25);
  transition:.35s;
}
.glass:hover{
  transform:translateY(-6px) scale(1.05);
  box-shadow:0 20px 45px rgba(0,160,255,.35);
}

/* ========== PROJECTS ========== */
.project-row{
  width:calc(100% - 48px);
  margin:70px auto 120px;
  padding:14px 12px 28px;
  display:flex;
  justify-content:flex-start;
  gap:30px;
  overflow-x:auto;
  overflow-y:visible;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scrollbar-color:#4cb9ef rgba(255,255,255,.08);
}
.project-row::-webkit-scrollbar{
  height:8px;
}
.project-row::-webkit-scrollbar-track{
  background:rgba(255,255,255,.08);
  border-radius:10px;
}
.project-row::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,#2596d1,#8fd3ff);
  border-radius:10px;
}
.project-card{
  flex:0 0 280px;
  width:280px;
  min-height:220px;
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  cursor:pointer;
  transition:.35s;
  scroll-snap-align:start;
}
.project-card:focus-visible{
  outline:2px solid #8fd3ff;
  outline-offset:5px;
}
.project-card:hover{
  transform:translateY(-10px) scale(1.06);
  box-shadow:0 30px 70px rgba(0,180,255,.45);
}
.project-card .emoji{font-size:42px;}
.project-card .title{
  font-size:18px;
  font-weight:600;
}
.project-card .stack{
  font-size:13px;
  color:#8fd3ff;
}
.project-card .date{
  font-size:12px;
  color:#c5d8e6;
}

/* ========== EXPERIENCE ========== */
.timeline{
  position:relative;
  width:min(1000px, calc(100% - 48px));
  margin:70px auto 120px;
  padding:10px 0;
}
.timeline::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
  transform:translateX(-50%);
  background:linear-gradient(180deg,transparent,#8fd3ff 8%,#2596d1 92%,transparent);
  box-shadow:0 0 18px rgba(0,180,255,.7);
}
.timeline-item{
  position:relative;
  width:50%;
  padding:18px 42px;
}
.timeline-left{margin-right:auto;text-align:right;}
.timeline-right{margin-left:auto;text-align:left;}
.timeline-dot{
  position:absolute;
  top:50%;
  width:16px;
  height:16px;
  border:3px solid #8fd3ff;
  border-radius:50%;
  background:#06131d;
  box-shadow:0 0 18px rgba(0,190,255,.9);
  transform:translateY(-50%);
  z-index:2;
}
.timeline-left .timeline-dot{right:-8px;}
.timeline-right .timeline-dot{left:-8px;}
.timeline-left .tl-card::after,
.timeline-right .tl-card::after{
  content:"";
  position:absolute;
  top:50%;
  width:18px;
  height:1px;
  background:rgba(143,211,255,.7);
}
.timeline-left .tl-card::after{right:-18px;}
.timeline-right .tl-card::after{left:-18px;}
.tl-card{
  position:relative;
  padding:24px;
  cursor:pointer;
  text-align:left;
}
.tl-card h2{margin:7px 0 4px;font-size:20px;}
.tl-card p{color:#dcefff;font-size:14px;}
.tl-date{
  color:#8fd3ff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.tl-tag{
  display:block;
  margin-top:13px;
  color:#8fd3ff;
  font-size:12px;
}
.tl-card:focus-visible{
  outline:2px solid #8fd3ff;
  outline-offset:5px;
}
.upsc-card{border-color:rgba(143,211,255,.5);}

/* ========== LINKS ========== */
.link-row{
  display:flex;
  justify-content:center;
  gap:28px;
  margin-top:120px;
}
.link-card{
  width:140px;
  height:140px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:15px;
  color:#9bdcff;
  text-decoration:none;
}
.link-card i{font-size:60px;}
.link-card span{
  font-size:14px;
  letter-spacing:1px;
}

/* ========== DOCK SYSTEM ========== */
.dock-wrap{
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
}
.dock-glass{
  position:absolute;
  inset:-14px -22px;
  border-radius:60px;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.01)
  );
  backdrop-filter:blur(22px);
  border:1px solid rgba(140,210,255,.18);
  box-shadow:
    0 14px 30px rgba(0,120,255,.15),
    inset 0 1px 0 rgba(255,255,255,.12);
  z-index:0;
}
.dock{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  height:64px;
  padding:0 28px;
  z-index:1;
}
.dock a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 22px;
  border-radius:22px;
  color:#9bdcff;
  text-decoration:none;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
  transition:.25s;
}
.dock a:hover{
  background:rgba(0,150,255,.35);
  color:white;
  transform:scale(1.12);
  box-shadow:0 0 18px rgba(0,200,255,.55);
}

/* ========== RESUME ========== */
.resume-wrap{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.resume-btn{
  font-size:20px;
  padding:20px 56px;
  color:#9fe8ff;
  border:0;
  cursor:pointer;
  text-decoration:none;
}
.resume-modal{
  position:fixed;
  inset:0;
  z-index:250;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.72);
}
.resume-modal-open{
  display:flex;
}
.resume-request{
  position:relative;
  width:min(520px,100%);
  padding:30px;
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:left;
}
.resume-request h1{
  font-size:28px;
}
.resume-request p{
  color:#b8dcff;
  line-height:1.45;
}
.resume-request label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#dff5ff;
  font-size:14px;
}
.resume-request input,
.resume-request textarea,
.admin-auth input,
.admin-upload textarea{
  width:100%;
  border:1px solid rgba(143,211,255,.35);
  border-radius:14px;
  color:white;
  background:rgba(255,255,255,.08);
  padding:12px 14px;
  outline:none;
}
.resume-request textarea,
.admin-upload textarea{
  min-height:110px;
  resize:vertical;
}
.resume-request button[type="submit"],
.admin-auth button,
.admin-upload button{
  align-self:flex-start;
  border:1px solid rgba(143,211,255,.45);
  border-radius:18px;
  padding:11px 22px;
  color:#00121d;
  background:#8fd3ff;
  font-weight:800;
  cursor:pointer;
}
.resume-modal-close{
  position:absolute;
  top:12px;
  right:16px;
  border:0;
  color:#9bdcff;
  background:transparent;
  font-size:26px;
  cursor:pointer;
}
.resume-status{
  min-height:20px;
  color:#8fd3ff;
}

/* ========== ADMIN ========== */
.admin-page{
  min-height:100vh;
}
.admin-shell{
  width:min(1180px,calc(100% - 36px));
  margin:100px auto 130px;
}
.admin-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:24px;
}
.admin-header h1{
  font-size:36px;
}
.admin-auth{
  display:flex;
  gap:10px;
  align-items:center;
}
.admin-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;
  margin-bottom:18px;
}
.admin-metric{
  padding:18px;
}
.admin-metric span{
  display:block;
  color:#9bdcff;
  font-size:12px;
  text-transform:capitalize;
}
.admin-metric strong{
  display:block;
  margin-top:8px;
  font-size:28px;
}
.admin-config,
.admin-upload,
.admin-tables article{
  padding:22px;
  margin-bottom:18px;
}
.admin-config h2,
.admin-upload h2,
.admin-tables h2{
  margin-bottom:12px;
  font-size:20px;
}
.admin-upload-row{
  display:grid;
  grid-template-columns:minmax(180px,260px) 1fr auto;
  gap:14px;
  align-items:start;
}
.admin-tables{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.admin-table{
  overflow:auto;
}
.admin-table table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.admin-table th,
.admin-table td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:left;
  vertical-align:top;
  font-size:13px;
}
.admin-table th{
  color:#8fd3ff;
}
.admin-empty{
  color:#b8dcff;
}

/* ========== MODAL (PROJECT + EXPERIENCE) ========== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.65);
  z-index:100;
}
.modal-content{
  width:620px;
  max-width:90%;
  max-height:88vh;
  overflow-y:auto;
  padding:28px;
  border-radius:28px;
  text-align:center;
  position:relative;
}
.modal-date{
  margin:6px 0 14px;
  color:#b8dcff;
  font-size:13px;
}
.project-points{
  margin:18px 0 0 18px;
  text-align:left;
  color:#d8eefe;
}
.project-points li{
  margin:9px 0;
  line-height:1.45;
  font-size:14px;
}
.close{
  position:absolute;
  top:14px;
  right:18px;
  font-size:24px;
  cursor:pointer;
  color:#9bdcff;
}
.close:hover{color:white;}
.modal-emoji{
  font-size:46px;
  margin-bottom:8px;
}
.modal-stack{
  margin-top:10px;
  color:#8fd3ff;
  font-size:14px;
}
.modal-actions{
  margin-top:18px;
  display:flex;
  gap:16px;
  justify-content:center;
}
.modal-btn{
  padding:10px 22px;
  border-radius:20px;
  color:#9bdcff;
  text-decoration:none;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(140,210,255,.35);
  transition:.25s;
}
.modal-btn:hover{
  background:rgba(0,150,255,.35);
  color:white;
  box-shadow:0 0 18px rgba(0,200,255,.6);
}

/* ========== EXPERIENCE BULLETS ========== */
.exp-list{
  list-style:none;
  padding:0;
  text-align:left;
}
.exp-list li{
  padding:6px 0;
  font-size:14px;
  color:#b8dcff;
  border-bottom:1px solid rgba(255,255,255,.08);
}

@media (max-width:600px){
  .brand{font-size:20px;}
  .page-title{margin-top:90px;font-size:34px;}
  .project-row{
    width:calc(100% - 24px);
    margin-top:45px;
    padding-inline:8px;
    gap:20px;
  }
  .project-card{
    flex-basis:min(82vw, 320px);
    width:min(82vw, 320px);
  }
  .back-btn{bottom:16px;left:16px;}
  .modal-content{padding:26px 20px;}
  .admin-header,
  .admin-auth,
  .admin-upload-row{
    flex-direction:column;
    display:flex;
    align-items:stretch;
  }
  .timeline{
    width:calc(100% - 28px);
    margin-top:45px;
    padding-left:24px;
  }
  .timeline::before{
    left:8px;
    transform:none;
  }
  .timeline-item{
    width:100%;
    padding:14px 0 14px 22px;
  }
  .timeline-left,
  .timeline-right{
    margin:0;
    text-align:left;
  }
  .timeline-left .timeline-dot,
  .timeline-right .timeline-dot{
    left:-23px;
    right:auto;
  }
  .timeline-left .tl-card::after,
  .timeline-right .tl-card::after{
    left:-18px;
    right:auto;
  }
}

/* ========== KABIR — PORTFOLIO RAG ASSISTANT ========== */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.kabir-widget{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:300;
}
.kabir-launcher{
  min-width:132px;
  height:54px;
  padding:0 18px 0 9px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(143,211,255,.55);
  border-radius:28px;
  color:#eefaff;
  background:linear-gradient(135deg,rgba(9,42,63,.96),rgba(7,20,31,.96));
  box-shadow:0 12px 35px rgba(0,150,255,.38),inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter:blur(18px);
  cursor:pointer;
  transition:transform .25s ease,box-shadow .25s ease;
}
.kabir-launcher:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 42px rgba(0,175,255,.5),inset 0 1px 0 rgba(255,255,255,.2);
}
.kabir-launcher-mark,
.kabir-avatar{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:50%;
  color:#00121d;
  background:linear-gradient(145deg,#d9f6ff,#67cfff);
  box-shadow:0 0 20px rgba(76,195,255,.55);
  font-weight:900;
}
.kabir-launcher-label{font-size:14px;font-weight:750;letter-spacing:.2px;}
.kabir-panel{
  position:absolute;
  right:0;
  bottom:68px;
  width:min(410px,calc(100vw - 32px));
  height:min(620px,calc(100vh - 110px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(143,211,255,.36);
  border-radius:26px;
  color:#eefaff;
  background:linear-gradient(160deg,rgba(12,28,40,.98),rgba(3,11,18,.98));
  box-shadow:0 28px 80px rgba(0,0,0,.65),0 0 36px rgba(0,145,230,.24),inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(26px);
  opacity:0;
  visibility:hidden;
  transform:translateY(18px) scale(.96);
  transform-origin:bottom right;
  transition:opacity .24s ease,transform .24s ease,visibility .24s;
}
.kabir-open .kabir-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.kabir-open .kabir-launcher{visibility:hidden;opacity:0;}
.kabir-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:17px 18px;
  border-bottom:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.035);
}
.kabir-header .kabir-avatar{width:42px;height:42px;}
.kabir-header h2{font-size:18px;line-height:1.1;}
.kabir-header p{margin-top:4px;color:#a9dfff;font-size:12px;}
.kabir-status{
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:3px;
  border-radius:50%;
  background:#6fffc2;
  box-shadow:0 0 10px rgba(111,255,194,.75);
}
.kabir-close{
  width:36px;
  height:36px;
  margin-left:auto;
  border:0;
  border-radius:50%;
  color:#bdeaff;
  background:rgba(255,255,255,.07);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}
.kabir-close:hover{color:white;background:rgba(92,192,244,.18);}
.kabir-messages{
  flex:1;
  overflow-y:auto;
  padding:18px;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(99,202,255,.5) transparent;
}
.kabir-message{display:flex;flex-direction:column;margin-bottom:14px;}
.kabir-bot{align-items:flex-start;}
.kabir-user{align-items:flex-end;}
.kabir-bubble{
  max-width:88%;
  padding:11px 13px;
  border-radius:17px;
  font-size:13px;
  line-height:1.5;
}
.kabir-bot .kabir-bubble{
  color:#dff4ff;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(143,211,255,.15);
  border-bottom-left-radius:5px;
}
.kabir-user .kabir-bubble{
  color:white;
  background:linear-gradient(135deg,#147eb4,#075d8c);
  border-bottom-right-radius:5px;
  box-shadow:0 7px 18px rgba(0,134,204,.24);
}
.kabir-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:2px 0 17px;
}
.kabir-suggestions button{
  padding:8px 10px;
  border:1px solid rgba(143,211,255,.25);
  border-radius:15px;
  color:#9bdcff;
  background:rgba(24,117,166,.09);
  cursor:pointer;
  font-size:11px;
  transition:.2s ease;
}
.kabir-suggestions button:hover{
  color:white;
  background:rgba(28,143,204,.22);
  border-color:rgba(143,211,255,.5);
}
.kabir-sources{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  max-width:90%;
  margin-top:7px;
  color:#7899ac;
  font-size:10px;
}
.kabir-sources a{
  padding:4px 7px;
  border:1px solid rgba(143,211,255,.2);
  border-radius:10px;
  color:#8fd3ff;
  text-decoration:none;
}
.kabir-sources a:hover{color:white;border-color:#8fd3ff;}
.kabir-form{
  display:flex;
  gap:9px;
  padding:12px 14px 8px;
  border-top:1px solid rgba(255,255,255,.1);
  background:rgba(0,0,0,.18);
}
.kabir-form input{
  min-width:0;
  flex:1;
  height:43px;
  padding:0 15px;
  border:1px solid rgba(143,211,255,.2);
  border-radius:22px;
  outline:none;
  color:white;
  background:rgba(255,255,255,.06);
  font-size:13px;
}
.kabir-form input::placeholder{color:#7793a3;}
.kabir-form input:focus{border-color:#69cfff;box-shadow:0 0 0 3px rgba(78,188,245,.1);}
.kabir-form button{
  flex:0 0 43px;
  height:43px;
  border:0;
  border-radius:50%;
  color:#00121d;
  background:linear-gradient(145deg,#d6f5ff,#66cdff);
  cursor:pointer;
  font-size:19px;
  font-weight:900;
}
.kabir-grounding{
  padding:0 14px 10px;
  color:#607e8e;
  background:rgba(0,0,0,.18);
  text-align:center;
  font-size:9px;
  letter-spacing:.25px;
}
.kabir-typing .kabir-bubble{display:flex;gap:4px;padding:13px 16px;}
.kabir-typing i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#8fd3ff;
  animation:kabirTyping 1s infinite ease-in-out;
}
.kabir-typing i:nth-child(2){animation-delay:.14s;}
.kabir-typing i:nth-child(3){animation-delay:.28s;}
@keyframes kabirTyping{
  0%,60%,100%{transform:translateY(0);opacity:.45;}
  30%{transform:translateY(-4px);opacity:1;}
}
@media (max-width:600px){
  .kabir-widget{right:12px;bottom:14px;}
  .kabir-panel{
    right:0;
    bottom:0;
    width:calc(100vw - 24px);
    height:min(680px,calc(100vh - 28px));
    border-radius:23px;
  }
  .kabir-open .kabir-launcher{pointer-events:none;}
  .kabir-bubble{max-width:92%;}
}
@media (prefers-reduced-motion:reduce){
  .kabir-panel,.kabir-launcher,.kabir-suggestions button{transition:none;}
  .kabir-typing i{animation:none;}
}
