* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ----------------------------- */
/* First Section Styling & Animations */
/* ----------------------------- */

#first_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 100px;
  background-color: #fff;
  height: 200px;
  position: relative; /* required for sparkles */
  overflow: hidden;   /* keeps floating effects within section */
}

/* ---------------- Heading ---------------- */
#first_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  position: relative;
  left: -30px;
  animation: glowPulse 2.5s infinite alternate;
  z-index: 1; /* ensures text is above sparkles */
}

/* Glowing pulse for heading */
@keyframes glowPulse {
  0% { text-shadow: 0 0 5px rgba(0, 150, 255, 0.3); }
  50% { text-shadow: 0 0 15px rgba(0, 150, 255, 0.6); }
  100% { text-shadow: 0 0 5px rgba(0, 150, 255, 0.3); }
}

/* ---------------- Paragraph ---------------- */
#first_section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 45%;
  margin: 0;
  line-height: 1.4;
  text-align: justify;
  font-family: 'Times New Roman', Times, serif;
  position: relative;  /* required for shimmer */
  overflow: hidden;    /* hide shimmer overflow */
  z-index: 1;          /* ensures text is above sparkles */
}

/* Paragraph shimmer overlay */
#first_section p::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* ---------------- Sparkles Overlay ---------------- */
#first_section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
  background-size: 30px 30px;
  animation: rotateStars 20s linear infinite;
  z-index: 0; /* ensures sparkles are behind text */
}

/* Slowly rotate sparkles */
@keyframes rotateStars {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* General Section Styles */
#second_section {
  display: flex;
  flex-wrap: wrap;
  font-family: "Times New Roman", serif;
  padding: 40px 20px;
}

#second_section .container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* LEFT COLUMN */
.left-col {
  flex: 1; /* adjustable */
  padding: 10px; /* adjustable */
}

.left-col img.left-image {
  width: 450px; /* adjustable */
  height: 700px; /* adjustable */
  display: block;
  border-radius: 30px;

  /* Dark Blue Glowing Border */
  position: relative;
  border: 4px solid transparent;
  box-shadow: 0 0 15px #001f5b, 0 0 30px #002a80, 0 0 45px #0033a0, 0 0 60px #001f5b inset;
  animation: glowAnimation 2.5s infinite alternate;
}

/* Right Column */
.right-col {
  flex: 1; /* adjustable */
  padding: 10px; /* adjustable */
  font-family: "Times New Roman", serif;
}

/* Heading */
.right-col h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #03368e;
  margin-left: 150px;
}

/* Contact Rows */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* adjustable */
  margin-bottom: 20px; /* adjustable */
}

.contact-row.first-row {
  display: flex;
  flex-wrap: nowrap;        /* all 3 stay in one line */
  gap: 15px;                /* space between items */
  align-items: flex-start;  /* align all divs at the top */
  margin-bottom: 20px;
  margin-top: 10px;
}

