/* ============================================
   AstroThink Homepage - Space × AI Theme
   Modern, readable, visually striking design
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Space Colors */
  --space-deep: #0a0e27;
  --space-navy: #1a1f3a;
  --space-purple: #2d1b4e;
  --space-dark: #050510;
  
  /* Neon Accents */
  --neon-cyan: #00D9FF;
  --neon-purple: #B24BF3;
  --neon-magenta: #FF006E;
  --neon-blue: #0066FF;
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.7);
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.12);
  
  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Typography */
  --font-heading: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Shadows & Effects */
  --shadow-glow-cyan: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
  --shadow-glow-purple: 0 0 20px rgba(178, 75, 243, 0.4), 0 0 40px rgba(178, 75, 243, 0.2);
  --shadow-glow-magenta: 0 0 20px rgba(255, 0, 110, 0.4), 0 0 40px rgba(255, 0, 110, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ===== Base Styles ===== */
.astrothink-homepage {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--space-dark) 0%, var(--space-deep) 30%, var(--space-navy) 60%, var(--space-purple) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== Animated Starfield Background ===== */
.astrothink-homepage::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(0, 217, 255, 0.4), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(178, 75, 243, 0.3), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 0, 110, 0.2), transparent);
  background-size: 200% 200%, 180% 180%, 150% 150%, 220% 220%, 190% 190%;
  animation: starfield 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes starfield {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 30% 80%; 
  }
  50% { 
    background-position: 100% 100%, 0% 0%, 50% 50%, 20% 80%, 80% 20%; 
  }
}

/* ===== Typography ===== */
.astrothink-homepage h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.astrothink-homepage h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.astrothink-homepage h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.astrothink-homepage p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.astrothink-homepage .text-small {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Layout ===== */
.astrothink-homepage > * {
  position: relative;
  z-index: 1;
}

.astrothink-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .astrothink-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
}

/* ===== Hero Section ===== */
.astrothink-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  position: relative;
}

.astrothink-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.astrothink-hero h1 {
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out;
}

.astrothink-hero .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--neon-cyan);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.astrothink-hero .hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== Buttons ===== */
.astrothink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  min-height: 48px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.astrothink-btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.astrothink-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
  animation: pulse-glow 2s ease-in-out infinite;
}

.astrothink-btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.astrothink-btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(178, 75, 243, 0.3);
  transform: translateY(-2px);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow: var(--shadow-glow-cyan);
  }
}

/* ===== Glass Cards ===== */
.astrothink-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: var(--spacing-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.astrothink-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.astrothink-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--neon-purple);
}

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

.astrothink-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
}

.astrothink-card h3 {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.astrothink-card p {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

/* Feature List Items */
.astrothink-feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
  color: var(--text-secondary);
}

.astrothink-feature-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
  flex-shrink: 0;
}

/* ===== Program Card ===== */
.astrothink-program-card {
  background: linear-gradient(135deg, rgba(178, 75, 243, 0.2) 0%, rgba(0, 217, 255, 0.2) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(178, 75, 243, 0.3);
  border-radius: 24px;
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.astrothink-program-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(178, 75, 243, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.astrothink-program-card > * {
  position: relative;
  z-index: 1;
}

.astrothink-program-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto var(--spacing-xl);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Quick Links Grid ===== */
.astrothink-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.astrothink-quick-link {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--spacing-xl);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.astrothink-quick-link:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.astrothink-quick-link-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.astrothink-quick-link h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.astrothink-quick-link p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.fade-in-up-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===== Navbar Overrides ===== */
.astrothink-homepage .homepage-nav nav {
  background: rgba(10, 14, 39, 0.8) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.astrothink-homepage .homepage-nav nav a,
.astrothink-homepage .homepage-nav nav span,
.astrothink-homepage .homepage-nav nav button {
  color: var(--text-primary) !important;
}

.astrothink-homepage .homepage-nav nav a:hover {
  background: rgba(0, 217, 255, 0.1) !important;
  color: var(--neon-cyan) !important;
}

/* ===== Footer ===== */
.astrothink-homepage footer {
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
}

.astrothink-homepage footer p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .astrothink-homepage::before {
    animation: none;
  }
}

/* Focus States */
.astrothink-btn:focus,
.astrothink-card:focus,
.astrothink-quick-link:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .astrothink-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .astrothink-quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .astrothink-hero {
    min-height: 80vh;
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .astrothink-card {
    padding: var(--spacing-lg);
  }
  
  .astrothink-quick-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .astrothink-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* Grid Layouts */
.astrothink-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

@media (max-width: 768px) {
  .astrothink-grid-3 {
    grid-template-columns: 1fr;
  }
}

