/* Base Styles & Variables */
:root {
  --primary-color: #3f51b5;
  --secondary-color: #4caf50;
  --accent-color: #ff5722;
  --text-color: #333;
  --text-light: #666;
  --text-white: #fff;
  --bg-light: #f9f9f9;
  --bg-white: #fff;
  --bg-dark: #333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

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

.btn-primary:hover {
  background-color: #303f9f;
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #388e3c;
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Header Styles */
header {
  background: linear-gradient(to right, #3f51b5, #5c6bc0);
  color: var(--text-white);
  padding: 1rem 0;
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-white);
}

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

.nav-links ul {
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-white);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.fa-bars, .fa-times {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

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

/* Badges Section */
.badges-section {
  padding: 1.5rem 0;
  background-color: var(--bg-light);
}

.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

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

.feature-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

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

/* Installation Section */
.installation {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

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

.install-option h3 {
  margin-bottom: 1rem;
}

.code-block {
  background-color: var(--bg-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  position: relative;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  color: var(--text-white);
  font-family: 'Courier New', Courier, monospace;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  opacity: 0.7;
  font-size: 1rem;
}

.copy-btn:hover {
  opacity: 1;
}

.prerequisites {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.prerequisites h3 {
  margin-bottom: 1rem;
}

.prerequisites ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.prerequisites li {
  margin-bottom: 0.5rem;
}

/* Quickstart Section */
.quickstart {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.code-walkthrough {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.learn-more {
  text-align: center;
  margin-top: 2rem;
}

/* Tech Stack Section */
.tech-stack {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

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

.tech-category h3 {
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.tech-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.tech-list li::before {
  content: "➤";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

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

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 1rem 0;
}

.testimonial {
  min-width: 300px;
  flex: 1;
  scroll-snap-align: start;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-light);
}

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

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Resources Section */
.resources {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  color: var(--text-color);
}

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

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

.resource-card h3 {
  margin-bottom: 0.5rem;
}

.resource-card p {
  color: var(--text-light);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.footer-logo p {
  margin-top: 1rem;
  color: #aaa;
}

.footer-links h4,
.footer-community h4 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-community h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul,
.footer-community ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-community a {
  color: #aaa;
}

.footer-links a:hover,
.footer-community a:hover {
  color: var(--text-white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #aaa;
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: var(--text-white);
}

/* Analytics Consent Banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 9999;
  padding: 1rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

.consent-content p {
  margin: 0.5rem 0;
  flex: 1;
  min-width: 300px;
}

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

.btn-accept {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-decline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    right: -200px;
    top: 0;
    width: 200px;
    background-color: var(--primary-color);
    height: 100vh;
    text-align: left;
    z-index: 2;
    transition: 0.5s;
  }

  .nav-links ul {
    padding: 30px;
    flex-direction: column;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .fa-bars, .fa-times {
    display: block;
    color: var(--text-white);
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }

  .nav-links .fa-times {
    margin: 20px;
  }

  .consent-content {
    flex-direction: column;
    text-align: center;
  }

  .consent-buttons {
    margin-top: 1rem;
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .badges {
    gap: 0.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
