/* Homepage Styles */

/* Hero Section */
.hero {
  padding: 140px 0;
  background: #121212;
  background-image: 
    radial-gradient(rgba(255, 90, 95, 0.03) 2px, transparent 2px),
    radial-gradient(rgba(255, 90, 95, 0.02) 1px, transparent 1px);
  background-size: 50px 50px, 25px 25px;
  background-position: 0 0, 25px 25px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Binary Rain Animation */
.binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  overflow: hidden;
}

.binary {
  position: absolute;
  color: #32CD32;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  animation-name: binaryFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  top: -20px;
  text-shadow: 0 0 5px rgba(50, 205, 50, 0.7);
}

@keyframes binaryFall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  95% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(800px);
    opacity: 0;
  }
}

.hero .row {
  position: relative;
  z-index: 5;
}

.hero .col-lg-7 {
  padding-left: 40px;
}

/* Hero Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.hero-heading {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease forwards;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.hero-heading .text-primary {
  color: #ff5a5f !important;
  position: relative;
  display: inline-block;
  transition: text-shadow 0.3s ease;
  font-weight: 800;
}

.hero-heading .text-white {
  color: #ffffff;
  font-weight: 800;
}

.hero-heading .text-primary:hover {
  text-shadow: 0 0 15px rgba(255, 90, 95, 0.5);
}

.hero-text {
  font-size: 22px;
  margin-bottom: 35px;
  opacity: 0;
  max-width: 90%;
  color: #f0f0f0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.hero-cta {
  margin-top: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-cta .btn {
  padding: 14px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  font-size: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hero-cta .btn-primary {
  background-color: #ff5a5f;
  border-color: #ff5a5f;
  width: auto;
}

.hero-cta .btn-primary:hover {
  background-color: #ff4146;
  border-color: #ff4146;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta .btn-outline-light {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-cta .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Code Editor Styling */
.code-editor-container {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
  margin-right: 20px;
}

.code-editor-container:hover {
  transform: perspective(1000px) rotateY(-2deg) translateY(-5px);
}

.code-editor-header {
  background: rgba(30, 30, 30, 0.9);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-editor-buttons {
  display: flex;
  margin-right: 20px;
}

.editor-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.editor-button.red {
  background-color: #ff5f56;
}

.editor-button.yellow {
  background-color: #ffbd2e;
}

.editor-button.green {
  background-color: #27c93f;
}

.code-editor-title {
  color: #aaa;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
}

.code-editor-content {
  padding: 10px;
  position: relative;
}

.blinking-cursor {
  position: absolute;
  bottom: 36px;
  left: 50px;
  width: 1px;
  height: 16px;
  background-color: #fff;
  animation: blink 1s infinite;
}

.blinking-cursor.typing {  animation: blink 1s infinite;}/* Hide blinking cursor on mobile devices */@media (max-width: 767.98px) {  .blinking-cursor {    display: none;  }}
@media (max-width: 767.98px) {
  .blinking-cursor {
    display: none;
  }
}

/* Featured Courses Section */
.featured-courses {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.featured-courses .section-header {
  margin-bottom: 40px;
}

.featured-courses .section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #333;
  position: relative;
  display: inline-block;
}

.featured-courses .section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 80px;
  background: #ff5a5f;
  border-radius: 2px;
}

.featured-courses .section-subtitle {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 15px;
}

.featured-courses .courses-header-info {
  max-width: 700px;
  margin: 0 auto 30px;
}

.featured-courses .course-count-banner {
  background: #f8f9fb;
  border-radius: 30px;
  padding: 12px 25px;
  margin: 0 auto 30px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #333;
  font-weight: 600;
}

.featured-courses .course-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  gap: 25px;
}

.featured-courses .course-stat-item {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #555;
}

.featured-courses .course-stat-item i {
  margin-right: 6px;
  color: #ff5a5f;
}

.featured-courses .browse-all-btn {
  background: linear-gradient(to right, #ff5a5f, #ff464c);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  margin: 10px auto 30px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 90, 95, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-courses .browse-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 90, 95, 0.4);
  background: linear-gradient(to right, #ff464c, #ff3a40);
}

.featured-courses .course-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: visible !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.featured-courses .course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.featured-courses .course-image {
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  height: 200px;
  z-index: 1;
}

.featured-courses .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  z-index: 1;
}

.featured-courses .course-card:hover .course-image img {
  transform: scale(1.05);
}

.featured-courses .course-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #007bff;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-courses .course-content {
  padding: 25px;
  position: relative;
}

.featured-courses .course-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.featured-courses .course-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6c757d;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
}

.featured-courses .course-details span {
  display: flex;
  align-items: center;
}

.featured-courses .course-details i {
  margin-right: 5px;
  color: #ff5a5f;
}

