* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: #050a14; /* deep tech background */
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ----- NEURAL NEXUS BACKGROUND (animated web) - applies to all sections ----- */
.nexus-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #050a14;
  overflow: hidden;
}

/* neural network lines (svg style via pure css) */
.nexus-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(139, 92, 246, 0.25) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(236, 72, 153, 0.2) 0%,
      transparent 35%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(16, 185, 129, 0.15) 0%,
      transparent 40%
    );
  filter: blur(30px);
  animation: nexusPulse 18s infinite alternate;
}

@keyframes nexusPulse {
  0% {
    opacity: 0.4;
    filter: blur(40px);
  }
  100% {
    opacity: 0.9;
    filter: blur(25px);
  }
}

/* simulated neural connections (dots + lines) */
.network {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 15% 20%,
      rgba(139, 92, 246, 0.5) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 35%,
      rgba(236, 72, 153, 0.5) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(16, 185, 129, 0.5) 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at 25% 85%,
      rgba(245, 158, 11, 0.5) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 45% 50%,
      rgba(255, 255, 255, 0.4) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 60% 15%,
      rgba(139, 92, 246, 0.5) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 5% 60%,
      rgba(236, 72, 153, 0.4) 2px,
      transparent 2px
    );
  background-size: 200px 200px;
  opacity: 0.4;
  animation: drift 40s linear infinite;
}

@keyframes drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200px 200px;
  }
}

/* neural links (simulated with pseudo) */
.nexus-links {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      transparent 48%,
      rgba(139, 92, 246, 0.2) 50%,
      transparent 52%
    ),
    linear-gradient(
      135deg,
      transparent 48%,
      rgba(236, 72, 153, 0.15) 50%,
      transparent 52%
    );
  background-size: 120px 120px;
  animation: linkMove 25s linear infinite;
  opacity: 0.3;
}

@keyframes linkMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(30px) translateY(20px);
  }
}

