/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Scrollbar Styles - Hidden by default, visible on hover */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 6px;
  transition: background 0.3s ease;
}

body:hover ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

body:hover ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* For Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

body:hover {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

.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;
}

/* Contact: Gmail pill expands on hover to reveal email + copy */
.contact-pill--gmail {
  overflow: hidden;
  white-space: nowrap;
  max-width: 150px;
  transition: max-width 220ms ease;
  gap: 0.6rem;
}

.contact-pill--gmail:hover {
  max-width: 520px;
}

.contact-pill--gmail .contact-pill__reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.contact-pill--gmail:hover .contact-pill__reveal {
  opacity: 1;
  transform: translateX(0);
}

.contact-pill--gmail .contact-pill__email {
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.contact-pill--gmail .contact-pill__copy {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-pill--gmail .contact-pill__copy:hover {
  background: rgba(255, 255, 255, 0.22);
}

#contact.contact {
  background: transparent !important;
  color: #fff;
  min-height: 100vh;
  padding: 6rem 2rem 8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
}

#contact h2 {
  font-size: 2.15rem;
}

#contact > p {
  font-size: 0.94rem;
  line-height: 1.45;
  margin-top: 0.4rem;
  opacity: 0.92;
}

#contact .contact-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
}

#contact .contact-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#contact .contact-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

#contact .contact-pill__main {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

#contact .contact-icon {
  margin-right: 8px;
}

#contact .contact-pill__main i {
  margin-right: 10px;
  font-size: 24px;
}

#contact .contact-footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5.6rem;
  margin: 0;
  width: max-content;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bottom centered navigation bar */
nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 15px 30px;
  display: flex;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Icon-based navigation (like the reference image) */
nav a i {
  font-size: 1.5rem;
}

section {
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section.visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

section:target {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

#about {
  scroll-margin-top: -72px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.blobs {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Older simple blob style (handled mainly by SVG + JS) */

/* Remove the old .blob selector and its children, or just update it as above */
/*
.blob {
  position: absolute;
  width: 300px;
  opacity: 0.40;
  animation: float 20s ease-in-out infinite;
}

.blob:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.blob:nth-child(2) {
  top: 30%;
  right: 10%;
  animation-delay: 5s;
}

.blob:nth-child(3) {
  bottom: 10%;
  left: 20%;
  animation-delay: 10s;
}
*/

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-40px); }
}

.resume-btn {
  margin-top: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-btn:hover {
  box-shadow: 0 0 10px #fff;
  transform: scale(1.05);
}

/* --- New Bottom Navigation Bar Styles --- */
.bottom-nav {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.bottom-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bottom-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ...rest of your CSS for about, skills, projects, certificates, contact, modal, and responsive styles... */

/* Example for modal */
#certModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.96);
  justify-content: center;
  align-items: center;
}
#certModal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 8px 32px #000a;
}

/* Projects fan deck redesign */
.projects-fan {
  position: relative;
  overflow: hidden;
}

.projects-fan h2,
.projects-fan > p {
  text-align: center;
}

.projects-fan__viewport {
  position: relative;
  width: min(1100px, 100%);
  margin: 2.2rem auto 0;
  height: clamp(360px, 54vw, 500px);
  perspective: 1300px;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.projects-fan.projects-fan--entered .projects-fan__viewport {
  opacity: 1;
  transform: translateY(0);
}

.projects-fan__deck {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.project-fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 28vw, 300px);
  height: clamp(330px, 37vw, 360px);
  background: #101114;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
  transform-origin: center bottom;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter, clip-path;
}

.projects-fan.projects-fan--entered .project-fan-card {
  animation: projectsCardGush 0.95s cubic-bezier(0.2, 0.85, 0.26, 1) both;
  animation-delay: calc(var(--card-order, 0) * 90ms);
}

.projects-fan.projects-fan--active .project-fan-card {
  animation: none;
}

.project-fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to var(--overlay-direction, right), transparent 0 78%, rgba(0, 0, 0, 0.48) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.project-fan-card.is-side-1::after {
  opacity: 1;
}

