/* Theme Definitions matching coding-bodhi-frontend */
:root {
  --background: #060918;
  --foreground: #f8fafc;
  --primary: #60a5fa;
  --primary-foreground: #060918;
  --secondary: #121b36;
  --secondary-foreground: #f8fafc;
  --accent: #818cf8;
  --accent-foreground: #ffffff;
  --muted: #0d1530;
  --muted-foreground: #94a3b8;
  --border: rgba(96, 165, 250, 0.25);
  --radius: 0.75rem;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --grad-surface: linear-gradient(180deg, rgba(18, 27, 54, 0.75) 0%, rgba(13, 21, 48, 0.9) 100%);
}

/* Reset and Core Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--background);
  background-image: radial-gradient(circle at center, #0f1a4a 0%, #060918 100%);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ambient Background Orbs */
.glow-orb {
  position: fixed;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -10%;
  left: 5%;
  background: var(--primary);
  animation: floatOrb1 25s infinite ease-in-out alternate;
}

.orb-2 {
  bottom: -10%;
  right: 5%;
  background: var(--accent);
  animation: floatOrb2 30s infinite ease-in-out alternate;
}

/* Grid Overlay Background */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 0),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

/* Main Container Layout */
.landing-container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 1.5vh 1.5rem 3vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3.5vh;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* Header Typography */
.header-section {
  text-align: center;
  margin-top: auto;
  margin-bottom: 0;
  max-width: 720px;
}

.logo-container {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container:hover {
  transform: scale(1.08) rotate(2deg);
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-title {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 35%, #f472b6 70%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.2rem;
  animation: gradientShimmer 6s linear infinite;
}

.brand-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.brand-description {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.highlight-cyan {
  color: var(--primary);
  font-weight: 600;
}

/* Cards Flexbox/Grid Layout */
.cards-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 0;
}

/* Glassmorphism Course Card */
.course-card {
  position: relative;
  background: var(--grad-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  max-width: 420px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: 
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    border-color 0.4s ease, 
    box-shadow 0.4s ease;
}

/* Hover Glowing Card State */
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-6px);
  animation: gentleBob 4s ease-in-out infinite alternate;
}

#card-fullstack:hover {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.55), 
    0 0 35px rgba(96, 165, 250, 0.12);
}

#card-dataeng:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.55), 
    0 0 35px rgba(129, 140, 248, 0.12);
}

/* Card Elements */
.icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease;
}

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

.fs-icon {
  background: rgba(96, 165, 250, 0.08);
  color: var(--primary);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.de-icon {
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent);
  border: 1px solid rgba(129, 140, 248, 0.15);
}

.icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.13rem 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
}

.course-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.accent-text {
  color: var(--primary);
}

#card-dataeng .accent-text {
  color: var(--accent);
}

.course-desc {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

/* Feature Checklists */
.features-list {
  list-style: none;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.checkmark {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

#card-fullstack .checkmark {
  color: var(--primary);
}

#card-dataeng .checkmark {
  color: var(--accent);
}

/* Tag Cloud */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}

.tag {
  font-size: 0.67rem;
  font-weight: 500;
  padding: 0.13rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#card-fullstack .tag:hover {
  background: rgba(96, 165, 250, 0.15);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
}

#card-dataeng .tag:hover {
  background: rgba(129, 140, 248, 0.15);
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
}

#card-fullstack .tag {
  background: rgba(96, 165, 250, 0.06);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.12);
}

#card-dataeng .tag {
  background: rgba(129, 140, 248, 0.06);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.12);
}

/* CTA Pill Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.62rem 1.4rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  animation: pulsePrimary 4s infinite;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  box-shadow: 
    0 8px 20px rgba(59, 130, 246, 0.4), 
    0 0 15px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
  animation-play-state: paused;
}

.accent-btn {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
  animation: pulseAccent 4s infinite;
}

.accent-btn:hover {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  box-shadow: 
    0 8px 20px rgba(99, 102, 241, 0.4), 
    0 0 15px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  animation-play-state: paused;
}

.cta-button:active {
  transform: scale(0.98);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* Footer Section */
.landing-footer {
  text-align: center;
  margin-top: auto;
  margin-bottom: 0;
}

.footer-highlights {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  word-spacing: 0.1rem;
  letter-spacing: 0.02em;
}

.footer-highlights span {
  transition: color 0.3s ease;
}

.footer-highlights span:hover {
  color: var(--foreground);
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* New Interactive Animations */

/* Background Orbs Slow Motion */
@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, -10%) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Gradient Title Shimmering Flow */
@keyframes gradientShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gentle Card Float Bobbing on Hover */
@keyframes gentleBob {
  0% { transform: translateY(-6px); }
  100% { transform: translateY(-12px); }
}

/* Pulsing Button Ring Animations */
@keyframes pulsePrimary {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5), 0 4px 12px rgba(37, 99, 235, 0.15); }
  70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0), 0 4px 12px rgba(37, 99, 235, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 4px 12px rgba(37, 99, 235, 0.15); }
}

@keyframes pulseAccent {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5), 0 4px 12px rgba(79, 70, 229, 0.15); }
  70% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0), 0 4px 12px rgba(79, 70, 229, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 4px 12px rgba(79, 70, 229, 0.15); }
}

/* Responsive Layout Optimizations */

/* Desktop / Laptop Screen */
@media (min-width: 961px) {
  .landing-container {
    min-height: 100vh;
    padding: 2vh 2rem 4vh;
    gap: 4vh;
    justify-content: flex-start;
  }
  .header-section {
    margin-bottom: 0;
  }
  .logo-container {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .brand-title {
    font-size: 2.6rem;
    margin-bottom: 0.2rem;
  }
  .brand-description {
    font-size: 0.95rem;
    max-width: 560px;
  }
  .cards-container {
    gap: 0.75rem;
  }
  .course-card {
    max-width: 46%;
    padding: 1.35rem 1.5rem;
  }
  .icon-wrapper {
    width: 38px;
    height: 38px;
    margin-bottom: 0.6rem;
  }
  .icon-wrapper svg {
    width: 20px;
    height: 20px;
  }
  .badge {
    font-size: 0.63rem;
    margin-bottom: 0.4rem;
  }
  .course-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
  .course-desc {
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
  }
  .features-list {
    margin: 0.75rem 0;
    gap: 0.55rem;
  }
  .features-list li {
    font-size: 0.82rem;
  }
  .checkmark {
    width: 15px;
    height: 15px;
  }
  .tech-tags {
    margin-bottom: 1.1rem;
    gap: 0.3rem;
  }
  .tag {
    font-size: 0.67rem;
    padding: 0.13rem 0.5rem;
  }
  .cta-button {
    padding: 0.62rem 1.4rem;
    font-size: 0.9rem;
  }
}

/* Tablet collapsing */
@media (max-width: 960px) {
  .landing-container {
    padding: 2vh 1rem 4vh;
    min-height: 100vh;
  }
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .course-card {
    width: 100%;
    max-width: 460px;
    padding: 1.5rem;
  }
  .brand-title {
    font-size: 2.2rem;
  }
}

/* Mobile collapsing */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.8rem;
  }
  .brand-subtitle {
    font-size: 1.1rem;
  }
  .course-title {
    font-size: 1.2rem;
  }
  .course-card {
    padding: 1.25rem;
  }
}

