* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #102b59;
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
main {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
}

/* Header & Navigation */
.header {
  height: 74px;
  padding: 0 5.8%;
  border-bottom: 1px solid #e5edf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  display: block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-logo {
  transform: scale(1.08) rotate(-2deg);
}
.brand span, .footer b {
  font-size: 24px;
  font-weight: 800;
  color: #1463ed;
}
.brand b {
  font-size: 15px;
  font-weight: 700;
}
.studio-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(20, 99, 237, 0.08);
  color: #1463ed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(20, 99, 237, 0.2);
  line-height: 1.3;
}
body.dark .studio-badge {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}
.nav {
  display: flex;
  height: 100%;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: #456181;
  display: flex;
  align-items: center;
  position: relative;
}
.nav a.active {
  color: #1463ed;
}
.nav a.active:after {
  content: "";
  height: 2px;
  background: #1463ed;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  border: 0;
  background: none;
  font-size: 22px;
  color: #18385f;
  cursor: pointer;
}
.resume, .btn.primary {
  background: #1463ed;
  color: #fff;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 9px 25px rgba(20, 99, 237, 0.16);
}
.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
}

/* Sections & Layout */
.section {
  padding: 75px 5.8%;
  max-width: 1440px;
  margin: auto;
  scroll-margin-top: 76px;
}
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 32px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: #eaf3ff;
  color: #1463ed;
  font-size: 12px;
  font-weight: 600;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 18px 0;
}
.hero h1 span {
  color: #1463ed;
}
.hero p {
  max-width: 540px;
  color: #557193;
  font-size: 16.5px;
  line-height: 1.65;
}
.actions {
  display: flex;
  gap: 14px;
  margin: 28px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn.outline {
  border: 1px solid #1463ed;
  color: #1463ed;
}
.social-row {
  display: flex;
  gap: 20px;
  color: #16385f;
  font-weight: 700;
  font-size: 15px;
}

/* Hero Art Graphics */
.hero-art, .case-art {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-glow {
  position: absolute;
  width: 520px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #e7f0ff, transparent 68%);
}
.device {
  position: absolute;
  background: #152d4c;
  border: 7px solid #d5deea;
  box-shadow: 0 24px 45px rgba(36, 76, 122, 0.12);
}
.laptop {
  width: 500px;
  height: 300px;
  border-radius: 13px;
  right: 3%;
  transform: rotate(-1deg);
  padding: 30px;
  background: #13263f;
}
.laptop:after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: -50px;
  width: 590px;
  height: 24px;
  background: #cbd5e3;
  border-radius: 3px 3px 18px 18px;
}
.code-lines {
  background: #0d1929;
  height: 100%;
  padding: 20px;
}
.code-lines i {
  display: block;
  height: 7px;
  margin: 11px 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #3e83f6 0 20%, #52657c 20% 55%, #b47cff 55% 72%, #52657c 72%);
  opacity: 0.85;
}
.tablet {
  width: 290px;
  height: 210px;
  border-radius: 10px;
  right: 0;
  bottom: 30px;
  background: #fff;
  padding: 18px;
  z-index: 2;
}
.fake-app {
  height: 100%;
  background: #f7faff;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
}
.platforms {
  margin-top: 24px;
  color: #1463ed;
  font-size: 22px;
}
.phone {
  width: 125px;
  height: 245px;
  border-radius: 22px;
  left: 12%;
  top: 110px;
  z-index: 4;
  background: #fff;
  padding: 25px 10px 10px;
}
.phone-app {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 8px;
  color: #254a78;
}
.phone-app > b {
  font-size: 11px;
  color: #1463ed;
}
.phone-app hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e8edf5;
}
.scribble {
  position: absolute;
  right: 0;
  top: 10px;
  color: #365d94;
  font-size: 13.5px;
  font-weight: 500;
  transform: rotate(-5deg);
}