.contact-row.first-row .contact-item {
  flex: 1;                  /* or use flex: 0 0 32%; for fixed width */
  min-width: 150px;         /* adjustable */
  height: 250px;            /* adjustable */
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;   /* keep content stacked vertically */
  padding-top: 30px;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Keep icons and headings as before */
.contact-item i {
  font-size: 30px;
  color: #0d21fd;
  margin-bottom: 10px;
}

.contact-item h4 {
  font-size: 1.2em;
  margin-bottom: 15px;
}

.contact-item p {
  font-size: 1em;
  line-height: 1.4;
  margin: 2px 0;
}

.contact-item p a {
  color: #000;
  text-decoration: none;
}

.contact-item p a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* Second Row: Follow Us */
.contact-row.second-row .contact-item.follow-us {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-top: 0;
}

/* Social Icons */
.contact-item .social-icons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

.contact-item .social-icons a {
  margin: 0 10px;
  color: #000;
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item .social-icons a:hover {
  color: #0d6efd;
  transform: translateY(-5px);
}

/* Bottom Image */
.right-col .bottom-image {
  margin-top: 20px;
}

.right-col .bottom-image img {
  width: 700px; /* adjustable */
  height: 350px;
  border-radius: 8px;

  /* Dark Blue Glowing Border */
  position: relative;
  border: 4px solid transparent;
  box-shadow: 0 0 15px #001f5b, 0 0 30px #002a80, 0 0 45px #0033a0, 0 0 60px #001f5b inset;
  animation: glowAnimation 2.5s infinite alternate;
}

/* Glow Animation (common for both images) */
@keyframes glowAnimation {
  0% {
    box-shadow: 0 0 10px #3399ff, 0 0 20px #66b3ff, 0 0 30px #80ccff, 0 0 40px #3399ff inset;
  }
  50% {
    box-shadow: 0 0 20px #3399ff, 0 0 40px #66b3ff, 0 0 60px #80ccff, 0 0 80px #3399ff inset;
  }
  100% {
    box-shadow: 0 0 10px #3399ff, 0 0 20px #66b3ff, 0 0 30px #80ccff, 0 0 40px #3399ff inset;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
  }
}

#third_section {
  padding: 60px 20px;
  background: url("./images/WHITY.gif")  center/cover no-repeat;
  font-family: "Times New Roman", serif;
}

#third_section .container {
  max-width: 600px;
  margin: 0 auto;
}

#third_section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #03368e;
}

.lastp {
  /* Bold text */
  font-weight: bold;

  /* Animated rainbow gradient */
  background: linear-gradient(270deg, #ff4d4d, #ffb84d, #ffff4d, #4dff4d, #4d4dff, #b84dff, #ff4dd2);
  background-size: 1400% 1400%;

  /* Make background apply to text */
  -webkit-background-clip: text; /* Chrome, Safari */
  -webkit-text-fill-color: transparent; /* Chrome, Safari */
  background-clip: text; /* Firefox */
  color: transparent; /* fallback */

  /* Glow effect */
  text-shadow: 0 0 8px rgba(255,255,255,0.7), 0 0 15px rgba(255,255,255,0.5);

  /* Animations */
  animation: gradientWave 6s ease infinite, glowPulse 3s ease-in-out infinite;
}

/* Rainbow gradient animation */
@keyframes gradientWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow pulse animation */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255,255,255,0.7), 0 0 15px rgba(255,255,255,0.5); }
  50% { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.7); }
}


.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Times New Roman", serif;
  font-size: 1em;
}

.contact-form textarea {
  resize: vertical;
}

.send-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #0d6efd;
  color: white;
  font-size: 1.1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Times New Roman', Times, serif;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
  #third_section .container {
    padding: 0 10px;
  }
}

#fourth_section {
  padding: 40px 20px;
  font-family: "Times New Roman", serif;
}

#fourth_section .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

#fourth_section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #03368e;
  padding-top: 0;
  margin-top: 0;
}

/* Map container to make it responsive */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ===== Footer ===== */
#site_footer {
  background-color: #012f7e;   /* deep navy to match headings */
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  margin-top: 0px;  /* space above footer */
  height: 100px;
  padding-top: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Sparkling moving dots */
#site_footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px) repeat,
    radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px) repeat;
  background-size: 20px 20px, 50px 50px;
  animation: sparkleMove 15s linear infinite, sparkleFloat 12s linear infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Subtle glowing flowing waves */
#site_footer::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 200%;
  animation: waveFlow 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Sparkle horizontal/vertical motion */
@keyframes sparkleMove {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 100px 50px, 50px 100px; }
  100% { background-position: 0 0, 0 0; }
}

/* Slight float up and down for extra magic */
@keyframes sparkleFloat {
  0% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-5px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
}

/* Slow wave movement for premium effect */
@keyframes waveFlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

#site_footer p {
  margin: 0;
  position: relative;
  z-index: 1; /* ensures text stays above magic effects */
}





/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  background: linear-gradient(135deg, #5e0eea, #2600ff);
  color: #fff;
  border-radius: 30px;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none; /* hidden by default */
  transition: all 0.4s ease;
}

