/* ========================================
   ASTROJOSIAMAI HOME PAGE - PROFESSIONAL THEME
   Modern, Colorful, and Responsive Design
   ======================================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
  /* Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f5576c;
  --gold-color: #ffd700;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #1a202c;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--bg-light);
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-poster {
  margin: var(--spacing-lg) 0;
  animation: float 6s ease-in-out infinite;
}

.hero-poster img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-normal);
}

.hero-poster img:hover {
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.btn-primary, .btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary-gradient);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   AUTH FORMS SECTION
   ======================================== */
.auth-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.auth-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.auth-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.auth-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.auth-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all var(--transition-fast);
  background: var(--bg-light);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
  color: #a0aec0;
}

.autocomplete-suggestions {
  position: absolute;
  z-index: 1000;
  background: var(--white);
  border: 2px solid var(--primary-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.autocomplete-suggestion {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--text-dark);
}

.autocomplete-suggestion:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  color: var(--text-light);
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(0);
}

.forgot-password {
  text-align: center;
  margin-top: var(--spacing-sm);
}

.forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.forgot-password a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.message-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-weight: 600;
}

.message-error {
  background: #fed7d7;
  color: #c53030;
  border: 2px solid #fc8181;
}

.message-success {
  background: #c6f6d5;
  color: #2f855a;
  border: 2px solid #68d391;
}

/* ========================================
   WHATSAPP CTA
   ======================================== */
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 1.2rem 2rem;
  background: #25d366;
  color: var(--white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  margin-top: var(--spacing-lg);
}

.whatsapp-cta:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.whatsapp-cta img {
  width: 32px;
  height: 32px;
}

/* ========================================
   INFO SECTION
   ======================================== */
.info-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
  backdrop-filter: blur(20px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.info-card p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  text-align: center;
}

.price-highlight {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .hero-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .auth-card {
    padding: var(--spacing-md);
  }
  
  .hero-poster img {
    max-width: 300px;
  }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner for form submission */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s linear infinite;
  margin-left: var(--spacing-sm);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}
