/* Define CSS Variables for consistency and easier adjustments */
:root {
  --font-size-hero-title: 90px; /* Default for large screens */
  --line-height-tight: 1.1;
  --font-weight-medium: 500;
  --text-color-light: #e6dede;
  --primary-color: #0055ff; /* Example primary color (blue) */
  --border-radius-sm: 8px;
  --transition-speed-normal: 0.3s;
  --text-color-greyish: #b0b0b0;
  --font-size-sm: 16px; /* Example for smaller text */
  --font-size-lg: 40px; /* Example for larger text on mobile */
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #000;
  color: var(--text-color-light); /* Apply default text color */
}

/* --- Hero Section Styles --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px; /* Default padding for medium desktops */
  height: auto;
  min-height: 80vh;
  width: 100%;
  box-sizing: border-box;
  position: relative; /* Ensures absolute positioning of video is relative to this section */
  overflow: hidden; /* Clips the video to the section's bounds */
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* controls fade height */
  background: linear-gradient(to top, #000 0%, transparent 100%);
  z-index: 0;            /* sits above the video, below content */
  pointer-events: none;  /* not clickable */
}
/* Hero Video Background Styles */
.hero-video-background { /* Targeted specifically for the hero section's video */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the entire area */
  z-index: -500; /* Places the video behind the content */
  filter: blur(50px);
}

.hero-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px; /* Default max-width for content */
  position: relative; /* Ensures content is above the video */
  z-index: 1; /* Places the content above the video */
}

.hero-title {
  font-size: var(--font-size-hero-title); /* Using CSS variable */
  line-height: var(--line-height-tight); /* Using CSS variable */
  font-weight: var(--font-weight-medium); /* Using CSS variable */
  margin-bottom: 30px;
  color: var(--text-color-light); /* Using CSS variable */
}

.hero-description-block {
  text-align: center;
  max-width: 600px; /* Default max-width for description */
  margin-bottom: 30px;
  color: var(--text-color-greyish); /* Using CSS variable */
  padding: 10px;
  font-size: 1.1em;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px; /* Default max-width for buttons container */
}

.hero-section-button {
  background: var(--primary-color); /* Using CSS variable */
  border-radius: var(--border-radius-sm); /* Using CSS variable */
  padding: 12px 25px;
  color: var(--text-color-light); /* Using CSS variable */
  text-align: center;
  font-size: var(--font-size-sm); /* Using CSS variable */
  font-weight: var(--font-weight-medium); /* Using CSS variable */
  text-decoration: none;
  position: relative;
  transition: all var(--transition-speed-normal) ease; /* Using CSS variable */
  outline: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.hero-section-button:hover {
  box-shadow: 0 0 15px rgba(0,85,255,0.8), inset 0 0 0.55em 0 #ffffff;
  scale: 1.05;
}

.hero-section-button.secondary { /* Combined selector */
  background-color:#757272;
  border: 1px solid var(--text-color-light); /* Using CSS variable */
}

/* Responsive Adjustments */

/* For larger desktops (e.g., 1440px and above) */
@media (min-width: 1440px) {
  .hero-section {
    padding: 60px 120px; /* More horizontal padding for wider screens */
    padding-bottom: 120px;
  }
  .hero-contents {
    max-width: 1200px; /* Allow content to spread out more */
  }
  .hero-title {
    font-size: 100px; /* Even larger title for very big screens */
    margin-bottom: 40px;
  }
  .hero-description-block {
    max-width: 800px; /* Allow description to be wider */
    font-size: 1.2em; /* Slightly larger description text */
  }
  .hero-actions {
    column-gap: 30px; /* More space between buttons */
    max-width: 500px; /* Allow buttons container to be wider */
  }
  .hero-section-button {
    padding: 15px 30px; /* Slightly larger buttons */
    font-size: 17px;
  }
}

/* For medium desktops (default styles apply from 769px up to 1439px) */
/* No specific media query needed here, as the base styles cover this range. */

/* For tablets and smaller desktops (max-width: 768px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 15px;
    margin-bottom: 60px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: var(--font-size-lg); /* Using CSS variable (40px) */
    margin-bottom: 20px;
  }
  .hero-description-block {
    font-size: 1em;
    padding: 0 5px;
  }
  .hero-actions {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .hero-section-button {
    width: 80%;
    max-width: 250px;
    padding: 10px 20px;
    font-size: 15px; /* Adjusting from var(--font-size-sm) for this breakpoint */
  }
}

/* For mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .hero-section {
    padding: 20px 10px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: 30px; /* Smaller title for small mobiles */
    margin-bottom: 15px;
  }
  .hero-description-block {
    font-size: 0.9em;
  }
  .hero-section-button {
    width: 90%;
    max-width: 220px;
    font-size: 14px;
    padding: 10px 15px;
  }
}

/* Fade-in animation (assuming JavaScript handles adding/removing 'is-visible' class) */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}
