:root {
  /* Backgrounds */
  --color-primary: #f8f7f1;
  --color-complementary: #edeff02f; /* subtle section background */
  --color-bg-dark: #21211c; /* footer / dark sections */

  /* Text */
  --color-text: #18303d; /* main text */
  --color-text-light: #f8f7f1; /* text on dark backgrounds */
  --color-text-muted: #78776a; /* secondary text */

  /* Accents */
  --color-accent: #f1fffe; /* buttons, links, highlights */
  --color-hover: #edb33c; /* hover states */
  --color-specials: #ed9d3c; /* badges, highlights */
  --color-accent-blue: #0883ff; /* your preferred blue */

  /* Borders / dividers */
  --color-border: #c0bdaa;
}

* title {
  border-radius: 50px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

*::selection {
  background-color: var(--color-text);
  color: #f8f7f1;
}

html,
body {
  width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-image: url(./Assets/vecteezy_add-a-sleek-modern-touch-with-this-dark-blue-and-violet_46970651.jpg);
  background-size: cover;
  /* background-position: center; */
  background-repeat: 0;
}


.scrollbar {
  position: fixed;
  top: 1vw;
  right: 0.5vw;
  width: 10px;
  height: calc(100vh - 2vw);
  pointer-events: none;
  z-index: 9999;
}

/* Thumb */
.thumb {
  position: absolute;
  /* Removed top: 0 to rely purely on hardware transform */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 5px black;
  width: 60%;
  min-height: 60px;

  background: linear-gradient(180deg, #e2d7b5 0%, #c9ba84 100%);
  border-radius: 999px;

  /* Explicitly transition ONLY height to prevent interfering with JS transforms */
  transition: height 0.15s ease;
  will-change: transform; /* Hardware Acceleration */
}

#main {
  width: 100%;
  padding-right: env(safe-area-inset-right, 0px);
  /* display: none; */
}

#hero {
  width: 100%;
  height: 100dvh;
  background-image: url("./Assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  perspective: 1000px;
}

#hero::before {
  content: "";
  background: #0000007f;
  /* background-color: red; */
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* NavBar */
nav {
  width: 80%;
  height: 8vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vh 7vw;
  position: sticky;
  top: 0.5rem;
  left: 10%;
  z-index: 1000;
  backdrop-filter: blur(50px);
  border-radius: 100vw;
}

nav h1 {
  text-transform: uppercase;
  font-weight: 800;
  font-family: monospace;
  color: var(--color-accent);
  font-size: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--color-accent);
  font-family: "Google Sans";
  font-weight: 900;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  transition: 0.3s all ease;
  overflow: hidden;
}

.nav-hover:hover {
  /* text-decoration: 2px var(--color-hover) underline; */
  text-underline-offset: 5px;
  color: var(--color-accent);
  transition: 0.3s ease;
  color: var(--color-hover);
  font-family: "Google Sans";
}

.nav-hover::before {
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--color-hover);
  position: absolute;
  left: 0;
  bottom: 10px;
  border-radius: 100vw;
  transform: translateX(-101%);
  transition: 0.3s all ease;
}

.nav-hover:hover::before {
  transform: translateX(0%);
  transition: 0.3s all ease;
}

/* Hero - Section */
.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  display: flex;
  flex: 1;
  transform-style: preserve-3d;
  align-items: center;
  /* justify-content: center; */
}

.hero-head {
  margin-top: 13%;
  padding: 5vh 7vw;
  font-family: "outfit";
  color: var(--color-accent);
  font-size: 5vw;
}

/* .hero-head span{
  -webkit-text-stroke-width: 1px;
  text-shadow: inset 0 0 5px white;
  -webkit-text-stroke-color: white;
  -webkit-text-fill-color: transparent;
  font-family : 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} */

.links {
  display: flex;
  gap: 2vw;
  margin: 0 0 3vw 0;
}

.hero-main .links > a {
  text-decoration: none;
  color: white;
  font-weight: 900;
  /* width: 50px;
  height: 50px; */
  padding: 0.6rem 1.2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background: var(--color-complementary);
  border-radius: 50px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: color 0.4s ease;
}

.username {
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

#leetcode {
  /* padding: 0.6rem 0.6rem; */
}