/* ----- GLASS NAVBAR (neural style) ----- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(5, 10, 25, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
  z-index: 100;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(130deg, #b48aff, #ff9acb, #4fd1c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #e2e9ff;
  font-weight: 500;
  font-size: 1.1rem;
  transition: 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: #ec4899;
  color: white;
}

/* ----- HERO / NEURAL CORE (brain node) ----- */
section {
  padding: 100px 8% 80px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

/* animated name */
.animated-name {
  display: inline-block;
}

.name-particle {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5);
  background: linear-gradient(145deg, #ffffff, #e1c9ff, #b794ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: particleAssemble 0.5s ease-out forwards;
}

@keyframes particleAssemble {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(12px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* stagger delays */
.p1 {
  animation-delay: 0.05s;
}
.p2 {
  animation-delay: 0.1s;
}
.p3 {
  animation-delay: 0.15s;
}
.p4 {
  animation-delay: 0.2s;
}
.p5 {
  animation-delay: 0.25s;
}
.p6 {
  animation-delay: 0.3s;
}
.p7 {
  animation-delay: 0.35s;
}
.p8 {
  animation-delay: 0.4s;
}
.p9 {
  animation-delay: 0.45s;
}
.p10 {
  animation-delay: 0.5s;
}
.p11 {
  animation-delay: 0.55s;
}
.p12 {
  animation-delay: 0.6s;
}

.hero-title {
  font-size: 2rem;
  font-weight: 400;
  color: #f59e0b;
  margin: 12px 0 22px;
}

.hero-description {
  max-width: 560px;
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.btn-nexus {
  display: inline-block;
  padding: 16px 44px;
  background: rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(236, 72, 153, 0.6);
  border-radius: 60px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
  transition: 0.3s;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-nexus:hover {
  background: linear-gradient(115deg, #8b5cf6, #ec4899);
  transform: scale(1.06) translateY(-5px);
  box-shadow: 0 25px 45px -5px #b87cff;
}

/* neural core visual (brain node) */
.neural-core {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.brain-node {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8b5cf6, #2d1b54);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 120px rgba(139, 92, 246, 0.7),
    0 0 220px rgba(236, 72, 153, 0.35);
  animation: brainPulse 4s infinite alternate;
  position: relative;
}

.core-img-wrap {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(139, 92, 246, 0.6);
  position: relative;
  z-index: 2;
}

.core-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* glass shine */
.brain-node::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 18%;
  width: 60%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

@keyframes brainPulse {
  0% {
    box-shadow: 0 0 80px #8b5cf6;
  }
  100% {
    box-shadow: 0 0 150px #843d60, 0 0 200px #f59e0b;
  }
}

/* neuron connections (floating dots) */
.neuron {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 25px currentColor;
  animation: neuronFloat 6s infinite alternate;
}

.n1 {
  top: 10%;
  left: 15%;
  background: #ec4899;
  animation-delay: 0s;
}
.n2 {
  bottom: 20%;
  right: 10%;
  background: #4fd1c5;
  animation-delay: 1s;
}
.n3 {
  top: 30%;
  right: 20%;
  background: #8b5cf6;
  animation-delay: 2s;
}
.n4 {
  bottom: 10%;
  left: 25%;
  background: #f59e0b;
  animation-delay: 0.5s;
}

@keyframes neuronFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-25px) scale(1.3);
    opacity: 1;
  }
}

/* ----- SKILLS SECTION (clean, using global background) ----- */
h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.6rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, #c7b3ff, #feadcf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-section {
  padding: 120px 8%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff, #b48aff, #ff9acb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== SKILLS GRID - 5 COLUMNS ON LARGE SCREENS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* skill cards */
.skill-card {
  background: rgba(25, 30, 55, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  padding: 2rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: default;
  box-shadow: 0 20px 40px -20px #000;
  animation: cardGlide 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  width: 100%;
}

/* entrance animations */
@keyframes cardGlide {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    filter: blur(10px);
  }
  60% {
    opacity: 0.8;
    transform: translateX(5px) scale(1.02);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

/* alternate direction for even cards */
.skill-card:nth-child(even) {
  animation: cardGlideRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  transform: translateX(30px) scale(0.95);
}

@keyframes cardGlideRight {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    filter: blur(10px);
  }
  60% {
    opacity: 0.8;
    transform: translateX(-5px) scale(1.02);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.skill-card i {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.3));
}

.skill-card span {
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff, #dcc8ff, #ffc1dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

/* magnetic hover effect */
.skill-card:hover {
  transform: scale(1.08) translateY(-8px);
  background: rgba(35, 42, 75, 0.7);
  box-shadow: 0 30px 60px -15px #b87cff, 0 0 0 2px rgba(236, 72, 153, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s,
    box-shadow 0.4s;
}

.skill-card:hover i {
  transform: rotate(8deg) scale(1.2);
  filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.9));
}

/* wave border animation */
.skill-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: linear-gradient(
    45deg,
    #8b5cf6,
    #ec4899,
    #f59e0b,
    #10b981,
    #8b5cf6
  );
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  animation: waveGradient 4s ease infinite;
}

.skill-card:hover::before {
  opacity: 0.8;
}

@keyframes waveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* delays */
.card-1 {
  animation-delay: 0.05s;
}
.card-2 {
  animation-delay: 0.1s;
}
.card-3 {
  animation-delay: 0.15s;
}
.card-4 {
  animation-delay: 0.2s;
}
.card-5 {
  animation-delay: 0.25s;
}
.card-6 {
  animation-delay: 0.3s;
}
.card-7 {
  animation-delay: 0.35s;
}
.card-8 {
  animation-delay: 0.4s;
}
.card-9 {
  animation-delay: 0.45s;
}
.card-10 {
  animation-delay: 0.5s;
}

/* responsive grid */
@media (max-width: 1000px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .skill-card {
    padding: 1.5rem 0.3rem;
  }
  .skill-card i {
    font-size: 2.2rem;
  }
  .skill-card span {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skill-card {
    padding: 1.5rem 0.5rem;
  }
  .skill-card i {
    font-size: 2.5rem;
  }
  .skill-card span {
    font-size: 1.1rem;
  }
}

/* ----- PROJECTS (neural data packets) ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.packet-card {
  background: rgba(15, 18, 38, 0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 40px;
  overflow: hidden;
  transition: 0.4s;
}

.packet-card:hover {
  transform: translateY(-16px) scale(1.01);
  border-color: #8b5cf6;
  box-shadow: 0 35px 60px -15px #b87cff;
}

.packet-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: 0.5s;
}

.packet-card:hover .packet-img {
  transform: scale(1.07);
}

.packet-content {
  padding: 26px 22px 30px;
}

.packet-content h3 {
  color: #ffb5d0;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.packet-content p {
  color: #cdc9f0;
  line-height: 1.5;
}

/* ----- PROJECTS PRO UPGRADE ----- */
#projects {
  position: relative;
  padding-top: 120px;
}

#projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(139, 92, 246, 0.15),
    transparent 60%
  );
  pointer-events: none;
  z-index: -1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 38px;
  perspective: 1200px;
}

.packet-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(20, 24, 55, 0.6),
    rgba(10, 12, 30, 0.6)
  );
  backdrop-filter: blur(18px);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.2, 1, 0.3, 1);
  transform-style: preserve-3d;
  isolation: isolate;
}

