/* ========================================
   MANJERI COMMERCE ACADEMY - STYLES
   ======================================== */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #7dd3fc;
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ccfbf1 100%);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* ========================================
   Utility Classes
   ======================================== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: var(--gradient-primary);
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--foreground);
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted);
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  color: white;
}

.btn-outline-custom {
  background: white;
  color: var(--foreground);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ========================================
   Header / Navbar
   ======================================== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand-custom {
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-link-custom {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 16px !important;
  transition: color 0.3s ease;
}

.nav-link-custom:hover {
  color: var(--primary);
}

.navbar-btn {
  background: var(--gradient-primary);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 10px;
  font-weight: 600;
}

.navbar-btn:hover {
  opacity: 0.9;
  color: white !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  border-radius: 24px;
  box-shadow: var(--shadow-elevated);
}

.floating-card {
  position: absolute;
  background: white;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-elevated);
  animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
  top: 20%;
  left: -30px;
}

.floating-card-2 {
  bottom: 20%;
  right: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.floating-card-icon.primary {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.floating-card-icon.accent {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
}

.floating-card-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.floating-card-label {
  font-size: 12px;
  color: var(--muted);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: white;
}

.about-image {
  border-radius: 24px;
  box-shadow: var(--shadow-elevated);
}

.about-features {
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.about-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-feature-text {
  color: var(--muted);
  font-size: 14px;
}

/* ========================================
   Courses Section
   ======================================== */
.courses-section {
  background: var(--background);
}

.course-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.course-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.course-card:hover .course-icon {
  transform: scale(1.1);
}

.course-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.course-badge.popular {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.course-badge.special {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.course-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.course-features li i {
  color: var(--accent);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
  background: var(--gradient-primary);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
  background: white;
}

.testimonial-card {
  background: var(--background);
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-course {
  font-size: 14px;
  color: var(--muted);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  background: var(--background);
}

.accordion-custom .accordion-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px !important;
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  padding: 20px 24px;
  background: white;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: white;
  color: var(--primary);
}

.accordion-custom .accordion-button:focus {
  box-shadow: none;
}

.accordion-custom .accordion-body {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: white;
}

.contact-info-card {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 40px;
  color: white;
  height: 100%;
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info-text {
  opacity: 0.9;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-label {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.contact-info-value {
  font-weight: 600;
}

.contact-form-card {
  background: var(--background);
  border-radius: 24px;
  padding: 40px;
}

.form-label-custom {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.form-control-custom {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--foreground);
  color: white;
  padding: 60px 0 24px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-card {
    display: none;
  }
  
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .hero-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 24px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 24px;
  }
}

/* ========================================
   Scroll Animation Classes
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}