.icon-leetcode {
  display: inline-block;
  width: 1.25em !important;
  height: 1.25em !important;
  background-color: currentColor;
  mask: url('./Assets/leetcode-brands-solid-full.svg') no-repeat center;
  -webkit-mask: url('./Assets/leetcode-brands-solid-full.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  vertical-align: middle;
}

.links i {
  font-size: 1.5rem;
  transition: color 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

/* Default Icon Colors (Before Hover) */
.links > a:nth-child(1) i {
  color: #2ea043; /* Github Green */
}

.links > a:nth-child(2) i {
  color: #0179b6; /* Linkedin Blue */
}

.links > a:nth-child(3) i {
  color: #f09a1a; /* Leetcode Golden Yellow */
}

/* Hover States */
.links a:hover {
  color: black;
}

.links > a::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #0179b6;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: inherit; /* Prevents sharp corners from bleeding through parent border-radius */
  transform: translateX(-105%); /* Pushes it further out to hide it completely */
  transition: 0.4s transform ease;
}

.links > a:first-child::before {
  background-color: #2ea043;
}

.links > a:nth-child(3)::before {
  background-color: #f09a1a;
}

.links > a:hover::before {
  transform: translateX(0);
}

.links > a:hover i {
  color: black;
}

/* Leetcode hover is handled automatically via .links > a:hover i */

.tagline {
  font-size: 1.1rem;
  font-weight: 300;
  backdrop-filter: blur(10px);
  color: #f1fffe;
  position: relative;
}

.tagline span {
  color: var(--color-hover);
  font-weight: 600;
  font-size: 1.3rem;
  position: absolute;
  margin-left: 0.5rem;
  animation: blink 1s ease infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.code {
  width: 600px;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* About Me Section */
#about-me {
  min-height: 100vh;
  width: 100%;
  background: #f8f7f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 5vw 3rem 5vw;
}

#projects {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(circle at 50% 50%, #151f32 0%, #030812 100%);
  padding: 5rem 8vw 4rem 8vw;
}

#projects .section-title {
  color: white;
}

#project-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 5vw;
}

.project-card {
  flex: 1 1 340px;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform; /* Promotes layer for performant scrolling with backdrop-filter */
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 179, 60, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(237, 179, 60, 0.15);
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background: #030812;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.project-card h2 {
  font-family: "Outfit", sans-serif;
  color: #ffffff; /* Restores high visibility contrast */
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem 0;
  transition: color 0.3s;
}

.project-card:hover h2 {
  color: var(--color-hover);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.card-links a {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  flex: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.card-links a i {
  font-size: 1rem;
}

.card-links a:hover {
  background: var(--color-hover);
  color: #030812;
  border-color: var(--color-hover);
  box-shadow: 0 0 15px rgba(237, 179, 60, 0.3);
}

/* Education Section */
#education {
  min-height: 100vh;
  width: 100%;
  background-color: #f8f7f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 8vw 4rem 8vw;
}



/* Footer CSS */
footer {
  min-height: 40vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #02091d;
  color: white;
  padding: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5vw 7vw;
  width: 100%;
}

.footer-left h2 {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-hover);
}