.project-fan-card.is-side-2::after {
  background: linear-gradient(to var(--overlay-direction, right), transparent 0 48%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 1;
}

.project-fan-card.is-left {
  --overlay-direction: left;
}

.project-fan-card.is-right {
  --overlay-direction: right;
}

.project-fan-card.is-center {
  pointer-events: auto;
  cursor: pointer;
}

.project-fan-card__media {
  height: 180px;
  background: var(--project-gradient, linear-gradient(120deg, #00bfff 0%, #7c3aed 100%));
  color: var(--project-ink, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.project-fan-card__media span {
  font-weight: 800;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  letter-spacing: 0.2px;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.33);
}

.project-fan-card__media--image {
  padding: 0;
  background: #fff;
}

.project-fan-card__media--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-fan-card__body {
  height: calc(100% - 180px);
  padding: 0.95rem 1rem 2.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-fan-card__body h3 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.project-fan-card__body p {
  font-size: 0.9rem;
  line-height: 1.44;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-fan-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.62rem;
}

.project-fan-card__tags span {
  display: inline-flex;
  align-items: center;
  background: #333;
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.48rem;
  font-size: 0.73rem;
  font-weight: 600;
}

.project-fan-card__body a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
  position: absolute;
  left: 1rem;
  bottom: 0.7rem;
  z-index: 3;
  pointer-events: none;
  cursor: pointer;
  color: #00bfff;
  text-decoration: none;
  font-weight: 700;
}

.project-fan-card__body a:hover {
  text-decoration: underline;
}

@keyframes projectsCardGush {
  0% {
    opacity: 0;
    transform: translate3d(-170px, -42px, -220px) rotate(-28deg) scale(0.56);
    filter: blur(2px);
  }
  72% {
    opacity: 1;
    transform: translate3d(42px, 8px, 25px) rotate(5deg) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0);
  }
}

/* Responsive styles (copy from your original CSS) */
@media (max-width: 900px) {
  /* ...responsive styles... */
}
@media (max-width: 600px) {
  .about-card,
  .education-card,
  .resume-card {
    max-width: 98vw !important;
    width: 98vw !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding: 1rem !important;
    border-radius: 18px !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .about-desc {
    font-size: 1em !important;
    line-height: 1.5 !important;
    padding: 0.5rem !important;
    word-break: break-word;
    text-align: left;
    max-width: 98vw !important;
    background: none !important;
  }

  .education-card .school-logo {
    width: 40px !important;
    height: 40px !important;
    margin-right: 0.7rem !important;
  }

  .education-card .school-info {
    font-size: 0.95em !important;
    word-break: break-word;
  }

  .resume-btn {
    width: 100%;
    font-size: 1em;
    margin-top: 1rem;
    padding: 0.7rem 0;
    box-sizing: border-box;
  }
}

/* Responsive blobs background */
.blobs-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.02) brightness(1);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.blobs-bg::before,
.blobs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 280ms ease, backdrop-filter 280ms ease, -webkit-backdrop-filter 280ms ease;
}

.blobs-bg::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 78% 74%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 50%),
    linear-gradient(120deg, rgba(6, 8, 14, 0.28), rgba(6, 8, 14, 0.14) 40%, rgba(6, 8, 14, 0.24));
  backdrop-filter: blur(8px) saturate(112%);
  -webkit-backdrop-filter: blur(8px) saturate(112%);
  opacity: 0;
}

.blobs-bg::after {
  background:
    radial-gradient(1200px 700px at 18% 82%, rgba(6, 8, 12, 0.24), rgba(6, 8, 12, 0) 62%),
    radial-gradient(1000px 620px at 85% 16%, rgba(6, 8, 12, 0.2), rgba(6, 8, 12, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.1));
  mix-blend-mode: multiply;
  opacity: 0;
}

body.blob-background-active .blobs-bg {
  opacity: 0.56;
  transform: scale(1.04);
  filter: saturate(1.02) brightness(0.7);
}

body.blob-background-active .blobs-bg::before {
  opacity: 0.78;
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
}

body.blob-background-active .blobs-bg::after {
  opacity: 0.38;
}

section,
footer {
  position: relative;
  z-index: 1;
}

