/* =========================================================
   DESIGN SYSTEM VARIABLES
   ========================================================= */

:root {
  --primary: #2563eb;     /* Blue */
  --primary-dark: #1e40af;
  --accent: #4f46e5;      /* Indigo */
  --success: #16a34a;     /* Green */
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
}


/* =========================================================
   GLOBAL BASE
   ========================================================= */

body {
  scroll-behavior: smooth;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

a {
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.9;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.9s ease-out both;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-dark);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}


/* =========================================================
   REUSABLE CARD SYSTEM
   ========================================================= */

.metric-card,
.feature-card,
.course-card,
.testimonial-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 0.9rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.metric-card:hover,
.feature-card:hover,
.course-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   SECTION-SPECIFIC POLISH
   ========================================================= */

/* Metrics numbers */
.metric-card {
  color: var(--primary);
  font-weight: 600;
}

/* Feature titles */
.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

/* Feature text */
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Course cards */
.course-card h4 {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.course-card p {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Course links */
.course-card a:not(.btn) {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.course-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial-card {
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-card p {
  margin-top: 0.6rem;
  font-weight: 600;
  font-style: normal;
  color: var(--primary);
}


/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.whatsapp-btn {
  background-color: var(--success);
}

.whatsapp-btn:hover {
  background-color: #15803d;
}


/* =========================================================
   ACCESSIBILITY / PERFORMANCE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .metric-card,
  .feature-card,
  .course-card,
  .testimonial-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}

p {
  line-height: 1.65;
}

button:active,
a:active {
  transform: scale(0.97);
}


/* Scroll reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* When revealed */
.reveal.animate-fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   ANNOUNCEMENT BAR (MARQUEE)
   =============================== */

.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #dc2626; /* red-600 */
  color: white;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.announcement-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: announcementScroll 18s linear infinite;
}

@keyframes announcementScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===============================
   BUTTON SYSTEM
   =============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}


/* =========================================================
   COURSE CARD COLOR THEMES (SUBTLE)
   ========================================================= */

.course-azure {
  background: linear-gradient(
    180deg,
    #f8fbff,
    #ffffff
  );
  border-left: 4px solid #2563eb;
}

.course-dbx {
  background: linear-gradient(
    180deg,
    #f5f3ff,
    #ffffff
  );
  border-left: 4px solid #4f46e5;
}

.course-stream {
  background: linear-gradient(
    180deg,
    #fdf4ff,
    #ffffff
  );
  border-left: 4px solid #9333ea;
}

.course-card:hover {
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.15);
}



