/*
 * Global stylesheet for the energy test package promotional site.
 *
 * The design takes inspiration from dark, neon‑infused energy drink brands
 * without directly referencing any trademarked names. A dark background
 * combined with green accent colours reinforces the feeling of power and
 * vitality while maintaining readability. Responsive layouts are used to
 * ensure the site looks great on both mobile and desktop devices.
 */

/* Reset some defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0b0c10;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #7ed957;
  text-decoration: none;
}

a:hover {
  color: #aaff7f;
}

header {
  background-color: #0f1116;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Flex container for header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: 40px;
  margin-right: 0.5rem;
}
.logo span {
  font-size: 1.4rem;
  font-weight: bold;
  color: #7ed957;
  letter-spacing: 1px;
}

/* Navigation styling */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav li a {
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #7ed957;
  margin-bottom: 4px;
  border-radius: 3px;
  transition: transform 0.4s ease;
}

/* Hero section */
.hero {
  background-image: linear-gradient(120deg, rgba(15,17,22,0.8), rgba(15,17,22,0.8)), url('images/1.png');
  background-size: cover;
  background-position: center;
  color: #f5f5f5;
  padding: 6rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #7ed957;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  background-color: #7ed957;
  color: #0b0c10;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background-color: #aaff7f;
  color: #0b0c10;
}

/* Section styling */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: #7ed957;
  margin-bottom: 2rem;
  text-align: center;
}

/* Benefits/Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  background-color: #0f1116;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #20232a;
  transition: transform 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
}
.feature h3 {
  color: #7ed957;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.feature p {
  font-size: 0.95rem;
  color: #d1d1d1;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.carousel img {
  width: 100%;
  display: none;
  height: 400px;
  object-fit: cover;
}
.carousel img.active {
  display: block;
}
.carousel .controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.carousel button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #7ed957;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}
.carousel button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* FAQ section */
.faq-item {
  background-color: #0f1116;
  border: 1px solid #20232a;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
}
.faq-item summary {
  font-weight: 600;
  color: #7ed957;
  cursor: pointer;
  position: relative;
}
.faq-item summary::marker {
  color: #7ed957;
}
.faq-item p {
  margin-top: 0.5rem;
  color: #d1d1d1;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background-color: #0f1116;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #20232a;
  position: relative;
}
.testimonial::before {
  content: '“';
  font-size: 3rem;
  color: #7ed957;
  position: absolute;
  top: -10px;
  left: 15px;
}
.testimonial p {
  font-style: italic;
  color: #d1d1d1;
}
.testimonial .author {
  margin-top: 1rem;
  font-weight: bold;
  color: #7ed957;
  text-align: right;
}

/* Footer styling */
footer {
  background-color: #0f1116;
  color: #8a8a8a;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #20232a;
}
footer a {
  color: #7ed957;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #0f1116;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  }
  nav ul.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .carousel img {
    height: 250px;
  }
}