/* ========== FONTS ========== */
@font-face {
  font-family: "Avenir";
  src: url("./assets/fonts/avenir.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ========== GLOBAL RESET & BOX SIZING ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ========== GLOBAL STYLES ========== */
html,
body {
  min-height: 100vh;
  overflow: auto;
  background: linear-gradient(to bottom, #2b387e, #000000);
  margin: 0;
  font-family: "Avenir", "arial";
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* ========== HEADER ========== */
#logo {
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  color: #34d1b6;
  display: flex;
  align-items: center;
}

#logo img {
  margin-right: 10px;
  margin-top: -5px;
}

header {
  display: flex;
  align-items: center;
  height: 131px;
  position: fixed;
  width: 100%;
  z-index: 10000000;
  color: #34d1b6;
  background-color: transparent;
}

header li a {
  color: #34d1b6;
  font-weight: 400;
}

header ul {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  width: 100%;
}

header ul li {
  padding-left: 30px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

header ul li:hover {
  text-decoration: underline;
}

/* Header when scrolled */
header.scrolled {
  background-color: white;
  transition: background-color 0.3s ease;
}

header.scrolled #logo {
  color: #1b1b1b;
}

header.scrolled ul li a {
  color: #1b1b1b;
}

/* ========== HERO SECTION ========== */
#hero {
  width: 100%;
  height: 100vh;
}

.hero-section {
  background: linear-gradient(to bottom, #2b387e, #000000);
  color: #fff;
}

/* Center container inside hero-section */
.hero-section .container {
  margin-top: 0;         /* Remove default top margin */
  height: 100%;          /* Fill hero height */
  display: flex;         /* Enable flex layout */
  align-items: center;   /* Vertically center children */
  justify-content: center; /* Horizontally center children */
}

/* Center hero-content and set it relative for absolute positioning */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.title {
  color: white;
  text-transform: uppercase;
  font-size: 90px;
  letter-spacing: 20px;
  margin-bottom: 0;
  font-weight: 800;
  min-height: 150px;
}

.tagline {
  font-size: 25px;
  color: white;
  padding-top: 10px;
  font-weight: 400;
  width: 600px;
  text-align: center;
}

/* Specific adjustments for hero-section */
.hero-section .title {
  margin-top: -100px;
}
.hero-section .tagline {
  color: #95a2e7;
}

/* ========== SCROLL-DOWN BUBBLES & TOOLTIP ========== */
/* Position the scroll-down element at the bottom center of hero-content */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

/* Bubble styling */
.scroll-down span {
  width: 18px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin: 10px auto;
  animation: bubble 1.5s infinite;
}

/* Stagger animation delays for bubbles */
.scroll-down span:nth-child(1) { animation-delay: 0s; }
.scroll-down span:nth-child(2) { animation-delay: 0.3s; }
.scroll-down span:nth-child(3) { animation-delay: 0.6s; }
.scroll-down span:nth-child(4) { animation-delay: 0.9s; }

/* Bubble keyframes */
@keyframes bubble {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px) scale(1.2);
    opacity: 0;
  }
}

/* Tooltip for scroll-down on hover (does not affect layout) */
.scroll-down-tooltip {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scroll-down:hover .scroll-down-tooltip {
  opacity: 1;
}

/* ========== SECTION STYLES ========== */
.section {
  padding: 100px 0;
  text-align: center;
  background-color: #f8f8f8;
  color: #333;
}
.section:nth-of-type(even) {
  background-color: #e0e0e0;
}
.section h2 {
  font-size: 48px;
  color: #2b387e;
  margin-bottom: 20px;
}
.section h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2b387e;
}
.section p,
.section ul {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
ul.services,
ul.features,
ul.contact-info {
  list-style: none;
  padding: 0;
}
ul.services li,
ul.features li {
  margin-bottom: 10px;
}
blockquote {
  font-style: italic;
  margin: 20px auto;
  max-width: 700px;
}
blockquote footer {
  margin-top: 10px;
  font-size: 16px;
  color: #555;
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    height: 80px;
  }
  .header-container {
    padding: 0 20px;
    position: relative;
  }
  .container {
    margin-top: 80px;
    padding: 0 20px;
  }
  .hero-content {
    padding: 0 20px;
  }
  /* Hero section adjustments */
  .hero-section .title { 
    margin-top: -100px;
    font-size: 30px;
    letter-spacing: 10px;
  }
  .hero-section .tagline {
    font-size: 18px;
    width: auto;
    padding: 0 20px;
  }
  /* Section adjustments */
  .section {
    padding: 60px 20px;
  }
  .section h2 {
    font-size: 36px;
  }
  .section h3 {
    font-size: 24px;
  }
  /* Scroll-down adjustments on mobile */
  .scroll-down {
    margin-top: 100px;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
      cursor: pointer;
    }
    .menu-toggle .bar {
      display: block;
      width: 25px;
      height: 3px;
      margin: 5px auto;
      background-color: #34d1b6;
      transition: all 0.3s ease;
    }

    header.scrolled .menu-toggle .bar {
      background-color: #1b1b1b;
    }
  
    /* Transform the burger into a close (X) icon when active */
    .menu-toggle.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
      opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  }
  
  /* Mobile Menu Styles */
  #myMenu {
    display: none;
    flex-direction: column;
    background: #2b387e;
    position: absolute;
    top: 48px; /* match header height */
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    z-index: 100000;
  }
  header.scrolled #myMenu {
    background: #e2e2e2;
  } 
  #myMenu.active {
    display: flex;
  }
  #myMenu li {
    padding: 10px 0;
  }
}
