/* ==========================================================================
   HARIPOLYTEX - Coming Soon CSS Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Base Setup
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #eef2f7;
  --card-bg: linear-gradient(135deg, rgba(245, 247, 250, 0.85) 0%, rgba(230, 235, 243, 0.85) 100%);
  --card-border: rgba(255, 255, 255, 0.7);
  --text-primary: #12161a;
  --text-secondary: rgba(18, 22, 26, 0.6);
  --text-muted: rgba(18, 22, 26, 0.4);
  
  /* Accents */
  --accent-orange: #ff7024;
  --accent-orange-glow: rgba(255, 112, 36, 0.45);
  --accent-orange-light: rgba(255, 112, 36, 0.08);
  --accent-blue-glow: rgba(100, 160, 255, 0.15);
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 24px;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. Background & Global Ambient Effects
   -------------------------------------------------------------------------- */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 112, 36, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(100, 160, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

/* --------------------------------------------------------------------------
   3. Card Layout (The Window UI)
   -------------------------------------------------------------------------- */
.card-container {
  width: 100%;
  max-width: 1100px;
  height: auto;
  min-height: 700px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 
    0 40px 100px -30px rgba(24, 32, 45, 0.12),
    0 15px 35px -15px rgba(24, 32, 45, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}

.card-container:hover {
  box-shadow: 
    0 45px 120px -25px rgba(24, 32, 45, 0.15),
    0 20px 45px -10px rgba(24, 32, 45, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   4. Header Styles (Navigation & Logo)
   -------------------------------------------------------------------------- */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

/* Brand/Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-icon {
  transform: rotate(60deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Central Nav Links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-talk {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.cta-talk:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--transition-smooth);
}

.cta-talk:hover .arrow-icon {
  transform: translate(2px, -2px);
}

.divider {
  width: 1px;
  height: 16px;
  background-color: rgba(18, 22, 26, 0.15);
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.close-btn:hover {
  color: var(--text-primary);
  background-color: rgba(18, 22, 26, 0.05);
  transform: scale(1.05);
}

.close-btn svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   5. Central Body (Sphere Glow & Typography)
   -------------------------------------------------------------------------- */
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  position: relative;
  padding: 60px 0;
  z-index: 2;
}

/* Blurred Central Gradient Sphere & Arc Outline */
.glow-sphere-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 580px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The smooth glowing backdrop */
.glow-sphere {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle, 
    var(--accent-orange-glow) 0%, 
    rgba(255, 140, 50, 0.12) 40%, 
    var(--accent-blue-glow) 70%,
    transparent 100%
  );
  filter: blur(55px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* Elegant sharp white overlay arch boundary from the reference image */
.glow-sphere-wrapper::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  /* Use gradient mask so it fades out beautifully towards the bottom */
  mask-image: linear-gradient(to bottom, black 40%, rgba(0,0,0,0.1) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, rgba(0,0,0,0.1) 75%, transparent 100%);
  pointer-events: none;
  transform: translateY(30px); /* Align slightly lower for dramatic arching */
}

/* Intro/Typography */
.intro-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 550px;
  width: 100%;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-content.fade-out {
  opacity: 0;
  transform: scale(0.97) translateY(6px);
}

.main-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Newsletter Input Form Section */
.newsletter-form {
  margin-bottom: 48px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 10px 30px -10px rgba(24, 32, 45, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 112, 36, 0.4);
  box-shadow: 
    0 15px 35px -10px rgba(24, 32, 45, 0.08),
    0 0 0 4px rgba(255, 112, 36, 0.08);
}

#email-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
}

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

.submit-btn {
  background-color: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background-color: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(255, 112, 36, 0.25);
}

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

.submit-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--transition-smooth);
}

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

.form-feedback {
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition-smooth);
}

.form-feedback.show-error {
  color: #e54d42;
  opacity: 1;
  transform: translateY(0);
}

.form-feedback.show-success {
  color: #2b8a3e;
  opacity: 1;
  transform: translateY(0);
}

/* Social Media Section */
.social-prompt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 22, 26, 0.12);
  border-radius: 50%;
  color: rgba(18, 22, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 15px;
  height: 15px;
}

.social-icon:hover {
  color: var(--accent-orange);
  border-color: rgba(255, 112, 36, 0.3);
  background-color: var(--accent-orange-light);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   6. Footer Styles (Return Button)
   -------------------------------------------------------------------------- */
.card-footer {
  display: flex;
  justify-content: flex-start;
  z-index: 5;
}

.btn-return {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 6px 0;
}

.return-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--transition-smooth);
}

.btn-return:hover {
  color: var(--text-primary);
}

.btn-return:hover .return-arrow {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   7. Premium Feedback Modal / Alerts
   -------------------------------------------------------------------------- */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 22, 26, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.feedback-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 
    0 30px 70px rgba(18, 22, 26, 0.15),
    0 10px 20px rgba(18, 22, 26, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  border: 1px solid rgba(255, 112, 36, 0.15);
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

.modal-close-btn {
  background-color: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.modal-close-btn:hover {
  background-color: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(255, 112, 36, 0.2);
}

/* --------------------------------------------------------------------------
   8. Animation Keyframes
   -------------------------------------------------------------------------- */
@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   9. Responsiveness (Media Queries)
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Laptops */
@media (max-width: 900px) {
  .card-container {
    min-height: 620px;
    padding: 36px 36px;
  }
  
  .main-title {
    font-size: 52px;
  }
  
  .glow-sphere-wrapper {
    width: 480px;
    height: 480px;
  }
  
  .glow-sphere {
    width: 300px;
    height: 300px;
  }
  
  .glow-sphere-wrapper::after {
    width: 400px;
    height: 400px;
  }
  
  .nav-links {
    gap: 20px;
  }
}

/* Mobile Devices */
@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .card-container {
    min-height: calc(100vh - 32px); /* Full height on mobile minus padding */
    padding: 28px 24px;
    border-radius: 24px;
    justify-content: flex-start;
    gap: 40px;
  }
  
  .card-header {
    flex-wrap: wrap;
    gap: 16px 8px;
  }
  
  /* Stack nav links or center them */
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(18, 22, 26, 0.06);
    border-bottom: 1px solid rgba(18, 22, 26, 0.06);
    padding: 10px 0;
    margin-top: 4px;
    gap: 24px;
  }
  
  .header-actions {
    margin-left: auto;
  }
  
  .card-body {
    padding: 20px 0;
    justify-content: center;
  }
  
  .glow-sphere-wrapper {
    width: 320px;
    height: 320px;
  }
  
  .glow-sphere {
    width: 220px;
    height: 220px;
    filter: blur(40px);
  }
  
  .glow-sphere-wrapper::after {
    width: 280px;
    height: 280px;
    transform: translateY(20px);
  }

  .main-title {
    font-size: 40px;
    letter-spacing: -1px;
  }
  
  .subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .input-wrapper {
    padding: 4px 4px 4px 16px;
  }
  
  #email-input {
    font-size: 13px;
  }
  
  .submit-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  .social-prompt {
    font-size: 14px;
  }
  
  .social-icon {
    width: 34px;
    height: 34px;
  }
  
  .card-footer {
    justify-content: center;
  }
}
