/* Base Styles and Variables */
:root {
  --jci-blue: #003da5;
  --jci-yellow: #ffc20e;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #333333;
  --accent-light: #1a52ba;
  --section-padding: 3rem 1rem;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Manrope", "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(0, 61, 165, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 194, 14, 0.05) 0%,
      transparent 40%
    );
  z-index: -1;
  animation: backgroundShift 20s infinite alternate ease-in-out;
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--jci-blue);
}

h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background-color: var(--jci-yellow);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}
/* Existing CSS styles above this */

/* Styles for the Creative Site-Wide Preloader */
#creative-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #003da5; /* Use a JCI brand color (e.g., blue) */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.9s ease-out; /* Slower fade out for the whole screen */
  flex-direction: column; /* To stack spinner and text */
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Space between spinner and text */
}

.creative-loader {
  border: 8px solid rgba(255, 255, 255, 0.3); /* Lighter border for spinner */
  border-top: 8px solid #ffffff; /* White part of the spinner */
  border-radius: 50%;
  width: 70px; /* Slightly larger spinner */
  height: 70px;
  animation: spin 1.3s linear infinite; /* Adjust speed if desired */
}

.loading-text {
  color: #ffffff; /* White text */
  font-family: "manrope", sans-serif; /* Choose a suitable font */
  font-size: 1.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Keyframe animation for the spinner (ensure only one 'spin' animation is defined) */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header & Navigation */
header {
  background-color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: clamp(40px, 10vw, 60px);
  width: auto;
}
nav {
  margin: 20px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: clamp(1.5rem, 2vw, 1.5rem);
}

nav ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: clamp(0.8rem, 2vw, 1rem);
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--jci-yellow);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--jci-blue);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--jci-blue);
}
.hero {
  padding: var(--section-padding);
  text-align: center;
  background: linear-gradient(
    120deg,
    rgba(0, 61, 165, 0.05),
    rgba(255, 194, 14, 0.05)
  );
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(255, 194, 14, 0.1);
  animation: float 15s infinite ease-in-out;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(0, 61, 165, 0.1);
  animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 20px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.hero h1 {
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s 0.3s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s 0.6s ease both;
}

.btn,
.btn-secondary {
  display: inline-block;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  min-width: 140px;
}

.btn {
  background-color: var(--jci-blue);
  color: var(--text-light);
  border: 2px solid var(--jci-blue);
}

.btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 61, 165, 0.3);
}

.btn-secondary {
  background-color: var(--jci-yellow);
  color: var(--text-dark);
  border: 2px solid var(--jci-yellow);
}

.btn-secondary:hover {
  background-color: rgba(255, 194, 14, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 194, 14, 0.3);
}

/* Impact Section */
.impact {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.impact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.impact > p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.director-message {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  padding: var(--section-padding);
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

.director-message .message-right,
.director-message .message-left {
  flex: 1 1 400px;
}

.director-message .message-left img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  object-position: top;
}

.director-message h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--jci-blue);
  font-family: "Mulish", sans-serif;
  position: relative;
  padding-bottom: 0.5rem;
}

.director-message h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--jci-yellow);
}

.director-message p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.director-message .signed {
  font-style: italic;
  color: #666;
  margin-top: 1rem;
}
.divider-line {
  border: none;
  border-top: 2px solid var(--jci-yellow); /* or any color you want */
  width: 80%;
  margin: 3rem auto;
}

/* Gallery Section */
.gallery {
  padding: var(--section-padding);
  background-color: rgba(0, 61, 165, 0.05);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* #modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
} */

/* .thumbnail {
  cursor: pointer;
} */

/* Footer Section */
footer {
  background-color: var(--jci-blue);
  color: var(--text-light);
  padding: 3rem 1rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-logo img {
  max-width: 150px;
}

.social-media h3,
.footer-links h3 {
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.social-media h3::after,
.footer-links h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  background-color: var(--jci-yellow);
}

.social-media a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.social-media img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.social-media a:hover {
  transform: translateY(-3px);
}

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

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

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--jci-yellow);
  padding-left: 5px;
}

footer > p {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Media Queries for Responsiveness */
/* For medium screens */

@media screen and (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
  }

  .menu-toggle {
    display: block;
    margin-right: 20px;
    z-index: 1001;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--text-light);
    transition: var(--transition);
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

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

  .btn,
  .btn-secondary {
    width: 100%;
    max-width: 250px;
  }
  .director-message {
    flex-direction: column;
    text-align: left;
  }

  .director-message .message-left,
  .director-message .message-right {
    flex: 1 1 100%;
  }

  .director-message .message-left img {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 320px) {
  :root {
    --section-padding: 1.5rem 0.5rem;
  }

  body {
    font-size: 14px;
  }

  header {
    padding: 0.3rem;
  }

  .logo img {
    height: 35px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-media h3::after,
  .footer-links h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  body::before {
    background: linear-gradient(
      120deg,
      rgba(0, 61, 165, 0.05),
      rgba(255, 194, 14, 0.05)
    );
    animation: none;
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
