/* ===== BASE & RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0f0f;
  --bg-card: rgba(45, 183, 174, 0.03);
  --text: #f0f4f4;
  --text-secondary: #8a9a9a;
  --primary: #2db7ae;
  --primary-light: #4ecdc4;
  --primary-dark: #1a8a83;
  --primary-glow: rgba(45, 183, 174, 0.25);
  --border: rgba(45, 183, 174, 0.15);
  --border-strong: rgba(45, 183, 174, 0.3);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND ===== */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Islamic Geometric Pattern */
.pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0z' fill='none' stroke='%232db7ae' stroke-width='0.5'/%3E%3Cpath d='M40 15L65 40L40 65L15 40L40 15z' fill='none' stroke='%232db7ae' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='10' fill='none' stroke='%232db7ae' stroke-width='0.5'/%3E%3Cpath d='M40 5L40 15M40 65L40 75M5 40L15 40M65 40L75 40' stroke='%232db7ae' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: pattern-drift 60s linear infinite;
}

@keyframes pattern-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* Scanning Light Effect */
.bg-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 183, 174, 0.03), transparent);
  animation: scan-horizontal 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes scan-horizontal {
  0%, 100% { left: -50%; }
  50% { left: 100%; }
}

/* Gradient Glow */
.gradient-glow {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, var(--primary-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(45, 183, 174, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 0% 50%, rgba(45, 183, 174, 0.05) 0%, transparent 30%),
    radial-gradient(ellipse at 100% 50%, rgba(45, 183, 174, 0.05) 0%, transparent 30%);
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Vignette */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%);
}

/* Floating Shapes - Aesthetic */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.15;
  animation: float-rotate 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: -60px;
  animation-delay: -4s;
  animation-duration: 25s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 5%;
  animation-delay: -8s;
  animation-duration: 22s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 20%;
  animation-delay: -12s;
  animation-duration: 18s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  right: 10%;
  animation-delay: -6s;
  animation-duration: 28s;
}

@keyframes float-rotate {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(20px, -30px) rotate(90deg) scale(1.05);
  }
  50% {
    transform: translate(-15px, 20px) rotate(180deg) scale(0.95);
  }
  75% {
    transform: translate(25px, 15px) rotate(270deg) scale(1.02);
  }
}

/* Soft Particles */
.soft-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 15s ease-in-out infinite;
}

@keyframes particle-float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
    transform: translateY(-100px) scale(1);
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.5);
  }
}

/* ===== DECORATIVE FRAME ===== */
.frame {
  position: fixed;
  inset: 20px;
  pointer-events: none;
  z-index: 1;
}

.frame-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
  animation: corner-pulse 4s ease-in-out infinite;
}

.frame-tl { animation-delay: 0s; }
.frame-tr { animation-delay: 1s; }
.frame-br { animation-delay: 2s; }
.frame-bl { animation-delay: 3s; }

@keyframes corner-pulse {
  0%, 100% { 
    opacity: 0.4;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% { 
    opacity: 0.8;
    filter: drop-shadow(0 0 8px var(--primary-glow));
  }
}

.frame-tl {
  top: 0; left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}

.frame-tr {
  top: 0; right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}

.frame-bl {
  bottom: 0; left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.frame-br {
  bottom: 0; right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* Decorative Lines */
.decor-line {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
  z-index: 1;
  animation: line-pulse 4s ease-in-out infinite;
}

@keyframes line-pulse {
  0%, 100% { 
    opacity: 0.3;
    width: 150px;
  }
  50% { 
    opacity: 0.7;
    width: 180px;
  }
}

.decor-top { top: 40px; }

/* ===== CONTAINER ===== */
.container {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  text-align: center;
  gap: 0.9rem;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  animation: fadeInUp 0.8s ease-out 0.1s both, badge-pulse 3s ease-in-out infinite 1s;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 20px -5px var(--primary-glow);
  }
}

.badge-icon {
  font-size: 0.6rem;
  opacity: 0.7;
  animation: icon-twinkle 2s ease-in-out infinite;
}

@keyframes icon-twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== TITLE ===== */
.title {
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
  display: block;
}

.title-accent {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 40px var(--primary-glow);
  animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% {
    text-shadow: 0 0 40px var(--primary-glow);
  }
  50% {
    text-shadow: 0 0 60px var(--primary-glow), 0 0 80px rgba(45, 183, 174, 0.15);
  }
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong));
}

