/* Global Page Background */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #0b1220 50%, #0f172a 100%);
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Floating Shapes for Whole Page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(
      circle at 15% 20%,
      rgba(37, 99, 235, 0.15),
      transparent 30%
    ),
    radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.1), transparent 25%),
    radial-gradient(
      circle at 50% 90%,
      rgba(16, 185, 129, 0.08),
      transparent 20%
    );
  animation: floatBackground 25s ease-in-out infinite alternate;
}

/* Subtle Grid Overlay Across Page */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(37, 99, 235, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Floating animation */
@keyframes floatBackground {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #111e3d 0%, #0b1220 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Floating Background Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #2563eb, #f43f5e);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #f43f5e, #2563eb);
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: #2563eb;
  top: 30%;
  right: 30%;
  animation-delay: 4s;
}

.shape-4 {
  width: 80px;
  height: 80px;
  background: #f43f5e;
  bottom: 20%;
  left: 20%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

/* Hero Content */
.container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  animation: slideInDown 1s ease-out;
}

.badge-text {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.2),
    rgba(244, 63, 94, 0.2)
  );
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #2563eb;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  animation: slideInLeft 1s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.gradient-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #2563eb, #f43f5e);
  border-radius: 2px;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 500px;
  animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-buttons {
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #f43f5e);
  border: none;
  color: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f43f5e, #2563eb);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(244, 63, 94, 0.4);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
  backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.hero-stats {
  animation: slideInUp 1s ease-out 0.8s both;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2563eb;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

.illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-illustration {
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.2));
}

.hero-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-svg {
  filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.3));
}

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

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonials Section */
#testimonial-section {
  background-color: #0b1220;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: auto;
  margin: 0 auto;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
}

/* Testimonial Card */
.testimonials .card {
  background: rgba(13, 37, 85, 0.8);
  border-radius: 18px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid rgba(37, 99, 235, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  animation: fadeInUp 1.2s ease both;
}

/* Animated Gradient Border Glow */
.testimonials .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #2563eb, #f43f5e, #16a34a);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderFlow 6s linear infinite;
}

/* Hover Effect */
.testimonials .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5),
    0 20px 50px rgba(244, 63, 94, 0.4);
  border-color: #2563eb;
}

/* Card Text */
.testimonials .card h6 {
  font-size: 1rem;
  font-weight: bold;
  color: #f43f5e;
  margin-bottom: 10px;
}

.testimonials .card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Star Rating */
.star-rating {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #facc15;
  animation: starPulse 2s infinite alternate;
}

/* Keyframes */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes starPulse {
  from {
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
  }
  to {
    text-shadow: 0 0 16px rgba(250, 204, 21, 0.9);
  }
}

/* Stagger Animation for Cards */
.testimonials .card:nth-child(1) {
  animation-delay: 0.2s;
}
.testimonials .card:nth-child(2) {
  animation-delay: 0.4s;
}
.testimonials .card:nth-child(3) {
  animation-delay: 0.6s;
}
.testimonials .card:nth-child(4) {
  animation-delay: 0.8s;
}

/* Welcome Message */
.welcome-box {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(244, 63, 94, 0.1)
  );
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 18px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  animation: fadeInUp 1.2s ease-out;
}

.welcome-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  animation: glowPulse 2.5s infinite;
}

.welcome-text span {
  color: #fff;
  text-shadow: 0 0 8px rgba(37, 99, 235, 0.7), 0 0 12px rgba(244, 63, 94, 0.6);
}

.welcome-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes glowPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.7),
      0 0 20px rgba(244, 63, 94, 0.6);
  }
  50% {
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.9),
      0 0 30px rgba(244, 63, 94, 0.8);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Contact Card ===== */
  .contact-card {
    position: relative;
    z-index: 2;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
    margin: auto;
  }

  .contact-card h1 {
    background: linear-gradient(135deg, #2563eb, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    text-align: center;
  }

  /* Input Group */
  .input-group {
    position: relative;
    margin-bottom: 1.2rem;
  }

  .input-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
  }

  .input-group input,
  .input-group textarea {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 1px solid #334155;
    border-radius: 12px;
    background-color: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .input-group textarea {
    min-height: 120px;
    resize: vertical;
  }

  .input-group input:focus,
  .input-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 12px #2563eb80;
  }

  /* Button */
  .contact-card button {
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #f43f5e);
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
  }

  .contact-card button i {
    margin-left: 8px;
  }

  .contact-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.5);
  }

  /* Animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }