:root {
  --main-color: #fdc800;
  --color-white: #ffffff;
  --theme-color2: #fdc800;
  --light-yellow: #fff4b8;
  --darker-yellow: #fdc800;
  --darkest-yellow: #fdc800;
  --paragraph-color: #565872;
  --body-font: "Rubik", sans-serif;
  --body-font-size: 16px;
  --line-height30: 1.7;
  --shadow-main: 0 20px 60px rgba(253, 200, 0, 0.15);
  --shadow-hover: 0 30px 80px rgba(253, 200, 0, 0.25);
  --gradient-main: #fdc800;

/* horizontal left→right, light dominates, richer gold occupying last ~15% */
--gradient-light: linear-gradient(150deg,
  #fff4b8 0%,
  #fff4b8 60%,
  #ffe37f 75%,
  #fdc800 100%);

  --gradient-dark: linear-gradient(135deg, #fdc800 0%, #fdc800 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  line-height: var(--line-height30);
  color: var(--paragraph-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Enhanced Background with Morphing Shapes */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, #fff4b8 0%, #ffffff 50%, #fdc800 100%); */
  z-index: -3;
}

.morphing-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.1;
  animation: morph 15s ease-in-out infinite;
  will-change: transform;
}

.shape:nth-child(1) {
  width: 300px;
  height: 300px;
  /* background: var(--gradient-main); */
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--gradient-dark);
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--gradient-light);
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

@keyframes morph {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    border-radius: 50%;
  }
  25% {
    transform: scale(1.2) rotate(90deg);
    border-radius: 20%;
  }
  50% {
    transform: scale(0.8) rotate(180deg);
    border-radius: 80%;
  }
  75% {
    transform: scale(1.1) rotate(270deg);
    border-radius: 30%;
  }
}

/* Enhanced Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--main-color) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) rotate(90deg) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) rotate(180deg) scale(0.8);
    opacity: 1;
  }
  75% {
    transform: translateY(-30px) rotate(270deg) scale(1.1);
    opacity: 0.6;
  }
}

/* Hero Section with Image Area */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-light);
  padding: 80px 20px;
  margin-top:180px
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(253,200,0,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  width: 100%;
  align-items: center;
}

.hero-content {
  z-index: 10;
  animation: slideInLeft 1s ease-out;
}

.hero-image-area {
  position: relative;
  min-height: 500px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 3px solid rgba(253, 200, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: slideInRight 1s ease-out;
  box-shadow: var(--shadow-main);
  will-change: transform;
}

.hero-image-area-2 img{
 border-radius: 30px
}

.hero-image-area::before {
  content: "🎓 Education Image Area";
  font-size: 1.5rem;
  color: var(--main-color);
  font-weight: 600;
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

.hero-image-area::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(253, 200, 0, 0.1), transparent);
  animation: rotate 10s linear infinite;
  will-change: transform;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 30px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite alternate;
  line-height: 1.2;
  will-change: filter;
}

@keyframes textGlow {
  from {
    filter: drop-shadow(0 0 20px rgba(253, 200, 0, 0.3));
  }
  to {
    filter: drop-shadow(0 0 40px rgba(253, 200, 0, 0.6));
  }
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--paragraph-color);
  animation: slideUp 1s ease-out 0.5s both;
}

/* Enhanced CTA Button */
.cta-button {
  display: inline-block;
  padding: 20px 50px;
  background: var(--gradient-main);
  color: #212529;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-main);
  animation: buttonFloat 3s ease-in-out infinite;
  will-change: transform;
}

.cta-button:hover {
  color: #fff;
  /* transform: skew(30deg);
  transition-duration: 0.6s;
  transform-origin: top left; */
  box-shadow: 0 14px 32px -4px rgba(253,200,0,0.5);
}


.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  /* transform: skew(30deg);
  transition-duration: 0.6s;
  transform-origin: top left; */
  /* transition: left 0.5s ease; */
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

@keyframes buttonFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@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 slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Floating Elements */
.floating-element {
  position: absolute;
  font-size: 3rem;
  animation: floatAround 12s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(253, 200, 0, 0.5));
  will-change: transform;
}

@keyframes floatAround {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-30px, -80px) rotate(180deg) scale(0.9);
    opacity: 1;
  }
  75% {
    transform: translate(-60px, -30px) rotate(270deg) scale(1.1);
    opacity: 0.7;
  }
}

/* Enhanced Courses Section */
.courses {
  padding: 60px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fff4b8 100%);
  position: relative;
}

.courses::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(253,200,0,0.1)"/></svg>');
  opacity: 0.3;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 80px;
  color: var(--paragraph-color);
  font-weight: 500;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Optimized Course Cards */
.course-card {
  background: var(--color-white);
  border-radius: 25px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1; /* Keep card content on top */

  /* Set the initial border */
  border: 2px solid rgba(253, 200, 0, 0.1);

  /* ONLY transition the fast properties */
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  transform: translateZ(0); /* GPU layer promotion */
}