.featured-courses .course-description {
  margin-bottom: 20px;
  color: #6c757d;
  font-size: 15px;
  line-height: 1.5;
}

.featured-courses .btn-view-course {
  background: transparent;
  color: #ff5a5f;
  border: 2px solid #ff5a5f;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  width: 100%;
}

.featured-courses .btn-view-course:hover {
  background: #ff5a5f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

.featured-courses .subscription-note {
  text-align: center;
  margin: 30px auto 10px;
  color: #666;
  font-size: 15px;
  max-width: 600px;
}

.featured-courses .subscription-note i {
  color: #ff5a5f;
  margin-right: 5px;
}

/* Badge styling - specific to featured courses */
.featured-courses .course-badge {
  position: absolute !important;
  top: -10px !important;
  left: 20px !important;
  background: #ffca28;
  color: #333;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  z-index: 999 !important;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.featured-courses .course-card:hover .course-badge {
  transform: rotate(-5deg) translateY(-3px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.featured-courses .course-badge.new {
  background: #ffca28;
}

.featured-courses .course-badge.popular {
  background: #4caf50;
  color: white;
}

/* Course cards animation for mobile */
@media (max-width: 768px) {
  .featured-courses .course-cards-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    max-width: 100%;
    margin: 0;
  }
  
  .featured-courses .course-cards-scroll::-webkit-scrollbar {
    height: 5px;
  }
  
  .featured-courses .course-cards-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .featured-courses .course-cards-scroll::-webkit-scrollbar-thumb {
    background: #ff5a5f;
    border-radius: 10px;
  }
  
  .featured-courses .course-cards-scroll .col-lg-4 {
    min-width: 85%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Trust Indicators Section */
.featured-courses .trust-indicators {
  background: #f8f9fb;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.featured-courses .trust-indicators h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.featured-courses .trust-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #555;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 10px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.featured-courses .trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-courses .trust-item i {
  font-size: 18px;
  margin-right: 10px;
  color: #4caf50;
}

/* Make course badge container a separate layer - specific to featured courses */
.featured-courses .course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: 12px;
}

@media (max-width: 767.98px) {
  .featured-courses .trust-item {
    flex-basis: 100%;
    margin: 5px 0;
  }
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 80px 0;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 36px;
  color: #ff5a5f;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 90, 95, 0.1);
  border-radius: 50%;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: #ff5a5f;
  color: #fff;
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 30px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.feature-description {
  color: #6c757d;
  text-align: center;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
}

.testimonial-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  height: 100%;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  color: #495057;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
}

.cta-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-text {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero .col-lg-7 {
    padding-left: 15px;
  }
  
  .hero-heading {
    font-size: 36px;
  }
  
 .section-title {
    font-size: 30px;
  }
  
  .cta-title {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    text-align: center;
  }
  
  .hero-image {
    margin-top: 40px;
  }
  
  .cta-section .text-lg-right {
    text-align: center !important;
    margin-top: 20px;
  }
}

/* Trust Indicators Section */
.trust-indicators {
  background: #f8f9fb;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.trust-indicators h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.trust-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #555;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 10px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-item i {
  font-size: 18px;
  margin-right: 10px;
  color: #4caf50;
}

@media (max-width: 767.98px) {
  .trust-item {
    flex-basis: 100%;
    margin: 5px 0;
  }
}

/* Make course badge container a separate layer */
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: 12px;
}

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Add better margins for section images */
.course-image {
  margin-bottom: 15px;
}

.course-image img {
  max-width: 100%;
  height: auto;
}

/* Improve margins for sections */
.featured-courses, .why-choose-us, .testimonials {
  padding: 60px 15px;
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 40px;
  padding: 0 15px;
}

/* Fix for feature cards and testimonial cards */
.feature-card, .testimonial-card {
  margin: 0 0 30px 0;
  max-width: 100%;
}

/* Ensure columns don't overflow */
[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Trust indicators responsive fix */
@media (max-width: 767.98px) {
  .trust-indicators {
    padding: 20px 10px;
  }
  
  .trust-item {
    flex-basis: 100%;
    margin: 5px 0;
    max-width: 100%;
  }
}

/* Additional fixes for small screens */
@media (max-width: 576px) {
  .featured-courses, .why-choose-us, .testimonials {
    padding: 40px 10px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
}/ *   H i d e   b l i n k i n g   c u r s o r   o n   m o b i l e   d e v i c e s   * / @ m e d i a   ( m a x - w i d t h :   7 6 7 . 9 8 p x )   { . b l i n k i n g - c u r s o r   { d i s p l a y :   n o n e ; } } 
 
 /* Hide blinking cursor on mobile devices */
@media (max-width: 767.98px) {
  .blinking-cursor {
    display: none;
  }
}
