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

:root {
  --primary-color: #0078d4; /* Azure DevOps blue */
  --secondary-color: #106ebe;
  --accent-color: #f2c811;
  --background-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e1e1e1;
  --card-background: #f9f9f9;
  --success-color: #107c10;
  --header-height: 80px;
  --footer-background: #f3f3f3;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

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

a:hover {
  color: var(--secondary-color);
}

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

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.75em;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* === Header and Navigation === */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* === Hero Section === */
.hero {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

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

.hero-image {
  flex: 1;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.hero-image .before-and-after-container {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Make sure both images cover the full container */
.before-image img,
.after-image img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left;
  display: block;
}

/* When active (sliding) */
.before-and-after-container.active .handle {
  background-color: var(--primary-color, #0078d4);
}

.before-and-after-container.active .handle-circle {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* === Features Section === */
.features {
  background-color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

/* === Setup Section === */
.setup {
  background-color: #f8f9fa;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 1rem;
}

.step-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-content img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

/* === Usage Section === */
.usage {
  background-color: white;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
}

.usage-item h3 {
  margin-bottom: 1rem;
}

.usage-item img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

/* === FAQ Section === */
.faq {
  background-color: #f8f9fa;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.accordion-icon {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  display: none;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  display: block;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 30px;
  margin-bottom: 1rem;
}

.footer-logo h2 {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

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

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

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* === Responsive Styles === */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .usage-grid {
    grid-template-columns: 1fr;
  }
}

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

  h2 {
    font-size: 1.75rem;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .nav-links {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Before and After Image Slider */
.before-and-after-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.before-image {
  left: 0;
  z-index: 1;
  width: 50%; /* Initial position of the slider */
}

.after-image {
  right: 0;
  z-index: 0;
}

.before-image img,
.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
  display: block;
}

.handle {
  position: absolute;
  width: 4px;
  height: 100%;
  top: 0;
  left: 50%; /* Initial position of the slider */
  z-index: 3;
  background-color: var(--primary-color, #0078d4);
  cursor: ew-resize;
  transform: translateX(-50%);
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color, #0078d4);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.handle-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.arrow {
  width: 0;
  height: 0;
  border-style: solid;
}

.left-arrow {
  border-width: 6px 8px 6px 0;
  border-color: transparent #fff transparent transparent;
}

.right-arrow {
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #fff;
}

/* Add some responsive adjustments */
@media (max-width: 768px) {
  .before-and-after-container {
    aspect-ratio: 4/3;
  }

  .handle-circle {
    width: 28px;
    height: 28px;
  }

  .arrow {
    transform: scale(0.8);
  }
}

.before-and-after-container:hover .image-label {
  opacity: 1;
}

/* Add some hover effect to the handle */
.handle-circle {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.before-and-after-container:hover .handle-circle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* === Content Pages (Privacy, Terms) === */
.page-content {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 80vh;
}

.page-content h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.content-block {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.content-block h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  text-align: left;
  color: var(--primary-color);
}

.content-block h2:first-of-type {
  margin-top: 1rem;
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.content-block ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-block ul li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.privacy-link {
  font-weight: bold;
  color: #e74c3c;
  text-decoration: none;
  font-size: 1.05em;
  text-shadow: 0 0 1px rgba(231, 76, 60, 0.2);
}

.privacy-link:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  display: none !important; /* Hide completely */
}

.privacy-widget {
  display: none !important; /* Hide completely */
}

/* California privacy link */
.ccpa-link {
  font-weight: 500;
  color: var(--primary-color);
}

.ccpa-link:hover {
  text-decoration: underline;
}
