/* ══════════════════════════════════════════
   Avexa Travels — Coming Soon Page
   Theme: dark luxury travel, gold accent #c9a84c
   Fonts: Playfair Display · DM Sans
   ══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #030201;
  color: #f5f0e8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Particle Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Background Slideshow ── */
.cs-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.cs-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.cs-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ── Overlay ── */
.cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.06) 0%, transparent 70%),
    linear-gradient(
      to bottom,
      rgba(3,2,1,0.55) 0%,
      rgba(3,2,1,0.40) 40%,
      rgba(3,2,1,0.70) 80%,
      rgba(3,2,1,0.88) 100%
    );
  pointer-events: none;
}

/* ── Main Layout ── */
.cs-main {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 48px;
  text-align: center;
  overflow-y: auto;
}

/* ── Logo ── */
.cs-logo {
  display: inline-block;
  margin-bottom: 28px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

.cs-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

/* ── Decorative Rule ── */
.cs-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}

.cs-rule-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9a84c88, transparent);
}

.cs-rule-diamond {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  animation: csDiamondSpin 6s linear infinite;
}

/* ── Eyebrow ── */
.cs-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 18px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.28s forwards;
}

/* ── Main Title ── */
.cs-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: csRise 1s cubic-bezier(0.22,1,0.36,1) 0.38s forwards;
}

.cs-title-line {
  color: #f5f0e8;
}

.cs-title-accent {
  color: #c9a84c;
  font-style: italic;
  position: relative;
  display: inline-block;
}

.cs-title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a84c, transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: csUnderline 1s cubic-bezier(0.22,1,0.36,1) 1.2s forwards;
}

/* ── Tagline ── */
.cs-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: #c8b48a;
  margin-bottom: 40px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}

/* ── Countdown ── */
.cs-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.62s forwards;
}

.cs-count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 8px;
  padding: 14px 18px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.cs-count-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.6), transparent);
}

.cs-count-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #c9a84c;
  line-height: 1;
  display: block;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}

.cs-count-num.flip {
  animation: csFlip 0.35s cubic-bezier(0.22,1,0.36,1);
}

.cs-count-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7a60;
  margin-top: 4px;
  display: block;
}

.cs-count-sep {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #c9a84c;
  opacity: 0.5;
  line-height: 1;
  align-self: flex-start;
  margin-top: 10px;
  animation: csBlink 2s step-start infinite;
}

/* ── Progress Bar ── */
.cs-progress-wrap {
  width: min(520px, 90%);
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.72s forwards;
}

.cs-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #8a6a28, #c9a84c, #e8d090);
  border-radius: 99px;
  width: 0%;
  transition: width 1.8s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}

.cs-progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 8px;
  height: 8px;
  background: #e8d090;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,168,76,0.8);
}

.cs-progress-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #8a7a60;
  margin-bottom: 40px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.78s forwards;
}

/* ── Email Form ── */
.cs-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(500px, 90%);
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow:
    0 0 0 0 rgba(201,168,76,0),
    0 8px 32px rgba(0,0,0,0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.86s forwards;
}

.cs-form:focus-within {
  border-color: rgba(201,168,76,0.6);
  box-shadow:
    0 0 0 3px rgba(201,168,76,0.12),
    0 8px 32px rgba(0,0,0,0.5);
}

.cs-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 14px;
  gap: 10px;
}

.cs-input-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #8a7a60;
}

.cs-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #f5f0e8;
  padding: 16px 0;
}

.cs-input::placeholder {
  color: #6a5e4c;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c9a84c;
  color: #0d0d0d;
  border: none;
  padding: 0 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cs-btn:hover {
  background: #b8943a;
}

.cs-btn:active {
  transform: scale(0.98);
}

.cs-btn.loading .cs-btn-text {
  opacity: 0.5;
}

.cs-btn-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #0d0d0d;
  transition: transform 0.2s ease;
}

.cs-btn:hover .cs-btn-arrow {
  transform: translateX(3px);
}

/* ── Form Message ── */
.cs-form-msg {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 1.2em;
  margin-bottom: 36px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-form-msg.visible   { opacity: 1; }
.cs-form-msg.success   { color: #7ec88a; }
.cs-form-msg.error     { color: #e07070; }

/* ── Social Links ── */
.cs-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 1s forwards;
}

.cs-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  color: #c9a84c;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cs-social-link svg {
  width: 16px;
  height: 16px;
}

.cs-social-link:hover {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-2px);
}

/* ── Developer Credit ── */
.cs-dev-credit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-top: 32px;
  opacity: 0;
  animation: csRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.9s forwards;
}

.cs-dev-link {
  color: #c9a84c;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.cs-dev-link:hover {
  color: #e8d090;
  opacity: 0.85;
}

/* ══════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════ */

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

@keyframes csUnderline {
  to { transform: scaleX(1); }
}

@keyframes csDiamondSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes csFlip {
  0%   { transform: translateY(0);     opacity: 1; }
  40%  { transform: translateY(-14px); opacity: 0; }
  60%  { transform: translateY(14px);  opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

@keyframes csBlink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.15; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 600px) {
  html, body { overflow-y: auto; }

  .cs-main { padding: 48px 20px 36px; justify-content: flex-start; min-height: 100svh; }

  .cs-logo img { height: 40px; }

  .cs-count-block { min-width: 60px; padding: 10px 10px 8px; border-radius: 6px; }
  .cs-count-label { font-size: 0.52rem; }

  .cs-countdown { gap: 4px; }

  .cs-form { flex-direction: column; border-radius: 8px; overflow: visible; border: none; background: transparent; }
  .cs-input-wrap {
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    padding: 0 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.04);
  }
  .cs-input { padding: 14px 0; }
  .cs-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 6px;
    background: #c9a84c;
  }
  .cs-form:focus-within { box-shadow: none; border: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .cs-bg-slide { transition: opacity 0.4s ease !important; transform: scale(1) !important; }
  .cs-rule-diamond { animation: none !important; }
}
