/* General styling */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* Transition */
a,
.btn {
  transition: all 300ms ease;
}

/* Desktop nav */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: gray;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo-hover {
  cursor: default;
}

/* Hamburger-menu */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0%;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* Sections */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  background-color: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

/* ── ABOUT SECTION ─────────────────────────────────────────── */

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: fit-content;
  padding-top: 4vh;
  padding-bottom: 4rem;
}

/* Heading subtitle */
#about > .section__text__p1 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(85, 85, 85);
  text-align: center;
  margin-bottom: 0.25rem;
}

/* "About Me" heading */
#about > .title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Horizontal row: image LEFT + details RIGHT ── */
/* We use a flex row wrapper by making the pic-container and
   about-details-container sit side by side via flex on #about
   but ONLY for those two children, achieved with flex-wrap + widths */

#about > .section__pic-container {
  /* Reset profile sizing */
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  margin: 0;
  margin-right: 4rem;
  align-self: center;
}

#about > .section__pic-container img {
  width: 100%;
  height: 100%;
  border-radius: 2rem; /* rounded rect, NOT circle */
  object-fit: cover;
}

/* Right column: cards on top, paragraph below */
#about > .about-details-container {
  display: flex;
  flex-direction: column; /* stack cards row ABOVE paragraph */
  justify-content: center;
  gap: 1.5rem;
  flex: 1;
  max-width: 560px;
  align-self: center;
}

/* Make the whole section lay out as a row for image + details */
#about {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* Force heading lines to span full width above the row */
#about > .section__text__p1,
#about > .title {
  flex: 0 0 100%;
}

/* Arrow at bottom also full width */
#about > img {
  flex: 0 0 100%;
  display: block;
  margin: 2rem auto 0;
  height: 2rem;
}

/* ── Two cards side by side ── */
.about-containers {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.details-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgb(210, 210, 210);
  border-radius: 2rem;
  padding: 1.5rem 1.5rem;
  gap: 0.4rem;
}

.details-container .icon {
  height: 2rem;
  margin-bottom: 0.25rem;
}

.details-container h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(30, 30, 30);
}

.details-container p {
  font-size: 0.875rem;
  color: rgb(85, 85, 85);
  line-height: 1.5;
}

/* ── Paragraph below cards ── */
.text-container {
  max-width: 500px;
}

.text-container p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgb(85, 85, 85);
  text-align: left;
}

/* ── EXPERIENCE SECTION ─────────────────────────────────────── */

#experience {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: fit-content;
  padding-top: 4vh;
  padding-bottom: 4rem;
}

#experience > .section__text__p1 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(85, 85, 85);
  text-align: center;
  margin-bottom: 0.25rem;
}

#experience > .title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Two cards side by side */
.experience-details-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  width: 100%;
  max-width: 1000px;
}

/* Each card */
.experience-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgb(210, 210, 210);
  border-radius: 2rem;
  padding: 2rem;
  gap: 1.5rem;
}

.experience-sub-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgb(20, 20, 20);
  text-align: center;
}

/* Skills grid: 2 columns inside each card */
.article-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1.2rem 2rem;
  justify-content: flex-start;
  width: 100%;
}

/* Each skill item: icon + text */
article {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 0 0 calc(50% - 1rem); /* two columns */
  min-width: 120px;
}

article .icon {
  height: 1.5rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

article div {
  display: flex;
  flex-direction: column;
}

article h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(20, 20, 20);
  margin: 0;
}

article p {
  font-size: 0.85rem;
  color: rgb(85, 85, 85);
  margin: 0;
}

/* ── PROJECTS SECTION ─────────────────────────────────────── */

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: fit-content;
  padding-top: 4vh;
  padding-bottom: 4rem;
}

#projects > .section__text__p1 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(85, 85, 85);
  text-align: center;
  margin-bottom: 0.25rem;
}

#projects > .title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Three cards in a row */
#projects .experience-details-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  flex-wrap: nowrap;
}

/* Each project card */
.color-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgb(210, 210, 210);
  border-radius: 2rem;
  padding: 1.5rem;
  gap: 1rem;
  background: #fff;
}

/* Image container inside card */
.color-container .article-container {
  width: 100%;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
}

/* Project image */
.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1.5rem;
  display: block;
}