/* Card-local blobs (for section containers) */
.card-with-blobs {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card-with-blobs > :not(.card-blob) {
  position: relative;
  z-index: 1;
}

.card-with-blobs .card-blob {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
}

.card-with-blobs--subtle .card-blob {
  opacity: 0.18;
}

.card-with-blobs .card-blob.blob-a {
  top: -190px;
  left: -180px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 0, 200, 0.95), rgba(255, 0, 200, 0) 62%),
    radial-gradient(circle at 65% 60%, rgba(255, 249, 0, 0.80), rgba(255, 249, 0, 0) 58%);
}

.card-with-blobs .card-blob.blob-b {
  right: -200px;
  bottom: -210px;
  background:
    radial-gradient(circle at 35% 35%, rgba(0, 246, 255, 0.90), rgba(0, 246, 255, 0) 62%),
    radial-gradient(circle at 70% 65%, rgba(127, 0, 255, 0.75), rgba(127, 0, 255, 0) 58%);
}

/* About card: side app-logo tiles */
.card-with-blobs > .about-logo-rail {
  position: absolute;
  top: 4.5rem;
  bottom: 4.5rem;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px;
  align-items: flex-start;
  z-index: 1;
  pointer-events: none;
}

.card-with-blobs > .about-logo-rail--left {
  left: 1.25rem;
}

.card-with-blobs > .about-logo-rail--right {
  right: 1.25rem;
}

.about-app-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  padding: 10px;
  box-sizing: border-box;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

/* Zig-zag (alternate horizontal offset) */
.about-logo-rail--left .about-app-logo:nth-child(even) {
  align-self: flex-end;
}

.about-logo-rail--right .about-app-logo:nth-child(odd) {
  align-self: flex-end;
}

.about-logo-rail--left .about-app-logo:nth-child(1) { transform: rotate(-18deg); }
.about-logo-rail--left .about-app-logo:nth-child(2) { transform: rotate(14deg); }
.about-logo-rail--left .about-app-logo:nth-child(3) { transform: rotate(-10deg); }
.about-logo-rail--left .about-app-logo:nth-child(4) { transform: rotate(16deg); }

.about-logo-rail--right .about-app-logo:nth-child(1) { transform: rotate(18deg); }
.about-logo-rail--right .about-app-logo:nth-child(2) { transform: rotate(-14deg); }
.about-logo-rail--right .about-app-logo:nth-child(3) { transform: rotate(10deg); }
.about-logo-rail--right .about-app-logo:nth-child(4) { transform: rotate(-16deg); }

#liquid-blobs {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw;
  min-height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: block;
}

/* Certificates showcase */
.cert-showcase {
  background: linear-gradient(120deg, #171a2b 0%, #36206f 45%, #d42d88 100%);
  padding: 2.2rem;
  border-radius: 24px;
  color: #fff;
  margin-top: 1.5rem;
  min-height: auto;
  max-width: 1920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
}

.cert-showcase__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cert-showcase__header h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.cert-showcase__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  font-weight: 500;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.2rem;
}

.cert-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 246, 255, 0.98));
  color: #20243c;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 24px rgba(14, 14, 44, 0.24);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  text-align: center;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 32px rgba(14, 14, 44, 0.28);
}

.cert-card a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.cert-card__img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-card__img {
  transform: scale(1.02);
}

.cert-card__title {
  margin-top: 0.85rem;
  font-weight: 700;
  color: #2d3048;
}

