:root{
  --bg: #070B14;
  --bg2:#0B1222;
  --card:#0B1326CC;
  --card2:#0B1326F2;
  --text:#EAF2FF;
  --muted:#A9B7D0;
  --line:#1C2A45;
  --accent:#19C5FF;
  --accent2:#58F0D6;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, #0B1A34 0%, transparent 55%),
              radial-gradient(900px 650px at 80% 30%, #0A2A2B 0%, transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
.container{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding: 24px 0 44px;
}

/* Interactive Canvas Background */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Top bar */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7,11,20,.78), rgba(7,11,20,.30));
  border-bottom:1px solid rgba(28,42,69,.55);
  padding: 10px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Ensure the brand is on the left and the menu is in the middle */
.topbar .brand { justify-self: start; }
.topbar .topbar-links { justify-self: center; }


.brand{ display:flex; align-items:center; gap:10px; transition: transform 0.2s; }
.brand:hover .brand-pic { transform: scale(1.08); box-shadow: 0 0 20px rgba(25,197,255,.65); }
.brand-pic{
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(25,197,255,.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.brand-name{ font-weight:700; letter-spacing:.2px; }

.topbar-links {
  display: flex;
  align-items: center;
}

.gradient-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gradient-menu li {
  position: relative;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.5s, background 0.5s, box-shadow 0.5s;
  cursor: pointer;
  overflow: hidden;
}

.gradient-menu li:hover {
  width: 140px;
  box-shadow: none;
  background: transparent;
}

.gradient-menu li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Background gradient on hover */
.gradient-menu li .bg {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.gradient-menu li:hover .bg {
  opacity: 1;
}

/* Glow effect on hover */
.gradient-menu li .glow {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.gradient-menu li:hover .glow {
  opacity: 0.5;
}

/* Icon style */
.gradient-menu li .icon {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 1.4em;
  transition: transform 0.5s, color 0.5s;
  display: flex;
}

.gradient-menu li:hover .icon {
  transform: scale(0);
  color: #fff;
}

/* Title style */
.gradient-menu li .title {
  position: absolute;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75em;
  font-weight: 700;
  transition: transform 0.5s;
  transform: scale(0);
  z-index: 2;
}

.gradient-menu li:hover .title {
  transform: scale(1);
  transition-delay: 0.1s;
}


/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  padding: 34px 0 18px;
  align-items:stretch;
}

.hero-title{
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 8px;
  letter-spacing: .3px;
}
.hero-subtitle{
  margin:0 0 14px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(234,242,255,.92);
  font-weight: 700;
}
.hero-one-liner{
  margin:0 0 22px;
  color: var(--muted);
  line-height:1.6;
  max-width: 60ch;
}

.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }

/* Buttons */
.btn{
  border:1px solid rgba(28,42,69,.8);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  border-color: rgba(25,197,255,.55);
  background: linear-gradient(135deg, rgba(25,197,255,.22), rgba(88,240,214,.10));
  box-shadow: 0 10px 30px rgba(25,197,255,.18);
}
.btn-primary:hover{
  border-color: rgba(25,197,255,.9);
  background: linear-gradient(135deg, rgba(25,197,255,.28), rgba(88,240,214,.14));
}
.btn-ghost:hover{ border-color: rgba(25,197,255,.4); background: rgba(25,197,255,.06); }
.btn-arrow{ opacity:.9; }

/* Hero Stats */
.hero-stats{
  display:flex;gap:48px;margin-top:72px;
  padding-top:48px;border-top:1px solid rgba(28,42,69,.55);
  animation:fadeUp .8s .4s both;
}
.stat-num{
  font-size:36px;font-weight:800;
  background:linear-gradient(135deg,var(--text),var(--muted));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.stat-label{font-size:13px;color:var(--muted);font-weight:500;margin-top:2px;letter-spacing:0.3px}

@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

/* Skills Ticker */
.ticker-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid rgba(28,42,69,.55);
  border-bottom: 1px solid rgba(28,42,69,.55);
  background: rgba(11,13,26,.45);
  padding: 24px 0;
  margin-top: 50px;
  margin-bottom: 40px;
  position: relative;
}
.ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker:hover {
  animation-play-state: paused;
}
.ticker-item {
  flex-shrink: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-item span { color: rgba(88,240,214,.9); font-size: 18px; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* Hero right card */
.hero-card{
  height:100%;
  border-radius: var(--radius);
  border:1px solid rgba(28,42,69,.7);
  background: linear-gradient(180deg, rgba(11,19,38,.65), rgba(11,19,38,.35));
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero-card-top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.muted{ color: var(--muted); }
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:800;
  font-size: 12px;
  border:1px solid rgba(28,42,69,.8);
  background: rgba(255,255,255,.03);
}
.hero-card-mid{ margin-top: 14px; }
.checklist{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(234,242,255,.88);
}
.checklist li{ margin: 8px 0; }
.hero-card-bottom{ margin-top: 14px; }
.mini-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.mini-tags span{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25,197,255,.10);
  border:1px solid rgba(25,197,255,.22);
  color: rgba(234,242,255,.95);
  font-weight: 800;
  font-size: 12px;
}

/* Sections */
.section{ padding: 26px 0; }
.section-head{ margin-bottom: 14px; }
.section-title{
  margin:0 0 6px;
  font-size: 22px;
  color: rgba(25,197,255,.95);
  letter-spacing:.2px;
}
.section-subtitle{ margin:0; color: var(--muted); }

/* Project cards */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.project-card{
  position:relative;
  border-radius: var(--radius);
  border: 1px solid rgba(25, 197, 255, 0.15);
  background: linear-gradient(180deg, rgba(11,19,38,.65), rgba(11,19,38,.25));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform-style: preserve-3d;
}
.project-card.highlight{
  border-color: rgba(25,197,255,.45);
  box-shadow: 0 25px 70px rgba(25,197,255,.10), var(--shadow);
}

.card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(28,42,69,.6);
  background: rgba(0,0,0,0.2);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .card-image {
  transform: scale(1.05);
}

.card-glow{
  position:absolute;
  inset:-120px;
  background: radial-gradient(300px 260px at 30% 30%, rgba(25,197,255,.30), transparent 55%),
              radial-gradient(260px 220px at 70% 70%, rgba(88,240,214,.20), transparent 55%);
  opacity:.6;
  transform: translateZ(-1px);
  pointer-events:none;
}

.card-content{
  position:relative;
  padding: 22px 22px 74px;
  min-height: 220px;
}

.card-title{ margin:0 0 6px; font-size: 20px; }
.card-subtitle{ margin:0 0 10px; color: rgba(234,242,255,.70); font-weight: 700; }
.card-desc{ margin:0 0 14px; color: var(--muted); line-height: 1.55; }

.stack{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.stack-pill{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(28,42,69,.8);
  background: rgba(255,255,255,.03);
  color: rgba(234,242,255,.92);
  font-weight: 800;
  font-size: 12px;
}

/* GitHub button bottom-right */
.github-btn{
  position:absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  border:1px solid rgba(25,197,255,.55);
  background: linear-gradient(135deg, rgba(25,197,255,.24), rgba(88,240,214,.10));
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.github-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(25,197,255,.95);
  background: linear-gradient(135deg, rgba(25,197,255,.30), rgba(88,240,214,.14));
}

/* Certs */
.certs-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.cert-tile{
  border-radius: var(--radius);
  border: 1px solid rgba(28,42,69,.75);
  background: rgba(11,19,38,.50);
  overflow:hidden;
  box-shadow: var(--shadow);
  cursor:pointer;
  padding: 0;
  transition: transform .15s ease, border-color .2s ease;
}
.cert-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(25,197,255,.5);
}
.cert-tile img{
  width:100%;
  height: 210px;
  object-fit: cover;
  display:block;
}

/* CTA */
.cta-section{
  margin-top: 22px;
  padding: 34px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(28,42,69,.75);
  background: linear-gradient(180deg, rgba(11,19,38,.72), rgba(11,19,38,.35));
  text-align:center;
  box-shadow: var(--shadow);
}
.cta-title{ margin:0 0 6px; font-size: 26px; }
.cta-sub{ margin:0 0 16px; color: var(--muted); }

/* Footer */
.footer{
  margin-top: 48px;
  padding: 40px 0 20px;
  text-align:center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-links{
  display:flex;
  justify-content:center;
  margin-bottom: 24px;
}
.footer .gradient-menu li {
  width: 44px;
  height: 44px;
}
.footer .gradient-menu li:hover {
  width: 130px;
}
.footer-copy {
  font-size: 14px;
  opacity: 0.6;
}


/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  z-index: 50;
}
.modal.show{ display:grid; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

.modal-card{
  position:relative;
  width: min(560px, 92vw);
  border-radius: var(--radius);
  border:1px solid rgba(28,42,69,.8);
  background: linear-gradient(180deg, rgba(11,19,38,.92), rgba(11,19,38,.70));
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 1;
}

.modal-image{
  width: min(980px, 94vw);
  padding: 14px;
}
.modal-image img{
  width:100%;
  height:auto;
  border-radius: 16px;
  border: 1px solid rgba(28,42,69,.65);
  display:block;
}

.modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border:1px solid rgba(28,42,69,.9);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
}

.modal-title{ margin: 4px 0 6px; }
.modal-sub{ margin: 0 0 14px; color: var(--muted); }

/* Form */
.field{ display:flex; flex-direction:column; gap:8px; margin: 10px 0; }
.field span{ color: rgba(234,242,255,.9); font-weight: 800; font-size: 13px; }
input, textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(28,42,69,.85);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 12px 12px;
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(25,197,255,.65);
  box-shadow: 0 0 0 4px rgba(25,197,255,.10);
}
.modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 12px;
}
.tiny{ font-size: 12px; margin-top: 10px; }

/* Project Details Pages */
.project-detail-header {
  margin-bottom: 24px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.back-link:hover {
  transform: translateX(-4px);
  color: var(--accent2);
}
.project-title {
  font-size: 38px;
  margin: 0 0 8px;
  color: var(--text);
}
.project-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 16px;
}
.project-detail-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card-glass {
  border-radius: var(--radius);
  border: 1px solid rgba(25, 197, 255, 0.15);
  background: linear-gradient(180deg, rgba(11,19,38,.75), rgba(11,19,38,.40));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 32px;
}
.project-description-box h3 {
  margin-top: 0;
  font-size: 24px;
  color: var(--accent);
}
.project-description-box p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}
.project-description-box .checklist li {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.gallery-item {
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(28,42,69,.5);
}

/* About Page */
.about-hero {
  text-align: center;
  padding: 40px 0 20px;
}
.about-hero-image-wrapper {
  margin-bottom: 24px;
}
.large-profile-pic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px rgba(25,197,255,0.4);
}
.about-title {
  font-size: 42px;
  margin: 0 0 10px;
  color: var(--text);
}
.about-subtitle {
  font-size: 24px;
  color: var(--accent);
  margin: 0 0 10px;
}
.about-tagline {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 16px;
}
.about-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 12px;
}
.about-card strong {
  color: var(--text);
}
.about-projects-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.project-mini {
  flex: 1;
  min-width: 250px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(28,42,69,0.8);
  padding: 20px;
  border-radius: 16px;
}
.project-mini h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
}