/* Typography & Headings */
h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
p {
  color: #557193;
  line-height: 1.65;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about > div > p {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.7;
}
.traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 25px;
}
.traits span {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e40af;
  background: #edf4ff;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbeafe;
}
.dark .traits span {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}
.info-card, .education-card, .timeline-item {
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 92, 155, 0.04);
}
.info-card {
  padding: 24px;
}
.info-card div {
  display: grid;
  grid-template-columns: 28px 90px 1fr;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f8;
  font-size: 13.5px;
}
.info-card div:last-child {
  border: 0;
}
.info-card b {
  color: #1463ed;
  font-size: 17px;
}
.info-card span {
  color: #64748b;
  font-weight: 500;
}
.info-card strong {
  font-weight: 600;
  color: #102b59;
}

/* Skills Section */
.band {
  background: #f9fbfe;
  max-width: none;
  padding-left: 5.8%;
  padding-right: 5.8%;
}
.section-title p, .section-head p {
  font-size: 14px;
  color: #64748b;
  margin: 4px 0 0;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.skill {
  padding: 18px 20px;
  border: 1px solid #dfe8f4;
  background: #fff;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 99, 237, 0.08);
}
.skill span {
  grid-row: span 2;
  font-size: 26px;
  color: #1463ed;
}
.skill b {
  font-size: 14px;
  font-weight: 700;
  color: #102b59;
  line-height: 1.25;
}
.skill small {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.3;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.section-head > a {
  font-size: 13px;
  color: #1463ed;
  font-weight: 700;
}

/* Tag Pills & Card Links */
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  background: #edf4ff;
  color: #1463ed;
  border-radius: 20px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1463ed;
  font-size: 13px;
  font-weight: 700;
  transition: gap 0.2s ease;
}
.card-link:hover {
  gap: 7px;
}

/* Experience & Education */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
}
.timeline {
  position: relative;
}
.timeline-item {
  padding: 22px 20px 22px 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 14px;
}
.timeline-item i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #1463ed;
  border-radius: 50%;
  margin-left: -24px;
  margin-top: 7px;
}
.timeline-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #102b59;
}
.timeline-item p {
  font-size: 13px;
  margin: 3px 0 2px;
  color: #475569;
}
.timeline-item small, .timeline-item time {
  font-size: 12px;
  color: #64748b;
}
.education-card {
  padding: 24px;
  display: flex;
  gap: 16px;
}
.school-mark {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #eff5ff;
  display: grid;
  place-items: center;
  color: #1463ed;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.education-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #102b59;
}
.education-card p, .education-card b, .education-card small {
  display: block;
  font-size: 13px;
  margin: 3px 0;
}
.education-card small {
  color: #64748b;
  font-size: 12px;
}