.cert-card--more {
  background: rgba(18, 22, 45, 0.66);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.cert-card__more-label {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.cert-card__cta {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f5cff, #d946ef);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 18px rgba(95, 61, 215, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cert-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px rgba(95, 61, 215, 0.42);
}

@media (max-width: 1100px) {
  .cert-showcase__header {
    align-items: start;
    flex-direction: column;
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* Responsive sections and cards */
@media (max-width: 900px) {
  section {
    padding: 4rem 1rem 2rem !important;
    min-height: auto !important;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
    padding: 0 1rem;
  }

  .card-with-blobs > .about-logo-rail {
    display: none !important;
  }

  .card-with-blobs {
    padding: 1.5rem 1rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
  }

  .about-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 1rem !important;
    word-break: break-word;
    text-align: left;
  }

  /* Profile image responsive */
  .about img[src="profile.jpg"] {
    width: 160px !important;
    max-width: 100% !important;
  }

  /* Resume button */
  .resume-btn {
    width: 100% !important;
    max-width: 200px !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    margin-top: 1rem !important;
  }

  /* Education cards */
  .about > div > div > div[style*="background: rgba(0,0,0,0.5)"] {
    min-height: auto !important;
    padding: 0.8rem !important;
    flex-wrap: wrap !important;
  }

  .about > div > div > div[style*="background: rgba(0,0,0,0.5)"] img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 0.8rem !important;
  }

  /* Experience (PhotoCircle) and Research sections - Full screen cards on mobile */
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"],
  section[style*="background: linear-gradient(90deg, #f5cc00"],
  section[style*="background: linear-gradient(90deg, #00c6ff"] {
    padding: 1.5rem 1rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    border-radius: 20px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  /* Show mobile image, hide desktop image */
  .pcr-image-container,
  .research-image-container {
    display: block !important;
  }

  .pcr-desktop-image,
  .research-desktop-image {
    display: none !important;
  }

  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] > div[style*="display: flex"],
  section[style*="background: linear-gradient(90deg, #f5cc00"] > div,
  section[style*="background: linear-gradient(90deg, #00c6ff"] > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] h3,
  section[style*="background: linear-gradient(90deg, #f5cc00"] h3,
  section[style*="background: linear-gradient(90deg, #00c6ff"] h3 {
    font-size: 1.3rem !important;
  }

  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] img,
  section[style*="background: linear-gradient(90deg, #f5cc00"] img,
  section[style*="background: linear-gradient(90deg, #00c6ff"] img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
  }

  /* PhotoCircle main photo specific */
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] img#pcr-main-photo {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 1rem !important;
  }

  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] div[style*="font-size:1rem"],
  section[style*="background: linear-gradient(90deg, #f5cc00"] div[style*="font-size:1rem"],
  section[style*="background: linear-gradient(90deg, #00c6ff"] div[style*="font-size:1rem"] {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }

  /* Certificates section */
  #certificates {
    padding: 2rem 1rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
  }

  #certificates h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  #certificates > div {
    gap: 1rem !important;
  }

  #certificates > div > div {
    width: 100% !important;
    max-width: 350px !important;
  }

  /* Projects section */
  #projects {
    padding: 4rem 1rem 2rem !important;
  }

  #projects h2 {
    font-size: 1.8rem !important;
  }

  #projects .projects-fan__viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(330px, 62vw, 430px) !important;
  }

  #projects .projects-fan__deck {
    width: 100% !important;
    max-width: none !important;
  }

  /* Contact section */
  #contact {
    min-height: 100vh !important;
    justify-content: center !important;
    padding: 5rem 1rem 7rem !important;
  }

  #contact h2 {
    font-size: 1.8rem !important;
  }

  #contact > p {
    font-size: 0.9rem !important;
  }

  #contact .contact-footer {
    bottom: 5.2rem !important;
  }

  #contact ul {
    gap: 0.5rem !important;
    justify-content: center !important;
  }

  #contact ul li {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  #contact ul li img,
  #contact ul li i {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
  }

  /* Contact pill Gmail - hide reveal section on mobile */
  .contact-pill--gmail {
    max-width: 150px !important;
  }

  .contact-pill--gmail .contact-pill__reveal {
    display: none !important;
  }

  /* Bottom navigation */
  .bottom-nav {
    bottom: 15px !important;
    padding: 8px 12px !important;
    gap: 5px !important;
  }

  .bottom-nav a {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
}

