/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body, html {
  width: 100%;
  font-family: Arial, sans-serif;
  color: #333;
  background: #f9f9f9;
}

/* Header */
.site-header {
  background: #4CAF50;
  color: white;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.site-header h1 {
  font-size: 2.5em;
}
.site-header p {
  font-size: 1.2em;
}

/* Header Logo */
.site-header .header-logo {
  position: absolute;
  top: 14px;               /* Slightly closer to top */
  left: 14px;              /* Slightly closer to left */
  height: 14vw;            /* Slight bump up from 13vw */
  max-height: 170px;       /* Slight bump up from 160px */
  width: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Title block stays centered */
.site-header .title-wrapper {
  display: inline-block;
}
.site-header .title-wrapper h1,
.site-header .title-wrapper p {
  color: white;
  margin: 0;
}

/* Sections */
section.feature {
  padding: 60px 20px;
  width: 100%;
}
section.feature:nth-child(even) {
  background: #f0f0f0;
}
section.feature h2 {
  margin-bottom: 20px;
  color: #4CAF50;
  font-size: 2em;
  font-weight: 700;
}
section.feature p {
  font-size: 1.8em;
  line-height: 1.7;
}

/* Feature Content Layout */
.feature-content {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
section.feature:nth-child(even) .feature-content {
  flex-direction: row-reverse;
}

/* Text Block */
.feature-text-block {
  flex: 1 1 400px;
}

/* Media Block */
.feature-media {
  flex: 1 1 400px;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.feature.in-view .feature-media {
  opacity: 1;
  transform: translateX(0);
}
.feature-media img {
  max-width: 100%;
  border-radius: 8px;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  position: relative;
  background: #4CAF50;
  color: white;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
}
.footer-login-button {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #555;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}
.footer-login-button:hover {
  background-color: #777;
  transform: translateY(-50%) translateY(-2px);
}

/* Animation Keyframes */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initially hidden */
section.feature h2,
section.feature p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.feature.in-view h2,
section.feature.in-view p {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2em;
  }
  .feature-content {
    flex-direction: column;
    align-items: stretch;
  }
  section.feature h2 {
    font-size: 1.6em;
  }
  section.feature p {
    font-size: 1.1em;
  }
  .footer-login-button {
    position: static;
    display: inline-block;
    transform: none;
    margin-top: 10px;
  }
  .site-header .header-logo {
    height: 14vw;
    top: 10px;
    left: 10px;
  }
}

/* NAVIGATION BUTTONS styled like the Login button */
.nav-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.nav-link {
  display: inline-block;
  width: 160px; /* consistent fixed width for all buttons */
  text-align: center;
  padding: 10px 18px;
  background-color: #555;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}
.nav-link:hover {
  background-color: #777;
  transform: translateY(-2px);
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: #555;
  padding: 8px;
  border-radius: 6px;
  margin: 10px 0 10px 20px; /* Align left: top, right, bottom, left */
  width: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}
.menu-toggle:hover {
  background-color: #777;
  transform: scale(1.05);
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  display: block;
  transition: background 0.3s;
}

/* Responsive Menu */
@media (max-width: 600px) {
  .nav-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
  }
  .nav-container.show {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex; /* show and align nicely */
  }
}
