:root {
  --rose: #f4a7b9;
  --lavender: #c9b8f0;
  --sky: #a8d8f0;
  --mint: #a8e6cf;
  --peach: #ffd3b6;
  --gold: #ffe0a3;
  --deep: #1a1028;
  --mid: #2d1f45;
  --soft: #3d2a5a;
  --text: #f0eaf8;
  --muted: #b8a8d0;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Hide Custom Scrollbar */
::-webkit-scrollbar {
  display: none;
  width: 0;
}

/* Top Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--lavender), var(--rose), var(--peach));
  width: 0%;
  z-index: 9999999;
  border-radius: 0 4px 4px 0;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(244, 167, 185, 0.6);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  /* Responsive safeguards for text */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Flex child constraint to prevent blowout */
.projects-grid > *, .skills-grid > *, .about-grid > *, .contact-layout > * {
  min-width: 0;
}

/* Allow project card titles and metadata to wrap instead of overflowing */
.project-card .flex {
  flex-wrap: wrap;
}

/* ===== LOADER ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-progress-container {
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--lavender), var(--sky));
  border-radius: 2px;
  animation: loadProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.loading-logo {
  animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(201, 184, 240, 0);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(201, 184, 240, 0.4);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(201, 184, 240, 0);
  }
}

body.loaded #loading-screen {
  opacity: 0;
  visibility: hidden;
}

/* ===== CURSOR ===== */
/* Hide system cursor everywhere */
/* On touch/mobile: restore normal cursor */
@media (hover: none) and (pointer: coarse) {
  *,
  *::before,
  *::after {
    cursor: auto !important;
  }

  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

@media (hover: hover) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

/* The "R" cursor badge */
.cursor {
  width: 22px;
  height: 22px;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999999;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Inner SVG R label */
.cursor-r {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  color: var(--deep);
  box-shadow:
    0 0 8px rgba(201, 184, 240, 0.6),
    0 0 16px rgba(244, 167, 185, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s ease, 
              border-radius 0.2s ease, 
              background-size 0.2s ease;
}

/* Trailing ring */
.cursor-ring {
  width: 38px;
  height: 38px;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999998;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  will-change: transform;
}

/* Inner ring content for hardware-accelerated transitions */
.cursor-ring-inner {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(201, 184, 240, 0.35);
  border-radius: 50%;
  backdrop-filter: blur(0px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scale up cursor R on hoverable elements */
a:hover~.cursor .cursor-r,
button:hover~.cursor .cursor-r {
  transform: scale(1.3);
}

.cursor.cursor--hover .cursor-r {
  transform: scale(1.35);
  box-shadow:
    0 0 16px rgba(201, 184, 240, 0.8),
    0 0 32px rgba(244, 167, 185, 0.5);
}

.cursor-ring.cursor--hover .cursor-ring-inner {
  border-color: rgba(201, 184, 240, 0.6);
  transform: scale(1.21);
}

.cursor.cursor--text .cursor-r {
  transform: scaleY(0.75) scaleX(0.06);
  border-radius: 8px;
  color: transparent;
  background: linear-gradient(135deg, var(--lavender), var(--rose), var(--gold), var(--sky));
  background-size: 300% 300%;
  animation: glitterTextCursor 2s infinite ease-in-out;
  box-shadow:
    0 0 6px rgba(201, 184, 240, 0.9),
    0 0 10px rgba(244, 167, 185, 0.7),
    0 0 16px rgba(255, 224, 163, 0.5);
}

.cursor-ring.cursor--text .cursor-ring-inner {
  border-radius: 4px;
  width: 10px;
  height: 20px;
  margin: 9px 14px;
  border-color: rgba(244, 167, 185, 0.6);
  box-shadow: 0 0 8px rgba(244, 167, 185, 0.3);
  animation: ringPulseText 1.5s infinite;
}

@keyframes glitterTextCursor {
  0% { background-position: 0% 50%; filter: brightness(1); }
  50% { background-position: 100% 50%; filter: brightness(1.3); }
  100% { background-position: 0% 50%; filter: brightness(1); }
}

@keyframes ringPulseText {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== BACKGROUND ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: var(--lavender);
  top: -200px;
  left: -100px;
  animation-duration: 25s;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: var(--rose);
  top: 40%;
  right: -150px;
  animation-duration: 30s;
}

.orb3 {
  width: 400px;
  height: 400px;
  background: var(--sky);
  bottom: -100px;
  left: 20%;
  animation-duration: 22s;
}

.orb4 {
  width: 300px;
  height: 300px;
  background: var(--mint);
  top: 60%;
  left: 40%;
  animation-duration: 18s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, 60px) scale(1.08);
  }
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: padding 0.3s, width 0.3s, top 0.3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  border-radius: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  font-style: italic;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lavender), var(--rose));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.nav-links li a:hover {
  color: var(--text);
}

.nav-links li a:hover::after {
  transform: scaleX(1);
}

.nav-links li a.active {
  color: var(--text);
}

.nav-links li a.active::after {
  transform: scaleX(1);
}

/* ===== PAGES ===== */
.page {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
}

/* ===== HOME PAGE ===== */
#home {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 120px 60px 80px;
  text-align: center;
  position: relative;
}

#home.active {
  display: flex;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-name span {
  font-style: italic;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 50%, var(--peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-desc {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.btn-primary {
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  color: var(--deep);
  border: none;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 184, 240, 0.3);
}

.btn-outline {
  padding: 13px 36px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--lavender);
  background: rgba(201, 184, 240, 0.08);
}

.btn-abt {
  padding: 10px 30px;
  border-color: #c9b8f0;
  letter-spacing: 1px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 40px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
}

.btn-abt:hover {
  border-color: var(--blue);
  background: #997c9e27;
}

.scroll-indicator {
  margin-top: 60px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--lavender), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    height: 40px;
  }

  50% {
    opacity: 1;
    height: 60px;
  }
}

/* ===== SECTION BASE ===== */
.section-page {
  display: none;
  min-height: 100vh;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 1;
}

.section-page.active {
  display: block;
}

.section-header {
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
}

.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.about-left {
  background: transparent;
}

.about-avatar {
  width: 280px;
  height: 360px;
  border-radius: 120px 120px 40px 40px;
  background: linear-gradient(160deg, var(--lavender) 0%, var(--rose) 50%, var(--peach) 100%);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: rgba(26, 16, 40, 0.5);
  font-style: italic;
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 132px 132px 52px 52px;
  border: 1px solid var(--lavender);
  opacity: 0.3;
}

.about-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-right {
  background: transparent;
}

.about-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
}

