/* ============================================
   Allen Zhong - Custom Styles
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #1e3a5f;
  --primary-dark: #152a45;
  --accent-color: #ff6b35;
  --accent-hover: #e55a2b;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border-color: #dee2e6;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease-in-out;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-brand span {
  color: var(--accent-color);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--bg-white);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.hero-buttons .btn-outline-light {
  border-color: var(--bg-white);
  color: var(--bg-white);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
}

.hero-buttons .btn-outline-light:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-section {
    padding: 8rem 0;
  }
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--bg-white);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.step-item {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-arrow {
  display: none;
}

@media (min-width: 768px) {
  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
  }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.testimonial-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.testimonial-content {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
  padding: 5rem 0;
}

.pricing-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  height: 100%;
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.pricing-card.popular {
  border-color: var(--accent-color);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--bg-white);
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-features li i {
  color: var(--accent-color);
  margin-top: 0.2rem;
}

.pricing-features li.disabled {
  color: var(--text-light);
}

.pricing-features li.disabled i {
  color: var(--text-light);
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  padding: 3rem 0 5rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  background-color: var(--bg-white);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-light);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.accordion-button::after {
  background-size: 1rem;
}

.accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Features Page
   ============================================ */
.features-page-section {
  padding: 5rem 0;
}

.feature-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.feature-detail:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateX(5px);
}

.feature-detail-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-detail-icon i {
  font-size: 1.5rem;
  color: var(--bg-white);
}

.feature-detail-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-detail-content p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   Legal Pages (Terms, Privacy, Refund)
   ============================================ */
.legal-section {
  padding: 4rem 0;
}

.legal-content {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent-color);
}

.legal-content a:hover {
  text-decoration: underline;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  padding: 5rem 0;
}

.contact-form-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--bg-white);
  height: 100%;
}

.contact-info-card h3 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-top: 0.2rem;
}

.contact-info-item h5 {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  opacity: 0.85;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
  margin-bottom: 0;
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .legal-content {
    padding: 1.5rem;
  }
  
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .feature-detail {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-detail-icon {
    margin: 0 auto;
  }
}

/* ============================================
   Toast Notification
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.custom-toast {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
}

.custom-toast i {
  color: var(--accent-color);
  font-size: 1.25rem;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}