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

body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background-color: #0c101c;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-weight: 100;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #b50000;
  color: white;
}

.btn-primary:hover {
  background: #e30202;
  transform: translateY(-2px);
  box-shadow: 0 0px 12px #ffffff50;
}

.btn-secondary {
  background: transparent;
  color: #b50000;
  border: 2px solid #b50000;
}

.btn-secondary:hover {
  background: #b50000;
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-contrast {
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-contrast:hover {
  background: #b50000;
  color: white;
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #77777750;
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: #0c101c50;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  background-clip: text;
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.nav-logo span {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #b50000;
}

.nav-link.resources-btn {
  background: linear-gradient(135deg, #898989, #b91c1c);
  color: white;
  padding: 8px 16px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-link.resources-btn:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 40px;
  height: 70vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: url("assets/DarcyFamily.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Changed from fixed for mobile performance */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(13, 19, 45, 0.4) 60%,
    rgba(13, 19, 45, 0.8) 80%,
    #0c101c 100%
  );
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-text {
  text-align: center;
  margin-bottom: 0rem;
}

.hero-text h1 {
  color: #ffffff;
  line-height: 0.9;
  font-size: 8rem;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: #e2e8f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Hero Bottom Section */
.hero-bottom {
  background: linear-gradient(to bottom, #0c101c 0%, #0c101c 80%, #16202e 100%);
  padding: 40px 0;
  text-align: center;
}

.hero-bottom .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-intro h3 {
  color: #60a5fa;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.hero-intro p {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 100;
}

.hero-image img {
  width: 90%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-stats {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 2rem 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

.stat {
  border: 1px solid #b50000;
  border-radius: 8px;
  padding: 1rem;
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.stat p {
  color: #ffffff;
  font-weight: 300;
}

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

.section-header h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #cbd5e1;
}

/* About Section */
.about {
  padding: 80px 0;
  background: linear-gradient(
    to bottom,
    #16202e 0%,
    #1a2332 20%,
    #1a2332 80%,
    #111a26 100%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  color: #576e8a;
  margin-top: 2rem;
  font-weight: 300;
}

.about-text h3:first-child {
  margin-top: 0;
}

.qualifications {
  margin-top: 2rem;
  padding: 2rem;
  background: #0c101c;
  border: 1px solid #334155;
  border-radius: 8px;
}

.qualifications h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.qualifications ul {
  list-style: none;
}

.qualifications li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: #cbd5e1;
}

.qualifications li i {
  color: #10b981;
  margin-right: 0.8rem;
}

.about-image img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Issues Section */
.issues {
  padding: 80px 0;
  background: linear-gradient(
    to bottom,
    #111a26 0%,
    #0c101c 20%,
    #0c101c 80%,
    #16202e 100%
  );
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.issue-card {
  background: #1a2332;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.issue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: #60a5fa;
}

.issue-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #b50000, #b50000);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.issue-icon i {
  font-size: 1.5rem;
  color: white;
}

.issue-card h3 {
  margin-bottom: 1rem;
  color: #ffffff;
  margin-top: 2rem;
  font-weight: 300;
}

.issue-card p {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.issue-card ul {
  list-style: none;
}

.issue-card li {
  color: #94a3b8;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.issue-card li::before {
  content: "•";
  color: #b50000;
  position: absolute;
  left: 0;
}

/* Endorsements Section */
.endorsements {
  padding: 80px 0;
  background: linear-gradient(
    to bottom,
    #16202e 0%,
    #1a2332 20%,
    #1a2332 80%,
    #111a26 100%
  );
}

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.endorsement {
  text-align: center;
  padding: 2rem;
  background: #0c101c;
  border: 1px solid #334155;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.endorsement:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
}

.endorsement-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.endorsement-logo i {
  font-size: 2rem;
  color: white;
}

.endorsement h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.endorsement p {
  font-style: italic;
  color: #cbd5e1;
}

/* Events Section */
.events {
  padding: 80px 0;
  background: linear-gradient(
    to bottom,
    #111a26 0%,
    #0c101c 20%,
    #0c101c 80%,
    #16202e 100%
  );
}

.events-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  background: #1a2332;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
}

.event-date {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-right: 2rem;
  min-width: 80px;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.event-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-info h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.event-info p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  color: #cbd5e1;
}

.event-info i {
  color: #b50000;
  margin-right: 0.5rem;
  width: 16px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: linear-gradient(
    to bottom,
    #16202e 0%,
    #1a2332 20%,
    #1a2332 80%,
    #1a2332 100%
  );
}

.contact-content {
  /* can be block or flex, doesn't matter since it has one child */
  display: block;
}

.contact-info {
  display: flex; /* put items in a row */
  justify-content: center; /* center horizontally */
  align-items: center; /* align vertically */
  gap: 4rem; /* space between email & phone */
  flex-wrap: wrap; /* let them wrap on small screens */
  text-align: center; /* nice for multi-line items when wrapped */
}

.contact-item {
  display: flex; /* keep icon + text in a row */
  align-items: center;
  margin: 0; /* remove vertical stacking margin */
}

.contact-item i {
  color: #b50000;
  margin-right: 1rem;
  width: 20px;
}

.social-links {
  margin-top: 2rem;
}

.social-links h4 {
  margin-bottom: 1rem;
  color: #1e293b;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #b50000;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form h3 {
  color: #1e293b;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #334155;
  border-radius: 2px;
  font-size: 1rem;
  background: #0c101c;
  color: #e2e8f0;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #60a5fa;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* resources Section */
.resources {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/MillvilleCanyon.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  color: white;
  text-align: center;
}

.resources-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.resources-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.resources-amounts {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.amount-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.amount-btn:hover,
.amount-btn.active {
  background: white;
  color: #b50000;
  border-color: white;
}

.resources-form {
  margin-bottom: 2rem;
}

#custom-amount {
  max-width: 200px;
  margin: 1rem auto;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
}

#custom-amount::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.resources-disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #94a3b8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: #00000095;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    height: 60vh;
    /* Disable parallax on mobile for better performance */
    background-attachment: scroll !important;
    /* Optimize background for mobile */
    background-size: 150%;
    background-position: 40% 70%; /* Move image right (60%) and down (30%) on mobile */
    /* Force hardware acceleration and proper rendering on mobile */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure background renders immediately */
    will-change: background-image;
  }

  .hero-content {
    text-align: center;
    height: 100%;
  }

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

  .hero-bottom .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-bottom .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .resources-amounts {
    flex-direction: column;
    align-items: center;
  }

  .amount-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }

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

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

  .hero-intro h3 {
    font-size: 1.5rem;
  }

  .hero-intro p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .issues-grid {
    grid-template-columns: 1fr;
  }

  .endorsements-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
    text-align: center;
  }

  .event-date {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: center;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
  color: #b50000;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000;
    border: 2px solid #000;
  }

  .btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
}
