/**
 * Sales Diploma - Main Stylesheet
 * Motors Egypt - 2026
 */

/* ==================== CSS Variables ==================== */
:root {
  --me-navy: #0b1f3a;
  --me-red: #e10600;
  --me-red-hover: #c50500;
  --me-soft: #f5f7fb;
  --me-gray: #6c757d;
}

/* ==================== Global Styles ==================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== Utility Classes ==================== */
.bg-me-navy { 
  background: var(--me-navy) !important; 
}

.text-me-navy {
  color: var(--me-navy) !important;
}

.text-me-red { 
  color: var(--me-red) !important; 
}

.btn-me-red {
  background: var(--me-red) !important;
  color: #fff !important;
  border: 1px solid var(--me-red) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-me-red:hover {
  background: var(--me-red-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
}

.btn-me-red:active {
  transform: translateY(0);
}

/* ==================== Hero Section ==================== */
.hero-me {
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(225, 6, 0, 0.18), transparent 60%),
    linear-gradient(120deg, rgba(11, 31, 58, 1) 0%, rgba(11, 31, 58, 0.92) 55%, rgba(11, 31, 58, 0.80) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-me::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
  background-size: 50px 50px;
  opacity: 0.1;
}

.badge-me {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-bar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
}

/* ==================== Components ==================== */
.dot {
  width: 10px;
  height: 10px;
  background: var(--me-red);
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 10px;
  animation: pulse 2s ease-in-out infinite;
}

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

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

/* ==================== List Styles ==================== */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  padding: 0.5rem 0;
  position: relative;
  padding-right: 1.8rem;
}

.list-check li::before {
  content: "✓";
  color: var(--me-red);
  position: absolute;
  right: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ==================== Floating WhatsApp Button ==================== */
.wa-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  animation: bounce 2s ease-in-out infinite;
}

.wa-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ==================== Form Styles ==================== */
.form-control:focus,
.form-select:focus {
  border-color: var(--me-red);
  box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.15);
}

/* ==================== Card Styles ==================== */
.card {
  transition: all 0.3s ease;
}

/* ==================== Accordion Styles ==================== */
.accordion-button:not(.collapsed) {
  background-color: var(--me-soft);
  color: var(--me-navy);
}

.accordion-button:focus {
  border-color: var(--me-red);
  box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.15);
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 768px) {
  .hero-me {
    min-height: auto;
    padding: 3rem 0;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 12px;
    width: 50px;
    height: 50px;
    justify-content: center;
  }
}

/* ==================== Loading States ==================== */
.btn .spinner-border {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* ==================== Alert Styles ==================== */
.alert {
  border-radius: 0.5rem;
  border: none;
}

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

/* ==================== Print Styles ==================== */
@media print {
  .navbar,
  .wa-float,
  .btn,
  footer {
    display: none !important;
  }
}