.about-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  padding: 8px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, color 0.3s;
}

.tag:hover {
  border-color: var(--lavender);
  color: var(--text);
}

/* ===== PROJECTS PAGE ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  cursor: pointer;
  position: relative;
  will-change: transform;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201, 184, 240, 0.05), rgba(244, 167, 185, 0.05));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 20px 60px rgba(201, 184, 240, 0.1);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 184, 240, 0.35);
  box-shadow: 0 20px 40px rgba(26, 16, 40, 0.5), 0 0 30px rgba(201, 184, 240, 0.08);
}

.project-card:hover::before,
.project-card:hover::after {
  opacity: 1;
}

.project-image-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

.project-card:hover .project-card-image {
  transform: scale(1.04);
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201, 184, 240, 0.12);
  border-radius: 10px;
  font-size: 11px;
  color: var(--lavender);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stack-chip {
  padding: 4px 10px;
  background: rgba(168, 216, 240, 0.1);
  border: 1px solid rgba(168, 216, 240, 0.2);
  border-radius: 8px;
  font-size: 11px;
  color: var(--sky);
  letter-spacing: 0.5px;
}

.project-arrow {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(26, 16, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
  z-index: 10;
}

.project-card:hover .project-arrow {
  color: var(--lavender);
  border-color: rgba(201, 184, 240, 0.5);
  background: rgba(26, 16, 40, 0.85);
  transform: rotate(45deg) scale(1.05);
}

/* ===== SKILLS PAGE ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
  }
}

.skills-card {
  opacity: 0;
  transform: translateY(24px);
  background-image: linear-gradient(rgba(26, 16, 40, 0.45), rgba(26, 16, 40, 0.45)), 
                    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  will-change: transform, opacity;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.skills-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

.skills-card-icon,
.skills-card-title,
.skills-card-desc,
.tools-cloud {
  position: relative;
  z-index: 2;
}

/* Staggered entry animations */
.skills-card {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.skills-card:nth-child(1) { animation-delay: 0.1s; }
.skills-card:nth-child(2) { animation-delay: 0.2s; }
.skills-card:nth-child(3) { animation-delay: 0.3s; }
.skills-card:nth-child(4) { animation-delay: 0.4s; }

.skills-card:hover {
  transform: translateY(-8px);
}
.skills-card:hover::before {
  opacity: 1;
}
.skills-card:hover::after {
  opacity: 1;
}

/* Unified Glassmorphic Hover Styles */
.skills-card::before {
  background-image: linear-gradient(rgba(26, 16, 40, 0.55), rgba(26, 16, 40, 0.55)), 
                    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.skills-card::after {
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.05), 0 0 30px rgba(201, 184, 240, 0.08);
}

.skills-card:hover .skills-card-title {
  color: var(--text);
}

.skills-card:hover .skills-card-icon {
  filter: drop-shadow(0 4px 12px rgba(201, 184, 240, 0.25));
}

.skills-card-icon {
  font-size: 36px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.skills-card:hover .skills-card-icon {
  transform: scale(1.1);
}

.skills-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--lavender);
  transition: color 0.3s;
}

