/* Custom CSS for Gyaan World */

/* Root Variables */
:root {
  --primary-color: #000000;
  --secondary-color: rgb(80, 10, 10);
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --body-bg: #ffffff;
  --text-color: #333333;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Bebas Neue", sans-serif;
  line-height: 1.6;
  background-color: var(--body-bg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Hero Section Styles - Completely Redesigned */
.hero-section {
  background: #ffcccc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::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="20" cy="20" r="3" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="2" fill="white" opacity="0.08"/><circle cx="40" cy="80" r="4" fill="white" opacity="0.12"/><circle cx="90" cy="90" r="2" fill="white" opacity="0.1"/><circle cx="10" cy="70" r="3" fill="white" opacity="0.08"/><circle cx="70" cy="10" r="2" fill="white" opacity="0.1"/></svg>');
  background-size: 200px 200px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  /* background: rgba(255, 255, 255, 0.2); */
  background: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 8px 20px;
  /* margin-bottom: 30px; */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  animation: slideInLeft 1s ease-out;
  margin-bottom: 1rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  margin-bottom: 25px;
  animation: slideInLeft 1s ease-out 0.2s both;
  font-family: "Bebas Neue", sans-serif;
}

.gradient-text {
  background: black;
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
  display: block;
  margin-bottom: 10px;
  font-family: "Bebas Neue", sans-serif;
}
.gradient-text span {
  color: var(--secondary-color) !important;
}

.hero-subtitle-text {
  color: black;
  font-size: 2.5rem;
  font-weight: 600;
  display: block;
}

.hero-description {
  color: rgb(80, 10, 10);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  animation: slideInLeft 1s ease-out 0.4s both;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideInLeft 1s ease-out 0.8s both;
}

.hero-btn {
  padding: 15px 30px;
  /* border: none; */
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #996666;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: white;
  color: rgb(80, 10, 10);
}

.btn-primary:hover {
  background: white;
  color: rgb(80, 10, 10);
}

.btn-secondary {
  background: white;
  color: rgb(80, 10, 10);
  /* border: 2px solid white; */
}

.btn-secondary:hover {
  background: white;
  color: #333;
}

.hero-visual {
  flex: 1;
  position: relative;
  max-width: 500px;
  animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: floatCard 3s ease-in-out infinite;
  font-weight: 600;
  color: #333;
}

.floating-card i {
  font-size: 1.2rem;
  color: #667eea;
}

.floating-card.card-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 50%;
  right: -30px;
  animation-delay: 1s;
}

.floating-card.card-3 {
  bottom: 20%;
  left: 10px;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3),
    rgba(118, 75, 162, 0.3)
  );
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .gradient-text {
    font-size: 2.5rem;
  }

  .hero-subtitle-text {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 30px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .floating-cards {
    display: none;
  }

  .hero-visual {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .gradient-text {
    font-size: 2rem;
  }

  .hero-subtitle-text {
    font-size: 1.5rem;
  }

  .hero-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* Features Section Styles */
.features-section {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: var(--body-bg);
  padding: 80px 0;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  text-align: center;
  opacity: 0.9;
  color: var(--secondary-color);
}

.feature-card {
  background: #ffcccc;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.feature-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Courses Section Styles */
.courses-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.courses-title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.courses-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.course-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.course-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  padding: 15px;
  transition: transform 0.3s ease;
}

.course-card:hover .play-icon {
  transform: scale(1.1);
}

.card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
}

.card-text {
  font-size: 0.9rem;
  color: #666;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-score {
  color: #333;
  font-weight: bold;
}

.stars i {
  font-size: 14px;
  color: #ffd700;
}

.rating-count {
  font-size: 0.9rem;
  color: #666;
}

.course-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.course-duration,
.course-students {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-duration i,
.course-students i {
  color: #667eea;
}

.price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.before-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.course-price {
  color: #dc3545;
  font-size: 1.2rem;
  font-weight: bold;
}

.premium-btn {
  background: #6f42c1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.premium-btn:hover {
  background: #5a32a3;
  transform: translateY(-2px);
  color: white;
}

.premium-btn i {
  font-size: 14px;
}

.show-more-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.show-more-btn:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  color: white;
}

.show-more-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.show-more-btn:hover i {
  transform: translateX(5px);
}

/* Responsive Design for Courses Section */
@media (max-width: 768px) {
  .courses-title {
    font-size: 2.5rem;
  }

  .courses-subtitle {
    font-size: 1.1rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .show-more-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .courses-title {
    font-size: 2rem;
  }

  .courses-subtitle {
    font-size: 1rem;
  }

  .show-more-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Category button styles */
.btn.free-btn {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.btn.free-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea085) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

.preview-btn {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.preview-btn:hover {
  background: linear-gradient(135deg, #138496, #5a32a3);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* Empty star styling */
.stars .far.fa-star {
  color: #ddd !important;
}

/* Testimonials Section Styles */
.testimonials-section {
  background: var(--body-bg);
  padding: 80px 0;
}

.testimonial-slider {
  position: relative;
  margin: 0 auto;
  background-color: var(--body-bg);
  overflow: hidden;
}

.testimonial-cards-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.testimonial-slide {
  display: flex;
  min-width: 100%;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1 1 0;
  min-width: 0;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  text-align: center;
}

.testimonial-content p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.student-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 16px;
}

.student-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffd700;
}

.student-info h5 {
  margin: 0;
  color: #333;
  font-weight: bold;
}

.student-info span {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.testimonial-dots {
  text-align: center;
  margin-top: 24px;
}

.testimonial-dots .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  border: 2px solid #764ba2;
}

.testimonial-dots .dot.active {
  background: #764ba2;
}

@media (max-width: 900px) {
  .testimonial-slide {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    margin-bottom: 20px;
  }
}

/* Call to Action Section Styles */
.cta-section {
  background: var(--body-bg);
  /* background: url('../Images/student.jpg') no-repeat center center;
  background-size: cover; */
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  padding: 100px 0;
  /* color: white; */
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  /* color: var(--primary-color); */
  color: black;
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  color: var(--secondary-color);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary {
  background: #ffe600;
  color: #333;
}

.cta-btn.primary:hover {
  background: #ffd700;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 230, 0, 0.4);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.cta-btn.secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .feature-card {
    margin-bottom: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.1rem;
  }

  .feature-card {
    padding: 20px 15px;
  }

  .testimonial-card {
    padding: 20px;
  }
}
