/* Color variables from the Figma palette */
html {
  scroll-behavior: smooth;
}

:root {
  --dark-teal: #0D4F4F;   /* Primary brand color */
  --medium-teal: #2D7D7D; /* Secondary accent */
  --light-teal: #7FBFBF;  /* Highlight color */
  --pale-teal: #B8E6E6;   /* Background tint */
  --soft-gray: #F5F5F5;   /* Light background */
  --charcoal: #333333;    /* Main text */
  --pure-white: #FFFFFF;
}

/* Base typography / background */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  color: var(--charcoal);
  background-color: var(--soft-gray);
}

/* HERO background (gradient + circles) */
.hero-section {
  background-color: #0D4F4F; /* your hero color */
  border-radius: 0 0 2.5rem 2.5rem;
  position: relative;
}

.hero-bg-circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 9999px;
  filter: blur(3px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-bg-circle--left {
  left: -160px;
  top: 120px;
  background: radial-gradient(
    circle,
    rgba(127, 191, 191, 0.8),
    transparent 65%
  );
}

.hero-bg-circle--right {
  right: -160px;
  top: -40px;
  background: radial-gradient(
    circle,
    rgba(184, 230, 230, 0.9),
    transparent 65%
  );
}

/* Robot shadow under the illustration */
.robot-shadow {
  position: absolute;
  bottom: -40px;
  width: 360px;
  height: 360px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(13, 79, 79, 0.8), transparent 70%);
  filter: blur(10px);
  transform: translateY(18px);
}

/* Soft card shadow (course cards, instructor cards, testimonials) */
.soft-card {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
}

/* Testimonials soft teal background */
.testimonials-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 230, 230, 0.6), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(127, 191, 191, 0.4), transparent 55%),
    var(--soft-gray);
}

/* Footer gradient in brand colors */
.footer-section {
  background: linear-gradient(135deg, var(--dark-teal), var(--medium-teal));
}

/* Scrollbar for course grid (if you later make it scrollable with fixed height) */
#courses-grid {
  scrollbar-width: thin;
}

#courses-grid::-webkit-scrollbar {
  width: 6px;
}

