.hero-section {
  background: linear-gradient(
    145deg,
    var(--color-bg-hero-start) 0%,
    var(--color-bg-hero-end) 100%
  );
  position: relative;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  transition: background 0.3s ease;
}

.hero-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-accent-line);
  transition: background-color 0.3s ease;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
  height: auto;
}

/* Logo positioning for large screens */
@media (min-width: 769px) {
  .hero-container {
    margin-bottom: 0;
  }
  
  .hero-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    margin-bottom: 0;
    z-index: 10;
  }
  
  /* Align theme toggle button with logo - same top offset */
  .hero-header {
    top: 20px; /* Same top offset as logo */
    align-items: center;
  }
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 200px;
  filter: drop-shadow(0 2px 4px var(--color-logo-shadow)) 
          drop-shadow(0 0 2px var(--color-logo-outline));
  transition: filter 0.3s ease;
}

#theme-toggle {
  background: transparent;
  color: var(--color-text-inverse);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  opacity: 0.6;
}

#theme-toggle:hover {
  opacity: 1;
}

#theme-toggle:active {
  opacity: 0.8;
}

#theme-toggle img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-heading .highlight {
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.hero-heading .default {
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.hero-description {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-primary:visited {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: 1 1 0;
  min-width: 165px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

.btn-secondary,
.btn-secondary:visited,
button.btn-secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  flex: 1 1 0;
  min-width: 150px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: inherit;
}

.btn-secondary:hover,
.btn-secondary:focus,
button.btn-secondary:hover,
button.btn-secondary:focus {
  background-color: var(--color-bg-secondary-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* Keep logo centered on mobile */
  .hero-logo {
    position: relative;
    top: auto;
    left: auto;
  }
  
  .hero-container {
    margin-bottom: 60px;
  }
}

