:root {
  --bg: #06101c;
  --bg2: #0a1726;
  --surface: rgba(12, 28, 45, 0.72);
  --surface2: #0e2135;
  --text: #eaf3ff;
  --muted: #9bb0c8;
  --line: rgba(160, 190, 220, 0.14);
  --accent: #65e6ff;
  --accent2: #7b7cff;
  --good: #5df2a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1180px;
}
[data-theme="light"] {
  --bg: #f4f8fc;
  --bg2: #e9f0f7;
  --surface: rgba(255, 255, 255, 0.8);
  --surface2: #fff;
  --text: #102238;
  --muted: #52677e;
  --line: rgba(20, 55, 90, 0.13);
  --shadow: 0 24px 60px rgba(24, 60, 90, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(
      circle at 80% 10%,
      rgba(101, 230, 255, 0.08),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}
.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.accent {
  color: var(--accent);
}
.gradient-text {
  background: linear-gradient(100deg, var(--accent), #a29dff 55%, #7df3bd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted {
  color: var(--muted);
}
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(101, 230, 255, 0.6) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(123, 124, 255, 0.55) 1px,
      transparent 1px
    );
  background-size: 80px 80px, 120px 120px;
  z-index: -1;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(3, 10, 18, 0.78), transparent);
  backdrop-filter: blur(12px);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img {
  filter: drop-shadow(0 0 14px rgba(101, 230, 255, 0.35));
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.icon-btn,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 11px;
}
.menu-toggle {
  display: none;
}
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s, transform 8s;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  background: linear-gradient(
      90deg,
      rgba(3, 10, 18, 0.97) 0%,
      rgba(3, 10, 18, 0.78) 42%,
      rgba(3, 10, 18, 0.36) 100%
    ),
    linear-gradient(0deg, var(--bg), transparent 30%);
}
.hero-content {
  position: relative;
  padding-top: 80px;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(93, 242, 168, 0.08);
  margin-right: 8px;
}
.hero-kicker {
  margin: 20px 0 4px;
  color: #c8d8e9;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 8px 0 24px;
  max-width: 900px;
}
.hero-copy {
  max-width: 720px;
  font-size: 1.08rem;
  color: #c0cfdf;
}
.typing-line {
  margin: 28px 0;
  color: var(--accent);
  font-weight: 600;
}
.cursor {
  animation: blink 1s infinite;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), #8b8cff);
  color: #06101c;
  border: 0;
  box-shadow: 0 14px 34px rgba(101, 230, 255, 0.16);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.socials {
  display: flex;
  gap: 9px;
  margin-top: 26px;
}
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px "JetBrains Mono";
  letter-spacing: 0.15em;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.scroll-cue span {
  height: 32px;
  width: 1px;
  background: var(--accent);
  display: block;
}
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.035)
  );
}
.section-heading {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 52px;
}
.section-number {
  font: 600 12px "JetBrains Mono";
  color: var(--accent);
  padding-top: 7px;
}
.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 8px 0 0;
  letter-spacing: -0.04em;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
}
.about-copy .lead,
.contact-copy .lead {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
}
.about-copy p:not(.lead) {
  color: var(--muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 38px;
}
.stat-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
}
.stat-grid strong {
  display: block;
  font-size: 1.6rem;
}
.stat-grid span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-item p {
  color: var(--muted);
  margin: 4px 0;
  font-size: 0.9rem;
}
.timeline-item h3 {
  margin: 7px 0;
}
.skill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.skill-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 14px;
  border-radius: 99px;
  color: var(--muted);
}
.skill-tab.active,
.skill-tab:hover {
  color: var(--text);
  border-color: rgba(101, 230, 255, 0.45);
  background: rgba(101, 230, 255, 0.08);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skill-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: 0.25s;
}
.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(101, 230, 255, 0.35);
  box-shadow: var(--shadow);
}
.skill-card.hidden {
  display: none;
}
.skill-icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(101, 230, 255, 0.1);
  color: var(--accent);
  font: 700 0.72rem "JetBrains Mono";
  margin-bottom: 16px;
}
.skill-icon.azure {
  color: #63b7ff;
}
.skill-icon.gcp {
  color: #8de0ff;
}
.skill-card h3 {
  margin: 0 0 4px;
}
.skill-card p {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 42px;
}
.meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 16px;
}
.meter i {
  display: block;
  height: 100%;
  width: var(--value);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left;
  animation: grow 1.2s ease both;
}
.project-shell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-track {
  width: 100%;
  overflow: hidden;
}
.project-card {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.project-card.active {
  display: grid;
}
.project-visual {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(101, 230, 255, 0.05), rgba(123, 124, 255, 0.04));
  overflow: hidden;
}
.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}
.project-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(3, 10, 18, 0.7);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 8px;
  font: 10px "JetBrains Mono";
  color: var(--accent);
}
.project-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-info h3 {
  font-size: 2.3rem;
  line-height: 1.1;
  margin: 8px 0 16px;
}
.project-info > p:not(.mono) {
  color: var(--muted);
}
.badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.badges span {
  font: 10px "JetBrains Mono";
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted);
}
.project-links {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.project-links a,
.details-btn {
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
}
.carousel-arrow {
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.8rem;
}
.carousel-dots {
  text-align: center;
  margin-top: 20px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  margin: 5px;
  border: 0;
}
.dot.active {
  opacity: 1;
  background: var(--accent);
}
.cert-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border-radius: 24px;
  padding: 14px 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
}
.cert-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 16px;
  padding: 8px 18px;
  animation: cert-scroll 28s linear infinite;
  will-change: transform;
}
.cert-marquee:hover .cert-track {
  animation-play-state: paused;
}
.cert-card {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 0 0 340px;
  min-width: 340px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  border-radius: 18px;
  transition: 0.2s;
}
.cert-card:hover {
  transform: translateY(-3px);
}
.cert-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}
.cert-card h3 {
  font-size: 1rem;
  margin: 5px 0;
}
.cert-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.cert-year {
  font: 10px "JetBrains Mono";
  color: var(--accent);
}
@keyframes cert-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.learning-banner {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px dashed rgba(101, 230, 255, 0.3);
  border-radius: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.learning-banner strong {
  font-size: 0.9rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.contact-list a {
  color: var(--muted);
}
.contact-list span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.72rem;
  color: var(--accent);
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-size: 0.8rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(101, 230, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(101, 230, 255, 0.06);
}
.form-status {
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #8b8cff);
  color: #06101c;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
  z-index: 60;
}
.chatbot {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: min(390px, calc(100vw - 32px));
  height: 540px;
  background: rgba(7, 17, 29, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  transform: translateY(15px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.chatbot.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.chat-header {
  padding: 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.chat-header small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}
.chat-header button,
.modal-close {
  border: 0;
  background: none;
  font-size: 1.5rem;
}
.chat-messages {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-msg,
.user-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 0.8rem;
}
.bot-msg {
  background: var(--surface2);
  color: var(--text);
  align-self: flex-start;
}
.user-msg {
  background: rgba(101, 230, 255, 0.12);
  border: 1px solid rgba(101, 230, 255, 0.2);
  align-self: flex-end;
}
.chat-suggestions {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.chat-suggestions button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 6px 9px;
  font-size: 0.68rem;
}
.chat-input {
  display: flex;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 13px;
  outline: none;
}
.chat-input button {
  width: 50px;
  border: 0;
  background: rgba(101, 230, 255, 0.1);
  color: var(--accent);
}
.modal {
  border: 0;
  background: transparent;
  padding: 20px;
  max-width: 760px;
  width: calc(100% - 30px);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}
.modal-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
}
.modal-card h2 {
  font-size: 2rem;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .project-card.active {
    grid-template-columns: 1fr;
  }
  .project-visual {
    min-height: 300px;
  }
  .project-info {
    padding: 30px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 17, 29, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }
  .section {
    padding: 86px 0;
  }
  .section-heading {
    gap: 14px;
  }
  .skills-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .project-shell {
    gap: 5px;
  }
  .carousel-arrow {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .footer-inner {
    flex-direction: column;
  }
  .scroll-cue {
    display: none;
  }
  .chatbot {
    right: 14px;
    bottom: 82px;
  }
  .chat-fab {
    right: 14px;
    bottom: 14px;
  }
}

/* v2 reliability overrides — keeps the site styled even when opened from file:// */
body {
  min-width: 320px;
}
.site-header {
  will-change: backdrop-filter;
}
.hero-content {
  z-index: 2;
}
.hero-media {
  z-index: 0;
}
.hero-overlay {
  z-index: 1;
}
.architecture-section {
  background: radial-gradient(
    circle at 20% 40%,
    rgba(101, 230, 255, 0.045),
    transparent 32%
  );
}
.architecture-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 26px;
  align-items: stretch;
}
.architecture-diagram {
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  align-items: center;
}
.architecture-diagram img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}
.architecture-copy {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 30px;
}
.architecture-copy .lead {
  font-size: 1.2rem;
  line-height: 1.45;
  margin-top: 0;
}
.arch-points {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}
.arch-points div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.arch-points strong {
  display: block;
  color: var(--accent);
  font: 700 0.72rem "JetBrains Mono";
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.arch-points span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .architecture-layout {
    grid-template-columns: 1fr;
  }
  .architecture-diagram {
    min-height: 0;
  }
  .architecture-diagram img {
    min-height: 0;
  }
  .architecture-copy {
    padding: 24px;
  }
}
