/* ==========================================================================
   DCPCA - Dakshin Chennai Prabasi Cultural Association
   Coming Soon Page - Design System & Modern Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(18, 24, 43, 0.7);
  --bg-card-hover: rgba(28, 38, 68, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-gold: rgba(245, 158, 11, 0.35);
  
  /* Primary & Accent Tones */
  --gold-primary: #F59E0B;
  --gold-light: #FDE047;
  --gold-gradient: linear-gradient(135deg, #FFFBEB 0%, #FDE047 30%, #F59E0B 70%, #D97706 100%);
  --crimson-primary: #E11D48;
  --crimson-gradient: linear-gradient(135deg, #FB7185 0%, #E11D48 100%);
  --blue-glow: #38BDF8;
  
  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-gold: #FDE68A;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows & Glows */
  --shadow-gold: 0 10px 30px -10px rgba(245, 158, 11, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --glow-radial: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(225, 29, 72, 0.08) 50%, transparent 70%);

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3. Background Visuals & Particle Canvas
   -------------------------------------------------------------------------- */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.22;
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.6) 0%, rgba(7, 9, 19, 0.95) 75%, #070913 100%),
              linear-gradient(180deg, rgba(7,9,19,0.3) 0%, rgba(7,9,19,0.98) 90%);
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: rgba(245, 158, 11, 0.12);
}

.orb-2 {
  bottom: 20%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: rgba(225, 29, 72, 0.08);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. Page Container & Layout
   -------------------------------------------------------------------------- */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.5rem;
  transition: var(--transition-smooth);
}

.header:hover {
  border-color: var(--border-glass-gold);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transition: var(--transition-bounce);
}

.brand-logo-img:hover {
  transform: rotate(15deg) scale(1.08);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 10px #22C55E;
  animation: pulseDot 2s infinite;
}

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

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 3rem;
  max-width: 920px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #FDA4AF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.2);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.gold-gradient-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Countdown Clock Section
   -------------------------------------------------------------------------- */
.countdown-wrapper {
  margin-bottom: 3rem;
  width: 100%;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
}

.countdown-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.4rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.6;
}

.countdown-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-gold);
  box-shadow: var(--shadow-gold);
}

.countdown-card:hover::before {
  opacity: 1;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   8. Subscription Form (VIP Notify Card)
   -------------------------------------------------------------------------- */
.subscription-card {
  background: linear-gradient(135deg, rgba(24, 32, 57, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass-gold);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 3.5rem;
  position: relative;
}

.sub-header {
  margin-bottom: 1.5rem;
}

.sub-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.sub-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  position: relative;
  width: 100%;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
  }
}

.input-icon-wrapper {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.email-input {
  flex: 1;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.9rem 1.2rem 0.9rem 3.2rem;
  font-size: 0.95rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.email-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #070913;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.btn-primary:active {
  transform: translateY(1px);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-feedback {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  color: #4ADE80;
}

.form-feedback.error {
  display: block;
  color: #F87171;
}

/* --------------------------------------------------------------------------
   9. Sneak Peek Feature Grid
   -------------------------------------------------------------------------- */
.features-section {
  width: 100%;
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #FFFFFF;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-box {
  background: var(--gold-primary);
  color: #070913;
  transform: rotate(6deg) scale(1.08);
}

.feature-icon-box svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.feature-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gold);
}

/* --------------------------------------------------------------------------
   10. Launch Roadmap & Progress Bar
   -------------------------------------------------------------------------- */
.roadmap-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3.5rem;
}

.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.roadmap-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.roadmap-percent {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  width: 85%;
  height: 100%;
  background: linear-gradient(90deg, #E11D48 0%, #F59E0B 50%, #FDE047 100%);
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  position: relative;
  animation: shimmer 3s infinite linear;
}

.roadmap-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .roadmap-milestones {
    grid-template-columns: repeat(2, 1fr);
  }
}

.milestone-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.milestone-status {
  font-size: 0.75rem;
  font-weight: 700;
}

.milestone-status.done {
  color: #4ADE80;
}

.milestone-status.current {
  color: var(--gold-light);
}

.milestone-status.upcoming {
  color: var(--text-muted);
}

.milestone-name {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Footer & Community Connect
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.location-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.location-box svg {
  width: 20px;
  height: 20px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-bounce);
}

.social-btn:hover {
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-3px) scale(1.1);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.email-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.email-copy-badge:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.email-copy-badge svg {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Toast Notifications & Confetti
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(18, 24, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  color: var(--gold-light);
  display: flex;
  align-items: center;
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* --------------------------------------------------------------------------
   13. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem 1.25rem 2rem;
  }
  
  .header {
    margin-bottom: 1.5rem;
  }
  
  .header-status-badge {
    display: none;
  }

  .subscription-card {
    padding: 1.75rem 1.25rem;
  }
  
  .countdown-grid {
    gap: 0.75rem;
  }

  .countdown-card {
    padding: 1rem 0.5rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