/* Project title */
.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: rgb(20, 20, 20);
  margin: 0;
}

/* Buttons row */
.color-container .btn-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.project-btn {
  flex: 1;
  max-width: 140px;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  background: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 300ms ease;
}

.project-btn:hover {
  background-color: rgb(53, 53, 53);
  color: white;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */

* {
  cursor: none !important;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);

  /* Glass / glow effect */
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 12px rgba(150, 150, 255, 0.3),
    0 0 24px rgba(150, 150, 255, 0.15),
    inset 0 0 10px rgba(255, 255, 255, 0.1);

  transition:
    width 0.3s ease,
    height 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Enlarged state on hover */
#custom-cursor.cursor-enlarged {
  width: 70px;
  height: 70px;
}

/* Hover over RUTUJA — blue/purple tone */
#custom-cursor.cursor-rutuja {
  background: rgba(120, 100, 255, 0.25);
  border-color: rgba(140, 120, 255, 0.8);
  box-shadow:
    0 0 20px rgba(120, 100, 255, 0.5),
    0 0 40px rgba(120, 100, 255, 0.25),
    inset 0 0 14px rgba(180, 160, 255, 0.2);
}

/* Hover over TAYADE — orange/pink tone */
#custom-cursor.cursor-tayade {
  background: rgba(255, 120, 80, 0.25);
  border-color: rgba(255, 140, 80, 0.8);
  box-shadow:
    0 0 20px rgba(255, 120, 80, 0.5),
    0 0 40px rgba(255, 120, 80, 0.25),
    inset 0 0 14px rgba(255, 180, 140, 0.2);
}

/* ── HERO NAME HOVER EFFECTS ───────────────────────────────── */

.title {
  transition: color 0.35s ease;
}

/* Make the name words individually hoverable */
.hero-name-rutuja,
.hero-name-tayade {
  display: inline-block;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease;
  cursor: none;
}

.hero-name-rutuja:hover {
  color: rgb(100, 80, 240);
  text-shadow:
    0 0 20px rgba(120, 100, 255, 0.4),
    0 0 40px rgba(120, 100, 255, 0.2);
}

.hero-name-tayade:hover {
  color: rgb(255, 100, 60);
  text-shadow:
    0 0 20px rgba(255, 120, 80, 0.4),
    0 0 40px rgba(255, 120, 80, 0.2);
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
* {
  cursor: none !important;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(200, 180, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 16px rgba(180, 140, 255, 0.2);
  transition:
    width 0.35s ease,
    height 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.2s ease;
}
#custom-cursor.enlarged {
  width: 68px;
  height: 68px;
}

/* ── LETTER-BY-LETTER COLOR SPANS ─────────────────────────── */
.hero-first-name,
.hero-last-name {
  display: inline-block;
  transition: color 0.3s ease;
}

/* Each letter span */
.hero-letter {
  display: inline-block;
  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
}

/* Default: gray (like "CHADHA" in the reference) */
.hero-last-name .hero-letter {
  color: rgb(200, 200, 200);
}

/* First name colored on hover — alternating orange / pink */
.hero-first-name.hovered .hero-letter:nth-child(odd) {
  color: #f0855a;
  text-shadow: 0 0 30px rgba(240, 133, 90, 0.3);
}
.hero-first-name.hovered .hero-letter:nth-child(even) {
  color: #e8667a;
  text-shadow: 0 0 30px rgba(232, 102, 122, 0.3);
}

/* Last name colored on hover */
.hero-last-name.hovered .hero-letter:nth-child(odd) {
  color: #f0855a;
  text-shadow: 0 0 30px rgba(240, 133, 90, 0.25);
}
.hero-last-name.hovered .hero-letter:nth-child(even) {
  color: #e8667a;
  text-shadow: 0 0 30px rgba(232, 102, 122, 0.25);
}

/* Override the default .title font size for hero name */
#profile .title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  cursor: none;
}

/* ── DANCING NAME LETTERS ──────────────────────────────────── */

.hero-letter {
  display: inline-block;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease;
  transform-origin: bottom center;
}

