/* Custom CSS for CCI Learning */

:root {
  --primary-color: #3b82f6;
  --secondary-color: #14b8a6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  --gradient-info: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-light: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-info {
  background: var(--gradient-info);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.bg-gradient-light {
  background: var(--gradient-light);
}

/* Header Styles */
.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdfa 100%);
  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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E5E7EB" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-cta-btn {
  background: var(--gradient-primary);
  border: none;
  transition: all 0.3s ease;
}

.hero-cta-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
}

.dashboard-card {
  /*background: white;*/
  /*border-radius: 1rem;*/
  /*box-shadow: var(--shadow-xl);*/
  transform: rotate(3deg);
  transition: transform 0.5s ease;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: rotate(0deg);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/*.course-item {
  display: flex;
  justify-content: between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.course-item.completed {
  background: #ecfdf5;
}

.course-item.in-progress {
  background: #eff6ff;
}

.course-item.not-started {
  background: #f8fafc;
}*/

.progress-card {
  background: var(--gradient-primary);
  padding: 1rem;
  border-radius: 0.5rem;
  color: white;
}

.progress-card .progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-card .progress-bar {
  background: white;
}

.floating-badge {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: white;
}

.badge-1 {
  background: var(--warning-color);
  top: -20px;
  right: -20px;
  animation: bounce 2s infinite;
}

.badge-2 {
  background: var(--success-color);
  bottom: -20px;
  left: -20px;
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Course Cards */
.course-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  border: none;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-image {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image {
  transform: scale(1.1);
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.course-card:hover .course-overlay {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.play-button {
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

.discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 1rem;
  transition: border-color 0.3s ease;
}

.feature-card:hover::before {
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Success Story Cards */
.story-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.story-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.achievement-badge {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 1rem;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.before-card {
  background: #fef2f2;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
}

.after-card {
  background: #ecfdf5;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
}

/* Mentor Application */
.mentor-info {
  position: sticky;
  top: 2rem;
}

.benefits-list .benefit-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.benefit-item.salary {
  background: #ecfdf5;
}

.benefit-item.flexible {
  background: #eff6ff;
}

.benefit-item.growth {
  background: #f3e8ff;
}

.benefit-item.impact {
  background: #f0fdfa;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.requirements-list .requirement-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.requirement-item i {
  color: var(--success-color);
  margin-right: 0.75rem;
}

/* Form Styles */
.form-control,
.form-select {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.upload-area {
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--primary-color) !important;
  background: #f8fafc;
}

/* Expertise Checkboxes */
.expertise-checkbox {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.3s ease;
  cursor: pointer;
}

.expertise-checkbox:hover {
  background: #f8fafc;
}

.expertise-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--dark-color) !important;
}

footer .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

footer .btn-outline-light:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
/*Dropdown Open */

.dropdown:hover .user-dropdown-menu {
  display: block;
  right: 0;
  left: auto;
}
.dropdown-menu {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
  border: none;
  min-width: 240px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .dashboard-card {
    transform: rotate(0deg);
  }

  .floating-badge {
    display: none;
  }

  .mentor-info {
    position: static;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .hero-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/*Card Over */
.card-title:hover {
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
}
