/* الإعدادات العامة */
body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: radial-gradient(circle at center, #082328, #021214);
  color: #fdd77a;
  text-align: center;
  overflow-x: hidden;
}

/* شاشة البداية */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #021214, #000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  animation: fadeOut 1s ease-out 4s forwards;
}

.intro-sun {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.6), rgba(255, 180, 0, 0));
  animation: introPulse 3s ease-in-out infinite;
  filter: blur(3px);
}

.intro-logo {
  font-size: 2.2rem;
  color: #fdd77a;
  margin-top: 30px;
  text-shadow: 0 0 15px rgba(255, 220, 120, 0.7);
}

.intro-text {
  color: #ccc;
  margin-top: 20px;
  animation: blink 1.5s infinite;
}

/* الأنيميشن */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes introPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0.4;
  }
}

/* الحركة العامة */
.fade-in {
  animation: fadeInSmooth 1.5s ease-in forwards;
  opacity: 0;
}
@keyframes fadeInSmooth {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* رمز ماعت */
.maat-symbol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.maat-sun {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 60, 0.4), rgba(255, 180, 20, 0));
  animation: pulseSun 5s ease-in-out infinite;
  z-index: 0;
}

.maat-icon {
  z-index: 2;
  animation: rotateGlow 14s linear infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 100, 0.6));
}

.maat-scale {
  font-size: 1.6rem;
  color: #ffd77a;
  margin-top: 8px;
  text-shadow: 0 0 10px rgba(255, 215, 100, 0.4);
  animation: scaleBalance 3s ease-in-out infinite alternate;
}

.maat-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #f8e49a;
  text-shadow: 0 0 5px rgba(255, 215, 100, 0.6);
}

/* الحركات */
@keyframes rotateGlow {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes pulseSun {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes scaleBalance {
  0% { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}

/* Fade عند التمرير */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* الأقسام */
.portal {
  background: rgba(8, 35, 40, 0.7);
  border-radius: 20px;
  padding: 50px 25px;
  max-width: 650px;
  margin: 60px auto;
  box-shadow: 0 0 25px rgba(255, 215, 100, 0.15);
  transition: transform 0.3s, opacity 0.6s ease-in-out;
  opacity: 0.95;
}

.portal:hover {
  transform: scale(1.02);
  opacity: 1;
}

.portal h2 {
  color: #ffd97a;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 215, 100, 0.4);
}

.portal p {
  color: #ddd;
  line-height: 1.7;
  font-size: 1rem;
}

.portal-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.portal-form input {
  padding: 12px 18px;
  width: 260px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
}

.portal-form button, .btn {
  margin-top: 20px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #d4a648, #fdd77a);
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  color: #052b2f;
  transition: 0.3s;
}

.portal-form button:hover, .btn:hover {
  transform: scale(1.05);
}

/* الفوتر */
.footer {
  margin-top: 60px;
  font-size: 14px;
  color: #999;
  padding-bottom: 20px;
}