.footer-left p {
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-email {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
}

.footer-email a {
  color: var(--color-hover);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-email a:hover {
  color: white;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-socials a {
  color: white;
  font-size: 1.8rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.footer-socials a:hover {
  color: var(--color-hover);
}

footer label {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.email {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.einput {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 2px solid var(--color-hover);
  width: 100%;
  max-width: 400px;
}

footer input[type="email"] {
  appearance: none;
  background-color: transparent;
  border: none;
  flex: 1;
  padding: 0.8rem 0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

footer input:focus {
  outline: none;
}

.einput button {
  appearance: none;
  padding: 0.8rem;
  background-color: transparent;
  color: white;
  outline: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.einput button:hover {
  transform: translateX(5px);
  color: var(--color-hover);
}

footer .love {
  background-color: var(--color-bg-dark);
  width: 100%;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.heart {
  color: red;
  margin: 0 0.3rem;
  display: inline-block;
  animation: beat .25s infinite alternate;
}

@keyframes beat{
  to { transform: scale(1.2); }
}

@keyframes scale-3d {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hamberger {
  height: 2rem;
  /* background-color: red; */
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

@media (max-width: 500px) {
  #main {
    opacity: 1;
  }

  nav {
    position: static;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* #hero{
    height: 100dvh;
  } */
  .nav-hover {
    display: none;
  }

  .hamberger {
    display: contents;
  }

  .hero-head {
    font-size: 4rem;
    text-align: center;
    text-wrap: wrap;
  }

  .links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .hero-main .links > a {
    padding: 0.6rem 1rem;
    width: 80%;
    max-width: 250px;
    justify-content: center;
  }
  
  .username {
    font-size: 0.9rem;
  }

}

.me-logo {
  width: 64px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
}

/* --- New Premium Styles --- */

.section-title {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  font-size: 4rem;
  font-family: "Outfit", sans-serif;
  width: 100%;
}

.section-title span {
  background: linear-gradient(135deg, var(--color-hover) 0%, var(--color-specials) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 9, 29, 0.9);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 2.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--color-hover);
}

/* About Me Section Enhancements */
#about-me .info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 0 10vw;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-img-container {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-hover) 0%, #d89626 100%);
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.mobile-only-name {
  display: none;
}

.desktop-only-name {
  display: block;
}

.info-right h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-family: "Outfit", sans-serif;
}

.info-right p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.info-right p:last-of-type {
  margin-bottom: 2rem;
}

.highlight {
  color: var(--color-hover);
  font-weight: 700;
}

.skills-container h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-complementary);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.skill-badge img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.skill-badge:hover {
  background: var(--color-hover);
  color: white;
  border-color: var(--color-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(237, 179, 60, 0.3);
}

.btn-primary {
  padding: 0.8rem 2rem;
  background-color: var(--color-text);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Education Timeline */
#education {
  padding-bottom: 5rem;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
  will-change: transform;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--color-hover);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--color-primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
  font-family: "Outfit", sans-serif;
  color: var(--color-text);
  font-size: 1.3rem;
}

.timeline-content h4 {
  color: var(--color-hover);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Animation Utilities */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  #about-me .info {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0 5vw !important; /* Spans content to 90% of viewport width */
  }

  #about-me .info-left {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers profile photo and name row */
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.2rem; /* Reduced space between profile and paragraphs */
  }
  
  #about-me .profile-img-container {
    width: 90px !important;
    height: 90px !important;
    flex-shrink: 0;
    border-radius: 15px;
    padding: 3px;
  }
  
  #about-me .profile-img {
    border-radius: 12px;
  }

  .mobile-only-name {
    display: block !important;
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    text-align: left;
  }

  .desktop-only-name {
    display: none !important;
  }

  .info-right p {
    width: 100% !important; /* Span full container width */
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }
  
  .skills-grid {
    justify-content: flex-start;
    width: 100% !important;
    gap: 1rem 0.8rem !important;
  }

  .skills-grid .skill-badge {
    width: calc(50% - 0.4rem) !important;
    box-sizing: border-box;
    justify-content: center;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }
  
  .timeline-dot {
    left: -10px !important;
    right: auto !important;
  }
  
  #projects {
    padding: 3rem 5vw !important; /* Sets content width to 90% of viewport width */
  }

  #project-container {
    flex-direction: column;
    padding: 1.5rem 0 !important; /* Removes double-padding squeeze on mobile */
    gap: 2rem;
  }
  
  .project-card {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    justify-items: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .einput {
    margin: 0 auto;
  }
}

/* --- GitHub Analytics Styling --- */
#github-analytics {
  min-height: auto;
  width: 100%;
  background-color: #f8f7f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 8vw;
}

.analytics-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.analytics-cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.analytics-card {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.analytics-cards > img:nth-child(1) {
  border-radius: 5px !important;
}

.analytics-cards > img:nth-child(2) {
  border-radius: 5px !important;
}

.streak-card {
  display: flex;
  justify-content: center;
}

.streak-card img {
  height: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.analytics-card:hover,
.streak-card img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .analytics-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* uniform, soothing spacing on mobile */
    width: 100%;
  }

  .analytics-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  .streak-card {
    width: 100% !important;
  }

  .streak-card img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  .section-title {
    font-size: 2.5rem !important; /* scale down large desktop title */
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
  }

  .footer-email {
    justify-content: center;
    margin-top: 10px !important;
    margin-bottom: 1.5rem !important; /* Clear and even spacing before socials */
  }
}