/* For very small screens */
@media (max-width: 600px) {
  body {
    font-size: 14px !important;
  }

  section {
    padding: 3rem 0.5rem 2rem !important;
  }

  .hero h1 {
    font-size: 1.5rem !important;
    padding: 0 1rem;
  }

  .hero p {
    font-size: 0.9rem !important;
    padding: 0 1rem;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .card-with-blobs {
    padding: 1rem 0.8rem !important;
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    width: calc(100% - 0.5rem) !important;
    max-width: calc(100% - 0.5rem) !important;
    border-radius: 16px !important;
  }

  .about > div {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .about > div > div {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .about-desc {
    font-size: 0.9rem !important;
    padding: 0.8rem !important;
  }

  /* Profile and resume button container */
  .about > div > div > div[style*="display: flex; flex-direction: row"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }

  .about img[src="profile.jpg"] {
    width: 140px !important;
    margin: 0 auto !important;
  }

  .resume-btn {
    width: 100% !important;
    max-width: 180px !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.8rem !important;
  }

  /* Education cards */
  .about > div > div > div[style*="background: rgba(0,0,0,0.5)"] {
    padding: 0.7rem !important;
    min-height: auto !important;
  }

  .about > div > div > div[style*="background: rgba(0,0,0,0.5)"] img {
    width: 36px !important;
    height: 36px !important;
    margin-right: 0.6rem !important;
  }

  .about > div > div > div[style*="background: rgba(0,0,0,0.5)"] > div {
    font-size: 0.85rem !important;
  }

  /* Badges section */
  .about > div > div > div[style*="Featured badges"] {
    padding: 0.8rem !important;
  }

  .about > div > div > div[style*="Featured badges"] a {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* Experience and Research sections - Full screen cards on small mobile */
  section[style*="background: linear-gradient(90deg, #f5cc00"],
  section[style*="background: linear-gradient(90deg, #00c6ff"],
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] {
    padding: 1.5rem 1rem !important;
    margin: 1rem 0.5rem !important;
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    border-radius: 20px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  /* Show mobile image, hide desktop image */
  .pcr-image-container,
  .research-image-container {
    display: block !important;
  }

  .pcr-desktop-image,
  .research-desktop-image {
    display: none !important;
  }

  section[style*="background: linear-gradient(90deg, #f5cc00"] > div,
  section[style*="background: linear-gradient(90deg, #00c6ff"] > div,
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] > div[style*="display: flex"] {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-items: stretch !important;
  }

  section[style*="background: linear-gradient(90deg, #f5cc00"] > div > div,
  section[style*="background: linear-gradient(90deg, #00c6ff"] > div > div,
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] > div > div {
    width: 100% !important;
    flex-direction: column !important;
  }

  section[style*="background: linear-gradient(90deg, #f5cc00"] h3,
  section[style*="background: linear-gradient(90deg, #00c6ff"] h3,
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
  }

  section[style*="background: linear-gradient(90deg, #f5cc00"] img,
  section[style*="background: linear-gradient(90deg, #00c6ff"] img,
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }

  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] img#pcr-main-photo {
    margin-left: 0 !important;
    margin-top: 1rem !important;
  }

  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] img[src*="pcr.png"] {
    width: 60px !important;
    height: 60px !important;
  }

  section[style*="background: linear-gradient(90deg, #f5cc00"] div[style*="color:#222"],
  section[style*="background: linear-gradient(90deg, #00c6ff"] div[style*="color:#222"],
  section[style*="background: linear-gradient(90deg, #00c6ff"] div[style*="color:#004d66"],
  .card-with-blobs--subtle[style*="background: linear-gradient(90deg, #f5cc00"] div[style*="color:#222"] {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
    margin-top: 0.5rem !important;
  }

  /* Certificates */
  #certificates {
    padding: 1.5rem 0.8rem !important;
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    width: calc(100% - 0.5rem) !important;
  }

  #certificates h2 {
    font-size: 1.3rem !important;
  }

  #certificates > div > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.8rem !important;
  }

  #certificates > div > div img {
    height: 180px !important;
  }

  #certificates > div > div p {
    font-size: 0.9rem !important;
  }

  /* Projects */
  #projects {
    padding: 3rem 0.5rem 2rem !important;
  }

  #projects h2 {
    font-size: 1.5rem !important;
  }

  #projects p {
    font-size: 0.9rem !important;
  }

  #projects .projects-fan__viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(300px, 84vw, 370px) !important;
  }

  #projects .project-fan-card {
    width: clamp(200px, 64vw, 285px) !important;
    height: clamp(300px, 72vw, 330px) !important;
  }

  #projects .project-fan-card__body h3 {
    font-size: 1rem !important;
  }

  #projects .project-fan-card__body p {
    font-size: 0.85rem !important;
  }

  #projects .project-fan-card__tags span {
    font-size: 0.75rem !important;
    padding: 0.15rem 0.4rem !important;
  }

  /* Contact */
  #contact {
    min-height: 100vh !important;
    justify-content: center !important;
    padding: 4.4rem 0.8rem 6.6rem !important;
  }

  #contact h2 {
    font-size: 1.5rem !important;
  }

  #contact > p {
    font-size: 0.86rem !important;
  }

  #contact .contact-footer {
    bottom: 4.7rem !important;
  }

  #contact ul {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  #contact ul li {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  .contact-pill--gmail {
    max-width: 100% !important;
  }

  .contact-pill--gmail:hover {
    max-width: 100% !important;
  }

  /* Footer */
  footer {
    font-size: 0.85rem !important;
    padding: 0.8rem 0.5rem !important;
  }

  /* Bottom navigation */
  .bottom-nav {
    bottom: 10px !important;
    padding: 6px 10px !important;
    gap: 3px !important;
  }

  .bottom-nav a {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  /* Modal */
  #certModal button {
    top: 20px !important;
    right: 20px !important;
    font-size: 2rem !important;
  }

  #certModal img {
    max-width: 95vw !important;
    max-height: 85vh !important;
  }
}

