/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/* Root Variables */
:root {
  --primary-color: #0ea5e9;
  --primary-color-dark: #0284c7;
  --text-light: #f3f4f6;
  --bg-dark: #0b0b0b;
  --bg-light: #f9f9f9;
}

/* Reset & Box Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #000; /* fallback if video fails */
  overflow-x: hidden;
  color: #222;
}

/* HERO SECTION */
.main {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 0 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

/* Background Video */
.bg__video {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Carousel Images */

.carousel {
  position: center;
  width: 80%;
  max-width: 700px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  margin: 0 auto;
  background-color: #111;
  
}

.slides {
  display: flex;
  transition: transform 0.9s ease-in-out;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

/* Overlay Layer */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .35); /* darker, more contrast */
  z-index: 0;
  pointer-events: none;
}

/* Navigation */
header nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  transition: background 0.4s ease, padding 0.3s ease;
}

.logo {
  height: 120px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: var(--primary-color);
  outline: none;
}

/* Sticky Nav Effect */
header.scrolled nav {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 1rem 4rem;
}

/* Hero Content */
.content h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.promo {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.promo:hover,
.promo:focus {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* SECTIONS */
.section {
  padding: 8rem 2rem;
  text-align: center;
  background-color: var(--bg-light);
  color: #222;
}

.section.alt {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color-dark);
}

.section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
}

.contact-form button {
  padding: 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary-color-dark);
}

/* FOOTER */
footer {
  background-color: #000;
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer-logo img {
  width: 120px; /* Adjust size as needed */
  height: auto;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 0.8; /* Subtle hover effect */
}

/* Responsive Video Aspect Ratios */
@media (min-aspect-ratio: 16/9) {
  .bg__video {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .bg__video {
    width: auto;
    height: 100%;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .main {
    padding: 0 2rem;
  }

  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
  }

  .logo {
    height: 80px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .content h1 {
    font-size: 2.8rem;
  }

  .content p {
    font-size: 1.1rem;
  }

  .promo {
    width: 100%;
  }

  .section {
    padding: 5rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }
}

/* Smooth Scroll Header Shrink JS Helper */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
