:root {
  --white: #ffffff;
  --bold-red: #c63333;
  --soft-red: #d56e56;
  --baby-blue: #a0d2f0;
  --dark-blue: #2c3e50;
  --light-gray: #ebf0f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
  color: var(--dark-blue);
  background-color: var(--white);
  overflow-x: hidden; /* Prevent horizontal scroll when menu is open */
}

/* Common Layout Elements */
.section-container,
.header-container,
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 4rem 1.5rem;
}

/* Typography */
.logo,
.footer-logo {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  text-decoration: none;
  color: var(--soft-red);
}

.logo {
  margin-right: 1rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.section-title,
.feature-title {
  font-family: "Playfair Display", serif;
  position: relative;
}

.section-title {
  font-size: 2rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

/* Decorative Elements */
.section-title::after,
.footer-title::after {
  content: "";
  position: absolute;
  background-color: var(--soft-red);
}

.section-title::after {
  width: 60%;
  height: 3px;
  bottom: -10px;
  left: 20%;
}

.footer-title::after {
  width: 50px;
  height: 2px;
  bottom: -8px;
  left: 0;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.tagline {
  font-size: 0.9rem;
  color: var(--dark-blue);
  font-style: italic;
  border-left: 2px solid var(--baby-blue);
  padding-left: 1rem;
  display: none;
}

/* Mobile Menu Button */
.menu-toggle {
  display: block;
  background: none;
  border: 2px solid var(--soft-red);
  color: var(--soft-red);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-toggle:hover {
  background-color: var(--soft-red);
  color: var(--white);
}

/* Navigation Menu */
.nav-menu {
  display: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--soft-red);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 63px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgb(144 144 144 / 30%), rgb(26 29 58 / 84%));
}

.hero-content {
  z-index: 10;
  max-width: 1200px;
  margin: 18vh auto 0;
  padding: 0 2rem;
}

.hero-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-description {
  max-width: 600px;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--soft-red);
  color: var(--white);
  border: 2px solid var(--soft-red);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 3px 3px black;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark-blue);
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--soft-red);
  font-style: italic;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: 10%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid #ddd;
  border-left: 4px solid #dff4ff;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Graphic novel style corner fold */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 100px 30px 0;
  border-color: transparent var(--baby-blue) transparent transparent;
  transition: border-width 0.3s ease;
}

.feature-card:hover::before {
  border-width: 0 40px 40px 0;
}

.feature-content {
  padding: 2rem;
}

.feature-text {
  color: #555;
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-block;
  color: var(--soft-red);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.feature-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}

.feature-link:hover::after {
  margin-left: 0.8rem;
}

/* Alternating Sections */
.section-justice {
  background-color: var(--light-gray);
}

.section-freedom,
.section-education {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Graphic novel style background elements */
.section-freedom::before,
.section-education::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 0;
}

.section-freedom::before {
  background-color: rgba(160, 210, 240, 0.2);
  top: -150px;
  right: -150px;
}

.section-education::before {
  background-color: rgba(245, 161, 145, 0.2);
  bottom: -150px;
  left: -150px;
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-about {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--soft-red);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Mobile Menu Styles */
.mobile-nav-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--white);
  z-index: 999;
  padding: 2rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-blue);
}

.mobile-nav-menu {
  list-style: none;
  margin-top: 3rem;
}

.mobile-nav-menu li {
  margin-bottom: 1.5rem;
}

.mobile-nav-menu a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
  color: var(--soft-red);
}

/* Responsive - Desktop Styles */
@media (min-width: 768px) {
  .section {
    padding: 6rem 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero {
    height: 100vh;
  }

  .hero-image {
    top: 0;
  }

  .hero-content {
    margin: 50vh auto 0;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .btn {
    width: auto;
  }

  .tagline {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    list-style: none;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
