/* =============================================
   VEDA — AN EVENT INTELLECT | Coming Soon CSS
   Brand Colors: #533085 → #9C246E → #E51856
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --clr-purple:    #533085;
  --clr-pink:      #9C246E;
  --clr-crimson:   #E51856;
  --clr-bg:        #07060D;
  --clr-bg-2:      #0D0B18;
  --clr-surface:   rgba(255, 255, 255, 0.04);
  --clr-border:    rgba(255, 255, 255, 0.08);
  --clr-text:      #F0EDF7;
  --clr-muted:     rgba(240, 237, 247, 0.45);
  --clr-subtle:    rgba(240, 237, 247, 0.2);
  --gradient:      linear-gradient(135deg, var(--clr-purple), var(--clr-pink), var(--clr-crimson));
  --gradient-rev:  linear-gradient(135deg, var(--clr-crimson), var(--clr-pink), var(--clr-purple));
  --gradient-soft: linear-gradient(135deg, rgba(83,48,133,0.6), rgba(156,36,110,0.6), rgba(229,24,86,0.6));
  --font-display:  'Cormorant Garamond', serif;
  --font-sans:     'Inter', sans-serif;
  --font-label:    'Montserrat', sans-serif;
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Light Theme Variables ---------- */
body.light-mode {
  --clr-bg:        #FAFAFA;
  --clr-bg-2:      #F0EDF7;
  --clr-surface:   rgba(0, 0, 0, 0.03);
  --clr-border:    rgba(0, 0, 0, 0.08);
  --clr-text:      #1A1125;
  --clr-muted:     rgba(26, 17, 37, 0.6);
  --clr-subtle:    rgba(26, 17, 37, 0.4);
  --clr-glow:      rgba(156,36,110,0.15);
}

/* Default glow override for dark mode to keep compatibility */
:root {
  --clr-glow: rgba(229,24,86,0.7);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- Background Canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Floating Orbs ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: orbFloat linear infinite alternate;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(83,48,133,0.35) 0%, transparent 70%);
  animation-duration: 18s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(229,24,86,0.28) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -8s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(156,36,110,0.22) 0%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.97); }
  100% { transform: translate(15px, -10px) scale(1.02); }
}

/* ---------- Noise overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

body.light-mode .noise-overlay {
  opacity: 0.06;
  mix-blend-mode: multiply;
}

/* ---------- Main Wrapper ---------- */
.main-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  position: absolute;
  top: clamp(1.5rem, 4vh, 2.5rem);
  right: clamp(1.25rem, 5vw, 3rem);
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease-bounce), background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  animation: fadeSlideDown 1s var(--ease-expo) 0.4s forwards;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: rgba(156,36,110,0.5);
  background: rgba(156,36,110,0.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.5s var(--ease-bounce);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

body.light-mode .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

body.light-mode .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ---------- Site Header ---------- */
.site-header {
  padding: clamp(1.5rem, 4vh, 2.5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-24px);
  animation: fadeSlideDown 1s var(--ease-expo) 0.2s forwards;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.site-logo {
  height: clamp(42px, 7vw, 70px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px var(--clr-glow));
  transition: filter 0.4s ease, transform 0.4s ease;
}

body.light-mode .site-logo {
  filter: drop-shadow(0 0 24px var(--clr-glow));
}

.site-logo:hover {
  filter: drop-shadow(0 0 36px var(--clr-glow));
  transform: scale(1.02);
}

body.light-mode .site-logo:hover {
  filter: drop-shadow(0 0 36px var(--clr-glow));
}

/* ---------- Hero Section ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
  gap: clamp(1.2rem, 3vh, 2rem);
}

/* Tag */
.hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 0.6s forwards;
}

.tag-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px var(--clr-glow);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

/* Heading */
.hero-heading {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.line {
  display: block;
  opacity: 0;
  transform: translateY(40px) skewY(2deg);
}

.line-1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--clr-text);
  animation: lineReveal 1s var(--ease-expo) 0.85s forwards;
}

.line-2 {
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  font-style: italic;
  font-weight: 400;
  animation: lineReveal 1s var(--ease-expo) 1.05s forwards;
}

.line-3 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--clr-text);
  animation: lineReveal 1s var(--ease-expo) 1.25s forwards;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 24px rgba(229,24,86,0.3));
}

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

/* Sub */
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--clr-muted);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 1.45s forwards;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(300px, 80vw);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-expo) 1.6s forwards;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-border), transparent);
}

.divider-icon {
  font-size: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rotateStar 8s linear infinite;
}

@keyframes rotateStar {
  to { transform: rotate(360deg); }
}


/* ---------- Notify Form ---------- */
.notify-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 1.75s forwards;
}

.notify-label {
  font-family: var(--font-label);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-subtle);
}

.notify-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.input-group {
  display: flex;
  width: 100%;
  border-radius: 60px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
  border-color: rgba(156,36,110,0.5);
  box-shadow: 0 0 0 3px rgba(156,36,110,0.12), 0 4px 32px rgba(83,48,133,0.15);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: clamp(0.85rem, 2.5vw, 1.05rem) clamp(1rem, 3vw, 1.5rem);
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 300;
  color: var(--clr-text);
  caret-color: var(--clr-crimson);
  min-width: 0;
}

.email-input::placeholder {
  color: var(--clr-subtle);
}

.notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(0.85rem, 2.5vw, 1.05rem) clamp(1.25rem, 3vw, 1.75rem);
  background: var(--gradient);
  border: none;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  border-radius: 0 60px 60px 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notify-btn:hover::before { opacity: 1; }
.notify-btn:hover { transform: translateX(1px); }
.notify-btn:active { transform: scale(0.98); }

.btn-icon {
  transition: transform 0.3s var(--ease-bounce);
  display: inline-block;
}

.notify-btn:hover .btn-icon { transform: translateX(4px); }

.form-msg {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  min-height: 1.2em;
  transition: all 0.4s ease;
}

.form-msg.success { color: #7de8a0; }
.form-msg.error   { color: #ff6b6b; }

/* ---------- Social Links ---------- */
.social-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 1.95s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-subtle);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-bounce);
  backdrop-filter: blur(12px);
}

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

.social-link:hover {
  color: var(--clr-text);
  border-color: rgba(156,36,110,0.5);
  box-shadow: 0 0 16px rgba(229,24,86,0.2);
  transform: translateY(-3px) scale(1.08);
}

/* ---------- Site Footer ---------- */
.site-footer {
  padding: clamp(1.25rem, 3vh, 2rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 2.1s forwards;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.3vw, 0.72rem);
  color: var(--clr-subtle);
  font-weight: 400;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  font-style: italic;
  font-weight: 300;
  color: var(--clr-subtle);
  letter-spacing: 0.05em;
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeSlideDown {
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .countdown-wrap {
    gap: 0.5rem;
  }
  .countdown-colon {
    font-size: 2rem;
    margin-bottom: 14px;
  }
  .cd-number {
    min-width: 58px;
    font-size: 2.4rem;
  }
  .countdown-unit::before {
    inset: -4px -6px;
  }
  .input-group {
    flex-direction: column;
    border-radius: 16px;
  }
  .email-input {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--clr-border);
  }
  .notify-btn {
    border-radius: 0 0 16px 16px;
    justify-content: center;
    padding: 0.9rem 1.25rem;
  }
  .hero-heading .line-1,
  .hero-heading .line-3 {
    font-size: clamp(2.4rem, 11vw, 3rem);
  }
  .hero-heading .line-2 {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }
}

@media (max-width: 380px) {
  .countdown-wrap { gap: 0.3rem; }
  .countdown-colon { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .orb { display: none; }
}
