:root {
  --brand-primary: #2c4bff;
  --brand-secondary: #0f172a;
  --brand-accent: #16a34a;
  --brand-muted: #6b7280;
  --brand-surface: #f8fafc;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  color: var(--brand-secondary);
  background-color: var(--brand-surface);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-primary);
}

.page-hero {
  background: radial-gradient(120% 120% at 10% 10%, rgba(44, 75, 255, 0.15), transparent),
              radial-gradient(120% 120% at 90% 20%, rgba(22, 163, 74, 0.12), transparent),
              var(--brand-surface);
  border: 1px solid rgba(12, 10, 29, 0.06);
}

.hero-highlight {
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.case-card img {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  object-fit: cover;
}

.card {
  border-radius: 0.75rem;
}

.badge.bg-primary-subtle {
  background-color: rgba(44, 75, 255, 0.12) !important;
  color: var(--brand-primary) !important;
}

.badge.bg-secondary-subtle {
  background-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--brand-secondary) !important;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1080;
}

.feedback-widget .btn {
  min-width: 140px;
}

.feedback-widget [data-feedback-status] {
  align-self: center;
}

.form-control.is-invalid, .form-select.is-invalid {
  border-color: #ef4444;
}

.form-control.is-valid, .form-select.is-valid {
  border-color: var(--brand-accent);
}

[data-validation-summary].show {
  display: block;
}

.form-label {
  color: var(--brand-secondary);
}

.btn-ghost {
  border-color: transparent;
  color: var(--brand-secondary);
}

.btn-ghost:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
  background-color: rgba(15, 23, 42, 0.06);
}

/* ============ MODERN HERO SECTION ============ */

.hero-modern {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, 10%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: float1 15s ease-in-out infinite;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
  animation: float2 12s ease-in-out infinite;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 20%;
  animation: float3 18s ease-in-out infinite;
}

.hero-shape-4 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 5%;
  animation: float1 10s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-5deg); }
  75% { transform: translate(30px, 10px) rotate(3deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, -20px) scale(1.05); }
  66% { transform: translate(15px, 10px) scale(0.95); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(10deg); }
}

/* Hero text animations */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: heroFadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  animation: heroFadeInUp 0.8s ease-out 0.1s both;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 500px;
  animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: heroFadeInUp 0.8s ease-out 0.3s both;
}

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

/* Hero sidebar card */
.hero-sidebar {
  animation: heroSlideInRight 0.8s ease-out 0.4s both;
}

@keyframes heroSlideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* ============ FEATURE CARDS MODERN ============ */

.feature-card-modern {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

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

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.4s ease;
}

.feature-icon-wrapper.icon-blue {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4f46e5;
}

.feature-icon-wrapper.icon-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.feature-icon-wrapper.icon-amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.feature-card-modern:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

/* ============ GIFT CARD PROMO ============ */

.gift-promo {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.gift-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: promoGlow 6s ease-in-out infinite alternate;
}

@keyframes promoGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-20px, 20px); }
}

.gift-icon-float {
  animation: giftBounce 3s ease-in-out infinite;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ============ COURSE CARDS MODERN ============ */

.course-card-modern {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card-modern:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.course-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card-modern:hover .course-card-image img {
  transform: scale(1.1);
}

.course-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
}

.course-card-body {
  padding: 1.5rem;
}

.course-card-price {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ NEWSLETTER MODERN ============ */

.newsletter-modern {
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #4c1d95 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============ REVIEWS MODERN ============ */

.review-card-modern {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.review-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* ============ SECTION HEADERS ============ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-modern {
    min-height: auto;
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-shapes .hero-shape {
    display: none;
  }

  .gift-promo {
    padding: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