/* Contact & Footer */
.contact {
  background: #eff6ff;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  padding: 40px;
}
.contact h2 {
  font-size: 26px;
}
.contact p {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
}
.contact-links {
  display: grid;
  gap: 14px;
}
.contact-links a {
  display: flex;
  gap: 14px;
  align-items: center;
}
.contact-links b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: #1463ed;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-links span {
  font-size: 13.5px;
  font-weight: 700;
}
.contact-links small {
  display: block;
  color: #64748b;
  font-weight: 400;
  font-size: 12px;
}
.footer {
  padding: 0 5.8% 35px;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #102b59;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
  transition: 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- Case Study Page Styles --- */
.case-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 35px;
  align-items: center;
  background: linear-gradient(180deg, #f8fbff, #fff);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.back {
  color: #1463ed;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.case-copy {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.case-copy h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 15px 0 6px;
  letter-spacing: -1px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.tagline {
  color: #475569;
  font-size: 16px;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: break-word;
}
.case-copy > p:not(.tagline) {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  word-break: break-word;
  overflow-wrap: break-word;
}
.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  width: 100%;
  box-sizing: border-box;
}
.meta-item, .meta > span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dfe9f5;
  border-radius: 10px;
  min-width: 0;
  box-sizing: border-box;
}
.meta-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}
.meta-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.meta b {
  font-size: 12.5px;
  font-weight: 700;
  color: #102b59;
  line-height: 1.3;
}
.meta em {
  font-style: normal;
  font-size: 12px;
  color: #5b769a;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}
.dark .meta-item, .dark .meta > span {
  background: #111f33;
  border-color: #263d59;
}
.dark .meta b {
  color: #eaf2ff;
}
.dark .meta em {
  color: #9bb0ca;
}
.big-laptop {
  width: 500px;
  height: 300px;
  border: 7px solid #d3ddea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(36, 78, 128, 0.09);
  overflow: hidden;
}
.dash-nav {
  height: 32px;
  background: #f6f8fb;
  padding: 8px 12px;
  font-size: 11px;
  color: #526b8e;
}
.dash-content {
  display: grid;
  grid-template-columns: 90px 1fr;
  height: 268px;
  font-size: 9px;
}
.dash-content aside {
  padding: 12px 9px;
  line-height: 2.6;
  background: #f9fbff;
  color: #607998;
}
.dash-content > div {
  padding: 13px;
}
.banner {
  padding: 16px;
  background: #e4efff;
  border-radius: 7px;
}
.banner small {
  color: #1463ed;
}
.banner h2 {
  font-size: 19px;
  margin: 5px 0;
}
.banner button, .login button, .community button {
  background: #1463ed;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 9px;
}
.mini {
  display: flex;
  gap: 5px;
}
.mini i {
  font-style: normal;
  padding: 6px;
  border: 1px solid #e2e9f2;
  border-radius: 4px;
}
.case-phone {
  position: absolute;
  left: 8%;
  bottom: 25px;
  width: 115px;
  height: 225px;
  border: 5px solid #17304e;
  border-radius: 20px;
  background: #fff;
  padding: 20px 9px 8px;
  box-shadow: 0 16px 28px rgba(30, 66, 105, 0.17);
  font-size: 8px;
}
.case-phone > b {
  color: #1463ed;
}
.phone-banner {
  margin-top: 10px;
  padding: 9px;
  background: #e8f1ff;
  border-radius: 6px;
}
.case-phone h5 {
  margin: 10px 0 4px;
}
.tiny-tags {
  font-size: 7px;
  background: #f1f6fc;
  padding: 5px;
  border-radius: 5px;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 35px;
}
.case-grid article > p {
  font-size: 15px;
  line-height: 1.7;
}
.goal {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #eff6ff;
  border-radius: 9px;
  margin-top: 20px;
}
.goal > b {
  font-size: 22px;
  color: #1463ed;
}
.goal strong {
  font-size: 14px;
  font-weight: 700;
  color: #102b59;
}
.goal p {
  font-size: 13.5px;
  margin: 4px 0 0;
  line-height: 1.55;
}
.feature-card {
  padding: 24px;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: #fff;
}
.feature-card h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.lower {
  padding-top: 0;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stack-grid div {
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  display: grid;
  gap: 3px;
}
.stack-grid strong {
  font-size: 22px;
  color: #1463ed;
}
.stack-grid b {
  font-size: 12.5px;
  font-weight: 700;
  color: #102b59;
}
.stack-grid small {
  font-size: 11px;
  color: #64748b;
}
.link-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  padding: 12px 0;
  color: #1463ed;
  font-size: 13px;
}
.link-row span {
  flex: 1;
  display: grid;
}
.link-row b {
  font-size: 13px;
  color: #18385f;
}
.link-row small {
  font-size: 11px;
  color: #8095ae;
}

/* Dark Mode Overrides */
.dark {
  background: #0c1524;
  color: #eaf2ff;
}
.dark .header {
  background: rgba(12, 21, 36, 0.96);
  border-color: #253851;
}
.dark .nav a, .dark p, .dark .info-card span, .dark .skill small, .dark .timeline-item small, .dark .timeline-item p, .dark .footer {
  color: #9bb0ca;
}
.dark .info-card, .dark .project, .dark .feature-card, .dark .education-card, .dark .timeline-item, .dark .skill, .dark .big-laptop {
  background: #111f33;
  border-color: #29405d;
}
.dark .hero, .dark .case-hero {
  background: linear-gradient(180deg, #0f1c2e, #0c1524);
}
.dark .band {
  background: #0e1a2b;
}
.dark .contact, .dark .goal {
  background: #12253e;
}
.dark .brand, .dark h2, .dark h3, .dark .info-card strong, .dark .skill b, .dark .timeline-item h3, .dark .education-card h3, .dark .stack-grid b {
  color: #eaf2ff;
}

/* Responsive Media Queries */
@media(max-width: 1050px) {
  .nav { gap: 17px; }
  .hero, .case-hero { grid-template-columns: 1fr; }
  .hero-art, .case-art { order: -1; }
  .about, .case-grid, .split, .contact { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { gap: 25px; }
  .case-art { min-height: 390px; }
  .case-copy { order: 2; }
  .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media(max-width: 720px) {
  .header { height: 64px; padding: 0 5%; }
  .brand b, .nav, .header-actions .icon-btn { display: none; }
  .brand-logo { height: 34px; max-width: 42px; }
  .menu-btn { display: block; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    border-bottom: 1px solid #e4ebf4;
    padding: 15px 5%;
    flex-direction: column;
    gap: 0;
  }
  .nav.open a { padding: 12px; font-size: 15px; }
  .hero, .case-hero { padding: 32px 5%; overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; }
  .section { padding: 38px 5%; max-width: 100%; box-sizing: border-box; }
  .hero h1, .case-copy h1 { font-size: 32px; word-break: break-word; overflow-wrap: break-word; }
  .hero-art, .case-art { transform: scale(0.68); height: 260px; min-height: 260px; margin: -20px auto; width: 100%; max-width: 100%; overflow: hidden; transform-origin: center center; display: flex; justify-content: center; align-items: center; }
  .laptop { right: 0; }
  .tablet { right: -5%; }
  .phone { left: 5%; }
  .big-laptop { width: 440px; max-width: 90vw; flex-shrink: 0; }
  .case-phone { left: 4%; }
  .about { gap: 24px; }
  .actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 18px;
  }
  .actions .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
  }
  .skill {
    padding: 12px 14px;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    border-radius: 10px;
    min-height: 60px;
  }
  .skill span {
    font-size: 20px;
  }
  .skill b {
    font-size: 13px;
    line-height: 1.25;
  }
  .skill small {
    font-size: 10.5px;
    line-height: 1.3;
    margin-top: 2px;
  }
  .skill:last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 20px !important;
  }
  .meta-item, .meta > span {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .meta-icon {
    font-size: 16px !important;
  }
  .meta b {
    font-size: 12px !important;
    color: #18385f !important;
  }
  .dark .meta b {
    color: #eaf2ff !important;
  }
  .meta em {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    color: #64748b !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .dark .meta em {
    color: #9bb0ca !important;
  }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item time { margin-top: 8px; }
  .contact { padding: 26px 20px; }
  .footer { padding: 0 5% 25px; display: grid; gap: 12px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 24px;
    margin-bottom: 4px;
  }
  .section-head p {
    font-size: 13.5px;
    margin-bottom: 4px;
  }
  #projectTotalBadge {
    align-self: flex-start;
  }
  .project-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 10px;
    margin: 10px 0 18px;
    gap: 8px;
    scrollbar-width: none;
  }
  .project-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }
}
@media(max-width: 460px) {
  .hero-art, .case-art { transform: scale(0.55); height: 220px; min-height: 220px; margin: -40px auto; }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; }
  .info-card div { grid-template-columns: 25px 75px 1fr; }
  .meta {
    grid-template-columns: 1fr !important;
    gap: 11px !important;
  }
  .hero h1, .case-copy h1 { font-size: 26px; }
}
@media(max-width: 360px) {
  .hero-art, .case-art { transform: scale(0.46); height: 180px; min-height: 180px; margin: -50px auto; }
}
/* --- Scalable Project Architecture & Status Indicators --- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
}
.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20, 99, 237, 0.12);
}
.dark .project:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  width: fit-content;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* Status Types */
.status-deployed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.status-deployed .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseEmerald 2s infinite ease-in-out;
}