.divider-line:last-child {
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.divider-icon {
  color: var(--primary);
  font-size: 0.75rem;
  opacity: 0.8;
  animation: divider-spin 8s linear infinite;
}

@keyframes divider-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== SUBTITLE ===== */
.subtitle {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== COUNTDOWN ===== */
.countdown-wrapper {
  animation: fadeInUp 0.8s ease-out 0.5s both;
  margin-top: 0.5rem;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  min-width: 70px;
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.countdown-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 183, 174, 0.08), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.countdown-value {
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  animation: value-glow 2s ease-in-out infinite;
}

@keyframes value-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 10px rgba(45, 183, 174, 0.3); }
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.countdown-sep {
  font-family: 'Amiri', Georgia, serif;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 1.5rem;
  animation: sep-blink 1s ease-in-out infinite;
}

@keyframes sep-blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.2; }
}

.countdown-box {
  animation: box-border-glow 3s ease-in-out infinite;
}

.countdown-item:nth-child(1) .countdown-box { animation-delay: 0s; }
.countdown-item:nth-child(3) .countdown-box { animation-delay: 0.75s; }
.countdown-item:nth-child(5) .countdown-box { animation-delay: 1.5s; }
.countdown-item:nth-child(7) .countdown-box { animation-delay: 2.25s; }

@keyframes box-border-glow {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--border-strong); }
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(45, 183, 174, 0.08);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px -8px var(--primary-glow);
}

.social-link:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.6s both, social-float 4s ease-in-out 1.5s infinite; }
.social-link:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.65s both, social-float 4s ease-in-out 1.7s infinite; }
.social-link:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.7s both, social-float 4s ease-in-out 1.9s infinite; }
.social-link:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.75s both, social-float 4s ease-in-out 2.1s infinite; }
.social-link:nth-child(5) { animation: fadeInUp 0.8s ease-out 0.8s both, social-float 4s ease-in-out 2.3s infinite; }

@keyframes social-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ===== FOOTER ===== */
.footer {
  animation: fadeInUp 0.8s ease-out 0.7s both;
  margin-top: 1.25rem;
}

.copyright {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  font-weight: 300;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.copyright::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  animation: copyright-line 5s ease-in-out infinite;
}

@keyframes copyright-line {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 0.4; }
}

.copyright .brand-name {
  color: var(--primary-light);
  font-weight: 500;
  animation: brand-shimmer 3s ease-in-out infinite;
}

@keyframes brand-shimmer {
  0%, 100% { 
    color: var(--primary-light);
    text-shadow: 0 0 0 transparent;
  }
  50% { 
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
  }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
    gap: 0.8rem;
  }

  .title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .subtitle {
    font-size: 0.85rem;
    max-width: 90%;
    line-height: 1.7;
  }

  .badge {
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1.25rem;
    gap: 0.75rem;
  }

  .countdown {
    gap: 0.4rem;
  }

  .countdown-box {
    padding: 0.6rem 0.8rem;
    min-width: 55px;
  }

  .countdown-value {
    font-size: 1.75rem;
  }

  .countdown-label {
    font-size: 0.55rem;
  }

  .countdown-sep {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .frame {
    inset: 10px;
  }

  .frame-corner {
    width: 20px;
    height: 20px;
  }

  .decor-line {
    width: 80px;
  }

  .decor-top { top: 20px; }

  .divider-line {
    width: 35px;
  }

  .divider-icon {
    font-size: 0.6rem;
  }

  .title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .subtitle {
    font-size: 0.8rem;
    max-width: 95%;
    line-height: 1.6;
  }

  .badge {
    padding: 0.45rem 1rem;
    font-size: 0.65rem;
    gap: 0.5rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .copyright {
    font-size: 0.6rem;
  }

  .footer {
    margin-top: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .container {
    padding: 1.5rem 1rem;
    gap: 0.6rem;
  }

  .countdown-sep {
    display: none;
  }

  .countdown {
    gap: 0.3rem;
  }

  .countdown-box {
    min-width: 48px;
    padding: 0.5rem 0.6rem;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .title {
    font-size: 1.85rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }
}
