/* styles.css — extracted from Index.html */
/* Base typography and box-sizing */
body {
  box-sizing: border-box;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Urbanist', sans-serif;
  letter-spacing: -0.02em;
}

* { box-sizing: border-box; }

/* Professional Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0891b2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden { opacity: 0; visibility: hidden; }

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: white; font-size: 18px; font-weight: 600; margin-top: 20px; letter-spacing: 1px; }

/* Staggered fade-in animations */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }
.fade-in-delay-6 { animation-delay: 0.6s; }

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

/* Scale-in animation for cards */
.scale-in { opacity: 0; transform: scale(0.9); animation: scaleIn 0.6s ease-out forwards; }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }

/* Professional gradient backgrounds */
.gradient-primary { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); }
.gradient-accent { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.gradient-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

/* Professional card hover effects */
.card-professional { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: white; border: 1px solid #e5e7eb; }
.card-professional:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(8, 145, 178, 0.12); border-color: #0891b2; }

/* Override hover for course cards to use their own styles */
.course-card.card-professional:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(8, 145, 178, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Professional navigation */
.nav-professional { backdrop-filter: blur(12px); background: rgba(255, 255, 255, 0.95); transition: all 0.3s ease; }
.nav-professional.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }

/* Professional link underline */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #0891b2, #06b6d4); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* Professional button styles */
.btn-primary { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4); }

/* WhatsApp button professional style */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 100; transition: transform 0.3s ease, box-shadow 0.3s ease; animation: slideInRight 0.8s ease-out; }
.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }

/* Professional service icon wrapper */
.service-icon-wrapper { background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%); transition: all 0.4s ease; }
.card-professional:hover .service-icon-wrapper { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); transform: scale(1.05); }
.card-professional:hover .service-icon-wrapper svg { color: white; }

/* Professional badge */
.badge-professional { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: white; box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25); }

/* Mobile menu animation */
.mobile-menu { animation: slideDown 0.3s ease-out forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Professional section spacing */
.section-professional { padding: 100px 0; }
@media (max-width: 768px) { .section-professional { padding: 60px 0; } .whatsapp-float { bottom: 20px; right: 20px; } }

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

/* Content visibility during load */
.content-wrapper { opacity: 0; transition: opacity 0.5s ease; }
.content-wrapper.visible { opacity: 1; }

/* Professional image overlay */
.image-overlay { position: relative; overflow: hidden; }
.image-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%); opacity: 0; transition: opacity 0.4s ease; }
.card-professional:hover .image-overlay::after { opacity: 1; }
.image-overlay img { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.card-professional:hover .image-overlay img { transform: scale(1.08); }

/* View transition hint moved from inline HTML */
@view-transition { navigation: auto; }

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #0891b2;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0891b2;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Improved print styles */
@media print {
  .whatsapp-float,
  #loading-screen,
  nav {
    display: none !important;
  }
  
  .section-professional {
    page-break-inside: avoid;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Performance: Contain layout */
.card-professional,
.service-icon-wrapper,
.image-overlay {
  contain: layout style paint;
}

/* Course card clickable styles - Sleek & Professional */
.course-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

.course-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(8, 145, 178, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:active {
  transform: translateY(-8px) scale(1.01);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:focus-visible {
  outline: 3px solid #0891b2;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2), 0 24px 48px rgba(8, 145, 178, 0.2);
}

/* Professional email CTA overlay */
.course-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 16px 16px;
  z-index: 2;
  overflow: hidden;
}

.course-card:hover::after {
  height: 60px;
  opacity: 1;
}

/* Email button content */
.course-card .course-email-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  pointer-events: none;
}

.course-card:hover .course-email-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.course-card .course-email-cta svg {
  width: 20px;
  height: 20px;
  animation: emailPulse 2s ease-in-out infinite;
}

@keyframes emailPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* Gradient overlay on hover for premium feel */
.course-card .gradient-accent {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .gradient-accent {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%, #22d3ee 100%);
  box-shadow: 0 8px 16px rgba(8, 145, 178, 0.3);
}

/* Smooth icon animations on hover */
.course-card:hover .gradient-accent svg,
.course-card:hover .service-icon-wrapper {
  transform: scale(1.05) rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional ripple effect on click */
.course-card {
  position: relative;
  overflow: hidden;
}

.course-card .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced card content transitions */
.course-card > div {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.course-card:hover > div {
  transform: translateY(-2px);
}

/* Professional loading state */
.course-card.email-loading {
  pointer-events: none;
  opacity: 0.95;
}

.course-card.email-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(4px);
  z-index: 100;
  border-radius: 16px;
}

.course-card.email-loading .course-email-cta {
  opacity: 0;
}

.course-card.email-loading .course-email-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(8, 145, 178, 0.2);
  border-top-color: #0891b2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 101;
}

.course-card.email-loading .course-email-cta::after {
  content: 'Opening email...';
  position: absolute;
  top: calc(50% + 35px);
  left: 50%;
  transform: translateX(-50%);
  color: #0891b2;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  z-index: 102;
}