.status-production-ready {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.status-production-ready .status-dot {
  background: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.status-ongoing {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.status-ongoing .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
  animation: pulseAmber 2s infinite ease-in-out;
}

@keyframes pulseEmerald {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}
@keyframes pulseAmber {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* Dark Mode Status Badges */
.dark .status-deployed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
.dark .status-production-ready {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.35);
}
.dark .status-ongoing {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Card Visual Mockups */
.project-img {
  height: 165px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}
.project-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #557193;
  margin: 0 0 14px;
  flex: 1;
}
.dark .project-body p {
  color: #9bb0ca;
}
.project-body .card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #edf2f8;
}
.dark .project-body .card-footer {
  border-color: #243954;
}

/* Specific Card Mockup Headers */
.educircle-img {
  background: linear-gradient(135deg, #0c1b33 0%, #1e3a8a 50%, #3b82f6 100%);
  color: #fff;
}
.safetest-img {
  background: linear-gradient(135deg, #091a30 0%, #173865 60%, #1e40af 100%);
  color: #fff;
}
.serviplex-img {
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 55%, #1e3a8a 100%);
  color: #fff;
}
.easyshots-img {
  background: linear-gradient(135deg, #182230 0%, #29384d 50%, #0d1520 100%);
  color: #fff;
}
.easyocr-img {
  background: linear-gradient(135deg, #091a2f 0%, #1e3a8a 50%, #2563eb 100%);
  color: #fff;
}
.deskkeys-img {
  background: linear-gradient(135deg, #111827 0%, #312e81 50%, #4f46e5 100%);
  color: #fff;
}
.mnemorad-img {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%);
  color: #fff;
}
.sporthub-img {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  color: #fff;
}
.aethraflow-img {
  background: linear-gradient(135deg, #180033 0%, #3b0764 50%, #7c3aed 100%);
  color: #fff;
}
.bluedrop-img {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0284c7 100%);
  color: #fff;
}
.wifiplus-img {
  background: linear-gradient(135deg, #0c1a30 0%, #1e3a5f 50%, #0284c7 100%);
  color: #fff;
}
.card-mini-graphic {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  color: #fff;
}
.card-mini-graphic small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

/* Projects Toggle (Show All) */
.projects-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}
.show-more-btn {
  background: #fff;
  border: 1px solid #cfe0f5;
  color: #1463ed;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(20, 99, 237, 0.08);
  transition: all 0.25s ease;
}
.show-more-btn:hover {
  background: #1463ed;
  color: #fff;
  border-color: #1463ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 99, 237, 0.24);
}
.dark .show-more-btn {
  background: #111f33;
  border-color: #29405d;
  color: #60a5fa;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.dark .show-more-btn:hover {
  background: #1463ed;
  color: #fff;
  border-color: #1463ed;
}

/* Filter Bar */
.project-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}
.filter-btn {
  border: 1px solid #dfe8f4;
  background: #fff;
  color: #475569;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-btn:hover {
  border-color: #1463ed;
  color: #1463ed;
}
.filter-btn.active {
  background: #1463ed;
  color: #fff;
  border-color: #1463ed;
  box-shadow: 0 4px 14px rgba(20, 99, 237, 0.25);
}
.filter-count {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.07);
}
.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.28);
}
.dark .filter-btn {
  background: #111f33;
  border-color: #29405d;
  color: #9bb0ca;
}
.dark .filter-btn.active {
  background: #1463ed;
  color: #fff;
  border-color: #1463ed;
}

/* Case Study Enhancements */
.case-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.case-platforms-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.dark .case-platforms-chip {
  background: #1a2a40;
  color: #94a3b8;
  border-color: #2e4463;
}
.overview-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.overview-box {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #dfe8f4;
  background: #fff;
}
.overview-box.problem {
  border-left: 4px solid #ef4444;
  background: #fefefe;
}
.overview-box.solution {
  border-left: 4px solid #10b981;
  background: #fefefe;
}
.overview-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.overview-box p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  color: #475569;
}
.dark .overview-box {
  background: #111f33;
  border-color: #29405d;
}
.dark .overview-box.problem {
  border-left-color: #ef4444;
}
.dark .overview-box.solution {
  border-left-color: #10b981;
}

