/* ======================
   Variables & Base Styles
   ====================== */
:root {
  /* Color Variables */
  --primary-color: #673DE6;
  --primary-hover: #5a36cc;
  --secondary-color: #4CAF50;
  --text-color: #333;
  --text-light: #727586;
  --bg-color: #F4F5FF;
  --section-bg: #ffffff;
  --header-bg: #36344D;
  --footer-bg: #2a293d;
  --white: #ffffff;

  /* Layout Variables */
  --max-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ======================
   Typography
   ====================== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ======================
   Layout Components
   ====================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: var(--header-bg);
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--bg-color);
}

/* Hero Section */
.hero-section {
  padding-top: 6rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-header {
  padding: 1.25rem;
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

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

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

/* Images */
.main-image {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin-bottom: 2rem;
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Payment Methods */
.payment-method {
  margin-bottom: 2rem;
}

.payment-code {
  background-color: var(--bg-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 1.5rem 0;
  border: 1px dashed var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 2rem 0;
  margin-top: auto;
}

/* Visitor Counter */
.visitor-counter {
  font-size: 0.9rem;
  color: #6c757d;
  padding: 10px 0;
  text-align: center;
}

.visitor-counter i {
  color: var(--primary-color);
}

.visitor-counter span {
  font-weight: bold;
  color: var(--primary-color);
}

/* ======================
   Utility Classes
   ====================== */
.hover-shadow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.border-dashed {
  border-style: dashed !important;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ======================
   Responsive Design
   ====================== */
@media (max-width: 992px) {
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .payment-method {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding-top: 4rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}