/* Courses Section Styles */
.courses {
  background: var(--darker-bg);
  position: relative;
  overflow: hidden;
}

.courses::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300e5ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.course-card {
  background: rgba(15, 20, 35, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 229, 255, 0.2);
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(15, 20, 35, 0.8);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.course-card:hover .course-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--dark-bg);
  box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
  transform: scale(1.05);
}

.course-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-text);
  background: linear-gradient(90deg, var(--light-text), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  transition: all 0.3s ease;
}

.course-description {
  color: var(--light-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-features {
  margin-bottom: 1.5rem;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--light-text-muted);
}

.course-features li i {
  color: var(--success-color);
  font-size: 0.875rem;
}

.course-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-right: 1.5rem;
  transition: all var(--transition-fast);
}

.course-link::after {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.course-link:hover {
  color: var(--primary-dark);
}

.course-link:hover::after {
  transform: translate(5px, -50%);
}

/* Course Details Section */
.course-details {
  background: var(--dark-bg);
  position: relative;
  padding: 5rem 0;
}

.course-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300e5ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.course-tabs {
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  position: relative;
}

.tabs-nav::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
}

.tab-btn {
  padding: 0.85rem 1.75rem;
  background: rgba(15, 20, 35, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 50px;
  color: var(--light-text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  color: var(--dark-bg);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3);
}

.tabs-content {
  background: rgba(15, 20, 35, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tab-pane {
  display: none;
  padding: 3rem;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.tab-content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tab-left h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  position: relative;
  padding-bottom: 1rem;
}

.tab-left h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 3px;
}

.tab-description {
  color: var(--light-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.curriculum, .projects, .career {
  margin-bottom: 2.5rem;
  background: rgba(15, 20, 35, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.05);
}

.curriculum h4, .projects h4, .career h4 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.curriculum h4::before, .projects h4::before, .career h4::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.curriculum ul, .projects ul, .career ul {
  padding-left: 1rem;
}

.curriculum li, .projects li, .career li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--light-text-muted);
  font-size: 1.05rem;
}

.curriculum li::before, .projects li::before, .career li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--success-color);
  font-size: 0.9rem;
}

.code-display {
  background: rgba(10, 15, 25, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px 12px 0 0;
}

.code-display::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.code-display pre {
  margin: 0;
  padding-top: 30px;
  font-family: var(--code-font);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--light-text);
  white-space: pre-wrap;
  overflow-x: auto;
}

.code-display code {
  display: block;
}

.enroll-now {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.05));
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.enroll-now p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  background: linear-gradient(90deg, var(--light-text), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.enroll-now .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Responsive Course Sections */
@media screen and (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .tab-content-inner {
    grid-template-columns: 1fr;
  }
  
  .tab-right {
    order: -1;
  }
  
  .code-display {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .tab-pane {
    padding: 2rem;
  }
  
  .tab-left h3 {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 576px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-nav {
    overflow-x: auto;
    padding-bottom: 1rem;
    justify-content: flex-start;
  }
  
  .tab-btn {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
  }
  
  .tab-pane {
    padding: 1.5rem;
  }
}

.course-card:hover .course-title {
  background: linear-gradient(90deg, var(--primary-color), var(--light-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animation for tab content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
