/* Custom CSS for Arabic Marathon Website */

* {
  font-family: "Cairo", sans-serif;
}

body {
  direction: rtl;
  text-align: right;
}

/* Header Styles */
.navbar {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.zero-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url("../images/hero.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.btn-register {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  border: none;
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-register:hover {
  background: linear-gradient(135deg, #ff6b00, #ff4500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  color: white;
}




/* About Section */
.about-section {
  background: #ffffff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 3rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
}

/* Races Section */
.races-section {
  background: #f8f9fa;
}

.race-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.race-card:hover {
  transform: translateY(-8px);
}

.race-image {
  height: auto;
  width: 100%;
  
}

.race-image img {
  width: 100%;
  height: auto;
  
}

.race-card:hover .race-image img {
    transform: scale(1.05);
    transition: transform .3s ease;
}

.btn-details {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-details:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-soon {
    background: linear-gradient(135deg, #ff8e00, #ffb200);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Footer */

.footer {
  text-align: center;
  padding: 20px;
  background: #334;
  color: white;
}

body {
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
}

.footer {
    background: linear-gradient(135deg, #4a5fc1 0%, #6b73d9 50%, #8b7ee8 100%);
    color: white;
    padding: 40px 0 20px;
    min-height: 300px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Right Section */
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo-section .logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.logo h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-english {
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-top: 5px;
}

.weather-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.weather-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.weather-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 1.8rem;
    color: #fff;
    opacity: 0.9;
}

.weather-value {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Left Section */
.footer-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: right;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.payment-icon {
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    justify-content: center;
}

.payment-icon:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.payment-icon i {
    font-size: 1.2rem;
}

.apple-pay {
    background: #000;
    color: white;
}

.apple-pay i {
    font-size: 1.4rem;
}

.visa {
    background: #1a1f71;
    color: white;
}

.visa i {
    font-size: 1.6rem;
}

.mastercard {
    background: #eb001b;
    color: white;
}

.mastercard i {
    font-size: 1.6rem;
}

.mada {
    background: #00a651;
    color: white;
    font-size: 0.8rem;
}

.mada i {
    font-size: 1.1rem;
}

/* Bottom Section */
.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.social-icon.tiktok:hover {
    background: #000;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-icon.twitter:hover {
    background: #000;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right, .footer-left {
        flex: none;
        width: 100%;
    }
    
    .weather-info {
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-text {
        text-align: center;
    }
    
    .logo h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 15px;
    }
    
    .logo h2 {
        font-size: 1.8rem;
    }
    
    .main-text {
        font-size: 1rem;
    }
    
    .payment-methods {
        gap: 10px;
    }
    
    .payment-icon {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .payment-icon i {
        font-size: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .weather-icon {
        font-size: 1.5rem;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weather-item {
    animation: fadeInUp 0.6s ease forwards;
}

.weather-item:nth-child(2) {
    animation-delay: 0.2s;
}

.payment-icon {
    animation: fadeInUp 0.6s ease forwards;
}

.payment-icon:nth-child(2) { animation-delay: 0.1s; }
.payment-icon:nth-child(3) { animation-delay: 0.2s; }
.payment-icon:nth-child(4) { animation-delay: 0.3s; }

.social-icon {
    animation: fadeInUp 0.6s ease forwards;
}

.social-icon:nth-child(2) { animation-delay: 0.1s; }
.social-icon:nth-child(3) { animation-delay: 0.2s; }

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .race-content {
    padding: 1.5rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .zero-brand {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .btn-register {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .race-image {
    height: auto;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff8c00, #28a745);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff6b00, #20c997);
}
