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

:root {
  /* Logo-extracted palette */
  --navy:        #1b2a6b;   /* deep navy from logo bg         */
  --navy-mid:    #243180;   /* mid-navy                       */
  --navy-dark:   #111827;   /* near-black panel bg            */
  --blue-accent: #3d5afe;   /* vivid blue accent              */
  --orange:      #e8621a;   /* orange from SLIIT crest        */
  --white:       #ffffff;
  --white-70:    rgba(255,255,255,0.70);
  --white-40:    rgba(255,255,255,0.40);
  --white-15:    rgba(255,255,255,0.15);
  --white-08:    rgba(255,255,255,0.08);

  --font: 'Inter', sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden;
}

/* ============================================================
   PAGE WRAPPER — two-column layout
   ============================================================ */
.page-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.left-panel {
  position: relative;
  flex: 0 0 48%;
  max-width: 48%;
  overflow: hidden;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
  transform: scale(1.04);
  transition: transform 8s ease;
}

.left-panel:hover .bg-img { transform: scale(1.08); }

/* dark tint gradient overlay */
.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(11,17,53,0.75) 0%,
      rgba(11,17,53,0.55) 60%,
      rgba(11,17,53,0.70) 100%);
  z-index: 1;
}

/* Fallback gradient when no bg image */
.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0d1540 0%, #1b2a6b 60%, #0d1540 100%);
  z-index: 0;
}

.left-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  padding: 0 0 18% 8%;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  display: flex;
  gap: 3rem;
  align-items: flex-end;
}

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

.num {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(61, 90, 254, 0.6);
  transition: transform 0.2s ease;
}

.num.tick { transform: scale(1.15); }

.label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--white-70);
  letter-spacing: 0.06em;
  text-transform: capitalize;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.right-panel {
  position: relative;
  flex: 1;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle navy gradient bleed from left edge */
.right-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(27,42,107,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ============================================================
   STARS DECORATION
   ============================================================ */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars::before, .stars::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

/* constellation SVG */
.constellation {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   RIGHT CONTENT
   ============================================================ */
.right-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 540px;
  gap: 0;
}

/* --- Logo --- */
.logo-wrap {
  margin-bottom: 2rem;
  animation: fadeSlideDown 0.8s ease both;
}

.logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 4px 18px rgba(61,90,254,0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 24px rgba(232,98,26,0.5));
}

/* --- Sub-heading --- */
.sub-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white-70);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  animation: fadeSlideDown 0.9s 0.1s ease both;
}

/* --- Main heading --- */
.heading {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.2rem;
  animation: fadeSlideDown 1s 0.18s ease both;
}

/* --- Description --- */
.description {
  font-size: 0.82rem;
  color: var(--white-70);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 1.8rem;
  animation: fadeSlideDown 1.1s 0.26s ease both;
}

/* --- Notify label --- */
.notify-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
  animation: fadeSlideDown 1.2s 0.34s ease both;
}

/* ============================================================
   SUBSCRIBE FORM
   ============================================================ */
.subscribe-form {
  width: 100%;
  max-width: 440px;
  margin-bottom: 1.8rem;
  animation: fadeSlideDown 1.3s 0.42s ease both;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrap:focus-within {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(61,90,254,0.18);
}

.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
}

.input-wrap input::placeholder { color: var(--white-40); }

.input-wrap button {
  background: transparent;
  border: none;
  border-left: 1px solid var(--white-15);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.input-wrap button:hover {
  background: var(--blue-accent);
}

.input-wrap button .arrow {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.input-wrap button:hover .arrow { transform: translateX(4px); }

.form-msg {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  min-height: 1.1em;
  transition: color 0.3s;
}

.form-msg.success { color: #4caf82; }
.form-msg.error   { color: #ff6b6b; }

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.4rem;
  animation: fadeSlideDown 1.4s 0.5s ease both;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white-70);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-link i {
  font-size: 1rem;
  transition: color 0.25s ease;
}

.social-link:hover { color: var(--white); transform: translateY(-2px); }

#instagram:hover i { color: #e1306c; }
#whatsapp:hover  i { color: #25d366; }
#linkedin:hover  i { color: #0a66c2; }
#dribbble:hover  i { color: #ea4c89; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-text {
  font-size: 0.75rem;
  color: var(--white-40);
  animation: fadeSlideDown 1.5s 0.58s ease both;
}

.heart {
  color: var(--orange);
  display: inline-block;
  animation: heartbeat 1.2s ease infinite;
}

/* ============================================================
   ANIMATED STAR DOTS (CSS)
   ============================================================ */
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.9;  }
}

/* Inject star dots via JS — these are the base style */
.star-dot {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) ease-in-out infinite;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0);      }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1);   }
  14%       { transform: scale(1.3); }
  28%       { transform: scale(1);   }
  42%       { transform: scale(1.2); }
  70%       { transform: scale(1);   }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  html, body { overflow: auto; }

  .page-wrapper { flex-direction: column; height: auto; min-height: 100vh; }

  .left-panel {
    flex: 0 0 45vh;
    max-width: 100%;
    width: 100%;
  }

  .left-content {
    align-items: center;
    justify-content: center;
    padding-bottom: 12%;
  }

  .countdown { gap: 2rem; }

  .right-panel { flex: 1; min-height: 60vh; }

  .constellation { width: 140px; height: 140px; }
}

@media (max-width: 480px) {
  .countdown { gap: 1.2rem; }
  .num { font-size: 2rem; }
  .right-content { padding: 2rem 1.5rem; }
  .heading { font-size: 2.2rem; }
  .social-links { gap: 1rem; }
}
