/* Custom Styles for Ankush Sehgal Website */
/* Design inspired by ankushsehgal.com - Gold/Orange Theme */

/* CSS Variables - Gold/Orange Theme */
:root {
  /* Primary Colors - Gold/Yellow */
  --primary: hsl(45, 90%, 50%);
  --primary-light: hsl(45, 90%, 60%);
  --primary-dark: hsl(45, 90%, 40%);
  --primary-glow: hsl(51, 100%, 60%);
  
  /* Secondary Colors - Orange */
  --secondary: hsl(35, 90%, 50%);
  --secondary-light: hsl(35, 90%, 60%);
  --secondary-dark: hsl(35, 90%, 40%);
  
  /* Accent - Gold */
  --accent: hsl(45, 90%, 50%);
  
  /* Neutrals */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 0%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 45%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 0%);
  --border: hsl(0, 0%, 91%);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(39, 100%, 50%));
  --gradient-card: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 0%, 98%));
  --gradient-success: linear-gradient(135deg, hsl(39, 100%, 50%), hsl(60, 100%, 50%));
  
  /* Shadows */
  --shadow-card: 0 4px 12px hsl(51, 100%, 50%, 0.15);
  --shadow-glow: 0 0 20px hsl(51, 100%, 50%, 0.3);
  --shadow-elevated: 0 8px 24px hsl(51, 100%, 50%, 0.2);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Radius */
  --radius: 0.75rem;
}

/* Dark Mode Support */
.dark {
  --background: hsl(222.2, 84%, 4.9%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(222.2, 84%, 4.9%);
  --card-foreground: hsl(210, 40%, 98%);
  --muted: hsl(217.2, 32.6%, 17.5%);
  --muted-foreground: hsl(215, 20.2%, 65.1%);
  --border: hsl(217.2, 32.6%, 17.5%);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--foreground);
}

/* Gradient Text - Gold */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Background - Gold to Orange */
.gradient-bg {
  background: var(--gradient-primary);
}

/* Card Styles */
.card-hover {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Button Styles - Gold Primary */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--foreground);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Secondary Button - Outline Gold */
.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  background: transparent;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--foreground);
}

/* Section Styling */
.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Stats Counter Animation */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
}

/* Hero Pattern - Light with subtle gold */
.hero-pattern {
  background-color: var(--muted);
  background-image: 
    radial-gradient(circle at 20% 80%, hsl(51, 100%, 50%, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsl(39, 100%, 50%, 0.05) 0%, transparent 50%);
}

/* Testimonial Card */
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-elevated);
}

/* Package Card */
.package-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.package-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-elevated);
}

.package-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.package-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--foreground);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: 20px;
}

/* Countdown Timer */
.countdown-item {
  text-align: center;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .countdown-value {
    font-size: 1.75rem;
  }
}

/* Batchmate Card */
.batchmate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.batchmate-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  transition: var(--transition-smooth);
  background: var(--card);
  color: var(--foreground);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(51, 100%, 50%, 0.2);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--foreground);
}

/* Loading Spinner - Gold */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation for CTA */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-card);
  }
  50% {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Slots Badge - Gold */
.slots-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: hsl(51, 100%, 50%, 0.1);
  border: 1px solid var(--primary);
  border-radius: 24px;
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: 14px;
}

.slots-badge.urgent {
  background: hsl(0, 84%, 60%, 0.1);
  border-color: hsl(0, 84%, 60%);
  color: hsl(0, 84%, 40%);
}

/* Curriculum Accordion */
.curriculum-month {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.curriculum-header {
  padding: 20px 24px;
  background: var(--gradient-primary);
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.curriculum-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.curriculum-content.active {
  max-height: 2000px;
}

/* Tool Badge */
.tool-badge {
  display: inline-block;
  padding: 4px 12px;
  background: hsl(51, 100%, 50%, 0.1);
  border-radius: 20px;
  font-size: 12px;
  color: var(--secondary-dark);
  margin: 4px;
  border: 1px solid hsl(51, 100%, 50%, 0.3);
}

/* Success Story Card */
.story-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.story-result {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  max-height: 500px;
}

/* Scroll to Top Button - Gold */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 100;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Star Rating - Gold */
.star-rating {
  color: var(--primary);
}

/* Progress Bar */
.progress-bar {
  height: 0.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: var(--muted);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.5s ease;
}

/* Academy Card Style (from original site) */
.academy-card {
  border-radius: var(--radius);
  border: 1px solid hsl(0, 0%, 91%, 0.5);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.academy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* =====================================================
   ENHANCED MOBILE RESPONSIVENESS
   ===================================================== */

/* Small Mobile (320px - 375px) */
@media (max-width: 375px) {
  .text-4xl {
    font-size: 1.75rem;
  }
  
  .text-5xl {
    font-size: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .package-card {
    padding: 20px;
  }
  
  .countdown-value {
    font-size: 1.5rem;
  }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  nav .text-2xl {
    font-size: 1.25rem;
  }
  
  .hero-pattern {
    padding: 40px 0;
  }
  
  .testimonial-card {
    padding: 16px;
  }
  
  .story-result {
    font-size: 1.75rem;
  }
  
  .batchmate-avatar {
    width: 60px;
    height: 60px;
  }
  
  .form-input {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .tool-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .curriculum-header {
    padding: 16px;
  }
  
  .curriculum-header h3 {
    font-size: 1rem;
  }
}

/* Tablet (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .package-card {
    padding: 28px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-secondary,
  .faq-question,
  .curriculum-header {
    min-height: 48px;
  }
  
  .card-hover:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .btn-primary:active {
    opacity: 0.8;
    transform: scale(0.98);
  }
  
  .btn-secondary:active {
    background: var(--primary);
    color: var(--foreground);
  }
}

/* Print Styles */
@media print {
  .scroll-top,
  nav,
  footer,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  
  .section-padding {
    padding: 20px 0;
  }
  
  body {
    font-size: 12pt;
    color: black;
  }
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
  .form-input {
    font-size: 16px;
  }
  
  .scroll-top {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
  }
}

/* Safe area insets for modern devices */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