/* Responsive — Tablet */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 24px; margin-top: 40px; padding-top: 32px; flex-wrap: wrap; }
  .cards-grid{ grid-template-columns: 1fr; }
  .certs-grid{ grid-template-columns: 1fr 1fr; }
  .card-content{ min-height: auto; }
  .project-title { font-size: 28px; }
  .card-glass { padding: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-title { font-size: 32px; }
}

/* Responsive — Mobile */
@media (max-width: 640px){

  /* Topbar */
  .topbar {
    padding: 8px 14px;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .topbar .topbar-right { display: none; }
  .topbar .topbar-links { justify-self: end; }

  /* Brand */
  .brand-pic { width: 44px; height: 44px; }
  .brand-name { font-size: 13px; }

  /* Nav menu — shrink icons & gaps */
  .gradient-menu {
    gap: 6px;
  }
  .gradient-menu li {
    width: 38px;
    height: 38px;
  }
  .gradient-menu li:hover {
    width: 100px;
  }
  .gradient-menu li .icon {
    font-size: 1.1em;
  }
  .gradient-menu li .icon svg {
    width: 18px;
    height: 18px;
  }
  .gradient-menu li .title {
    font-size: 0.65em;
    letter-spacing: 0.05em;
  }

  /* Footer nav same fix */
  .footer .gradient-menu li {
    width: 38px;
    height: 38px;
  }
  .footer .gradient-menu li:hover {
    width: 100px;
  }

  /* Container */
  .container {
    width: 100%;
    padding: 12px 14px 24px;
  }

  /* Hero */
  .hero {
    padding: 12px 0 8px;
    gap: 14px;
  }
  .hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .hero-subtitle {
    font-size: clamp(14px, 4vw, 16px);
  }
  .hero-one-liner {
    font-size: 13px;
    max-width: 100%;
  }
  .hero-cta {
    gap: 8px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Hero Stats */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 11px; }

  /* Hero Card */
  .hero-card {
    padding: 12px;
  }

  /* Pills & Tags (New Mobile Additions) */
  .pill, .stack-pill, .mini-tags span {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Ticker */
  .ticker-wrap {
    padding: 12px 0;
    margin-top: 24px;
    margin-bottom: 16px;
  }
  .ticker-item {
    font-size: 12px;
    padding: 0 14px;
  }
  .ticker-item span {
    font-size: 15px;
  }

  /* Project Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card-image-wrapper {
    height: 160px;
  }
  .card-content {
    padding: 14px 14px 50px;
  }
  .card-title { font-size: 16px; margin: 0 0 4px; }
  .card-subtitle { font-size: 12px; margin: 0 0 8px; }
  .card-desc { font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
  
  .github-btn {
    padding: 8px 12px;
    font-size: 12px;
    bottom: 12px;
    right: 12px;
  }

  /* Section */
  .section { padding: 14px 0; }
  .section-title { font-size: 18px; margin-bottom: 4px; }
  .section-subtitle { font-size: 13px; }

  /* CTA */
  .cta-section {
    padding: 20px 12px;
    margin-top: 16px;
  }
  .cta-title { font-size: 18px; }
  .cta-sub { font-size: 13px; margin-bottom: 12px; }

  /* About page */
  .about-hero { padding: 16px 0 8px; }
  .large-profile-pic { width: 140px; height: 140px; border-width: 3px; }
  .about-title { font-size: 22px; }
  .about-subtitle { font-size: 16px; }
  .about-tagline { font-size: 13px; margin-bottom: 24px; }
  .about-grid { gap: 12px; }
  .about-card h3 { font-size: 16px; margin-bottom: 10px; }
  .about-card p { font-size: 13px; margin-bottom: 8px; }

  /* Project detail pages */
  .project-title { font-size: 20px; margin-bottom: 4px; }
  .project-subtitle { font-size: 14px; margin-bottom: 12px; }
  .card-glass { padding: 12px; }
  .project-description-box p { font-size: 13px; }
  .project-description-box h3 { font-size: 18px; }

  /* Certs */
  .certs-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Modal */
  .modal-card { padding: 16px; }
  .modal-title { font-size: 18px; }
  .modal-sub { font-size: 13px; }

  /* Footer */
  .footer { margin-top: 20px; padding: 16px 0 10px; }
}

/* =========================================
   LIGHT THEME OVERRIDES 
   ========================================= */
[data-theme="light"] {
  --bg: #F0F4FA;
  --bg2: #E1E8F4;
  --text: #0B1222;
  --muted: #5C6A82;
  --accent: #007CE4;
  --accent2: #05C7A3;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
}

[data-theme="light"] body {
  background: radial-gradient(1200px 700px at 20% 10%, #E8F0FE 0%, transparent 55%),
              radial-gradient(900px 650px at 80% 30%, #D1F2EB 0%, transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(240,244,250,.9), rgba(240,244,250,.7));
  border-bottom: 1px solid rgba(11,18,34,.10);
}

[data-theme="light"] .gradient-menu li {
  background: rgba(11,18,34,.04);
  border: 1px solid rgba(11,18,34,.10);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .gradient-menu li .title { color: #fff; }

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .card-subtitle,
[data-theme="light"] .checklist {
  color: #1A2B4C;
}

[data-theme="light"] .btn {
  border: 1px solid rgba(11,18,34,.15);
  background: rgba(11,18,34,.05);
  color: var(--text);
}
[data-theme="light"] .btn-primary {
  border-color: rgba(0,124,228,.55);
  background: linear-gradient(135deg, rgba(0,124,228,.15), rgba(5,199,163,.10));
  box-shadow: 0 10px 30px rgba(0,124,228,.15);
}
[data-theme="light"] .btn-primary:hover {
  border-color: rgba(0,124,228,.9);
  background: linear-gradient(135deg, rgba(0,124,228,.25), rgba(5,199,163,.15));
}
[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(0,124,228,.4);
  background: rgba(0,124,228,.06);
}

[data-theme="light"] .hero-card,
[data-theme="light"] .project-card,
[data-theme="light"] .card-glass,
[data-theme="light"] .cta-section,
[data-theme="light"] .cert-tile {
  border: 1px solid rgba(0,124,228,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.50));
  box-shadow: var(--shadow);
}
[data-theme="light"] .project-card.highlight {
  border-color: rgba(0,124,228,.6);
  box-shadow: 0 25px 70px rgba(0,124,228,.15), var(--shadow);
}

[data-theme="light"] .pill,
[data-theme="light"] .stack-pill,
[data-theme="light"] .mini-tags span,
[data-theme="light"] .project-mini {
  border: 1px solid rgba(11,18,34,.15);
  background: rgba(11,18,34,.04);
  color: #1A2B4C;
}

[data-theme="light"] .section-title,
[data-theme="light"] .card-title,
[data-theme="light"] .cta-title,
[data-theme="light"] .about-title,
[data-theme="light"] .project-title {
  color: #007CE4;
}

[data-theme="light"] .github-btn {
  border: 1px solid rgba(0,124,228,.55);
  background: linear-gradient(135deg, rgba(0,124,228,.15), rgba(5,199,163,.10));
}
[data-theme="light"] .github-btn:hover {
  border: 1px solid rgba(0,124,228,.95);
  background: linear-gradient(135deg, rgba(0,124,228,.25), rgba(5,199,163,.15));
}

[data-theme="light"] .ticker-wrap {
  border-top: 1px solid rgba(11,18,34,.10);
  border-bottom: 1px solid rgba(11,18,34,.10);
  background: rgba(225,232,244,.6);
}
[data-theme="light"] .ticker-item span { color: #05C7A3; }
[data-theme="light"] .stat-num {
  background: linear-gradient(135deg, #007CE4, #05C7A3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .modal-backdrop {
  background: rgba(255,255,255,.4);
}
[data-theme="light"] .modal-card {
  border: 1px solid rgba(11,18,34,.15);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,244,250,.95));
}
[data-theme="light"] input, 
[data-theme="light"] textarea,
[data-theme="light"] .modal-close {
  border: 1px solid rgba(11,18,34,.2);
  background: rgba(11,18,34,.03);
  color: var(--text);
}
[data-theme="light"] input:focus, 
[data-theme="light"] textarea:focus {
  border-color: rgba(0,124,228,.65);
  box-shadow: 0 0 0 4px rgba(0,124,228,.10);
}
[data-theme="light"] .card-glow {
  background: radial-gradient(300px 260px at 30% 30%, rgba(0,124,228,.15), transparent 55%),
              radial-gradient(260px 220px at 70% 70%, rgba(5,199,163,.10), transparent 55%);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
  margin-left: 15px;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(11,18,34,0.05);
}
