:root {
  --bg: #070b17;
  --bg-soft: #101932;
  --card: rgba(14, 23, 46, 0.78);
  --text: #f3f7ff;
  --muted: #b7c3df;
  --primary: #5a86ff;
  --accent: #3de3cf;
  --line: rgba(152, 180, 245, 0.25);
  --shadow: 0 20px 45px rgba(2, 6, 20, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #1b2d66 0%, transparent 35%),
    radial-gradient(circle at 88% 15%, #083a6a 0%, transparent 30%),
    linear-gradient(160deg, #050910 0%, #090f1f 55%, #080d18 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 4.7rem 0; }

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
  z-index: -2;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1140px, calc(100% - 2rem));
  margin: 0.8rem auto 0;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 23, 0.72);
}

.brand { font-weight: 800; letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 1rem; color: var(--muted); }
.nav-links a:hover { color: #ffffff; }

h1, h2, h3 { margin-top: 0; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; max-width: 13.8ch; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }

.hero {
  padding-top: 6rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
}

.hero-content, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-content { padding: 2rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.95rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cae0ff;
  border: 1px solid rgba(144, 176, 255, 0.4);
  background: rgba(24, 46, 102, 0.45);
}

.hero-copy { color: var(--muted); max-width: 58ch; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  padding: 0.72rem 1.05rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(145deg, #4876ff, #5a86ff); color: #fff; }
.btn-secondary { border-color: var(--line); color: #d5e3ff; background: rgba(20, 33, 66, 0.5); }

.hero-visual { padding: 1.4rem; text-align: center; }
.profile-circle {
  width: 94px;
  height: 94px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, #5a86ff, #3de3cf);
}
.hero-visual p { color: var(--muted); margin-top: -0.15rem; }
.mini-stats { margin-top: 0.55rem; display: grid; gap: 0.55rem; text-align: left; }
.mini-stats div {
  display: flex; justify-content: space-between; gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem 0.66rem;
  background: rgba(12, 21, 43, 0.72);
}
.mini-stats strong { color: #9ac0ff; }
.mini-stats span { color: #c0cce8; font-size: 0.85rem; }

.logo-strip-wrap { padding-top: 0.8rem; }
.logo-strip-title { color: #d2ddf9; margin: 0 0 0.6rem; font-weight: 600; }
.logo-marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 22, 43, 0.7);
}
.logo-track {
  display: flex;
  width: max-content;
  gap: 0.8rem;
  padding: 0.8rem;
  animation: marquee 28s linear infinite;
}
.logo-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(10, 17, 34, 0.9);
  white-space: nowrap;
  color: #d5e3ff;
}
.logo-pill img { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }

.pill-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #cbe1ff;
  background: rgba(14, 24, 49, 0.65);
  font-size: 0.83rem;
}

.grid, .cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project p, .muted { color: var(--muted); }
.project span { font-size: 0.88rem; color: #a8c7ff; font-weight: 600; }

.cert-card { text-align: left; }
.cert-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(11, 18, 35, 0.85);
}
.cert-card p { color: var(--muted); margin: 0; }

.timeline { display: grid; gap: 1rem; }
.contact-card { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.9rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  color: #dbe8ff;
  background: rgba(14, 24, 49, 0.75);
  font-weight: 600;
}

.site-footer { color: #9eb0d5; padding: 1rem 0 2.6rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.float-card { animation: floatY 6s ease-in-out infinite; }
.float-card-delay { animation: floatY 6s ease-in-out 1.5s infinite; }

.chat-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(145deg, #4876ff, #5a86ff);
  box-shadow: 0 12px 26px rgba(72, 118, 255, 0.35);
}
.chatbot-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.8rem;
  width: min(390px, calc(100% - 1.4rem));
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 30, 0.96);
  box-shadow: var(--shadow);
  display: none;
  z-index: 45;
}
.chatbot-panel.open { display: block; }
.chatbot-header { display: flex; justify-content: space-between; padding: 0.8rem; border-bottom: 1px solid var(--line); }
.chatbot-title { margin: 0; font-size: 0.92rem; font-weight: 700; }
.chatbot-subtitle { margin: 0; font-size: 0.77rem; color: #b0c0e1; }
.chat-close-btn { background: transparent; border: none; color: #fff; font-size: 1.35rem; cursor: pointer; }
.chatbot-quick-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.7rem 0.8rem 0; }
.chatbot-quick-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  color: #d9e5ff;
  background: rgba(15, 24, 47, 0.82);
  cursor: pointer;
}
.chatbot-messages { max-height: 280px; overflow-y: auto; display: grid; gap: 0.5rem; padding: 0.7rem 0.8rem; }
.chat-msg { border-radius: 10px; padding: 0.55rem 0.65rem; font-size: 0.84rem; }
.chat-msg.bot { background: rgba(16, 28, 56, 0.9); border: 1px solid var(--line); }
.chat-msg.user { justify-self: end; background: #4b7cff; color: #fff; }
.chatbot-input-wrap { border-top: 1px solid var(--line); padding: 0.7rem; display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; }
.chatbot-input-wrap input {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.56rem 0.75rem;
  outline: none; background: rgba(13, 23, 45, 0.9); color: #fff;
}
.chatbot-input-wrap button {
  border: none; border-radius: 999px; padding: 0.56rem 0.86rem;
  background: #4b7cff; color: #fff; font-weight: 600;
}

.bg-glow {
  position: fixed;
  width: 32rem; height: 32rem; border-radius: 999px; filter: blur(85px); z-index: -1;
}
.bg-glow-1 { top: -8rem; right: -10rem; background: rgba(66, 118, 255, 0.35); animation: drift 14s ease-in-out infinite; }
.bg-glow-2 { bottom: -10rem; left: -8rem; background: rgba(61, 227, 207, 0.2); animation: drift 16s ease-in-out infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -8px); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid, .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { flex-direction: column; gap: 0.65rem; top: 0.4rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .section { padding: 3.4rem 0; }
  .hero { padding-top: 5.1rem; }
}
