html {
  scrollbar-width: none; /* For Firefox */
}

body {
  margin: 0;
  /* Set Proxima Nova as the default font for the entire site */
  font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  background-color: #f1f1f1;
  color: #333;
  -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

/* For Chrome, Safari, and Opera */
body::-webkit-scrollbar {
  display: none;
}

h1{
  margin-bottom: 0.5em;
  font-weight: 600;
  letter-spacing: 1px;
}

h2 {
    margin-bottom: 0.5em;
    font-weight: 400;
    letter-spacing: 0.8px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfcfc;
  border-bottom: 2px solid #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header .nav {
  display: flex;
  align-items: center;
}

.header .nav img {
  width: 32px;
  height: 32px;
}

.header .logo img {
  max-height: 60px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #3178b0;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.btn-contact {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin-right: 0.5rem;
  background: transparent;
  color: #ee7923;
  border-radius: 4px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-contact-submit {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #ee7923;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.btn-talk-video {
  margin: 2rem auto 0;
}

.btn-contact:hover {
  background: #ee7923;
  color: #fff;
}

.btn-contact-submit:hover {
  background: #b35919;
}

.btn:hover {
  background: #215379;
}

.btn.secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #ee7923;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.btn.secondary:hover {
  background: #b35919;
}

/* Hero */
.hero {
  padding: 0;
}

.hero-image-wrapper {
  position: relative;
  color: #fff;
  text-align: left;
  max-height: 75vh; /* Set a max height (75% of the viewport's height) */
  overflow: hidden; /* Hide the part of the image that overflows this height */
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-width: 650px;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
}

.hero h1 {
  color: #f59421;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-title {
  color: #3178b0;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-title-about {
  color: #3178b0;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: 3rem;
  margin-bottom: -2rem;
}

.hero-subtitle-about {
  color: #3178b0;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: 1.5rem;
}

.hero-subtitle-contact {
  color: #3178b0;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: 1.4rem;
}

.hero-title-book {
  color: #3178b0;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.hero-text-talk {
  margin-bottom: -0.5rem;
  font-size: 1.2rem;
}


.hero-text-book {
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Testimonial */
.testimonial {
  padding: 3rem 0;
  background: #f1f1f1;
  color: #fff;
  text-shadow: #333 1px 1px 5px;
  text-align: center;
  font-style: italic;
}

.testimonial-gradient {
  background: linear-gradient(90deg, #dda35b 0%, #a07034 100%);
}

.testimonial blockquote {
  font-size: 1.5rem;
}

.testimonial .author {
  margin-top: 1rem;
  font-weight: bold;
  font-style: normal;
}

/* About */
.about {
  padding: 4rem 0;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.2rem;
}

.about-text {
  font-weight: 400;
  font-size: 1.3rem;
  font-style: normal;
}

.img-billysign{
  max-height: 100px;
  max-width: 140px;
  margin: 2rem auto 0; /* Center the image and add space above it */
}

/* As Seen On */
.as-seen-on {
  padding: 3rem 0;
  background: #e7e7e7;
}

.as-seen-on-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6rem;
}

.as-seen-on-logos img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
}

/* Talk */
.talk {
  padding: 4rem 0;
}

.talk .container {
  display: flex;
  gap:2rem;
  align-items: flex-start;
}

.talk-text {
  flex: 4;
  margin-top: -2rem;
}

.talk-img {
  flex: 3;
  margin-top: 1.5rem;
}

.talk-text li {
  padding-left: 1.2rem;
}

/* Book */
.book {
  padding: 4rem 0;
}

.book .container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.book-img {
  flex: 1;
}

.book-text {
  flex: 2;
  font-size: 1.2rem;
}

.book-buttons {
  display: flex;
  justify-content: center;
  gap: 8rem;
  margin-top: 3rem;
}

/* Contact */
.contact {
  padding: 4rem 0;
  background: #f1f1f1;
}

.contact .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contact-img {
  flex: 1;
  background: transparent;
}

.contact-form-wrapper {
  flex: 1;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 0;
}

.contact input, 
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #cacaca;
  border-radius: 4px;
}

.contact button {
  align-self: center;
}

/* Footer */
.footer {
  background: #fcfcfc;
  border-top: 2px solid #ffffff;
  color: #ee7923;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 2rem 0;
}

.footer-tagline {
  font-weight: 600;
  font-size: 1.2rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer .logo img {
  max-height: 60px;
}

.footer .nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Section Fade-in Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* Video Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal.is-visible {
  display: flex;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 960px; /* Max width of the video popup */
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@keyframes animatetop {
  from {transform: translateY(-100px); opacity: 0}
  to {transform: translateY(0); opacity: 1}
}

.close-btn {
  color: #fff;
  position: absolute;
  top: -52px; /* Position the 'X' above the video */
  right: -30px;
  font-size: 45px;
  font-weight: bold;
  z-index: 10; /* Ensure it's on top of the video content */
  transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive Iframe Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Responsive Styles --- */

/* Tablets and smaller devices */
@media (max-width: 1020px) {
  /* Use more specific selectors to override desktop styles */
  .hero h1,
  .about .hero-title,
  .hero-title-about,
  .hero-title-book {
    font-size: 2.5rem; 
  }

  .hero {
    padding: 0;
  }

  .hero-image-wrapper::before {
    /* content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
    background: rgba(0, 0, 0, 0.4);
  }

  .hero-text {
    top: 40%;
    left: 50%;
    z-index: 1; /* Ensure text is above the image */
    transform: 0 -50%; 
    width: 90%;
    text-align: left;
  }

  .as-seen-on-logos {
    gap: 3rem;
  }

  .book-buttons {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    font-size: 1.1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header */
  .header .logo img {
    max-height: 50px;
  }
  .btn-contact {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }

  /* Hero Section - Improved for Mobile */
  .hero {
    padding: 0; /* Remove desktop padding for an edge-to-edge look */
  }

  .hero-image-wrapper {
    max-height: none;
    min-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0; 
  }

  .hero-image-wrapper::before {
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover; 
    z-index: -1; /* Place image behind text and overlay */
  }

  .hero-text {
    position: static; 
    z-index: 1; /* Ensure text is above the image */
    transform: none; 
    width: 90%;
    text-align: center;
  }

  /* Use more specific selectors to override desktop styles */
  .hero h1,
  .about .hero-title,
  .hero-title-about,
  .hero-title-book {
    font-size: 2rem; 
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1.2rem; 
  }

  /* Testimonial */
  .testimonial blockquote {
    font-size: 1.2rem;
  }

  /* About */
  .about {
    padding: 3rem 0;
  }

  /* Talk */
  .talk .container {
    flex-direction: column;
    text-align: center;
  }
  .talk-text {
    margin-top: 0;
  }
  .talk-text ul {
    text-align: left;
    display: inline-block; 
  }

  /* As Seen On */
  .as-seen-on-logos {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .as-seen-on-logos img {
    max-height: 35px;
    max-width: 100px;
  }

  /* Book */
  .book .container {
    flex-direction: column-reverse; /* Puts image on top */
    text-align: center;
  }
  .book-text ul {
    text-align: left;
    display: inline-block; 
  }
  .book-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Contact */
  .contact .container {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 1rem;
  }

  /* Modal */
  .close-btn {
    top: -40px;
    right: 0;
    font-size: 35px;
  }
}

/* Extra small devices (e.g., iPhone SE) */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero .btn {
    font-size: 0.9rem;
  }
}