.packet-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(139, 92, 246, 0.6),
    rgba(236, 72, 153, 0.6),
    transparent
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
}

.packet-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 60%;
  height: 300%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.7s;
  pointer-events: none;
}

.packet-card:hover {
  transform: translateY(-18px) scale(1.03) rotateX(4deg);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 35px 70px -20px rgba(139, 92, 246, 0.55),
    0 10px 40px rgba(236, 72, 153, 0.25);
}

.packet-card:hover::before {
  opacity: 1;
}

.packet-card:hover::after {
  top: 120%;
}

.packet-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.packet-card:hover .packet-img {
  transform: scale(1.12);
  filter: brightness(1.1) contrast(1.05);
}

.packet-content {
  padding: 26px 24px 32px;
  position: relative;
}

.packet-content h3 {
  color: #ffb5d0;
  font-size: 1.55rem;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  transition: 0.3s;
}

.packet-card:hover h3 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

.packet-content p {
  color: #cfd3ff;
  line-height: 1.6;
  font-size: 0.98rem;
}

.packet-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: projectReveal 0.8s ease forwards;
}

.packet-card:nth-child(1) {
  animation-delay: 0.1s;
}
.packet-card:nth-child(2) {
  animation-delay: 0.25s;
}
.packet-card:nth-child(3) {
  animation-delay: 0.4s;
}
.packet-card:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes projectReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .packet-card:hover {
    transform: translateY(-10px) scale(1.02);
  }
  .projects-grid {
    gap: 26px;
  }
}

/* ----- CONTACT (neural interface) ----- */
.contact-section {
  padding: 120px 8%;
  text-align: center;
}

.contact-title {
  font-size: 2.6rem;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #fff, #c7b3ff, #feadcf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nexus-interface {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(12, 15, 35, 0.5);
  backdrop-filter: blur(18px);
  border: 1px solid #8b5cf6;
  border-radius: 90px;
  padding: 48px 40px;
  text-align: center;
}

.contact-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.pulse-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseSignal 2s infinite;
  margin-right: 12px;
}

@keyframes pulseSignal {
  0% {
    box-shadow: 0 0 5px #10b981;
  }
  50% {
    box-shadow: 0 0 30px #10b981;
  }
  100% {
    box-shadow: 0 0 5px #10b981;
  }
}