/* Feature grid in case study */
.features-detailed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature-item-card {
  padding: 16px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #e6eef8;
  display: flex;
  gap: 14px;
}
.dark .feature-item-card {
  background: #0f1c2e;
  border-color: #20344d;
}
.feature-item-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.feature-item-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 5px;
  color: #102b59;
}
.dark .feature-item-content h4 {
  color: #eaf2ff;
}
.feature-item-content p {
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  color: #5b769a;
}
.dark .feature-item-content p {
  color: #9bb0ca;
}

/* Architecture Highlight Card */
.architecture-card {
  padding: 26px;
  border-radius: 10px;
  border: 1px solid #dfe8f4;
  background: #fff;
  margin-top: 25px;
}
.dark .architecture-card {
  background: #111f33;
  border-color: #29405d;
}
.architecture-card h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.architecture-card p {
  font-size: 14.5px;
  line-height: 1.65;
}
.architecture-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.architecture-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
}
.dark .architecture-item {
  color: #9cb1cb;
}
.architecture-item:before {
  content: "▹";
  color: #1463ed;
  font-weight: 800;
  font-size: 14px;
}

/* Contributions Card */
.contributions-card {
  padding: 26px;
  border-radius: 10px;
  border: 1px solid #dfe8f4;
  background: #fff;
}
.dark .contributions-card {
  background: #111f33;
  border-color: #29405d;
}
.contributions-card h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.contribution-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.contribution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
}
.dark .contribution-item {
  color: #9cb1cb;
}
.contribution-item:before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  font-size: 13px;
}