#courses-grid::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

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

    @keyframes pulse-glow {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 0.9; }
    }

    @keyframes gradient-shift {
      0%, 100% { transform: translate(0%, 0%) rotate(0deg); }
      33% { transform: translate(5%, -5%) rotate(120deg); }
      66% { transform: translate(-5%, 5%) rotate(240deg); }
    }

    .hero-section {
      background: linear-gradient(135deg, #0A3A3A 0%, #0D4F4F 50%, #115555 100%);
      min-height: 100vh;
      position: relative;
    }

    .hero-bg-circle {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      animation: pulse-glow 4s ease-in-out infinite;
    }

    .hero-bg-circle--left {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(184, 230, 230, 0.25) 0%, transparent 70%);
      top: -10%;
      left: -10%;
      animation: gradient-shift 20s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
    }

    .hero-bg-circle--right {
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(127, 191, 191, 0.2) 0%, transparent 70%);
      bottom: -15%;
      right: -10%;
      animation: gradient-shift 25s ease-in-out infinite reverse, pulse-glow 5s ease-in-out infinite;
    }

    .robot-container {
      animation: float 6s ease-in-out infinite;
    }

    .robot-shadow {
      position: absolute;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
      width: 80%;
      height: 30px;
      background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
      filter: blur(15px);
      animation: pulse-glow 6s ease-in-out infinite;
    }

    .stat-card {
      background: rgba(184, 230, 230, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(184, 230, 230, 0.2);
      transition: all 0.3s ease;
    }

    .stat-card:hover {
      background: rgba(184, 230, 230, 0.15);
      border-color: rgba(184, 230, 230, 0.4);
      transform: translateY(-5px);
    }

    .btn-primary {
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .btn-primary:hover::before {
      width: 300px;
      height: 300px;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(184, 230, 230, 0.3);
    }

    .text-glow {
      text-shadow: 0 0 20px rgba(184, 230, 230, 0.5);
    }

    .decorative-line {
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, #B8E6E6, transparent);
      border-radius: 2px;
    }

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

    .animate-slide-up {
      animation: slide-up 0.8s ease-out forwards;
    }

    .stagger-1 { animation-delay: 0.1s; opacity: 0; }
    .stagger-2 { animation-delay: 0.2s; opacity: 0; }
    .stagger-3 { animation-delay: 0.3s; opacity: 0; }
    .stagger-4 { animation-delay: 0.4s; opacity: 0; }
    
    @keyframes shadowPulse {
        0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
        50% { opacity: 0.15; transform: translateX(-50%) scale(0.9); }
      }
      
      /* Card hover effects */
      .course-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid #E5E5E5;
      }
      
      .course-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(13, 79, 79, 0.15);
        border-color: #B8E6E6;
      }
      
      .course-card img {
        transition: transform 0.4s ease;
      }
      
      .course-card:hover img {
        transform: scale(1.05);
      }
      
      /* Soft cards with glassmorphism */
      .soft-card {
        transition: all 0.3s ease;
      }
      
      .soft-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
      }
      
      /* Category cards */
      .category-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        transition: all 0.3s ease;
        border: 1px solid #E5E5E5;
        cursor: pointer;
      }
      
      .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(13, 79, 79, 0.1);
        border-color: #B8E6E6;
      }
      
      .category-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
      }
      
      .category-card:hover .category-icon {
        transform: rotate(5deg) scale(1.1);
      }
          .cta-content {
      position: relative;
      padding: 2.5rem;
      background: linear-gradient(135deg, rgba(184, 230, 230, 0.08) 0%, rgba(127, 191, 191, 0.05) 100%);
      border-radius: 1.5rem;
      border: 1px solid rgba(184, 230, 230, 0.2);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(10px);
      overflow: hidden;
    }

    .cta-content::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #0D4F4F, #7FBFBF, #B8E6E6);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .cta-content:hover::before {
      opacity: 1;
    }

    .cta-content:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(13, 79, 79, 0.12);
      border-color: rgba(127, 191, 191, 0.4);
      background: linear-gradient(135deg, rgba(184, 230, 230, 0.12) 0%, rgba(127, 191, 191, 0.08) 100%);
    }

    .cta-label {
      display: inline-block;
      font-size: 0.875rem;
      font-weight: 600;
      color: #2D7D7D;
      background: linear-gradient(135deg, #B8E6E6 0%, #7FBFBF 100%);
      padding: 0.5rem 1.25rem;
      border-radius: 2rem;
      margin-bottom: 1.25rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      box-shadow: 0 4px 12px rgba(127, 191, 191, 0.2);
      transition: all 0.3s ease;
    }

    .cta-content:hover .cta-label {
      transform: translateX(5px);
      box-shadow: 0 6px 16px rgba(127, 191, 191, 0.3);
    }

    .cta-content h2 {
      font-size: 2rem;
      font-weight: 700;
      color: #0D4F4F;
      line-height: 1.3;
      margin-bottom: 1.25rem;
      position: relative;
      padding-bottom: 1rem;
    }

    .cta-content h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, #2D7D7D, #7FBFBF);
      border-radius: 2px;
      transition: width 0.4s ease;
    }

    .cta-content:hover h2::after {
      width: 100px;
    }

    .cta-content > p {
      font-size: 1rem;
      line-height: 1.7;
      color: #4A5568;
      margin-bottom: 1.5rem;
    }

    /* Enhanced bullet points */
    .cta-content .mt-6 {
      margin-top: 1.5rem;
      display: grid;
      gap: 0.875rem;
    }

    .cta-content .mt-6 p {
      font-size: 0.9375rem;
      color: #5A5A5A;
      line-height: 1.6;
      padding-left: 1.5rem;
      position: relative;
      transition: all 0.3s ease;
    }

    .cta-content .mt-6 p::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.5rem;
      width: 8px;
      height: 8px;
      background: linear-gradient(135deg, #2D7D7D, #7FBFBF);
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .cta-content:hover .mt-6 p::before {
      transform: scale(1.3);
      box-shadow: 0 0 8px rgba(45, 125, 125, 0.4);
    }

    .cta-content .mt-6 p:hover {
      color: #2D7D7D;
      transform: translateX(5px);
    }

    /* Decorative elements */
    .cta-content::after {
      content: '';
      position: absolute;
      bottom: -50px;
      right: -50px;
      width: 150px;
      height: 150px;
      background: radial-gradient(circle, rgba(184, 230, 230, 0.15) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      transition: all 0.6s ease;
    }

    .cta-content:hover::after {
      transform: translate(-20px, -20px) scale(1.2);
      opacity: 0.8;
    }

    /* Responsive adjustments */
    @media (max-width: 790px) {
      .cta-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
      }

      .visual-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 400px !important;
        margin: 0 auto;
      }

      .cta-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem;
        margin: 0 auto;
      }

      .cta-content h2 {
        font-size: 1.5rem;
      }

      .section-container {
        padding: 0 1rem !important;
      }
    }

    @media (max-width: 510px) {
      .cta-content {
        padding: 1.5rem;
      }

      .cta-content h2 {
        font-size: 1.25rem;
      }

      .cta-label {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
      }

      .visual-panel {
        height: 300px !important;
      }

      .section-container {
        padding: 0 0.75rem !important;
      }
    }