/* CSS Variables for Theme System */
:root {
  /* Light Theme Colors */
  --primary-blue: #4A90E2;
  --secondary-green: #7ED321;
  --accent-yellow: #F5A623;
  --neutral-gray: #8E8E93;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --background: #FFFFFF;
  --background-secondary: #F8F9FA;
  --card-background: #FFFFFF;
  --border-color: #E5E5EA;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --primary-blue: #5BA0F2;
  --secondary-green: #8EE331;
  --accent-yellow: #FFB633;
  --neutral-gray: #A0A0A5;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A5;
  --background: #1A1A1A;
  --background-secondary: #2C2C2E;
  --card-background: #2C2C2E;
  --border-color: #3A3A3C;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--card-background);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo .logo {
  height: 40px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
  background-color: var(--background-secondary);
  color: var(--primary-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-icon {
  stroke: var(--text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

.sun-icon {
  fill: none;
}

.moon-icon {
  fill: var(--text-secondary);
}

/* Show/hide icons based on theme */
[data-theme="light"] .moon-icon {
  opacity: 0.4;
}

[data-theme="light"] .sun-icon {
  opacity: 1;
  stroke: var(--accent-yellow);
}

[data-theme="dark"] .sun-icon {
  opacity: 0.4;
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  fill: var(--primary-blue);
  stroke: var(--primary-blue);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--neutral-gray);
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-blue);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: white;
}

/* Hero Section */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-hook {
  margin-bottom: 20px;
}

.hook-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  font-style: italic;
  text-align: center;
  margin: 0;
  padding: 15px 25px;
  background: var(--background-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--accent-blue);
}

.hero-problem-image {
  margin: 30px 0;
  text-align: center;
}

.problem-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow);
  border: 2px solid var(--border-color);
}

.hero-image-top {
  margin-bottom: 40px;
}

.hero-main-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow);
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.6;
}

.what-we-buy {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.buy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  min-width: 160px;
}

.buy-icon {
  font-size: 32px;
}

.buy-item span:last-child {
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.cta-section {
  margin-bottom: 50px;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-image {
  margin-top: 40px;
}

.cta-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow);
}

.btn {
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  font-size: 20px;
  padding: 20px 50px;
}

.btn-primary:hover {
  background: #3A7BC8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-large {
  padding: 20px 50px;
  font-size: 20px;
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.trust-item {
  padding: 15px;
  background: var(--background-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-green);
}

.trust-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--background);
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.contact-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--card-background);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background: var(--background);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.contact-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.contact-details,
.pricing-note {
  background: var(--card-background);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
}

.contact-details h3,
.pricing-note h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-item strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.contact-item a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 16px;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item span {
  color: var(--text-secondary);
}

.pricing-note p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.pricing-note a {
  color: var(--primary-blue);
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--background-secondary);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 15px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .what-we-buy {
    gap: 20px;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 15px var(--shadow);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    margin-bottom: 15px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--background-secondary);
    margin-top: 10px;
    margin-left: 20px;
  }

  .nav-right {
    gap: 15px;
  }

  .hero-title {
    font-size: 36px;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .what-we-buy {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .buy-item {
    min-width: 200px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 20px;
  }

  .btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }
}