/*

                              ::::::::::::::::::::                              
                        -::::::::::::::::::::::::::::::-                        
                     ::::::::::::::::::::::::::::::::::::::-                    
                  :::::-+%@@+::::::::::::::::::::::-%#+-::::::-                 
               :::::=%@@@@@@@-:::::::::::::::::::::%@@@@@%=:::::-               
             :::::#@@@@@@@@#::::-*%@@@@@@@@@@@*-:::*@@@@@@@@@=::::-             
           ::::-%@@@@@@@@=:::*@@@@@@@@@@@@@@@@@@@@*:::#@@@@@@@@+::::-           
         :::::#@@@@@@@@+::-%@@@@@@@@@@@@@@@@@@@@@@@@%-:-#@@@@@@@@+::::=         
        ::::+@@@@@@@@%-:-%@@@@@@@@@@@@@@@@@@@@@@@@@@@@%-:=%@@@@@@@%-:::-        
       ::::*@@@@@@@@*::+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+::#@@@@@@@@+::::+      
     ::::-%@@@@@@@@*::*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*::%@@@@@@@@#::::=     
    :::::%@@@@@@@@#::+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+::#@@@@@@@@#::::=    
    ::::%@@@@@@@@@-:=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=:=@@@@@@@@@#::::@   
   ::::*@@@@@@@@@*::*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#::*@@@@@@@@@+::::+  
  ::::+@@@@@@@@@@-::%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%::-@@@@@@@@@@=:::-  
 :::::%@@@@@@@@@%-::@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-::%@@@@@@@@@#::::+ 
 ::::+@@@@@@@@@@%-::@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:::%@@@@@@@@@@=:::: 
:::::@@@@@@@@@@@%-::%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%:::%@@@@@@@@@@%::::-
::::=@@@@@@@@@@@@-::*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#::-%@@@@@@@@@@@=:::=
::::+@@@@@@@@@@@@*::=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=::+@@@@@@@@@@@@*:::=
::::*@@@@@@@@@@@@@-::+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+:::%@@@@@@@@@@@@#:::-
::::#@@@@@@@@@@@@@*:::*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:::+@@@@@@@@@@@@@#::::
::::#@@@@@@@@@@@@@@=:::=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+::::%@@@@@@@@@@@@@#::::
::::*@@@@@@@@@@@@@@@-::::#@@@@@@@@@@@@@@@@@@@@@@@@@@@@%:::::%@@@@@@@@@@@@@@#:::-
::::+@@@@@@@@@@@@%-:::::::-%@@@@@@@@@@@@@@@@@@@@@@@@%-:::::::*@@@@@@@@@@@@@*:::-
::::=@@@@@@@@@%=:::::::::::::+@@@@@@@@@@@@@@@@@@@@@@@%-::::::::-#@@@@@@@@@@+:::=
:::::%@@@@@@+:::::::::::::::::::-+%@@@@@@@@@@%+-:=%@@@@%-:::::::::=%@@@@@@@::::=
 ::::-%@@#-::::::::::::::::::::::::::::::::::::::::=%@@@@%+:::::::::-+%@@@+::::# 
 -::::==::::::::::::-#-::::::::::::::::::::::::::::::-#@@@@@*::::::::::-##::::+ 
  ::::::::::::::::=@@@@@#-::::::::::::::::::::::::::::::*@@@@@#-:::::::::::::-  
   :::::::::::::*@@@@@@@@@@@*-:::::::::::::::::::=*:::::::+%@@@@%-:::::::::::*  
    :::::::::-%@@@@@*::+%@@@@@@@@%#+-:::::-=*%%@@@@@#:::::::-%@@@@%=::::::::%   
    -::::::+%@@@@%=:::::::-+%@@@@@@@@@@@@@@@@@@@@@%=::::::::::-#@@@@@*:::::=    
     -:::*@@@@@#-::::::::::::::-=+#%@@@@@@@%#*=-:::::::::::::::#@@@@*:::::+     
      -*@@@@@*::::::::::::::::::::::::::::::::::::::::::::::-#@@@@%-::::-*      
        #@%=:::::::::--:::::::::::::::::::::::::::::::::::=%@@@@%=:::::-        
         :::::::::::#@@@#-:::::::::::::::::::::::::::::=%@@@@@%=::::::+         
           -:::::::=@@@@@@@@%+:::::::::::::::::::::+%@@@@@@@%-::::::=           
             :::::::::=%@@@@@@@@@%%%#**+++**#%%%@@@@@@@@@%=:::::::=             
               -::::::::::=*%@@@@@@@@@@@@@@@@@@@@@@@@%+-::::::::=               
                 =:::::::::::::-=+*#%%@@@@@@%%#*+=-::::::::::-+                 
                    =-::::::::::::::::::::::::::::::::::::-+                    
                        =-::::::::::::::::::::::::::::-*                        
                              +-::::::::::::::::-+                              

*/