/* Hover Effect */
#scrollTopBtn:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 25px rgba(0, 150, 255, 0.7);
}

/* ================= RESPONSIVENESS ENHANCER FOR CONTACT PAGE ================= */

/* Tablets & medium screens */
@media (max-width: 1024px) {
  #first_section {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    height: auto;
  }
  #first_section h1 {
    font-size: 1.8rem;
    left: 0;
  }
  #first_section p {
    max-width: 100%;
    margin-top: 20px;
  }

  #second_section {
    flex-direction: column;
    padding: 30px 20px;
  }
  .left-col, .right-col {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
  .left-col img.left-image {
    width: auto;
    height: 250px;
    border-radius: 20px;
  }
  .right-col h2 {
    font-size: 1.8rem;
    margin-left: 0;
  }
  .contact-row.first-row {
    flex-direction: column;
    align-items: center;
  }
  .contact-item {
    width: 80%;
    margin: 15px 0;
  }
  .right-col .bottom-image img {
    width: 90%;
    height: auto;
  }

  #third_section h2 {
    font-size: 1.8rem;
  }
  .contact-form input, .contact-form textarea {
    font-size: 0.95rem;
  }
  .send-btn {
    font-size: 1rem;
    padding: 10px;
  }

  #fourth_section h2 {
    font-size: 1.8rem;
  }
  .map-container {
    padding-bottom: 60%;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
  }
  .logo img {
    margin-left: 0;
    height: 80px;
    width: 80px;
  }
  .nav-links {
    margin: 10px 0;
  }
  .social-icons {
    margin: 10px 0;
  }
  .join-btn {
    margin: 10px 0;
  }

  #first_section {
    padding: 30px 20px;
  }

  #second_section {
    padding: 20px 15px;
  }
  .contact-item {
    width: 90%;
  }

  .right-col .bottom-image img {
    width: 100%;
  }

  #third_section {
    padding: 40px 15px;
  }
  .contact-form input, .contact-form textarea {
    font-size: 0.9rem;
  }
  .send-btn {
    font-size: 0.95rem;
    padding: 10px;
  }

  #fourth_section {
    padding: 30px 15px;
  }
  .map-container {
    padding-bottom: 55%;
  }

  #site_footer {
    font-size: 0.9rem;
    padding: 20px 10px;
    height: auto;
  }
}

/* Mobile screens */
@media (max-width: 600px) {
  #first_section h1 {
    font-size: 1.5rem;
  }
  #first_section p {
    font-size: 1rem;
  }

  #second_section {
    padding: 15px 10px;
  }
  .contact-item {
    width: 100%;
    margin: 10px 0;
    height: auto;
    padding: 15px;
  }

  .right-col .bottom-image img {
    width: 100%;
    height: auto;
  }

  #third_section {
    padding: 30px 10px;
  }
  #third_section h2 {
    font-size: 1.5rem;
  }
  .contact-form input, .contact-form textarea {
    font-size: 0.9rem;
  }
  .send-btn {
    font-size: 0.9rem;
    padding: 8px;
  }

  #fourth_section {
    padding: 20px 10px;
  }
  #fourth_section h2 {
    font-size: 1.5rem;
  }
  .map-container {
    padding-bottom: 50%;
  }

}

/* Footer adjustments */
@media (max-width: 768px) {
  #site_footer {
    font-size: 0.9rem;
    height: auto;
    padding: 20px 10px;
  }
}

/* Hamburger Menu for Contact page */
.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .nav-links, .social-icons, .join-btn {
    display: none;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
  .hamburger-menu {
    display: block;
  }
  .navbar.active .nav-links,
  .navbar.active .social-icons,
  .navbar.active .join-btn {
    display: block;
  }
  .nav-links a {
    display: block;
    margin: 8px 0;
  }
  .social-icons {
    justify-content: center;
    margin: 10px 0;
  }
  .join-btn {
    margin: 15px 0;
  }
}
