/* styles.css */

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #0073e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

#header-img {
  height: 40px;
  width: auto;
}

#nav-bar {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffdd57;
  outline: none;
}

/* Offset for fixed header */
body > *:not(#header) {
  padding-top: 80px;
}

/* Sections */
section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
}

section h2 {
  margin-bottom: 1rem;
  color: #0073e6;
  font-size: 2rem;
  border-bottom: 2px solid #0073e6;
  padding-bottom: 0.3rem;
}

/* Video */
#video {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Form */
#form {
  max-width: 600px;
  margin: 3rem auto 4rem;
  background-color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#email {
  flex: 1 1 300px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #0073e6;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

#email:focus {
  border-color: #ffdd57;
  outline: none;
}

#submit {
  background-color: #0073e6;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#submit:hover,
#submit:focus {
  background-color: #005bb5;
  outline: none;
}

/* Footer */
#footer {
  text-align: center;
  padding: 2rem;
  background-color: #0073e6;
  color: white;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
  #nav-bar {
    gap: 1rem;
  }

  section {
    margin: 2rem 1rem;
    padding: 1rem;
  }

  #form {
    flex-direction: column;
    gap: 1rem;
  }

  #submit {
    width: 100%;
  }
}