.status-text {
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.social-nexus {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 26px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 95px;
  height: 95px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.35s cubic-bezier(0.2, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.social-btn span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.social-btn:hover {
  transform: translateY(-10px) scale(1.06);
  background: linear-gradient(145deg, #8b5cf6, #ec4899);
  box-shadow: 0 25px 45px -10px #b87cff;
}

.email-node {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.15rem;
  text-decoration: none;
  color: #f59e0b;
  border-bottom: 2px dotted #f59e0b;
  padding-bottom: 3px;
  transition: 0.25s;
}

.email-node:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.contact-note {
  margin-top: 24px;
  opacity: 0.7;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 30px;
  background: #030918;
  border-top: 1px solid #ec4899;
  color: #a9b7e0;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .neural-core {
    order: -1;
    margin-bottom: 25px;
  }

  .hero-text {
    order: 2;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .brain-node {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }
}
/* ===== CHATBOT WIDGET ===== */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: "Outfit", sans-serif;
}

/* floating bubble (idle state) */
.chat-bubble {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  animation: bubblePulse 2s infinite ease-in-out;
}

.chat-bubble i {
  font-size: 28px;
  color: white;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.6);
}

@keyframes bubblePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  }
}

/* chat window (expanded) */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 520px;
  background: rgba(15, 20, 35, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(236, 72, 153, 0.2);
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transform-origin: bottom right;
}

.chat-window.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

/* header */
.chat-header {
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.chat-title {
  flex: 1;
}

.chat-title h3 {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, #e0c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chat-title p {
  font-size: 0.75rem;
  opacity: 0.6;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  color: #fff;
}

.close-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  transform: rotate(90deg);
}

/* messages area */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* custom scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 4px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #10b981, #f59e0b);
}

.message-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e9ff;
}

.message.user .message-content {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.3);
}

/* typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  width: fit-content;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(139, 92, 246, 0.6);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

/* quick questions */
.quick-questions {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.quick-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 60px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #cfd2ff;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.quick-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  transform: translateY(-2px);
}

/* input area */
.chat-input-area {
  padding: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 60px;
  padding: 12px 18px;
  color: white;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s;
}

.chat-input-area input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.chat-input-area input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.4);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* responsive */
@media (max-width: 480px) {
  .chat-window {
    width: 320px;
    height: 480px;
    right: 0;
    bottom: 70px;
  }
}
/* ===== CHATBOT WIDGET - ENHANCED FLOATING ANIMATIONS ===== */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: "Outfit", sans-serif;
}

/* floating bubble with enhanced animations */
.chat-bubble {
  position: relative;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  animation: float 3s ease-in-out infinite;
  overflow: visible;
}

/* floating animation */
@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* hover animations */
.chat-bubble:hover {
  animation: hoverPulse 0.8s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.2);
  transform: scale(1.1) translateY(-5px);
}

@keyframes hoverPulse {
  0% {
    transform: scale(1.1) translateY(-5px);
  }
  50% {
    transform: scale(1.15) translateY(-8px);
  }
  100% {
    transform: scale(1.1) translateY(-5px);
  }
}

/* glow effect on hover */
.bubble-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(139, 92, 246, 0.4)
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.chat-bubble:hover .bubble-glow {
  opacity: 0.6;
  animation: glowPulse 1.5s infinite;
}

@keyframes glowPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.4;
  }
}

