/* GENERAL STYLES */
html {
  scroll-padding-top: 100px;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(to bottom right, rgba(245, 120, 40, 1), rgba(65, 154, 46, 1));
}

/* SUCCESS BANNER STYLES */
#formSuccessBanner {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(65, 154, 46, 0.9);
  color: white;
  text-align: center;
  z-index: 2000;
  transition: top 0.4s ease-out;
}

#formSuccessBanner.show {
  top: 0;
}

.navbar.fixed-top.banner-shown {
  top: 60px !important;
  transition: top 0.4s ease-out;
  background-color: rgba(65, 154, 46, 0.9) !important;
}

html.banner-visible {
  scroll-padding-top: 160px !important;
}

/* NAVBAR STYLES */
.navbar {
  background-color: rgba(65, 154, 46, 0.9) !important;
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-out, top 0.4s ease-out;
  will-change: transform;
}

.navbar-brand img {
  height: 70px;
  width: auto;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 600;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(245, 120, 40, 1) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  background-color: rgba(65, 154, 46, 0.9);
}

.dropdown-item {
  color: white;
}

.dropdown-item:hover {
  background-color: rgba(65, 154, 46, 0.9);
  color: rgba(245, 120, 40, 1);
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  color: white;
  background: black;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 0;
}

.hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-in-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0;
}

.hero p {
  font-size: 1.5rem;
  margin: 20px 0;
}

.cta-button {
  background-color: rgba(245, 120, 40, 1);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: rgba(210, 90, 30, 1);
}

/* CONTENT SECTIONS */
.about, .mission, .vision, .programs, .donate, .contact {
  padding: 80px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mission h2, .vision h2, .about h2, .programs h2, .contact h2 {
  color: rgba(65, 154, 46, 1);
}

.mission p, .vision p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

/* PROGRAMS SECTION */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.event-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 70vh;
}

.event-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(65, 154, 46, 0.9);
  padding: 20px;
  color: white;
  border-left: 5px solid rgba(245, 120, 40, 1);
}

.event-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
}

.event-caption .btn {
  background-color: rgba(245, 120, 40, 1);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.event-caption .btn:hover {
  background-color: rgba(210, 90, 30, 1);
}

/* COMING SOON SECTION */
.coming-soon {
  background-color: rgba(65, 154, 46, 0.9);
  padding: 80px 20px;
  color: white;
  text-align: center;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.upcoming-events-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.video-container, .image-container {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
  width: 100%;
}

.image-container {
  background-image: url('chicks-in-box.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding-bottom: 50px;
}

.video-container video.active {
  opacity: 1;
}

.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--orange);
  animation: spin 1s ease-in-out infinite;
  z-index: 10;
  display: none;
}

/* DONATE SECTION */
.donate {
  background-color: rgba(65, 154, 46, 0.9);
  color: white;
}

.donate .cta-button {
  background-color: rgba(245, 120, 40, 1);
  color: white;
}

/* CONTACT SECTION */
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input, .contact textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact button {
  background-color: rgba(245, 120, 40, 1);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: rgba(210, 90, 30, 1);
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .custom-modal {
  transform: translateY(0);
}

.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-header {
  padding: 20px;
  text-align: center;
  background-color: rgba(65, 154, 46, 0.9);
  color: white;
}

.modal-body {
  position: relative;
  height: calc(300px - 30px);
  padding-bottom: 30px;
  overflow: hidden;
}

.modal-bg {
  background-image: url('chicks-in-box.jpg');
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
}

.modal-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 30px);
  object-fit: cover;
  object-position: center top;
}

.modal-icon {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

.modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
}

.countdown {
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(65, 154, 46, 1);
}

/* FOOTER STYLES */
footer {
  background-color: rgba(65, 154, 46, 0.9);
  color: white;
}

footer a {
  color: white !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer p {
  color: white;
}

footer a:hover {
  color: rgba(245, 120, 40, 1) !important;
}

footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

footer .bi {
  font-size: 1.3rem !important;
  transition: color 0.3s ease;
}

/* INFO BOX STYLES */
.info-box {
  position: fixed;
  width: 200px;
  background-color: rgba(65, 154, 46, 0.9);
  color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  animation: pulse 2s infinite;
  border-left: 5px solid rgba(245, 120, 40, 1);
  overflow: hidden;
}

.info-box img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 10px;
}

.bottom-left-box {
  bottom: 20px;
  left: 20px;
}

.bottom-right-box {
  bottom: 20px;
  right: 20px;
}

.info-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-content h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-content p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 120, 40, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 120, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 120, 40, 0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
  .event-caption {
    padding: 15px;
  }
  
  .event-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .modal-icon {
    width: 200px;
    height: auto;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .event-list {
    gap: 20px;
  }
  
  .event-caption {
    padding: 12px;
  }
  
  .event-caption h3 {
    font-size: 1.3rem;
  }
  
  .event-caption .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .navbar {
    padding: 15px 20px;
  }

  html {
    scroll-padding-top: 90px;
  }

  .info-box {
    width: 150px;
    padding: 10px;
  }
  
  .bottom-left-box {
    bottom: 10px;
    left: 10px;
  }
  
  .bottom-right-box {
    bottom: 10px;
    right: 10px;
  }
  
  .info-content h3 {
    font-size: 1rem;
  }
  
  .info-content p {
    font-size: 0.8rem;
  }
  
  .modal-icon {
    width: 200px;
    height: auto;
    bottom: 15px;
    right: 15px;
  }

  .modal-body {
    height: calc(300px - 50px);
    padding-bottom: 50px;
  }
  
  .modal-video {
    height: calc(100% + 50px);
  }
}

@media (max-width: 576px) {
  .event-caption h3 {
    font-size: 1.1rem;
  }
  
  .event-caption .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .info-box {
    width: 150px;
    padding: 10px;
  }
  
  .info-box img {
    max-height: 80px;
  }
  
  .info-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .info-content p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .modal-icon {
    width: 200px;
    height: auto;
    bottom: 10px;
    right: 10px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .video-container, .image-container {
    height: 300px;
  }
}