/* Base Styles */
:root {
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8a2be2;
  --purple-600: #7928ca;
  --purple-900: #4c1d95;
  --blue-500: #3b82f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;
  --white: #ffffff;
  --neon-purple: #b026ff;
  --neon-blue: #4d4dff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--white);
  background-color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  perspective: 1000px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: var(--purple-500);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-600);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  color: var(--purple-500);
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Buttons */
.primary-btn {
  background: linear-gradient(to right, var(--purple-600), var(--blue-500));
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.primary-btn:hover::before {
  transform: scale(1);
  opacity: 1;
}

.primary-btn:hover {
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 1px solid var(--purple-500);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.secondary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(59, 130, 246, 0.1));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.secondary-btn:hover::after {
  transform: translateX(0);
}

.secondary-btn:hover {
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.ask-ai-hero-btn {
  border-color: rgba(138, 43, 226, 0.55);
  color: var(--white);
}

.ask-ai-hero-btn i {
  color: #ddd6fe;
}

.full-width {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-500);
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.nav-links {
  display: none;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link {
  color: var(--gray-300);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--purple-500);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-link:hover {
  color: var(--purple-500);
  text-shadow: 0 0 5px rgba(138, 43, 226, 0.3);
}

.resume-btn {
  background: transparent;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 1px solid rgba(138, 43, 226, 0.55);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.github-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.github-btn i {
  color: var(--white);
  font-size: 1rem;
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.resume-btn:hover {
  background: rgba(138, 43, 226, 0.14);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
  transform: translateY(-2px) scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 0rem;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 0;
}

.hero-text {
  width: 100%;
}

.hero-name {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-open-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  margin: 0 0 0.95rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #b7f7ca;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.36);
}

.subtitle {
  color: var(--purple-500);
  font-size: 4.25rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  animation: pulse 2s infinite alternate;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  margin-top: -0.25rem;
  letter-spacing: 0.2px;
}

.hero-tagline-link {
  color: var(--purple-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.hero-tagline-link:hover {
  color: var(--purple-300);
  text-decoration: underline;
}

.title {
  font-size: 2.375rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.description {
  color: var(--gray-300);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-profile {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.profile-container {
  position: relative;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 30%;
  overflow: hidden;
  border: none;
  position: relative;
  z-index: 1;
  /* box-shadow: 0 0 30px rgba(138, 43, 226, 0.5); */
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  /* padding: 20%; */
  /* background-color: #0078d4; */
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* padding: 20%; */
  background-color: #bb4949;
  /* border-bottom-left-radius: 30%;
  border-bottom-right-radius: 30%; */
  /* border-bottom-radius :10% ; */
}

.glow-effect {
  display: none;
}

.orbit-container {
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.profile-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-circle {
  position: absolute;
  width: 55%;
  height: 50%;
  border-radius: 50%;
  border: 2px solid var(--purple-500);
  box-shadow: 0 0 15px var(--purple-500), 0 0 30px var(--purple-500), inset 0 0 15px var(--purple-500);
  animation: pulse 3s infinite alternate, rotate 20s linear infinite;
  z-index: 1;
  padding: 20%;
  margin-right: 8%;
  margin-left: 6%;
}

.profile-image:hover img {
  transform: scale(1.05);
}

.social-orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 3;
}

.social-icon {
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: small;
  z-index: 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.github {
  top: 64%;
  left: 25%;
  bottom: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: #6e5494;
  box-shadow: 0 0 10px #6e5494;
}

.gmail {
  top: 30%;
  left: 29%;
  transform: translateX(-50%);
  background: #d7b3ac;
  box-shadow: 0 0 10px #fba18f;
}

.linkedin {
  top: 40%;
  right: 26%;
  transform: translateX(50%);
  background: #0078d4;
  box-shadow: 0 0 10px #0078d4;
}

.social-icon:hover {
  transform: scale(1);
  box-shadow: 0 0 20px currentColor;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator button:hover {
  color: var(--purple-500);
}

.scroll-indicator span {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.section-bg-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 2.6rem;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.section-header:hover {
  transform: translateZ(10px);
}

.section-kicker {
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--purple-300);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  margin: 0 0 1rem;
  position: relative;
  display: block;
  max-width: none;
  white-space: nowrap;
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  color: var(--gray-400);
  max-width: 52rem;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }

  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .section-kicker::before {
    width: 8px;
    height: 8px;
  }

  .section-title {
    max-width: none;
  }

  .section-description {
    font-size: 0.95rem;
  }
}

/* ══════════════════════════════════════
   PROJECTS — Themed Card Grid
══════════════════════════════════════ */
.projects {
  background-color: rgba(0, 0, 0, 0.9);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ══════════════════════════════════════
   EDUCATION — Timeline Layout
══════════════════════════════════════ */
.education {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95));
}

.education.section {
  padding: 3.25rem 0;
}

.education .section-header {
  margin-bottom: 1.75rem;
}

.education-timeline {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* One row of the timeline */
.edu-timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 0.85rem;
}

/* LEFT — period label */
.edu-timeline-left {
  display: flex;
  justify-content: flex-start;
  padding: 0;
}

.edu-period-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 0.35px;
  white-space: nowrap;
  background: rgba(138, 43, 226, 0.14);
  border: 1px solid rgba(138, 43, 226, 0.36);
  padding: 0.24rem 0.6rem;
  border-radius: 20px;
}

/* CENTER — dot + vertical line */
.edu-timeline-center {
  display: none;
}

.edu-dot {
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 0;
}

.edu-dot--active {
  border-color: transparent;
  box-shadow: none;
}

.edu-dot-inner {
  width: 0;
  height: 0;
  border-radius: 50%;
  background: transparent;
}

.edu-line {
  display: none;
}

/* RIGHT — card */
.edu-timeline-right {
  padding: 0;
}

.edu-card {
  background: rgba(16, 18, 34, 0.82);
  border: 1px solid rgba(138, 43, 226, 0.22);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--purple-500), var(--blue-500));
  border-radius: 12px 12px 0 0;
}

.edu-card:hover {
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.14);
}

.edu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.edu-icon {
  font-size: 1.35rem;
}

.edu-status-badge {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.badge--primary {
  background: rgba(138, 43, 226, 0.18);
  color: var(--purple-300);
  border: 1px solid rgba(138, 43, 226, 0.4);
}

.badge--secondary {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.edu-institution {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.edu-institution i {
  color: var(--purple-500);
  font-size: 0.68rem;
}

/* CGPA progress bar */
.edu-cgpa-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-cgpa-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: var(--gray-400);
  white-space: nowrap;
}

.edu-cgpa-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.edu-cgpa-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to right, var(--purple-500), var(--blue-500));
}

.edu-cgpa-value {
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.edu-cgpa-max {
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 400;
}

/* Mobile */
@media (max-width: 600px) {
  .edu-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .edu-timeline-left {
    display: flex;
  }

  .edu-timeline-right {
    padding: 0;
  }

  .edu-period-badge {
    font-size: 0.68rem;
  }
}

/* Hackathons Section */
.hackathons {
  background-color: rgba(0, 0, 0, 0.95);
  transform-style: preserve-3d;
}

.hackathons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  transform-style: preserve-3d;
}

.hackathon-card {
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.hackathon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--purple-600), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.hackathon-card:hover::before {
  transform: scaleX(1);
}

.hackathon-card:hover {
  transform: translateZ(20px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.hackathon-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.hackathon-card:hover .hackathon-icon {
  transform: scale(1.2) translateZ(15px);
}

.hackathon-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transition: transform 0.5s ease, color 0.3s ease;
}

.hackathon-card:hover .hackathon-name {
  color: var(--purple-400);
  transform: translateZ(10px);
}

.hackathon-project {
  color: var(--purple-400);
  margin-bottom: 0.75rem;
  transition: transform 0.5s ease;
}

.hackathon-card:hover .hackathon-project {
  transform: translateZ(5px);
}

.hackathon-description {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: transform 0.5s ease;
}

.hackathon-card:hover .hackathon-description {
  transform: translateZ(5px);
}

.skills {
  background-color: rgba(0, 0, 0, 0.95);
  transform-style: preserve-3d;
  overflow: visible;
}

.skills-main-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-subtitle {
  font-size: 1.1rem;
  color: var(--gray-400);
  font-style: italic;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   SKILLS — Category-based Layout
═══════════════════════════════════════ */
.skills-categories-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-bottom: 1rem;
}

.skills-categories-container.skills-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 2rem;
  align-items: start;
}

.skills-side-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 88px;
}

.skills-side-intro {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.skills-side-headline {
  margin: 0 0 0.5rem 0;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.skills-side-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.skills-side-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1rem;
}

.skills-side-stat-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.skills-side-stat-label {
  margin-top: 0.35rem;
  color: var(--gray-400);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}

.skills-groups-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Category block */
.skills-category-section {
  width: 100%;
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.skills-category-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skills-category-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
}

.skills-category-line {
  flex: 1;
  height: 1px;
  opacity: 0.5;
}

/* Grid of skill cards inside a category */
.skills-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.skills-category-pill-layout {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-radius: 16px;
  padding: 1.55rem 1.45rem 1.6rem;
}

.skills-category-pill-layout .skills-category-header {
  margin-bottom: 1.2rem;
}

.skills-category-pill-layout .skills-category-title {
  letter-spacing: 2.4px;
  font-size: 0.84rem;
}

.skills-category-pill-layout .skills-category-grid {
  gap: 0.75rem;
}

.skills-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.skills-pill:hover {
  background: color-mix(in srgb, var(--pill-accent, #8a2be2) 18%, transparent);
  border-color: color-mix(in srgb, var(--pill-accent, #8a2be2) 55%, transparent);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .skills-categories-container.skills-layout {
    grid-template-columns: 1fr;
  }

  .skills-side-content {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .skills-side-content {
    gap: 1rem;
  }

  .skills-category-pill-layout {
    padding: 1.1rem 0.95rem 1.15rem;
  }

  .skills-pill {
    min-height: 42px;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
  }
}


.additional-info {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  transform-style: preserve-3d;
}

@media (min-width: 1024px) {
  .additional-info {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.info-card:hover {
  transform: translateZ(20px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.4);
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-400);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.info-card:hover .info-title {
  transform: translateZ(10px);
}

.info-list {
  list-style: none;
  transition: transform 0.5s ease;
}

.info-card:hover .info-list {
  transform: translateZ(5px);
}

.info-item {
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateX(5px);
  color: var(--white);
}

.info-item-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--purple-500);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-item:hover .info-item-dot {
  transform: scale(1.2);
  background-color: var(--purple-400);
}

/* Contact Section */
.contact {
  background-color: rgba(0, 0, 0, 0.9);
  transform-style: preserve-3d;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transform-style: preserve-3d;
}

.contact-info {
  width: 100%;
  transform-style: preserve-3d;
}

.card {
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(138, 43, 226, 0.2);
  height: 100%;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateZ(20px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.4);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease, color 0.3s ease;
}

.card:hover .card-title {
  transform: translateZ(10px);
  color: var(--purple-400);
}

.contact-details {
  margin-bottom: 2.5rem;
  transition: transform 0.5s ease;
}

.card:hover .contact-details {
  transform: translateZ(5px);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  background-color: rgba(138, 43, 226, 0.2);
  color: var(--purple-400);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background-color: rgba(138, 43, 226, 0.4);
  transform: scale(1.1);
}

.contact-text h4 {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-text p {
  font-size: 1.125rem;
}

.social-connect h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  background-color: var(--purple-600);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  background-color: var(--purple-500);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

.contact-3d-container {
  width: 100%;
  height: 200px;
  margin: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

/* Make sure the canvas inside the container is properly sized */
.contact-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.contact-cta {
  margin-bottom: 1.5rem;
  color: var(--gray-300);
}

/* Footer */
.footer {
  background-color: var(--black);
  padding: 2rem 0;
  border-top: 1px solid var(--gray-800);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright {
  color: var(--gray-400);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  color: var(--gray-400);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--purple-500);
  transform: translateY(-3px);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 36rem;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.modal.active .modal-content {
  transform: scale(1);
  box-shadow: 0 20px 50px rgba(138, 43, 226, 0.3);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  transform-style: preserve-3d;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.modal-content:hover .modal-icon {
  transform: scale(1.2) translateZ(20px);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: transform 0.5s ease, color 0.3s ease;
}

.modal-content:hover .modal-title {
  color: var(--purple-400);
  transform: translateZ(15px);
}

.modal-section {
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}

.modal-content:hover .modal-section {
  transform: translateZ(5px);
}

.modal-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--purple-300);
}

.modal-description {
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-tag {
  font-size: 0.875rem;
  background-color: rgba(76, 29, 149, 0.3);
  color: var(--purple-300);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.modal-tag:hover {
  background-color: rgba(76, 29, 149, 0.5);
  transform: scale(1.05);
}

/* Animations */
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbitIcon {
  0% {
    transform: rotate(0deg) translateX(10rem) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(10rem) rotate(-360deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

@keyframes glow {
  0% {
    opacity: 0.5;
    filter: blur(20px);
  }

  50% {
    opacity: 0.8;
    filter: blur(15px);
  }

  100% {
    opacity: 0.5;
    filter: blur(20px);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ── Skills Responsive ── */
@media (max-width: 480px) {
  .skills-category-grid {
    gap: 0.75rem;
  }

  .skill-card-inner {
    width: 116px;
    padding: 1.1rem 0.78rem 1rem;
  }

  .skill-icon-wrap,
  .skill-fallback {
    width: 56px;
    height: 56px;
  }

  .skill-name-label {
    font-size: 0.8rem;
  }
}

/* Media Queries */
@media (min-width: 640px) {
  .hero-name {
    font-size: 1.9rem;
  }

  .title {
    font-size: 2.875rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .projects-grid,
  .hackathons-grid,
  .skills-grid,
  .additional-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }

  .hero-content {
    flex-direction: row;
  }

  .hero-text,
  .hero-profile {
    width: 50%;
  }

  .contact-container {
    flex-direction: row;
  }

  .contact-info {
    width: 50%;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-name {
    font-size: 2rem;
  }

  .title {
    font-size: 3.375rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .additional-info {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Experience Section */
.experience {
  background-color: rgba(0, 0, 0, 0.95);
  transform-style: preserve-3d;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.experience-card {
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.experience-card:hover {
  transform: translateZ(20px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.experience-header-content {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.05rem;
}

.experience-icon {
  font-size: 2.5rem;
  background: rgba(59, 130, 246, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.experience-card:hover .experience-icon {
  transform: scale(1.1) translateZ(15px);
  background: rgba(59, 130, 246, 0.2);
}

.experience-company {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.experience-card:hover .experience-company {
  color: var(--blue-500);
}

.experience-role {
  font-size: 1.1rem;
  color: var(--blue-500);
  margin-bottom: 0.25rem;
}

.experience-period {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-style: italic;
}

.experience-description {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.experience-projects-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--purple-300);
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}


.experience-info-only {
  grid-column: 1 / -1;
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.14);
  color: var(--white);
}

.experience-info-only::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--purple-500), var(--blue-500));
}

.experience-info-only .experience-header-content,
.experience-info-only .experience-card-top,
.experience-info-only .experience-highlights,
.experience-info-only .experience-description {
  position: relative;
  z-index: 1;
}

.experience-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.experience-projects-full-width {
  grid-column: 1 / -1;
}

.experience-info-only .experience-header-content {
  gap: 1rem;
  margin-bottom: 0;
}

.experience-info-only .experience-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-500);
}

.experience-info-only .experience-company {
  color: var(--white);
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.experience-promo-note {
  margin: 0;
  color: var(--gray-300);
  font-size: 0.88rem;
  line-height: 1.5;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
  text-align: right;
}

.experience-role-top {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-500);
}

.experience-meta-line {
  margin: 0;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.experience-info-only .experience-description {
  color: var(--gray-300);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.05rem;
  max-width: 72ch;
}

.experience-points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.4rem;
  border-top: 1px solid rgba(138, 43, 226, 0.18);
  padding-top: 1rem;
}

.experience-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.experience-point-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.42rem;
  background: #ff5d1f;
  box-shadow: 0 0 0 6px rgba(255, 93, 31, 0.16);
}

.experience-point-text {
  margin: 0;
  color: var(--gray-300);
  font-size: 0.98rem;
  line-height: 1.65;
}

.experience-point-text strong {
  color: #ffffff;
  font-weight: 800;
}

.experience-highlights {
  padding-top: 0.25rem;
}

.experience-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.experience-metric-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(138, 43, 226, 0.16);
  border-radius: 16px;
  padding: 1rem 1rem 0.95rem;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.experience-metric-value {
  font-size: 2.85rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #ffffff;
}

.experience-metric-number {
  color: #ffffff;
}

.experience-metric-suffix {
  color: var(--blue-500);
  font-weight: 900;
  margin-left: 0.02em;
}

.experience-metric-label {
  margin: 0;
  color: var(--gray-300);
  font-size: 0.84rem;
  line-height: 1.5;
}

.experience-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 43, 226, 0.32);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.experience-info-only .experience-projects-title {
  color: var(--purple-300);
  border-bottom-color: rgba(138, 43, 226, 0.18);
}

.experience-info-only .experience-projects-title {
  margin-top: 0;
}

.experience-projects-full-width .experience-projects-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.experience-info-only .experience-header-content {
  align-items: center;
}

.experience-info-only .experience-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  font-size: 2rem;
}

@media (max-width: 1100px) {
  .experience-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-points-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .experience-metrics-grid {
    grid-template-columns: 1fr;
  }

  .experience-metric-value {
    font-size: 2.4rem;
  }
}

.experience-projects-grid {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.experience-project-marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.experience-project-card {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(138, 43, 226, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.experience-project-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.experience-project-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.experience-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.experience-project-card:hover .experience-project-image img {
  transform: scale(1.1);
}

.experience-project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.experience-project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.experience-project-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.experience-project-link-card {
  display: inline-flex;
  align-items: center;

@media (max-width: 900px) {
  .experience-card-top {
    flex-direction: column;
  }

  .experience-meta {
    align-items: flex-start;
    text-align: left;
  }

  .experience-highlights-grid {
    grid-template-columns: 1fr;
  }
}
  gap: 0.5rem;
  color: var(--blue-500);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.experience-project-link-card:hover {
  color: var(--blue-400);
  text-decoration: none;
}

.experience-project-link-card i {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .experience-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .experience-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  /* Experience Marquee Mobile */
  .experience-project-card {
    width: 280px;
  }

  .experience-project-marquee {
    animation-duration: 30s;
  }

  /* Education Timeline Mobile */
  .edu-timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .edu-timeline-left {
    justify-content: flex-start;
    padding-right: 0;
    padding-top: 0;
  }

  .edu-timeline-center {
    display: none;
  }

  .edu-timeline-right {
    padding-left: 0;
    padding-bottom: 0;
  }

  .edu-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2.5rem;
  }

  .c-hotels__item-title {
    font-size: 1.55rem;
  }

  .experience-project-card {
    width: 240px;
  }
}

/* ══════════════════════════════════════
   PROJECTS — Animated Color-coded Cards
══════════════════════════════════════ */
.projects {
  background: transparent;
}

.projects .section-header {
  margin-bottom: 2.25rem;
}

.projects .section-description {
  color: rgba(226, 232, 240, 0.82);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ══════════════════════════════════════
   PROJECTS — Animated Cards
══════════════════════════════════════ */

/* ─── Card shell ─── */
.project-card {
  position: relative;
  min-height: 345px;
  border-radius: 20px;
  border: 1px solid rgba(138, 43, 226, 0.25);
  background: linear-gradient(145deg, #1a0a2e, #0f0620);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--ac-from, #8a2be2);
  box-shadow: 0 18px 42px rgba(0,0,0,0.45),
              0 0 22px rgba(138,43,226,0.14);
}

/* Mouse-follow radial glow */
.pc-mouse-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
  transition: background 0.08s linear;
}

/* Top accent bar */
.pc-accent-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--ac-from, #8a2be2),
    var(--ac-to, #3b82f6),
    var(--ac-from, #8a2be2));
  background-size: 200% 100%;
  background-position: left center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: background-position 0.8s ease;
}

.project-card:hover .pc-accent-bar {
  background-position: right center;
}

/* Card body */
.pc-body {
  padding: 1.75rem 1.75rem 1.8rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.92rem;
  flex: 1;
}

/* Header row: number + icon */
.pc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* Large watermark number */
.pc-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--ac-from, #8a2be2);
  opacity: 0.3;
  user-select: none;
  transition: opacity 0.3s ease;
}

.project-card:hover .pc-num {
  opacity: 0.65;
}

/* Emoji icon */
.pc-icon {
  font-size: 2.5rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.35s ease;
}

.project-card:hover .pc-icon {
  transform: scale(1.2) rotate(-8deg);
  filter: drop-shadow(0 0 14px var(--ac-from, #8a2be2));
}

/* Title */
.pc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.project-card:hover .pc-title {
  color: var(--ac-from, #a78bfa);
}

/* Description */
.pc-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  flex: 1;
}

.pc-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.09);
}

/* Tech tags */
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.pc-links {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: 0.72rem;
  margin-top: 0;
}

.pc-links-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 0.78rem;
}

.pc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.pc-link-btn i {
  font-size: 1rem;
}

.pc-link-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.pc-link-note {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.58rem 0;
}

.pc-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(138,43,226,0.12);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(138,43,226,0.3);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.project-card:hover .pc-tag {
  background: rgba(138,43,226,0.25);
  color: #ffffff;
  border-color: rgba(138,43,226,0.6);
}

/* Currently-Building title + badge row */
.pc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.building-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.28rem 0.72rem;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.building-badge--green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.building-badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* ══════════════════════════════════════
   BLOG — Featured Section
══════════════════════════════════════ */
.blog {
  background-color: rgba(0, 0, 0, 0.9);
}

.blog-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 360px);
  border-radius: 20px;
  border: 1px solid rgba(138, 43, 226, 0.24);
  background: linear-gradient(140deg, rgba(15, 10, 30, 0.96), rgba(11, 19, 39, 0.96));
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46), 0 0 26px rgba(138, 43, 226, 0.14);
}

.blog-main {
  padding: 2.15rem 2rem 2rem;
  position: relative;
}

.blog-main::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-500), var(--blue-500));
}

.blog-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: #c4b5fd;
  border: 1px solid rgba(138, 43, 226, 0.42);
  background: rgba(138, 43, 226, 0.14);
  margin-bottom: 1.05rem;
}

.blog-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.28;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-summary {
  margin: 0.95rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.68;
  font-size: 0.95rem;
  max-width: 68ch;
}

.blog-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

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

.blog-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  border-radius: 11px;
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple-600), var(--blue-500));
  color: #fff;
  border: 1px solid rgba(138, 43, 226, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: blogBtnFloat 4.8s ease-in-out infinite;
}

.blog-primary-btn:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(138, 43, 226, 0.3);
}

.blog-secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 43, 226, 0.36);
  color: #d8d4ff;
  animation-delay: 0.24s;
}

.blog-secondary-btn:hover {
  animation: none;
  background: rgba(138, 43, 226, 0.14);
  border-color: rgba(138, 43, 226, 0.58);
  box-shadow: 0 12px 22px rgba(79, 70, 229, 0.2);
}

.blog-side {
  padding: 1.7rem 1.45rem 1.6rem;
  background: linear-gradient(175deg, rgba(10, 14, 34, 0.96), rgba(8, 11, 27, 0.96));
  border-left: 1px solid rgba(138, 43, 226, 0.2);
  display: flex;
  flex-direction: column;
}

.blog-side-title {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.blog-metric {
  border: 1px solid rgba(138, 43, 226, 0.22);
  border-radius: 10px;
  padding: 0.8rem 0.7rem;
  background: rgba(138, 43, 226, 0.08);
}

.blog-metric-value {
  display: block;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.blog-metric-label {
  display: block;
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-side-link {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  text-decoration: none;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.85rem;
}

.blog-side-link:hover {
  color: #c4b5fd;
}

@media (max-width: 700px) {
  .pc-footer {
    padding-top: 0.75rem;
  }

  .pc-links-divider {
    margin-top: 0.68rem;
  }

  .pc-links {
    justify-content: flex-start;
  }

  .blog-feature-card {
    grid-template-columns: 1fr;
  }

  .blog-main {
    padding: 1.35rem 1.1rem 1.25rem;
  }

  .blog-side {
    border-left: 0;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding: 1.2rem 1.1rem;
  }

  .blog-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

/* RAG Chat Widget */
.rag-chat-root {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  top: auto !important;
  z-index: 2147483000 !important;
  display: flex;
  flex-direction: column-reverse; /* Panel opens UPWARDS from the button */
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

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

.rag-chat-bubble {
  border: 1px solid rgba(138, 43, 226, 0.55);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  backdrop-filter: blur(10px);
  animation: ragBubbleFloat 3.8s ease-in-out infinite;
}

.rag-chat-bubble:hover {
  animation: none;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
  filter: brightness(1.08);
  background: rgba(138, 43, 226, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .blog-primary-btn,
  .blog-secondary-btn,
  .rag-chat-bubble {
    animation: none;
  }
}

.rag-chat-panel {
  width: min(92vw, 380px);
  max-height: min(74vh, 640px);
  display: none;
  flex-direction: column;
  border: 1px solid rgba(138, 43, 226, 0.35);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(12, 16, 33, 0.97), rgba(8, 12, 24, 0.97));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.rag-chat-panel.open {
  display: flex;
}

.rag-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(138, 43, 226, 0.25);
}

.rag-chat-title {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.rag-chat-subtitle {
  margin: 0.12rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

.rag-chat-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0.35rem;
}

.rag-chat-messages {
  padding: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 120px;
  max-height: 50vh;
}

.rag-msg {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  max-width: 95%;
}

.rag-msg-user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.rag-msg-bot {
  align-self: flex-start;
  background: rgba(138, 43, 226, 0.16);
  border: 1px solid rgba(138, 43, 226, 0.32);
  color: #ffffff;
}

.rag-chat-chips {
  padding: 0.2rem 0.75rem 0.75rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.rag-chip {
  border: 1px solid rgba(138, 43, 226, 0.34);
  background: rgba(138, 43, 226, 0.1);
  color: #ddd6fe;
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.34rem 0.62rem;
  cursor: pointer;
}

.rag-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.75rem 0.72rem;
  flex-shrink: 0;
}

#rag-chat-input {
  flex: 1;
  border: 1px solid rgba(138, 43, 226, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 10px;
  padding: 0.62rem 0.68rem;
  font-size: 0.86rem;
}

#rag-chat-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
}

.rag-send-btn {
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  border-radius: 10px;
  padding: 0 0.78rem;
  cursor: pointer;
}

.rag-contact-cta {
  display: none;
  margin: 0 0.75rem 0.75rem;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.18);
  border-radius: 10px;
  padding: 0.58rem 0.7rem;
}

.rag-contact-cta.visible {
  display: block;
}

@media (max-width: 640px) {
  .rag-chat-root {
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    transform: none !important;
  }

  .rag-chat-bubble span {
    display: none;
  }

  .rag-chat-bubble {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
/* === FINAL MOBILE FIXES FOR EXPERIENCE OVERFLOW & SPACING === */
@media (max-width: 640px) {
  /* Prevent horizontal scroll globally */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  /* Shrink section titles natively */
  .section-title {
    font-size: 1.65rem !important;
    word-break: break-word;
  }
  
  .c-hotels__item-title {
    font-size: 1.3rem !important;
  }

  /* Force the experience card top to stack completely and wrap freely */
  .experience-card-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Push role label to a visible size without overflowing */
  .experience-role-top {
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-break: break-word;
    display: block;
    margin-bottom: 0.2rem;
  }

  /* Reduce overall experience card padding and shrink texts */
  .experience-card {
    padding: 1.1rem !important;
  }

  .experience-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.4rem !important;
  }

  .experience-company {
    font-size: 1.25rem !important;
    line-height: 1.2;
  }

  .experience-description {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  /* REDUCE CONTENT ONLY ON MOBILE: Hide bullet points after the first 3 */
  .experience-point-item:nth-child(n+4) {
    display: none !important;
  }

  /* Reduce the width of the sliding marquees causing horizontal overflows */
  .experience-project-card {
    width: 220px !important;
  }
}

/* === SUPREME SHRINK FOR EXPERIENCE CARDS ON MOBILE === */
@media (max-width: 640px) {
  .experience-project-card {
    width: 170px !important;
    border-radius: 8px !important;
  }

  .experience-project-image {
    height: 90px !important;
  }

  .experience-project-content {
    padding: 0.75rem !important;
  }

  .experience-project-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .experience-project-desc {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    /* Limit to exactly 3 lines visually */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .experience-project-link-card {
    font-size: 0.75rem !important;
  }

  .experience-project-marquee {
    gap: 1rem !important;
  }
}

/* HEADER & NAVBAR MOBILE REFINEMENT */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem !important; /* Reduce side padding for more horizontal space */
  }

  .nav-content {
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.1rem !important; /* Smaller logo */
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 0.4rem !important; /* Tighten gap between buttons */
  }

  .resume-btn {
    padding: 0.4rem 0.6rem !important; /* Smaller buttons */
    font-size: 0.75rem !important;
    gap: 0.35rem !important;
  }

  .nav-link {
     padding: 0.4rem !important;
     font-size: 0.85rem !important;
  }
  
  /* Prevent any hidden element from causing horizontal scroll */
  * {
    max-width: 100vw;
  }
}

/* Hard fix for the light horizontal scroll */
body {
  position: relative;
  width: 100%;
  overflow-x: hidden !important;
}

#three-bg-canvas, 
.section-bg-3d {
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* IMPORT FONT TO PREVENT WIDE FALLBACKS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* GLOBAL SCROLL DENIAL */
html, body {
  overflow-x: hidden !important;
  width: 100vw;
  position: relative;
}

/* NAVBAR CONGESTION FIX */
@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0 !important; /* Slimmer navbar */
  }
  
  .nav-content {
    padding: 0 0.75rem !important; /* Even tighter container */
  }

  .logo {
    font-size: 1rem !important;
    white-space: nowrap;
    margin-right: auto; /* Push buttons to the right */
  }

  .nav-actions {
    gap: 0.35rem !important;
  }

  .resume-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.7rem !important;
    border-radius: 6px !important; /* Sharper corners for space */
  }

  /* Hide button text on extra small screens if still congested */
  @media (max-width: 360px) {
    .resume-btn span, 
    .resume-btn {
      /* Show only icons to save extreme amounts of space */
    }
    /* Let's just shrink them more first */
    .resume-btn {
      letter-spacing: -0.01em;
    }
  }
}

/* Fix for horizontal scroll caused by sections or canvases */
section, header, footer {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

canvas {
  max-width: 100% !important;
}
