/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #152a4a;
  --navy-600: #1a2d50;
  --gold-400: #e8c860;
  --gold-500: #c8a850;
  --gold-600: #b8983f;
  --gold-glow: rgba(200, 168, 80, 0.25);
  --text-primary: #f0efe8;
  --text-secondary: #a0aabb;
  --text-muted: #6b7a90;
  --card-bg: rgba(15, 31, 56, 0.65);
  --card-border: rgba(200, 168, 80, 0.12);
  --font-family: 'Tajawal', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ===== Particles ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--gold-400);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) scale(0.4);
    opacity: 0;
  }
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== Logo ===== */
.logo-wrapper {
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.logo {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(200, 168, 80, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-ar {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero Illustration ===== */
.hero-illustration {
  position: relative;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  border-radius: 50%;
  animation: gentlePulse 4s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ===== Heading ===== */
.heading {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--text-primary) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.heading-icon {
  display: inline-block;
  animation: spin 4s linear infinite;
  -webkit-text-fill-color: initial;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Description ===== */
.description {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== Progress Bar ===== */
.progress-wrapper {
  width: 100%;
  max-width: 400px;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--navy-600);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progressGrow 3s ease-out 1.5s forwards, shimmer 2s ease-in-out infinite;
}

@keyframes progressGrow {
  0% { width: 0%; }
  100% { width: 72%; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.progress-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Info Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-500);
  box-shadow: 0 8px 30px rgba(200, 168, 80, 0.15);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.contact > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(200, 168, 80, 0.12);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 168, 80, 0.15);
}

/* ===== Footer ===== */
.footer {
  animation: fadeInUp 1s ease-out 1.4s both;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1.25rem;
  }

  .heading {
    font-size: 1.8rem;
  }

  .description {
    font-size: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-img {
    width: 200px;
    height: 200px;
  }

  .logo {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-img {
    width: 160px;
    height: 160px;
  }
}