/* Project Switcher Navigation */
.project-switcher-section {
  padding: 38px 5.8%;
  border-top: 1px solid #dfe8f4;
  background: #f8fbff;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.dark .project-switcher-section {
  background: #0e1a2b;
  border-color: #253851;
}
.project-switcher-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.project-switcher-head h3 {
  margin: 0;
  font-size: 18px;
}
.project-nav-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.project-nav-chip {
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid #dfe8f4;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 220px;
  transition: all 0.2s ease;
}
.project-nav-chip:hover, .project-nav-chip.active {
  border-color: #1463ed;
  box-shadow: 0 6px 18px rgba(20, 99, 237, 0.12);
}
.dark .project-nav-chip {
  background: #111f33;
  border-color: #29405d;
}
.dark .project-nav-chip:hover, .dark .project-nav-chip.active {
  border-color: #1463ed;
}
.project-nav-chip b {
  font-size: 14px;
}
.project-nav-chip small {
  font-size: 11.5px;
  color: #7188a4;
}

@media(max-width:900px){
  .overview-card-grid, .features-detailed-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:540px){
  .brand .studio-badge {
    display: none;
  }
}

/* --- Mobile Projects Carousel & Controls --- */
.carousel-controls {
  display: none;
}

@media (max-width: 768px) {
  .projects {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 4px 18px;
    scroll-padding: 0 16px;
    scrollbar-width: thin;
  }
  .projects::-webkit-scrollbar {
    height: 6px;
  }
  .projects::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 99px;
  }
  .dark .projects::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  .projects::-webkit-scrollbar-thumb {
    background: rgba(20, 99, 237, 0.35);
    border-radius: 99px;
  }
  .project {
    flex: 0 0 85vw;
    max-width: 330px;
    min-width: 270px;
    scroll-snap-align: center;
    box-sizing: border-box;
  }
  .project-body {
    padding: 16px;
  }
  .project-body h3 {
    font-size: 17px;
  }
  .project-body p {
    font-size: 13px;
    line-height: 1.55;
    margin: 8px 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
  }
  .carousel-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dfe8f4;
    background: #fff;
    color: #1463ed;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20, 99, 237, 0.08);
    transition: all 0.2s ease;
  }
  .carousel-nav-btn:hover, .carousel-nav-btn:active {
    background: #1463ed;
    color: #fff;
    border-color: #1463ed;
  }
  .carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #cbd5e1;
    transition: all 0.25s ease;
    cursor: pointer;
  }
  .carousel-dot.active {
    width: 20px;
    background: #1463ed;
  }
  .dark .carousel-nav-btn {
    background: #111f33;
    border-color: #243b57;
    color: #60a5fa;
  }
  .dark .carousel-nav-btn:hover, .dark .carousel-nav-btn:active {
    background: #1463ed;
    color: #fff;
  }
  .dark .carousel-dot {
    background: #253a55;
  }
  .dark .carousel-dot.active {
    background: #3b82f6;
  }
}



