/* ========================
   Global Styles
======================== */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Century Gothic", "AppleGothic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100%;
  width: 100vw;
}

html, .page-id-xx {
  scrollbar-width: none; /* Firefox */
}
::-webkit-scrollbar {
  width: 0px; /* Chrome, Edge */
}

/* ========================
   Scroll Indicator
======================== */
#scroll-indicator {
  position: fixed;
  right: 20px;
  top: 15%;
  width: 10px;
  height: 70%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 900;
}
#scroll-indicator .indicator {
  width: 100%;
  background: #00bcd4;
  border-radius: 5px;
  transition: height 0.3s ease;
}

/* ========================
   Hero Section
======================== */
.hero-section {
  position: relative;
  text-align: center;
  height: calc(75vh + 70px);
  overflow: hidden;
  z-index: 80;
}

.hero-section img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 90;
}

/* ========================
   Overlay Text
======================== */
.overlay-aim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  animation: fadeIn 1.5s ease-out forwards;
  z-index: 110;
}
.aim {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
}
.underline {
  width: 50%;
  height: 4px;
  background-color: rgb(76, 136, 183);
  margin: 10px auto;
}
.tagline {
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* ========================
   Background Video
======================== */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 1;
  z-index: -10;
}

/* ========================
   Timeline Layout
======================== */
.timeline-wrapper {
  position: relative;
  z-index: 70;
  overflow: hidden;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 5px;
  z-index: 75;
}
.timeline-container::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to top, transparent, rgba(76, 136, 183, 1), transparent);
  z-index: 0;
  opacity: 0;
  animation: fade-in-line 2s ease-out forwards;
}

/* ========================
   Timeline Items
======================== */
.timeline-item {
  position: relative;
  width: 100%;
  margin: 50px 0;
  padding: 20px;
  opacity: 0;
  transform: translateY(150px);
  transition: all 1s ease;
}
.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  background-color: #fff;
  color: #333;
  padding: 30px;
  border-radius: 15px;
  max-width: 75%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.timeline-item.left .timeline-content {
  margin-right: auto;
  transform: translateX(-150%);
  animation: slide-in-left 1s forwards;
}
.timeline-item.right .timeline-content {
  margin-left: auto;
  transform: translateX(150%);
  animation: slide-in-right 1s forwards;
}
.timeline-item img {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.timeline-item h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
}
.timeline-item p {
  font-size: 1.2em;
  line-height: 1.5;
  color: #555;
}

/* ========================
   Timeline Button
======================== */
.timeline-item button {
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(to right, #4c88b7, #3b6ea0);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.timeline-item button:hover {
  background: linear-gradient(to right, #3b6ea0, #2f547d);
}

/* ========================
   Modal
======================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: none;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 1.5rem;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  z-index: 1010;
}
.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 1100;
}
.modal-media img,
.modal-media video {
  width: 100%;
  border-radius: 6px;
  height: auto;
}

/* ========================
   Footer
======================== */
footer {
  background: rgba(0, 0, 0, 1);
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  position: relative;
  z-index: 100;
}

/* ========================
   Animations
======================== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes slide-in-left {
  from { transform: translateX(-150%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(150%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-in-line {
  from { opacity: 0; }
  to {
    opacity: 1;
    background: linear-gradient(to top, transparent, rgba(76, 136, 183, 1), transparent);
  }
}

/* ========================
   Responsive Breakpoints
======================== */
@media screen and (max-width: 1024px) {
  .aim { font-size: 3rem; }
  .overlay-aim h2 { font-size: 1.6rem; }
  .timeline-content {
    flex-direction: column;
    padding: 20px;
  }
  .timeline-item img {
    max-width: 140px;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  .aim { font-size: 2.5rem; }
  .overlay-aim h2 { font-size: 1.4rem; }
  .tagline { font-size: 1rem; }
  .underline { width: 60%; height: 3px; }
  .timeline-content { padding: 15px; }
  .timeline-item img { max-width: 120px; margin-bottom: 15px; }
  #scroll-indicator { display: none; }
}

@media screen and (max-width: 480px) {
  .aim { font-size: 2rem; letter-spacing: 1px; }
  .overlay-aim h2 { font-size: 1.2rem; }
  .tagline { font-size: 0.9rem; }
  .hero-section { height: calc(25vh + 70px); }
  .underline { width: 50%; height: 3px; }
  .timeline-item h2 { font-size: 1.4em; }
  .timeline-item p { font-size: 1em; }
  .timeline-item img { max-width: 100px; margin-bottom: 10px; }
}