/* Wave dance animation — each letter uses --i for stagger offset */
@keyframes letterDance {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-14px) rotate(-6deg) scale(1.15);
  }
  40% {
    transform: translateY(-6px) rotate(4deg) scale(1.08);
  }
  60% {
    transform: translateY(-10px) rotate(-3deg) scale(1.12);
  }
  80% {
    transform: translateY(-3px) rotate(2deg) scale(1.04);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Pop animation on direct letter hover */
@keyframes letterPop {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-18px) scale(1.25);
  }
  55% {
    transform: translateY(-8px) scale(1.1);
  }
  75% {
    transform: translateY(-13px) scale(1.18);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Trigger dance with staggered delay per letter */
.hero-letter.dancing {
  animation: letterDance 0.7s ease forwards;
  animation-delay: calc(var(--i) * 0.04s);
}

/* Direct hover pop — overrides group dance */
.hero-letter.letter-pop {
  animation: letterPop 0.5s ease forwards !important;
}

/* Color shift on first name hover */
.hero-first-name.hovered .hero-letter:nth-child(odd) {
  color: #f0855a;
  text-shadow: 0 4px 20px rgba(240, 133, 90, 0.35);
}
.hero-first-name.hovered .hero-letter:nth-child(even) {
  color: #e8667a;
  text-shadow: 0 4px 20px rgba(232, 102, 122, 0.35);
}

/* Color shift on last name hover */
.hero-last-name.hovered .hero-letter:nth-child(odd) {
  color: #f0855a;
  text-shadow: 0 4px 20px rgba(240, 133, 90, 0.3);
}
.hero-last-name.hovered .hero-letter:nth-child(even) {
  color: #e8667a;
  text-shadow: 0 4px 20px rgba(232, 102, 122, 0.3);
}

/* Default last name — muted gray */
.hero-last-name .hero-letter {
  color: rgb(200, 200, 200);
}

/* ── POLAROID CLUSTER ──────────────────────────────────────── */

.polaroid-cluster {
  position: relative;
  width: 320px;
  height: 420px;
  flex-shrink: 0;
  align-self: center;
}

/* Base polaroid card */
.polaroid {
  position: absolute;
  width: 200px;
  background: #fff;
  padding: 10px 10px 36px 10px; /* thick bottom = polaroid look */
  border-radius: 4px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  cursor: default;
}

/* Image inside polaroid */
.polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  /* override any global circular rule */
  border-radius: 2px !important;
}

/* Caption — handwritten feel */
.polaroid-caption {
  font-family: "Poppins", cursive;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 400;
  color: rgb(120, 110, 100);
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* LEFT photo — rotated left, sits behind */
.polaroid--left {
  top: 30px;
  left: 0px;
  transform: rotate(-8deg);
  z-index: 1;
}

/* RIGHT photo — rotated right, overlaps, slightly lower */
.polaroid--right {
  top: 80px;
  left: 110px;
  transform: rotate(6deg);
  z-index: 2;
}

/* Hover: straighten + scale + deeper shadow */
.polaroid--left:hover {
  transform: rotate(-3deg) scale(1.05);
  z-index: 10;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

.polaroid--right:hover {
  transform: rotate(2deg) scale(1.05);
  z-index: 10;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ── Soft background blob behind cluster (optional warmth) ── */
.polaroid-cluster::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -30px;
  width: 340px;
  height: 440px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 220, 200, 0.28) 0%,
    rgba(255, 200, 210, 0.12) 55%,
    transparent 75%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ── GALLERY / CAROUSEL SECTION ────────────────────────────── */

#gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: fit-content;
  padding-top: 4vh;
  padding-bottom: 4rem;
  overflow: hidden; /* clip the scrolling tracks */
}

#gallery > .section__text__p1 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(85, 85, 85);
  text-align: center;
  margin-bottom: 0.25rem;
}

#gallery > .title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.gallery-subtitle {
  font-size: 1rem;
  color: rgb(120, 120, 120);
  text-align: center;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ── Carousel wrapper: full bleed ── */
.carousel-wrapper {
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

/* ── Each scrolling row ── */
.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: max-content; /* as wide as all slides combined */
  will-change: transform;
}

/* Row 1 scrolls LEFT → */
.track--left {
  animation: scrollLeft 28s linear infinite;
}

/* Row 2 scrolls RIGHT ← */
.track--right {
  animation: scrollRight 28s linear infinite;
}

