
/* =======================================
   GLOBAL RESET & VARIABLES
======================================= */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --off-white: #f7f3e9;
  --off-white2: #f5f5e6;
  --yellow: #ffe74c;
  --blue: #2d4d6e;
  --red: #ff5964;
  --text: #442625; 
}

/* =======================================
   BASE LAYOUT & BODY
======================================= */
html, body {
  margin: 0;
  padding: 0;
  height: auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background-color: var(--off-white);
}

a, a:visited {
  color: var(--red) !important;
  text-decoration: underline !important;
}


/* =======================================
   LOGO
======================================= */
#logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  max-width: 800px;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* =======================================
   FLOATING BALLS
======================================= */
.ball {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  transition: transform 0.1s linear;  
}

.balls-container {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1;
}

/* =======================================
   TAGLINE TEXT
======================================= */
.tagline {
  position: fixed;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 18px;
  font-weight: semibold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}

/* =======================================
   ROCKET BUTTON
======================================= */
.rocket-button {
  /* display: none; */
  opacity: 0;
  position: fixed;
  top: 77%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  cursor: pointer;
  z-index: 11;
  background: none;
  border: none;
  padding: 0;
  animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}


/* =======================================
   MODAL
======================================= */
.modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(255, 89, 100, 0.1);
  z-index: 10000;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .5s;
}

body.modal-open {
  overflow: hidden !important;
}

.modal-content {
  /* background: rgba(255, 255, 255, .85);
  padding: 2em 4em 1em;
  border-radius: 20px;
  max-width: 70vw;
  width: 50vw;
  height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start; */
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s 0.5s, transform 0.5s 0.5s;
  /* border: 1px solid #d4d4d4; */
}

.modal.active .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-close {
  /* position: absolute; */
  /* top: 5px; */
  /* right: 15px;
  top:10px; */
  background: none;
  border: none;
  font-size: 4em;
  cursor: pointer;
}


.scrolling-container {
    width: 100%;
    max-width: 300px;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scrolling-background {
    width: 100%;
    background-image: url('/images/fss.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    animation: scrollUp 12s linear paused;
    position: absolute;
    top: 0;
    left: 0;
}
.scrolling-background.site1 {
  height: 820px;
}
 .scrolling-background.site2 {
      height: 1199px; /* Your long image height */
      background-image: url('/images/mexdevs.webp');
      animation: scrollUp2 12s linear paused;
  }

/* Scrollup value is height of image minus height of container (-150px) */

 @keyframes scrollUp {
      0% {
          transform: translateY(0);
      }
      100% {
          transform: translateY(-670px);
      }
  }

  @keyframes scrollUp2 {
      0% {
          transform: translateY(0);
      }
      100% {
          transform: translateY(-1049px);
      }
  }

 .tab-panel .overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}


/* =======================================
   TRANSITIONS
======================================= */
.fade-panel {
  opacity: 0;
  /* transform: translateY(16px); */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-panel.active {
  opacity: 1;
  /* transform: translateY(0); */
}

.fade-toggle {
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

.fade-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Base Style: Invisible and above position (NO animation-name or animation-delay here) */
#animated-text .word {
    display: inline-block; 
    opacity: 0;
    transform: translateY(-10px); 
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
}

/* 🔑 NEW: The class that starts the animation */
#animated-text.animate-start .word {
    /* Apply the animation definition when the parent has the .animate-start class */
    animation-name: fade-in-drop;
}

/* The @keyframes remain the same */
@keyframes fade-in-drop {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}