/* 3D Model Viewer Styles */
model-viewer {
  --poster-color: transparent;
  --progress-bar-color: rgba(124, 58, 237, 0.8);
}

model-viewer::part(default-progress-bar) {
  height: 4px;
  background-color: rgba(124, 58, 237, 0.3);
}

model-viewer::part(default-progress-mask) {
  background: linear-gradient(90deg, #7c3aed, #00bfff);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Animations for 3D Model Section */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(0, 191, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 0 0 60px rgba(0, 191, 255, 0.4);
  }
}

/* Enhanced button hover effects for About section */
.resume-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6) !important;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.resume-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Education card hover effects */
.about div[style*="border: 2px solid"] {
  transition: all 0.3s ease;
  cursor: pointer;
}

.about div[style*="border: 2px solid"]:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Badge hover effects */
.about a[style*="border-radius: 9999px"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5) !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(0, 191, 255, 0.5)) !important;
}

/* Mobile-first responsive improvements */
@media (max-width: 480px) {
  #projects .projects-fan__viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(280px, 94vw, 340px) !important;
  }
  
  #projects .projects-fan__deck {
    width: 100% !important;
    max-width: none !important;
  }

  #projects .project-fan-card {
    width: clamp(190px, 72vw, 260px) !important;
    height: clamp(270px, 82vw, 300px) !important;
  }
  
  .card-with-blobs {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .card-with-blobs > div > div:last-child {
    display: none !important;
  }
  
  .pcr-desktop-image,
  .research-desktop-image {
    display: none !important;
  }
  
  .pcr-image-container,
  .research-image-container {
    display: block !important;
    order: -1 !important;
  }
}

@media (max-width: 380px) {
  #projects {
    padding: 2rem 0.5rem !important;
  }
  
  section {
    padding: 2rem 0.5rem 1.5rem !important;
  }
  
  .contact-pill {
    flex-wrap: wrap !important;
  }
  
  footer {
    padding: 0.75rem 0.25rem !important;
    font-size: 0.85rem !important;
  }
}