.skills-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tools-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-pill {
  padding: 10px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.tool-pill:hover {
  border-color: var(--lavender);
  color: var(--text);
  transform: translateY(-2px);
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.contact-left {
  background: transparent;
}

.contact-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 32px;
  font-style: italic;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  border-color: var(--lavender);
  color: var(--text);
  transform: translateX(6px);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-icon.email {
  background: rgba(244, 167, 185, 0.15);
}

.contact-icon.github {
  background: rgba(201, 184, 240, 0.15);
}

.contact-icon.linkedin {
  background: rgba(168, 216, 240, 0.15);
}

.contact-icon.twitter {
  background: rgba(168, 230, 207, 0.15);
}

.contact-form {
  background: transparent;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  resize: none;
  caret-color: var(--rose);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--lavender);
}

.form-textarea {
  height: 140px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(184, 168, 208, 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== CANVAS STARFIELD ===== */
#starCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* ===== FOOTER ===== */
.footer-line {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 40px 0 2px;
  opacity: 0.5;
}

.footer-linegit {
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 35px 0 2px;
  opacity: 0.5;
}

.copyright {
  text-align: center;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 8px 0 20px;
  opacity: 0.75;
  text-transform: uppercase;
  line-height: 1.6;
  font-weight: 500;
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.15);
  border-radius: 18px;
  padding: 10px;
  z-index: 200;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-hamburger:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.18);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lavender);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s ease;
}

.nav-hamburger.open {
  background: rgba(201, 184, 240, 0.18);
  border-color: rgba(201, 184, 240, 0.28);
}

.nav-hamburger.open span {
  background: var(--text);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== NAV BACK BUTTON ===== */
.nav-back-btn {
  display: none;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  z-index: 200;
  transition: color 0.3s;
  position: relative;
}

.nav-back-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lavender), var(--rose));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.nav-back-btn:hover {
  color: var(--text);
  transform: none;
}

.nav-back-btn:hover::after {
  transform: scaleX(1);
}

