/* General styles */
* {
  box-sizing: border-box;
}

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

/* Set all headings to the same accent colour */
h1, h2, h3 {
  color: #ffc107;
}

a {
  color: #ffc107;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/Kansi.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}
.hero .overlay {
  position: relative;
  z-index: 1;
  max-width: 90%;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ffc107;
  color: #000;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #e0a800;
}

/* Generic section styling */
section {
  position: relative;
  /* Increase vertical padding for more breathing space on desktop */
  padding: 6rem 1rem;
  text-align: center;
  color: #fff;
}
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}
section .content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Section-specific backgrounds */
.intro {
  background-image: url('../images/Metsassa01.jpg');
  background-size: cover;
  background-position: center;
  /* Ensure the background image is prominently visible on larger screens */
  min-height: 80vh;
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.benefit-section {
  background-image: url('../images/Metsassa03.jpg');
  background-size: cover;
  background-position: center;
}
.ai-section {
  background-image: url('../images/Metsassa02.jpg');
  background-size: cover;
  background-position: center;
  /* Ensure the background image is prominently visible on larger screens */
  min-height: 80vh;
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.thermal-section {
  background-image: url('../images/Metsassa04.jpg');
  background-size: cover;
  background-position: center;
}
.nightvision-section {
  background-image: url('../images/Metsassa05.jpg');
  background-size: cover;
  background-position: center;
}

/* Benefits list */
.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.benefit {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 250px;
  max-width: 300px;
}
.benefit h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #ffc107;
}

/* Video section */
.video-section {
  /* Use a background image for the video section */
  background-image: url('../images/Metsassa06.jpg');
  background-size: cover;
  background-position: center;
  /* Extra vertical padding for video section */
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact section */
.contact {
  background: #0a0a0a;
  padding: 4rem 1rem;
  text-align: center;
}
.contact p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

footer {
  background: #000;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .benefit {
    flex: 1 1 100%;
    max-width: none;
  }
}