:root {
  --primary-color: #00dc73;
  --secondary-color: #d9d9d9;
  --dark-color: #0e0e0e;
  --dark2-color: linear-gradient(to bottom right, #006400, #4effa1);
  --light-color: #f8f9fa;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--dark-color);
  color: var(--light-color);
  overflow-x: hidden;
  padding-top: 70px;
}


.text-gradient {
  background: var(--primary-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}


.navbar {
  transition: all 0.3s ease;
  padding: 15px 0;
  background-color: rgba(6, 4, 3, 0.9) !important;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
  right: auto;
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -70px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/Banner.png') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: -1;
}


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

.logo-img {
  width: 200px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.main-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#typed-text {
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 2px 8px #003a1e33;
  min-height: 4rem;
  font-size: 1.8rem;
}

.typed-subtitle {
  color: #eafff3;
  text-shadow: 0 2px 8px #0006;
  min-height: 2.2em;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  direction: rtl;
}

.play-btn {
  background: var(--primary-color);
  border: none;
  padding: 0.8rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
}

.play-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  color: white;
}

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

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.bg-dark2 {
  background-color: var(--dark2-color);
}

.BetterM2jd {
  color: var(--primary-color);
}

/* Stats Cards */
.stats-card {
  background: linear-gradient(135deg, #0e0e0e 60%, #006400 80%, #4effa1 100%);
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px #00dc7320;
  color: #fff;
}

.stats-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #0e0e0e 40%, #006400 70%, #4effa1 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.stats-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Feature Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: white;
}

.feature-icon.bg-primary {
  background: linear-gradient(45deg, var(--primary-color), #8a2be2);
}

.feature-icon.bg-secondary {
  background: linear-gradient(45deg, var(--secondary-color), #00bfff);
}

.feature-icon.bg-success {
  background: linear-gradient(45deg, #00c853, #00e676);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  opacity: 0.8;
}

/* Gallery */
.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item img {
  transition: all 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: white;
}

/* Discord Widget */
.discord-widget {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  color: #b2f5d6;
  padding: 3rem 0 1rem 0;
}

footer h5 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

footer ul li {
  margin-bottom: 0.7rem;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

footer ul li a:hover {
  color: white;
  padding-right: 10px;
}

.social-icons a {
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px);
}

/* Animations */
.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
  .main-title {
    font-size: 2.8rem;
  }

  #typed-text {
    font-size: 1.5rem;
  }

  section {
    padding: 70px 0;
  }
}

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

  #typed-text {
    font-size: 1.2rem;
    min-height: 3rem;
  }

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

  .stats-number {
    font-size: 2rem;
  }

  .stats-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 1.8rem;
  }

  .logo-img {
    width: 150px;
  }

  .play-btn {
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
  }

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

.modern-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 0.5rem;
  direction: rtl;
}

.modern-gallery-card {
  background: rgba(0, 220, 115, 0.07);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px #00dc7340, 0 2px 8px #0002;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(.21, 1.02, .73, 1), box-shadow 0.3s;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modern-gallery-card:hover {
  transform: scale(1.045) translateY(-8px) rotateZ(-1deg);
  box-shadow: 0 16px 48px #00dc7360, 0 4px 16px #0004;
}

.modern-gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 1.5rem;
  transition: filter 0.4s, transform 0.4s;
  box-shadow: 0 2px 12px #0002;
}

.modern-gallery-card:hover .modern-gallery-img {
  filter: brightness(0.8) blur(1.5px);
  transform: scale(1.07);
}

.gallery-zoom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: linear-gradient(90deg, #00dc73 0%, #00bfae 100%);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 4px 16px #00dc7360;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  outline: none;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

.modern-gallery-card:hover .gallery-zoom-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
}

.gallery-zoom-btn:hover {
  background: linear-gradient(90deg, #00bfae 0%, #00dc73 100%);
}

.modern-gallery-card:hover .gallery-zoom-btn {
  pointer-events: auto;
}

/* Scroll-in Animation */
.modern-gallery-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(.21, 1.02, .73, 1), transform 0.8s cubic-bezier(.21, 1.02, .73, 1);
}

.modern-gallery-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1200px) {
  .modern-gallery-img {
    height: 200px;
  }
}

@media (max-width: 992px) {
  .modern-gallery-img {
    height: 170px;
  }
}

@media (max-width: 768px) {
  .modern-gallery-img {
    height: 140px;
  }

  .modern-gallery-card {
    min-height: 140px;
  }
}

