/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  background: #f9fafb;
}

main {
  padding-top: 4rem;
}

/* Appbar */
.appbar {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid #60a5fa;
  width: 100vw;
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: #1e40af;
  text-decoration: none;
  padding-left: 3%;
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 16px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-label span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1e40af;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(1) {
  top: 0;
}
.nav-toggle-label span:nth-child(2) {
  top: 7px;
}
.nav-toggle-label span:nth-child(3) {
  top: 14px;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg);
  top: 7px;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg);
  top: 7px;
}

/* Show nav when checked */
#nav-toggle:checked ~ .nav {
  display: block;
  justify-content: center;
  align-items: center;
}

/* Nav links */
.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  font-size: large;
  margin-right: 4vw;
  margin-top: 1.5vh;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: #1e40af;
  position: relative;
  transition: color 0.2s ease;
}

/* Underline effect */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Section Title */
.sectionTitle {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  padding-top: 15vh;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(200px);
  transform: translate(-50%, -50%) rotate(25deg);
}

.hero::before {
  width: 700px;
  height: 700px;
  top: 10%;
  left: 30%;
}

.hero::after {
  width: 500px;
  height: 500px;
  bottom: 0;
  right: 10%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1700px;
  height: 100%;
  margin: 0 auto;
  padding-left: 5vw;
  flex-direction: row;
}

.button-div {
  order: 2;
}

.hero-text {
  max-width: 48%;
  color: #fff;
  order: 1;
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subheader {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn-hero {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-hero:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}

.hero-graphic {
  flex-shrink: 0;
  width: 55%;
  overflow: visible;
  order: 3;
}

.hero-graphic img {
  width: 95%;
  max-width: none;
  height: 70%;
  display: block;
}

.button-div .btn-hero {
  display: none;
}

/* Tablets */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-subheader {
    font-size: 1.35rem;
  }
  .hero-summary {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .appbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0.7rem;
  }

  .logo {
    font-size: 1.75rem;
    padding-left:3%;
  }

  .nav-toggle-label {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .sectionTitle {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #3b82f6;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
    
    padding-left: 0.5rem;
    margin-right: 0;
  }

  .nav ul li a {
    font-size: 1rem;
    padding: 0.5rem 4.25%;
    display: inline-block;
    position: relative;
  }

  .nav a::after {
    left: 0;
    right: 0;
    margin: auto;
  }

  .hero {
    height: auto;
    min-height: 75vh;
    padding-top: 10vh;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-graphic {
    width: 100%;
    order: 2;
  }

  .hero-graphic img {
    width: 90%;
    height: auto;
    margin: 0 auto;
  }

  .button-div {
    order: 3;
    margin-bottom: 2rem;
  }

  .hero-text .btn-hero {
    display: none;
  }

  .button-div .btn-hero {
    display: inline-block;
  }

  .hero-subheader {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-summary {
    font-size: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .appbar a {
    font-size: 1.25rem;
  }
}

/* Landscape adjustments */
@media screen and (max-width: 950px) and (orientation: landscape) {
  .hero {
    position: relative;
    height: 170vh;
    padding-top: 10vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  }
}

@media screen and (min-width: 700px) and (max-width: 950px) and (orientation: landscape) {
  .hero {
    height: 226vh;
    padding-top: 20vh;
  }

}

@media screen and (min-width: 500px) and (max-width: 699px) and (orientation: landscape) {
  .hero {
    height: 215vh;
    padding-top: 17.5vh;
  }
}