/* ── Keyframes ── */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* -50% because we duplicated slides */
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ── Individual slide ── */
.carousel-slide {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 1.2rem;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem !important; /* override any global circle rule */
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  filter: brightness(0.92);
}

.carousel-slide:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* ── Pause on hover (whole row) ── */
.track--left:hover {
  animation-play-state: paused;
}
.track--right:hover {
  animation-play-state: paused;
}

/* ── Fade edges for premium feel ── */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrapper {
  position: relative;
}
.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}
.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

/* ── CONTACT SECTION ──────────────────────────────────────── */

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: fit-content;
  padding-top: 4vh;
  padding-bottom: 0;
}

#contact > .section__text__p1 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(85, 85, 85);
  text-align: center;
  margin-bottom: 0.25rem;
}

#contact > .title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Three cards in a row, centered ── */
.contact-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgb(225, 225, 225);
  border-radius: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: #fff;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 6px 24px #e8667a;
  transform: translateY(-3px);
  border-color: rgb(200, 200, 200);
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(245, 245, 245);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon .icon {
  height: 1.3rem;
  cursor: default;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgb(160, 160, 160);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.contact-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgb(30, 30, 30);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-value:hover {
  color: #e8667a;
}

/* Tagline */
.contact-tagline {
  font-size: 0.95rem;
  color: rgb(150, 150, 150);
  text-align: center;
  margin-top: 2rem;
  line-height: 1.6;
}

/* ── Footer strip ── */
.contact-footer {
  width: 100%;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgb(230, 230, 230);
  text-align: center;
}

.contact-footer p {
  font-size: 0.85rem;
  color: rgb(180, 180, 180);
  font-weight: 400;
}

/* ── DESKTOP NAV — floating pill ──────────────────────────── */

#desktop-nav {
  position: sticky;
  top: 1.2rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  margin-bottom: -1rem;
}

#desktop-nav nav,
nav#desktop-nav {
  all: unset;
}

/* The pill container */
#desktop-nav {
  height: auto;
}

nav#desktop-nav {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(200, 200, 210, 0.6);
  border-radius: 999px;

  padding: 0.5rem 0.75rem 0.5rem 0.75rem;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);

  width: fit-content;
  margin: 1.2rem auto 0;
  height: auto;
}

/* Logo avatar circle — like "JS" in reference */
nav#desktop-nav .logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8667a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  cursor: pointer;
  /* Show initials "RT" instead of full name */
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  text-indent: -9999px; /* hide full name */
  position: relative;
}

/* Inject initials via pseudo */
nav#desktop-nav .logo::after {
  content: "RT";
  position: absolute;
  text-indent: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Nav links */
nav#desktop-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

nav#desktop-nav .nav-links li a {
  color: rgb(60, 60, 70);
  text-decoration: none;
  font-weight: 400;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  display: block;
  font-size: 0.92rem;
}

nav#desktop-nav .nav-links li a:hover {
  background: rgb(245, 244, 255);
  color: #e8667a;
  text-decoration: none;
}

/* Resume button — filled pill */
nav#deskt

/* ── HERO BUTTONS — pill gradient style ───────────────────── */

#profile .btn-container {
  margin-top: 1.5rem;
  gap: 1.2rem;
}

#profile .btn {
  position: relative;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: auto;
  min-width: 160px;
  overflow: hidden;
  cursor: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Resume button — warm coral/orange gradient */
#profile .btn-color-2 {
  background: linear-gradient(135deg, #f4a07a 0%, #e8667a 50%, #d94f8a 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232, 102, 122, 0.4);
}

#profile .btn-color-2:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(232, 102, 122, 0.55);
  border: none;
  color: #fff;
}

/* Contact Info button — cool purple/blue gradient */
#profile .btn-color-1 {
  background: linear-gradient(135deg, #f4a07a 0%, #e8667a 50%, #d94f8a 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232, 102, 122, 0.4);
}

#profile .btn-color-1:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(124, 92, 252, 0.55);
  background: linear-gradient(135deg, #a78bfa 0%, #7c5cfc 50%, #5b3fea 100%);
  color: #fff;
}

/* Sheen sweep on hover */
#profile .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

#profile .btn:hover::after {
  left: 140%;
}