@media (max-width: 576px) {
  .modern-gallery-img {
    height: 110px;
  }

  .modern-gallery-card {
    min-height: 110px;
  }

  .modern-gallery-grid {
    gap: 1rem 0.2rem;
  }
}

.masonry-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-auto-rows: 140px;
  gap: 1.5rem;
  direction: rtl;
}

.masonry-item {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: visible;
}

.masonry-item-lg {
  grid-row: span 2;
  grid-column: span 2;
}

.masonry-item-md {
  grid-row: span 2;
}

.masonry-item-sm {
  grid-row: span 1;
}

.masonry-item img.modern-gallery-img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px #00dc7320, 0 2px 8px #0002;
  transition: filter 0.4s, transform 0.4s;
}

@media (max-width: 992px) {
  .masonry-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-auto-rows: 100px;
  }

  .masonry-item-lg,
  .masonry-item-md {
    grid-row: span 1;
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .masonry-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 80px;
    gap: 0.7rem;
  }

  .masonry-item img.modern-gallery-img {
    border-radius: 1rem;
  }
}

.split-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 0.7fr;
  gap: 1.5rem;
  direction: rtl;
}

.split-gallery-big {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
  min-height: 340px;
  display: flex;
}

.split-gallery-side {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-gallery-medium,
.split-gallery-small {
  min-height: 140px;
  flex: 1 1 0;
  display: flex;
}

.split-gallery-wide {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  min-height: 120px;
  display: flex;
}

.split-gallery-grid .modern-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

@media (max-width: 992px) {
  .split-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .split-gallery-big,
  .split-gallery-side,
  .split-gallery-wide {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .split-gallery-side {
    flex-direction: row;
    gap: 1rem;
  }

  .split-gallery-medium,
  .split-gallery-small {
    min-height: 100px;
  }

  .split-gallery-wide {
    min-height: 90px;
  }
}

@media (max-width: 576px) {
  .split-gallery-grid {
    gap: 0.7rem;
  }

  .split-gallery-big,
  .split-gallery-medium,
  .split-gallery-small,
  .split-gallery-wide {
    min-height: 70px;
  }

  .split-gallery-grid .modern-gallery-img {
    border-radius: 1rem;
  }
}

.custom-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  direction: rtl;
}

.custom-gallery-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.custom-gallery-big {
  min-height: 340px;
  width: 100%;
  display: flex;
}

.custom-gallery-bottom-row {
  display: flex;
  gap: 1.5rem;
}

.custom-gallery-small {
  min-height: 120px;
  flex: 1 1 0;
  display: flex;
}

.custom-gallery-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.custom-gallery-medium {
  min-height: 160px;
  flex: 1 1 0;
  display: flex;
}

.custom-gallery-grid .modern-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

@media (max-width: 992px) {
  .custom-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .custom-gallery-left,
  .custom-gallery-right {
    flex-direction: row;
    gap: 1rem;
  }

  .custom-gallery-big,
  .custom-gallery-medium,
  .custom-gallery-small {
    min-height: 100px;
  }

  .custom-gallery-bottom-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .custom-gallery-grid {
    gap: 0.7rem;
  }

  .custom-gallery-big,
  .custom-gallery-medium,
  .custom-gallery-small {
    min-height: 70px;
  }

  .custom-gallery-grid .modern-gallery-img {
    border-radius: 1rem;
  }
}

/* About Us Section Styles */
#about-us {
  background: none;
}

.team-card {
  background: rgba(10, 20, 20, 0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px #00dc7320;
  border: 1.5px solid #00dc7380;
  transition: 0.3s box-shadow, 0.3s transform, 0.3s border-color;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  box-shadow: 0 8px 32px #00dc7340, 0 2px 8px #0002;
  border-color: #00dc73;
  transform: translateY(-8px) scale(1.04);
}

.team-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00dc73;
  box-shadow: 0 2px 12px #00dc7340;
  margin-bottom: 1rem;
  background: #222;
}

.discord-user {
  color: #00dc73;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.team-role {
  color: #b2f5d6;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

#about-us .section-title {
  font-family: 'Tajawal', Cairo, sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

#about-us p.text-muted {
  color: #b2f5d6 !important;
}

@media (max-width: 768px) {
  .team-img {
    width: 80px;
    height: 80px;
  }

  .team-card {
    padding: 1.2rem 0.5rem;
  }
}