* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  color: #fff;
  font-family: "Space Mono", monospace;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-container {
  width: 100%;
  min-height: 100dvh;
  background: url("assets/bg.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@supports (min-height: 100svh) {
  .page-container {
    min-height: 100svh;
  }
}

.header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 1.2px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav a:hover {
  opacity: 0.7;
}

.main-section {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8rem 4rem 3rem;
  gap: 2rem;
  width: 100%;
  min-height: 100%;
}

.text-content {
  flex: 1;
  max-width: 50%;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 1.2s ease forwards 0.5s;
}

.main-title {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.main-title .italic {
  font-style: italic;
}

.subtext {
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  color: #ddd;
  max-width: 420px;
  line-height: 1.6;
}

.media-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 1.2s ease forwards 1s;
}

/* Arabic Heading */
.arabic-heading {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  direction: rtl;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  background: linear-gradient(90deg, #fff, #c2e9fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255,255,255,0.25);
}

/* Telegram Banner */
.telegram-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.telegram-banner:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.telegram-banner a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.5px;
}

.telegram-banner svg {
  width: 28px;
  height: 28px;
  color: #fff;
  flex-shrink: 0;
}

.promo-card {
  width: clamp(240px, 40vw, 420px);
  border-radius: 16px;
  max-width: 90%;
  height: auto;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 2rem;
}

.social-links a {
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: clamp(42px, 6vw, 52px);
  height: clamp(42px, 6vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

.social-links svg {
  width: 65%;
  height: 65%;
  display: block;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.5s;
}

/* -----------  MOBILE  ----------- */
@media (max-width: 900px) {
  .header {
    padding: 0.6rem 1rem;
    justify-content: space-between;
  }

  .nav {
    position: static;
    transform: none;
  }

  .main-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 7rem 1rem 1rem;
    gap: 1rem;
    height: 100svh;
    min-height: 100svh;
  }

  .text-content {
    max-width: 90%;
    animation-delay: 0.3s;
    margin-top: 1.5rem;
  }

  .main-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .subtext {
    font-size: clamp(0.8rem, 3vw, 1rem);
    max-width: 90%;
    margin: 0 auto;
  }

  .media-content {
    width: 100%;
    animation-delay: 0.7s;
    margin-top: 0.5rem;
    flex-grow: 0;
  }

  .arabic-heading {
    font-size: clamp(1rem, 4vw, 1.4rem);
    margin-bottom: 0.5rem;
  }

  .telegram-banner {
    width: 90%;
    margin-bottom: 1rem;
  }

  .telegram-banner svg {
    width: 22px;
    height: 22px;
  }

  .telegram-banner a {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  .promo-card {
    width: 70%;
    max-width: 260px;
    margin-bottom: 0.4rem;
  }

  .social-links {
    gap: 0.6rem;
    padding-bottom: 0.4rem;
  }

  .social-links a {
    width: 42px;
    height: 42px;
  }

  .social-links svg {
    width: 58%;
    height: 58%;
  }
}