/* rotating ring on hover */
.bubble-ring {
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  border: 2px solid rgba(236, 72, 153, 0.3);
  top: -20%;
  left: -20%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.chat-bubble:hover .bubble-ring {
  opacity: 1;
  animation: ringRotate 2s linear infinite;
}

@keyframes ringRotate {
  0% {
    transform: rotate(0deg) scale(1);
    border-color: rgba(236, 72, 153, 0.6);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    border-color: rgba(139, 92, 246, 0.8);
  }
  100% {
    transform: rotate(360deg) scale(1);
    border-color: rgba(236, 72, 153, 0.6);
  }
}

.chat-bubble i {
  font-size: 28px;
  color: white;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
  z-index: 2;
}

.chat-bubble:hover i {
  transform: rotate(10deg) scale(1.1);
  animation: iconWiggle 0.5s ease-in-out;
}

@keyframes iconWiggle {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-10deg) scale(1.1);
  }
  50% {
    transform: rotate(10deg) scale(1.15);
  }
  75% {
    transform: rotate(-5deg) scale(1.1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* chat window (expanded) */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 520px;
  background: rgba(15, 20, 35, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(236, 72, 153, 0.2);
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transform-origin: bottom right;
}

.chat-window.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

/* header */
.chat-header {
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
  animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.chat-title {
  flex: 1;
}

.chat-title h3 {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, #e0c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chat-title p {
  font-size: 0.75rem;
  opacity: 0.6;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff;
}

.close-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  transform: rotate(90deg) scale(1.1);
}

/* messages area */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* custom scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 4px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  animation: avatarFloat 3s ease-in-out infinite;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #10b981, #f59e0b);
}

.message-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e9ff;
  transition: all 0.3s;
}

.message.bot:hover .message-content {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.1);
}

.message.user:hover .message-content {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(236, 72, 153, 0.15);
}

/* typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  width: fit-content;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(139, 92, 246, 0.6);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

/* quick questions */
.quick-questions {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.quick-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 60px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #cfd2ff;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  animation: btnPulse 2s ease-in-out infinite;
  animation-delay: calc(var(--btn-index, 0) * 0.2s);
}

.quick-btn:nth-child(1) {
  --btn-index: 0;
}
.quick-btn:nth-child(2) {
  --btn-index: 1;
}
.quick-btn:nth-child(3) {
  --btn-index: 2;
}
.quick-btn:nth-child(4) {
  --btn-index: 3;
}

@keyframes btnPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.quick-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
  animation: none;
}

/* input area */
.chat-input-area {
  padding: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 60px;
  padding: 12px 18px;
  color: white;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}

.chat-input-area input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
  transform: scale(1.02);
}

.chat-input-area input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sendBtnFloat 3s ease-in-out infinite;
}

@keyframes sendBtnFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.send-btn:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.5);
  animation: none;
}

.send-btn:active {
  transform: scale(0.95);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  animation: none;
}

/* responsive */
@media (max-width: 480px) {
  .chat-window {
    width: 320px;
    height: 480px;
    right: 0;
    bottom: 70px;
  }

  .chat-bubble {
    width: 56px;
    height: 56px;
  }

  .chat-bubble i {
    font-size: 24px;
  }
}
h2 {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: contactTitleReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* soft gradient sweep */
h2::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  animation: contactShine 2.8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

/* entrance */
@keyframes contactTitleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* moving shine */
@keyframes contactShine {
  0% {
    left: -40%;
    opacity: 0;
  }
  25% {
    opacity: 0.6;
  }
  60% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}
/* center all h2 headings cleanly */
h2 {
  display: block; /* override inline-block */
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* ===== ELITE CONTACT CTA ===== */

.contact-cta {
  position: relative;
  margin-top: 22px;
  padding: 22px 28px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.18),
    rgba(236, 72, 153, 0.14)
  );
  border: 1px solid rgba(236, 72, 153, 0.35);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: all 0.35s ease;
  animation: ctaReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(16px);
}

/* soft animated glow */
.cta-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* hover polish (very subtle) */
.contact-cta:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.55),
    0 10px 30px rgba(236, 72, 153, 0.25);
}

.contact-cta:hover .cta-glow {
  opacity: 1;
}

.cta-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.cta-sub {
  font-size: 0.95rem;
  opacity: 0.78;
  margin-top: 6px;
}

/* entrance */
@keyframes ctaReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