/* Show back button and hide nav links/hamburger on education page */
nav.education-mode .nav-links,
nav.education-mode .nav-hamburger {
  display: none !important;
}

nav.education-mode .nav-back-btn {
  display: inline-block !important;
}

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 90px;
  left: 5%;
  right: 5%;
  margin: 0 auto;
  padding: 24px 32px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
  z-index: 150;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-16px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer a {
  display: block;
  padding: 14px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.mobile-nav-drawer a:last-child {
  border-bottom: none;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
  color: var(--text);
}

#project-modal {
  display: flex;
  pointer-events: none;
}

#project-modal {
  pointer-events: none;
}

#project-modal.open {
  pointer-events: auto;
}

#project-modal #project-modal-content {
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.28s ease-out !important;
}

#project-modal.open #project-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

#project-modal .project-modal-backdrop {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background-color: rgba(26, 16, 40, 0);
  transition: backdrop-filter 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              -webkit-backdrop-filter 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#project-modal.open .project-modal-backdrop {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background-color: rgba(26, 16, 40, 0.65) !important;
}

/* Lower blur on laptops and large screens for modal backdrop and content */
@media (min-width: 769px) {
  #project-modal.open .project-modal-backdrop {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
  #project-modal #project-modal-content {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
}

body.modal-active {
  overflow: hidden;
}

#modal-live-link,
#modal-github {
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

#modal-live-link:hover,
#modal-github:hover {
  box-shadow: 0 0 24px rgba(201, 184, 240, 0.35),
    0 0 40px rgba(244, 167, 185, 0.18);
}

#modal-github:hover {
  box-shadow: 0 0 22px rgba(201, 184, 240, 0.28),
    0 0 35px rgba(123, 140, 255, 0.18);
}

