
body {
    background-color: #f8fafc;
    color: #1e293b;
    scroll-behavior: smooth;
    overflow-x: hidden;
	opacity: 0;
    transition: opacity 0.8s ease;
    padding-top: 0 !important;
}

body.loaded {
    opacity: 1;
}

.flash-toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 340px;
    padding: 16px 32px;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    animation: toastPop 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards,
               toastFade 5s ease forwards;
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.flash-icon {
    font-size: 22px;
    animation: pulse 1.8s infinite ease-in-out;
}

.flash-toast.success {
    background: rgba(0, 180, 100, 0.15);
    border-color: rgba(0, 255, 140, 0.4);
}

.flash-toast.error {
    background: rgba(200, 0, 0, 0.15);
    border-color: rgba(255, 100, 100, 0.4);
}

.flash-glow {
    position: absolute;
    inset: 0;
    filter: blur(24px);
    opacity: 0.5;
    z-index: 1;
}

.flash-toast.success .flash-glow {
    background: radial-gradient(circle at center, rgba(0,255,180,0.4), transparent 70%);
}

.flash-toast.error .flash-glow {
    background: radial-gradient(circle at center, rgba(255,80,80,0.4), transparent 70%);
}

/* ✨ Animation Effects */
@keyframes toastPop {
    0% { opacity: 0; transform: translateX(-50%) translateY(-40px) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes toastFade {
    0%, 85% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.logo-card {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.logo-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.navbar {
    margin-bottom: 0 !important;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}
.navbar.scrolled {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.navbar-brand span {
    color: white;
}

.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #22c55e !important;
}

.btn-success {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(90deg, #15803d, #16a34a);
    transform: translateY(-2px);
}

.btn-success:hover {
    background: linear-gradient(90deg, #15803d, #16a34a);
}

  .bg-gradient-blue {
    background: linear-gradient(135deg, #0A2342 0%, #2563eb 100%);
  }
  .bg-gradient-green {
    background: linear-gradient(135deg, #007d5e 0%, #22c55e 100%);
  }

  .btn-blue-gradient {
    background: linear-gradient(135deg, #0A2342, #2563eb);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
  }
  .btn-blue-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }

  .btn-green-gradient {
    background: linear-gradient(135deg, #007d5e, #22c55e);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
  }
  .btn-green-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }

  .contest-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .contest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  }

#hero {
    height: 100vh;
}

.hero-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0 20px;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-slide h1, .hero-slide p {
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.text-gradient {
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    transition: 0.3s;
  }

.btn-outline-light:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.carousel {
   margin-top: -70px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .hero-slide h1 {
      font-size: 1.9rem;
    }
    .hero-slide p {
      font-size: 1rem;
    }
}

/* ==== Sections ==== */
section {
    padding: 100px 0;

}

.section-title {
    font-weight: 700;
    color: #14532d;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #16a34a;
     display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==== Features ==== */
.feature-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 15px;
}

/* ==== Timeline ==== */
.timeline {
    position: relative;
    border-right: 3px solid #16a34a;
    margin-right: 40px;
}

.timeline-step {
    margin-bottom: 40px;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    border-radius: 50%;
}

  /* تأثير عند المرور */
  .prize-card {
    transition: all 0.3s ease;
    background: #fff;
  }

  .prize-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  /* تحريك ظهور الكارت */
  [data-animate] {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
  }

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

.timeline {
  position: relative;
  margin-top: 50px;
  padding-right: 50px; /* ✅ زادت المسافة من 25px إلى 50px */
  border-right: 3px solid #198754;
}

.timeline-step {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: flex-start;
  gap: 20px; /* ✅ زادت المسافة بين الأيقونة والمحتوى */
}

.timeline-step::before {
  content: '';
  position: absolute;
  right: -15px; /* ✅ بعيد قليلاً عن النص لإعطاء توازن بصري */
  top: 10px;
  width: 18px;
  height: 18px;
  background-color: #198754;
  border-radius: 50%;
  z-index: 2;
}

.timeline-icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  background-color: #ffffff;
  margin-right: 10px; /* ✅ زيادة المسافة بين الأيقونة والخط */
}

.timeline-content {
  flex: 1;
}

.timeline-step h5 {
  font-weight: 600;
  color: #0f172a;
}

.timeline-step p.text-success {
  font-weight: 500;
}

#prizes {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.prize-card {
  transition: all 0.3s ease;
  background: #fff;
}

.prize-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.prize-icon i {
  background: linear-gradient(90deg, #198754, #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#themes {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.theme-box {
  background: #fff;
  transition: all 0.3s ease;
}

.theme-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.theme-icon i {
  background: linear-gradient(90deg, #198754, #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#about .card {
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
#about .card:hover {
    transform: translateY(-5px);
}
#about p, #about li {
    line-height: 1.8;
    text-align: justify;
}

#contact .form-control {
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.25s ease-in-out;
}
#contact .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.25);
}
#contact .btn-success {
  background: linear-gradient(90deg, #28a745, #007bff);
  border: none;
  transition: all 0.2s ease;
}
#contact .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
#contact .card {
  backdrop-filter: blur(10px);
}

.section-title {
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  position: relative;
}
footer a:hover {
  color: #00e676 !important;
  text-decoration: underline;
}
footer {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #198754, #0d6efd);
  border-radius: 10px;
}

.section-title {
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #198754, #0d6efd);
  border-radius: 10px;
}

.section-title {
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #198754;
  margin: 12px auto 0;
  border-radius: 10px;
}

/* ==== Footer ==== */
footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

footer a {
    color: #22c55e;
    text-decoration: none;
}

/* ==== Animations ==== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].active {
    opacity: 1;
    transform: translateY(0);
}