/* Your performant top bar - NO CHANGES NEEDED */
.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* NEW pseudo-element for the shadow */
.course-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 25px; /* Match the card */
  z-index: -1; /* Place it behind the card content */

  /* The shadow we want to see on hover */
  box-shadow: var(--shadow-hover); /* e.g., 0 16px 32px rgba(0,0,0,0.2) */

  /* Start fully transparent */
  opacity: 0;
  transition: opacity 0.28s ease;
  will-change: opacity;
}

/* --- HOVER STATES --- */

.course-card:hover {
  /* Performant transform */
  transform: translateY(-15px) scale(1.02);
  /* Instant border color change (fast!) */
  border-color: var(--main-color);
}

.course-card:hover::before {
  /* Top bar animation */
  transform: scaleX(1);
}

.course-card:hover::after {
  /* Fade the shadow in */
  opacity: 1;
}

.course-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.course-icon {
  font-size: 4rem;
  margin-right: 20px;
  animation: iconBounce 2s ease-in-out infinite;
  will-change: transform;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.course-title-group {
  flex: 1;
}

.course-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--paragraph-color);
}

.course-tagline {
  font-size: 1.1rem;
  color: var(--main-color);
  font-weight: 600;
}

.course-image-area {
  width: 100%;
  height: 190px;
  background: var(--gradient-light);
  border-radius: 15px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--darkest-yellow);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(253, 200, 0, 0.3);
}

.course-image-area::before {
  /* content: "📸 Course Image Area"; */
  z-index: 1;
}

.course-image-area::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  ); */
  animation: shimmer 3s ease-in-out infinite;
  will-change: left;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.course-description {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--paragraph-color);
}

.features-list {
  list-style: none;
  margin-bottom: 30px;
}

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  color: var(--paragraph-color);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.features-list li:hover {
  transform: translateX(10px);
  color: var(--main-color);
}

.features-list li::before {
  content: "✨";
  color: var(--main-color);
  font-size: 1.3rem;
  margin-right: 15px;
  animation: sparkle 2s ease-in-out infinite;
  will-change: transform;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.course-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item {
  background: var(--light-yellow);
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(253, 200, 0, 1);
  will-change: transform;
}

.info-item:hover {
  background: var(--main-color);
  color: var(--color-white);
  transform: scale(1.05);
}

.info-label {
  font-weight: 700;
  color: var(--darkest-yellow);
  margin-bottom: 5px;
}

.info-item:hover .info-label {
  color: var(--color-white);
}

.course-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-main);
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.course-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  /* color: #ffffff */
  /* transition: left 0.5s ease; */
}

.course-cta:hover::before {
  left: 100%; 
}

.course-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(253, 200, 0, 0.4);
    color: #ffffff
}

/* Enhanced Why Choose Us Section */
.why-choose {
  padding: 60px 20px;
  background: var(--gradient-main);
  position: relative;
}

.why-choose::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><polygon points="100,0 200,100 100,200 0,100" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.1;
}

.why-choose .section-title {
  color: var(--color-white);
  background: var(--color-white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-choose .section-title::after {
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  will-change: transform;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-right: 25px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  animation: iconFloat 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.feature-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.5;
}

/* Enhanced Final CTA Section */
.final-cta {
  padding: 60px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fff4b8 50%, #fdc800 100%);
  text-align: center;
  position: relative;
}

.final-cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.final-cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta p {
  font-size: 1.4rem;
  margin-bottom: 50px;
  color: var(--paragraph-color);
  font-weight: 500;
}

.final-cta-button {
  display: inline-block;
  padding: 25px 60px;
  background: var(--gradient-main);
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  animation: finalPulse 4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.final-cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  /* background: rgba(255, 255, 255, 0.1); */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* transition: all 0.5s ease; */
}

.final-cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.final-cta-button:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-hover);
  color:#fff
}

@keyframes finalPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 200, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(253, 200, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 200, 0, 0);
  }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(80px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.fade-in-left {
  transform: translateX(-80px);
}

.scroll-animate.fade-in-right {
  transform: translateX(80px);
}

.scroll-animate.fade-in-left.animate {
  transform: translateX(0);
}

.scroll-animate.fade-in-right.animate {
  transform: translateX(0);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image-area {
    min-height: 350px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .course-header {
    flex-direction: column;
    text-align: center;
  }

  .course-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .course-info {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .final-cta h2 {
    font-size: 2.5rem;
  }

  .final-cta p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .course-card {
    padding: 25px;
  }

  .final-cta-button {
    padding: 20px 40px;
    font-size: 1.1rem;
  }

  .course-image-area img {
    min-height: 185px;
  }

}

/* Loading Animation */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: pageLoad 0.8s ease-out;
}