/* ===== TABLET (â‰¤ 768px) ===== */
@media (max-width: 768px) {
  /* Nav */
  nav {
    top: 16px;
    width: calc(100% - 32px);
    padding: 14px 20px;
    border-radius: 30px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-nav-drawer {
    display: flex;
  }

  /* Hero */
  #home {
    padding: 110px 24px 80px;
    text-align: center;
  }

  .hero-name {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-title {
    font-size: clamp(16px, 4vw, 22px);
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline {
    width: 200px;
    text-align: center;
  }

  /* Sections */
  .section-page {
    padding: 100px 24px 60px;
  }

  .section-title {
    font-size: clamp(36px, 9vw, 54px);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-avatar {
    width: 200px;
    height: 260px;
    margin: 0 auto 24px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    padding: 24px;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-tagline {
    font-size: 20px;
  }
}

/* ===== SMALL PHONES (â‰¤ 480px) ===== */
@media (max-width: 480px) {
  nav {
    padding: 12px 16px;
  }

  .nav-logo {
    font-size: 18px;
  }

  #home {
    padding: 100px 16px 60px;
  }

  .hero-name {
    font-size: clamp(36px, 11vw, 52px);
    letter-spacing: -1px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .hero-cta {
    gap: 10px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 28px;
    font-size: 12px;
  }

  .section-page {
    padding: 90px 16px 48px;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .about-avatar {
    width: 160px;
    height: 210px;
    border-radius: 80px 80px 30px 30px;
  }

  .project-card {
    padding: 20px;
    border-radius: 18px;
  }

  .project-title {
    font-size: 22px;
  }

  .contact-form .btn-primary {
    font-size: 12px;
  }

  .form-input,
  .form-textarea {
    font-size: 13px;
  }

  .tool-pill {
    font-size: 12px;
    padding: 8px 14px;
  }

  .tag {
    font-size: 11px;
    padding: 6px 14px;
  }

  .footer-line,
  .footer-linegit {
    font-size: 11px;
    padding: 24px 0 2px;
  }

  .copyright {
    font-size: 9px;
    padding: 6px 0 16px;
  }
}

.hero-typing-text {
  color: var(--mint);
}

.hero-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--mint);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-typing-wrap {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 32px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
  min-height: 40px;
}

/* ===== EDUCATION PAGE ===== */
.education-container {
  width: 100%;
  padding: 0 20px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.education-card {
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
  margin-bottom: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.education-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.education-year {
  padding: 6px 16px;
  background: rgba(201, 184, 240, 0.1);
  border: 1px solid rgba(201, 184, 240, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lavender);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .education-container {
    padding: 0;
  }

  .education-card {
    padding: 24px;
    margin-bottom: 20px;
  }

  .education-header {
    flex-direction: column;
    gap: 12px;
  }

  .education-year {
    align-self: flex-start;
  }

  .education-card h3 {
    text-align: left;
    font-size: 1.4rem;
  }
}

/* ===== PROJECT CLASSIFIER / FILTERS ===== */
.project-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-btn {
  padding: 10px 22px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hide numbers on laptop filters */
.project-filters .count {
  display: none;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.filter-btn.active {
  color: var(--deep);
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  box-shadow: 0 4px 15px rgba(201, 184, 240, 0.3);
  border-color: transparent;
}

/* Empty State Placeholder */
.projects-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  margin: 20px auto;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease forwards;
}

.projects-empty-state.hidden {
  display: none !important;
}

.empty-state-icon {
  font-size: 40px;
  color: var(--lavender);
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.empty-state-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
  font-style: italic;
  font-weight: 400;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Animations and transitions for filtered cards */
.project-card {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s !important;
}

.project-card.fade-out {
  opacity: 0;
  transform: scale(0.95) translateY(15px);
  pointer-events: none;
}

.project-card.fade-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Tablet / Mobile adjustments for filters */
@media (max-width: 768px) {
  .project-filters {
    display: none !important;
  }
  
  .mobile-filter-container {
    display: flex !important;
  }
}

/* ===== MOBILE FILTER CONTAINER & TRIGGER ===== */
.mobile-filter-container {
  display: none;
  justify-content: center;
  margin: 0 auto 35px;
  width: 100%;
  max-width: 480px;
  padding: 0;
}

.mobile-filter-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-filter-trigger-btn:hover {
  border-color: rgba(201, 184, 240, 0.4);
  box-shadow: 0 12px 40px rgba(201, 184, 240, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.mobile-filter-trigger-btn:active {
  transform: translateY(1px);
}

.mobile-filter-trigger-btn .filter-icon {
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 14px;
  font-weight: 600;
}

.mobile-filter-trigger-btn .chevron {
  color: var(--muted);
  font-size: 10px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== MOBILE FILTER DRAWER STYLING ===== */
#mobile-filter-drawer {
  pointer-events: none;
}

#mobile-filter-drawer.open {
  pointer-events: auto;
}

#mobile-filter-drawer .mobile-filter-backdrop {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background-color: rgba(26, 16, 40, 0);
  transition: backdrop-filter 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              -webkit-backdrop-filter 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#mobile-filter-drawer.open .mobile-filter-backdrop {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background-color: rgba(26, 16, 40, 0.65) !important;
}

#mobile-filter-content {
  transform: translateY(100%);
  will-change: transform;
  transition: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1) !important;
}

#mobile-filter-drawer.open #mobile-filter-content {
  transform: translateY(0) !important;
}

.mobile-filter-close-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-filter-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--rose);
}

.mobile-filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: left;
  outline: none;
}

.mobile-filter-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.mobile-filter-opt.active {
  background: linear-gradient(135deg, rgba(201, 184, 240, 0.12), rgba(244, 167, 185, 0.12));
  border-color: rgba(201, 184, 240, 0.35);
  color: var(--lavender);
  box-shadow: 0 8px 24px rgba(201, 184, 240, 0.12);
  font-weight: 600;
}

.mobile-filter-opt .opt-text {
  position: relative;
  padding-left: 24px;
}

.mobile-filter-opt .opt-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mobile-filter-opt.active .opt-text::before {
  border-color: var(--lavender);
  background: var(--lavender);
  transform: translateY(-50%) scale(1);
  opacity: 1;
  box-shadow: 0 0 8px var(--lavender);
}

.mobile-filter-opt .opt-count {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-filter-opt.active .opt-count {
  background: rgba(201, 184, 240, 0.2);
  color: var(--text);
}


/* Page swipe animations for desktop view */
@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page.active, .section-page.active {
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Bouncy Swipe Animations â€” no brightness filter to avoid white flash */
@keyframes swipeLeftEnter {
  0% {
    transform: translateX(80px);
    opacity: 0;
    box-shadow: -20px 0 60px rgba(201, 184, 240, 0.25);
  }
  55% {
    transform: translateX(-8px);
    opacity: 1;
    box-shadow: 8px 0 30px rgba(201, 184, 240, 0.12);
  }
  75% {
    transform: translateX(4px);
  }
  90% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
    box-shadow: none;
  }
}

@keyframes swipeRightEnter {
  0% {
    transform: translateX(-80px);
    opacity: 0;
    box-shadow: 20px 0 60px rgba(201, 184, 240, 0.25);
  }
  55% {
    transform: translateX(8px);
    opacity: 1;
    box-shadow: -8px 0 30px rgba(201, 184, 240, 0.12);
  }
  75% {
    transform: translateX(-4px);
  }
  90% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
    box-shadow: none;
  }
}

.page.active.swipe-left-anim, .section-page.active.swipe-left-anim {
  animation: swipeLeftEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.page.active.swipe-right-anim, .section-page.active.swipe-right-anim {
  animation: swipeRightEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* Skip loading screen styles */
.skip-loader #loading-screen {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ===== RBOT CHATBOT ===== */
.rbot-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rbot-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  color: var(--deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(244, 167, 185, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(244, 167, 185, 0.6);
}

.rbot-window {
  width: 350px;
  max-height: 500px;
  background: rgba(26, 16, 40, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: bottom right;
}

.rbot-window.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.rbot-header {
  padding: 15px 20px;
  background: rgba(45, 31, 69, 0.6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  color: var(--deep);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
}

.rbot-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.rbot-status {
  font-size: 12px;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 5px;
}
.rbot-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px var(--mint);
}

.rbot-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rbot-clear,
.rbot-end,
.rbot-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rbot-clear:hover,
.rbot-end:hover,
.rbot-close:hover {
  color: var(--rose);
}

.rbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 300px;
  max-height: 350px;
}

.rbot-message {
  display: flex;
  max-width: 85%;
}

.rbot-message.user {
  align-self: flex-end;
}

.rbot-message.bot {
  align-self: flex-start;
}

.rbot-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.rbot-message.user .rbot-bubble {
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  color: var(--deep);
  border-bottom-right-radius: 4px;
}

.rbot-message.bot .rbot-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.rbot-input-area {
  padding: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: rgba(45, 31, 69, 0.4);
  align-items: flex-end;
}

.rbot-input-area textarea {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 15px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  line-height: 20px;
  overflow-y: auto;
}

.rbot-input-area textarea:focus {
  border-color: var(--lavender);
}

/* Hide scrollbar for textarea */
.rbot-input-area textarea::-webkit-scrollbar {
  display: none;
}
.rbot-input-area textarea {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rbot-input-area button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.rbot-input-area button:hover {
  transform: scale(1.05);
  background: var(--rose);
}

.rbot-typing {
  display: flex;
  gap: 4px;
  padding: 5px 10px;
  align-items: center;
}
.rbot-typing .dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.rbot-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.rbot-typing .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 480px) {
  .rbot-widget-container {
    bottom: 20px;
    right: 20px;
  }
  .rbot-window {
    width: calc(100vw - 40px);
    max-height: 450px;
  }
}

.hidden {
  display: none !important;
}
