/* Inclusivity & Impact Page Styles */

/* Page Content Positioning - Fix for content appearing below navbar */
.imp {
  padding-top: 0;
  margin-bottom: 0;
  position: relative;
  text-align: center;
  height: 100vh; /* Restored to full viewport height */
  display: flex;
  flex-direction: column;
  margin-top: 120px; /* Push content below navbar */
  z-index: 1; /* Ensure content appears above background but below navbar */
}

.imp h2 {
  font-family: url(../fonts/fa-regular-400.woff2);
  font-size: 100px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: absolute;
  top: 165px; /* Restored to original position */
  left: 28%;
  transform: translateX(-50%);
  z-index: 5; /* Higher z-index than images but below navbar */
  text-align: center;
  line-height: 0.6;
  width: 100%;
}

/* First line - center aligned */
.imp h2 .line1 {
  display: block;
  text-align: center;
}

/* Second line - right aligned */
.imp h2 .line2 {
  display: block;
  text-align: center;
  margin-left: 300px;
}

.image-container {
  display: flex;
  gap: 0;
  width: 100%;
  height: calc(100vh - 120px); /* Restored to original height */
  margin: 0;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%; /* Use full container height */
  display: flex;
  align-items: stretch;
}

.img-1-wrapper {
  width: 30%;
  height: 100%;
  min-height: calc(100vh - 120px); /* Restored to original height */
}

.img-2-wrapper {
  width: 70%;
  height: 100%;
  min-height: calc(100vh - 120px); /* Restored to original height */
}

.img-1,
.img-2 {
  width: 100%;
  height: 100%; /* Use full wrapper height */
  min-height: calc(100vh - 120px); /* Restored to original height */
  max-height: calc(100vh - 120px); /* Restored to original height */
  display: block;
  object-fit: cover;
  transition: none !important;
  filter: none !important;
  transform: none !important;
  flex: 1;
}

/* Remove any hover effects or animations */
.img-1:hover,
.img-2:hover {
  filter: none !important;
  transform: none !important;
  transition: none !important;
  scale: none !important;
}

/* Override global image hover effects specifically for these images */
.img-wrapper:hover img,
.img-wrapper:hover .img-1,
.img-wrapper:hover .img-2,
.image-container:hover img,
.image-container:hover .img-1,
.image-container:hover .img-2 {
  transform: none !important;
  scale: none !important;
  filter: none !important;
  transition: none !important;
}

/* Hamburger Menu Styles */
.hamberger-menu:hover {
  transform: scale(1.1);
}

.hamburger-lines {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines .line {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.hamberger-menu.active .line1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamberger-menu.active .line2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamberger-menu.active .line3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced overlay z-index to ensure it's above everything */
.overlay {
  z-index: 99999 !important;
}

/* Prevent body scroll when menu is open */
body.nav-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

.text-line {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 100px 0;
  z-index: 10;
  perspective: 1000px;
  /* Enhanced vertical centering */
  place-items: center;
}

.text-line h2 {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  /* Linear gradient text effect */
  background: linear-gradient(to top, #3e2643, #9c60a9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Fallback for browsers that don't support gradient text */
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  text-align: center;
  white-space: nowrap;
  /* Initial state - visible and properly positioned */
  width: auto;
  height: auto;
  /* Enhanced centering for all devices */
  display: block;
  box-sizing: border-box;
  opacity: 1;
  will-change: transform, opacity;
  /* Enhanced smoothness for slower animations */
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Responsive Design */
/* Tablet and Small Desktop */
@media (max-width: 1024px) {
  .imp {
    margin-top: 100px;
    height: 100vh;
  }

  .imp h2 {
    font-size: 85px;
    top: 100px;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
  }

  .imp h2 .line1 {
    text-align: center;
    margin-left: 0;
  }

  .imp h2 .line2 {
    text-align: center;
    margin-left: 150px;
  }

  .image-container {
    height: calc(100vh - 100px);
  }

  .img-wrapper {
    height: 100%;
    display: flex;
    align-items: stretch;
  }

  .img-1-wrapper,
  .img-2-wrapper {
    height: 100%;
    min-height: calc(100vh - 100px);
  }

  .img-1,
  .img-2 {
    height: 100%;
    min-height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    flex: 1;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .imp {
    margin-top: 90px; /* Slightly reduced for tablet */
    height: 80vh; /* Reduced height for tablet */
    z-index: 1; /* Ensure below navbar */
  }

  .imp h2 {
    font-size: 55px; /* Reduced for tablet */
    top: 60px;
    left: 50px; /* Move a little more to the right */
    width: 90%;
    transform: none; /* Remove centering transform */
    line-height: 0.8;
    z-index: 5; /* Below navbar z-index: 1000 */
    text-align: left; /* Align text to left */
  }

  .imp h2 .line1 {
    text-align: left; /* Left align for tablet */
    margin-left: 0;
  }

  .imp h2 .line2 {
    text-align: left; /* Left align for tablet */
    margin-left: 220px; /* Move Impact to align with end of Inclusivity & */
  }

  .image-container {
    flex-direction: row; /* Keep horizontal layout like desktop */
    height: calc(80vh - 90px); /* Adjusted for reduced height */
  }

  .img-1-wrapper {
    width: 35%; /* Slightly larger for tablet visibility */
    height: 100%;
    min-height: calc(80vh - 90px);
  }

  .img-2-wrapper {
    width: 65%; /* Adjusted to match */
    height: 100%;
    min-height: calc(80vh - 90px);
  }

  .img-wrapper {
    height: 100%; /* Use full allocated height */
    display: flex;
    align-items: stretch;
  }

  .img-1,
  .img-2 {
    height: 100%; /* Use full wrapper height */
    min-height: calc(100vh - 100px); /* Updated to match new margin */
    max-height: calc(100vh - 100px); /* Updated to match new margin */
    transition: none !important;
    filter: none !important;
    transform: none !important;
    flex: 1;
  }

  .img-1:hover,
  .img-2:hover {
    filter: none !important;
    transform: none !important;
    transition: none !important;
    scale: none !important;
  }

  /* Override global image hover effects for mobile */
  .img-wrapper:hover img,
  .img-wrapper:hover .img-1,
  .img-wrapper:hover .img-2,
  .image-container:hover img,
  .image-container:hover .img-1,
  .image-container:hover .img-2 {
    transform: none !important;
    scale: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Mobile Large */
@media (max-width: 576px) {
  .imp {
    margin-top: 80px; /* Reduced for mobile */
    height: auto; /* Auto height to accommodate reduced image height */
    min-height: 50vh; /* Minimum height for section */
    z-index: 1; /* Ensure below navbar */
  }

  .imp h2 {
    font-size: 36px; /* Smaller for mobile */
    top: 115px; /* Increased by 15px for mobile */
    left: 40px; /* Move a little more to the right */
    width: 90%;
    transform: none; /* Remove centering transform */
    line-height: 0.5; /* Further reduced line-height for mobile */
    z-index: 5; /* Below navbar z-index: 1000 */
    text-align: left; /* Align text to left */
  }

  .imp h2 .line1 {
    text-align: left; /* Left align for mobile */
    margin-left: 0;
  }

  .imp h2 .line2 {
    text-align: left; /* Left align for mobile */
    margin-left: 140px; /* Move Impact to align with end of Inclusivity & */
  }

  .image-container {
    flex-direction: row; /* Keep horizontal layout like desktop */
    height: 40vh; /* Significantly reduced image height */
    margin-top: 60px; /* Reduced space below heading */
  }

  .img-1-wrapper {
    width: 35%; /* Slightly larger for mobile visibility */
    height: 100%;
    min-height: 40vh;
  }

  .img-2-wrapper {
    width: 65%; /* Adjusted to match */
    height: 100%;
    min-height: 40vh;
  }

  .img-1,
  .img-2 {
    height: 100%;
    min-height: 40vh;
    max-height: 40vh;
    object-fit: cover;
  }
}

/* Mobile Medium */
@media (max-width: 480px) {
  .imp {
    margin-top: 80px; /* Reduced for mobile */
    height: auto; /* Auto height to accommodate reduced image height */
    min-height: 45vh; /* Minimum height for section */
    z-index: 1; /* Ensure below navbar */
  }

  .imp h2 {
    font-size: 32px; /* Smaller for mobile */
    top: 105px; /* Increased by 15px for mobile */
    left: 35px; /* Move a little more to the right */
    width: 90%;
    transform: none; /* Remove centering transform */
    line-height: 0.6; /* Further reduced line-height for mobile */
    z-index: 5; /* Below navbar z-index: 1000 */
    text-align: left; /* Align text to left */
  }

  .imp h2 .line1 {
    text-align: left; /* Left align for mobile */
    margin-left: 0;
  }

  .imp h2 .line2 {
    text-align: left; /* Left align for mobile */
    margin-left: 120px; /* Move Impact to align with end of Inclusivity & */
  }

  .image-container {
    flex-direction: row; /* Keep horizontal layout like desktop */
    height: 35vh; /* Reduced image height */
    margin-top: 40px; /* Reduced space below heading */
  }

  .img-1-wrapper {
    width: 35%; /* Slightly larger for mobile visibility */
    height: 100%;
    min-height: 35vh;
  }

  .img-2-wrapper {
    width: 65%; /* Adjusted to match */
    height: 100%;
    min-height: 35vh;
  }

  .img-1,
  .img-2 {
    height: 100%;
    min-height: 35vh;
    max-height: 35vh;
    object-fit: cover;
  }
}

/* Mobile Small */
@media (max-width: 375px) {
  .imp {
    margin-top: 80px; /* Reduced for mobile */
    height: auto; /* Auto height to accommodate reduced image height */
    min-height: 40vh; /* Minimum height for section */
    z-index: 1; /* Ensure below navbar */
  }

  .imp h2 {
    font-size: 28px; /* Smaller for mobile */
    top: 95px; /* Increased by 15px for mobile */
    left: 30px; /* Move a little more to the right */
    width: 85%;
    transform: none; /* Remove centering transform */
    line-height: 0.7; /* Further reduced line-height for mobile */
    z-index: 5; /* Below navbar z-index: 1000 */
    text-align: left; /* Align text to left */
  }

  .imp h2 .line1 {
    text-align: left; /* Left align for mobile */
    margin-left: 0;
  }

  .imp h2 .line2 {
    text-align: left; /* Left align for mobile */
    margin-left: 100px; /* Move Impact to align with end of Inclusivity & */
  }

  .image-container {
    flex-direction: row; /* Keep horizontal layout like desktop */
    height: 30vh; /* Reduced image height */
    margin-top: 35px; /* Reduced space below heading */
  }

  .img-1-wrapper {
    width: 40%; /* Larger for better mobile visibility */
    height: 100%;
    min-height: 30vh;
  }

  .img-2-wrapper {
    width: 60%; /* Adjusted to match */
    height: 100%;
    min-height: 30vh;
  }

  .img-1,
  .img-2 {
    height: 100%;
    min-height: 30vh;
    max-height: 30vh;
    object-fit: cover;
  }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
  .imp {
    margin-top: 70px; /* Reduced for mobile */
    height: auto; /* Auto height to accommodate reduced image height */
    min-height: 35vh; /* Minimum height for section */
    z-index: 1; /* Ensure below navbar */
  }

  .imp h2 {
    font-size: 24px; /* Smaller for mobile */
    top: 85px; /* Increased by 15px for mobile */
    left: 25px; /* Move a little more to the right */
    width: 85%;
    transform: none; /* Remove centering transform */
    line-height: 0.8; /* Further reduced line-height for mobile */
    z-index: 5; /* Below navbar z-index: 1000 */
    text-align: left; /* Align text to left */
  }

  .imp h2 .line1 {
    text-align: left; /* Left align for mobile */
    margin-left: 0;
  }

  .imp h2 .line2 {
    text-align: left; /* Left align for mobile */
    margin-left: 80px; /* Move Impact to align with end of Inclusivity & */
  }

  .image-container {
    flex-direction: row; /* Keep horizontal layout like desktop */
    height: 25vh; /* Reduced image height */
    margin-top: 30px; /* Reduced space below heading */
  }

  .img-1-wrapper {
    width: 40%; /* Larger for better mobile visibility */
    height: 100%;
    min-height: 25vh;
  }

  .img-2-wrapper {
    width: 60%; /* Adjusted to match */
    height: 100%;
    min-height: 25vh;
  }

  .img-1,
  .img-2 {
    height: 100%;
    min-height: 25vh;
    max-height: 25vh;
    object-fit: cover;
  }
}

/* Fourth Section - Image on Left, Text on Right */
.nxt-section4 {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

/* Mobile-only section - hidden on desktop */
.nxt-section4-mobile {
  display: none;
}

.nxt-text-content {
  flex: 1;
  margin-left: auto;
  order: 2;
}

.nxt-img4 {
  flex-shrink: 0;
  margin-left: -50px;
  order: 1;
}

.nxt-img4 img {
  width: 500px;
  height: 575px;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

/* Zoom animation on hover - same as hero images from contact.html */
.nxt-img4 img:hover {
  transform: scale(1.1) !important;
}

.nxt-section4 .nxt-heading {
  margin-bottom: 20px;
}

.nxt-section4 .nxt-heading h2 {
  font-family: url(../fonts/fa-regular-400.woff2);
  font-size: 87px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #FFFFFF, #999999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
}

.nxt-p4 p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Responsive Styles for nxt-section4 */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .nxt-section4 {
    max-width: 900px;
    gap: 25px;
  }

  .nxt-img4 img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Hide desktop section */
  .nxt-section4 {
    display: none;
  }

  /* Show mobile section */
  .nxt-section4-mobile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 15px;
    text-align: left;
    max-width: 700px;
  }

  .nxt-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
  }

  .nxt-img4-mobile img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .nxt-p4-mobile p {
    color: #fff;
    font-size: 17px;
    text-align: left;
    line-height: 1.6;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 20px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  /* Hide desktop section */
  .nxt-section4 {
    display: none;
  }

  /* Show mobile section */
  .nxt-section4-mobile {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 60px auto 40px auto;
    padding: 15px;
    text-align: left;
    max-width: 500px;
  }

  .nxt-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 25px;
  }

  .nxt-img4-mobile img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .nxt-p4-mobile p {
    color: #fff;
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  /* Hide desktop section */
  .nxt-section4 {
    display: none;
  }

  /* Show mobile section */
  .nxt-section4-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 50px auto 30px auto;
    padding: 10px;
    text-align: left;
  }

  .nxt-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
  }

  .nxt-img4-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .nxt-p4-mobile p {
    color: #fff;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  /* Hide desktop section */
  .nxt-section4 {
    display: none;
  }

  /* Show mobile section */
  .nxt-section4-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px auto 25px auto;
    padding: 10px;
    text-align: left;
  }

  .nxt-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 15px;
  }

  .nxt-img4-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .nxt-p4-mobile p {
    color: #fff;
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 10px;
  }
}

/* Next Section - Image and Text Side by Side (copied from about.css) */
.nxt-section {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

/* Mobile-only section - hidden on desktop */
.nxt-section-mobile {
  display: none;
}

.nxt-img {
  flex-shrink: 0;
  margin-right: -50px;
  order: 2;
}

.nxt-img img {
  width: 550px;
  height: 575px;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

/* Zoom animation on hover - same as hero images from contact.html */
.nxt-img img:hover {
  transform: scale(1.1) !important;
}

.nxt-p {
  flex: 1;
  margin-right: auto;
  order: 1;
}

.nxt-p p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Responsive styles for .nxt-section */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .nxt-section {
    max-width: 900px;
    gap: 25px;
  }

  .nxt-img img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Hide desktop section */
  .nxt-section {
    display: none;
  }

  /* Show mobile section */
  .nxt-section-mobile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 15px;
    text-align: left;
    max-width: 700px;
  }

  .nxt-img-mobile img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .nxt-p-mobile p {
    color: #fff;
    font-size: 17px;
    text-align: left;
    line-height: 1.6;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 20px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  /* Hide desktop section */
  .nxt-section {
    display: none;
  }

  /* Show mobile section */
  .nxt-section-mobile {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 60px auto 40px auto;
    padding: 15px;
    text-align: left;
    max-width: 500px;
  }

  .nxt-img-mobile img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .nxt-p-mobile p {
    color: #fff;
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  /* Hide desktop section */
  .nxt-section {
    display: none;
  }

  /* Show mobile section */
  .nxt-section-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 50px auto 30px auto;
    padding: 10px;
    text-align: left;
  }

  .nxt-img-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .nxt-p-mobile p {
    color: #fff;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  /* Hide desktop section */
  .nxt-section {
    display: none;
  }

  /* Show mobile section */
  .nxt-section-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px auto 25px auto;
    padding: 10px;
    text-align: left;
  }

  .nxt-img-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .nxt-p-mobile p {
    color: #fff;
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 10px;
  }
}
@media (max-width: 360px) {
  .nxt-section {
    margin: 40px auto 25px auto;
    text-align: left;
  }

  .nxt-p p {
    font-size: 12px;
    text-align: left;
  }
}

/* Second Section - Image and Text Side by Side (copied from about.css) */
.nxt-section2 {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

.nxt-img2 {
  flex-shrink: 0;
  margin-left: -50px;
}

.nxt-img2 img {
  width: 550px;
  height: 575px;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

/* Zoom animation on hover - same as hero images from contact.html */
.nxt-img2 img:hover {
  transform: scale(1.1) !important;
}

.nxt-p2 {
  flex: 1;
  margin-left: auto;
}

.nxt-p2 p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Responsive styles for .nxt-section2 */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .nxt-section2 {
    max-width: 900px;
    gap: 25px;
  }

  .nxt-img2 img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .nxt-section2 {
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 15px;
    text-align: left;
  }

  .nxt-img2 {
    margin: 0 auto;
    flex-shrink: 0;
    text-align: center;
  }

  .nxt-img2 img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .nxt-p2 {
    margin-left: 0;
    margin-right: 0;
  }

  .nxt-p2 p {
    font-size: 17px;
    text-align: left;
    padding: 0 20px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  .nxt-section2 {
    margin: 60px auto 40px auto;
    gap: 25px;
    text-align: left;
  }

  .nxt-img2 {
    text-align: center;
  }

  .nxt-img2 img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  .nxt-p2 p {
    font-size: 15px;
    text-align: left;
    padding: 0 15px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .nxt-section2 {
    margin: 50px auto 30px auto;
    gap: 20px;
    padding: 10px;
    text-align: left;
  }

  .nxt-img2 {
    text-align: center;
  }

  .nxt-img2 img {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    display: block;
  }

  .nxt-p2 p {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    padding: 0 15px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .nxt-section2 {
    margin: 40px auto 25px auto;
    text-align: left;
  }

  .nxt-p2 p {
    font-size: 13px;
    text-align: left;
    padding: 0 10px;
  }
}

/* Yoo Section - Text on Left, Image on Right (similar to nxt-section4) */
.yoo-sect {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

/* Mobile-only section - hidden on desktop */
.yoo-sect-mobile {
  display: none;
}

.yoo-text-content {
  flex: 1;
  margin-right: auto;
  order: 1;
}

.yoo-img4 {
  flex-shrink: 0;
  margin-right: -50px;
  order: 2;
}

.yoo-img4 img {
  width: 550px;
  height: 575px;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

/* Zoom animation on hover - same as hero images from contact.html */
.yoo-img4 img:hover {
  transform: scale(1.1) !important;
}

.yoo-sect .yoo-heading {
  margin-bottom: 20px;
}

.yoo-sect .yoo-heading h2 {
  font-family: url(../fonts/fa-regular-400.woff2);
  font-size: 87px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #FFFFFF, #999999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
}

.yoo-p p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Responsive Styles for yoo-sect */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .yoo-sect {
    max-width: 900px;
    gap: 25px;
  }

  .yoo-img4 img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Hide desktop section */
  .yoo-sect {
    display: none;
  }

  /* Show mobile section */
  .yoo-sect-mobile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 15px;
    text-align: left;
    max-width: 700px;
  }

  .yoo-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
  }

  .yoo-img4-mobile img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .yoo-p-mobile p {
    color: #fff;
    font-size: 17px;
    text-align: left;
    line-height: 1.6;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 20px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  /* Hide desktop section */
  .yoo-sect {
    display: none;
  }

  /* Show mobile section */
  .yoo-sect-mobile {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 60px auto 40px auto;
    padding: 15px;
    text-align: left;
    max-width: 500px;
  }

  .yoo-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 25px;
  }

  .yoo-img4-mobile img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .yoo-p-mobile p {
    color: #fff;
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  /* Hide desktop section */
  .yoo-sect {
    display: none;
  }

  /* Show mobile section */
  .yoo-sect-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 50px auto 30px auto;
    padding: 10px;
    text-align: left;
  }

  .yoo-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
  }

  .yoo-img4-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .yoo-p-mobile p {
    color: #fff;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  /* Hide desktop section */
  .yoo-sect {
    display: none;
  }

  /* Show mobile section */
  .yoo-sect-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px auto 25px auto;
    padding: 10px;
    text-align: left;
  }

  .yoo-heading-mobile h2 {
    font-family: url(../fonts/fa-regular-400.woff2);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 15px;
  }

  .yoo-img4-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .yoo-p-mobile p {
    color: #fff;
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 10px;
  }


  .yoo-heading-mobile h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
  }

  .yoo-img4-mobile img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .yoo-p-mobile p {
    color: #fff;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Moo Section - Image and Text Side by Side (copied from nxt-section2) */
.moo-sect {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

.moo-img {
  flex-shrink: 0;
  margin-left: -50px;
}

.moo-img img {
  width: 550px;
  height: 575px;
  display: block;
}

.moo-p {
  flex: 1;
  margin-left: auto;
}

.moo-p p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Responsive styles for .moo-sect */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .moo-sect {
    max-width: 900px;
    gap: 25px;
  }

  .moo-img img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .moo-sect {
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 15px;
    text-align: left;
  }

  .moo-img {
    margin: 0 auto;
    flex-shrink: 0;
    text-align: center;
  }

  .moo-img img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .moo-p {
    margin-left: 0;
    margin-right: 0;
  }

  .moo-p p {
    font-size: 15px;
    text-align: left;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  .moo-sect {
    margin: 60px auto 40px auto;
    gap: 25px;
    text-align: left;
  }

  .moo-img {
    text-align: center;
  }

  .moo-img img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  .moo-p p {
    font-size: 14px;
    text-align: left;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .moo-sect {
    margin: 50px auto 30px auto;
    gap: 20px;
    padding: 10px;
    text-align: left;
  }

  .moo-img {
    text-align: center;
  }

  .moo-img img {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    display: block;
  }

  .moo-p p {
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .moo-sect {
    margin: 40px auto 25px auto;
    text-align: left;
  }

  .moo-p p {
    font-size: 12px;
    text-align: left;
  }
}

/* Boo Section - Image and Text Side by Side (copied from nxt-section2) */
.boo-sect {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

.boo-img {
  flex-shrink: 0;
  margin-left: -50px;
}

.boo-img img {
  width: 550px;
  height: 575px;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

/* Zoom animation on hover - same as hero images from contact.html */
.boo-img img:hover {
  transform: scale(1.1) !important;
}

.boo-p {
  flex: 1;
  margin-left: auto;
}

.boo-p p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Free Section - Text on Left, Image on Right (copied from nxt-section) */
.free-sect {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 150px auto 50px auto;
  padding: 20px;
}

.free-img {
  flex-shrink: 0;
  margin-right: -50px;
  order: 2;
}

.free-img img {
  width: 550px;
  height: 575px;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

/* Zoom animation on hover - same as hero images from contact.html */
.free-img img:hover {
  transform: scale(1.1) !important;
}

.free-p {
  flex: 1;
  margin-right: auto;
  order: 1;
}

.free-p p {
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: url(../fonts/fa-regular-400.woff2);
}

/* Animation Keyframes */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Section Animations - Only trigger on scroll */
/* Initial state - elements are hidden until they appear in viewport */
.nxt-section4 .nxt-img4,
.nxt-section4 .nxt-text-content,
.nxt-section .nxt-p,
.nxt-section .nxt-img,
.nxt-section2 .nxt-img2,
.nxt-section2 .nxt-p2,
.yoo-sect .yoo-text-content,
.yoo-sect .yoo-img4,
.moo-sect .moo-img,
.moo-sect .moo-p,
.free-sect .free-p,
.free-sect .free-img {
  opacity: 0;
  transform: translateX(-100px);
}

/* Elements that come from right */
.nxt-section4 .nxt-text-content,
.nxt-section .nxt-img,
.nxt-section2 .nxt-p2,
.yoo-sect .yoo-img4,
.moo-sect .moo-p,
.free-sect .free-img {
  transform: translateX(100px);
}

/* Intersection Observer Classes for scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateX(-100px);
}

.animate-on-scroll.animate-from-right {
  transform: translateX(100px);
}

.animate-on-scroll.animate-from-bottom {
  transform: translateY(50px);
}

.animate-on-scroll.in-view {
  animation: slideInFromLeft 1s ease-out forwards;
}

.animate-on-scroll.animate-from-right.in-view {
  animation: slideInFromRight 1s ease-out forwards;
}

.animate-on-scroll.animate-from-bottom.in-view {
  animation: fadeInUp 1s ease-out forwards;
}

/* Responsive styles for .boo-sect */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .boo-sect {
    max-width: 900px;
    gap: 25px;
  }

  .boo-img img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .boo-sect {
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 20px;
    text-align: left;
  }

  .boo-img {
    margin: 0 auto;
    flex-shrink: 0;
    text-align: center;
  }

  .boo-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 0 20px;
    display: block;
  }

  .boo-p {
    margin-left: 0;
    margin-right: 0;
  }

  .boo-p p {
    font-size: 17px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 20px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  .boo-sect {
    margin: 60px auto 40px auto;
    gap: 25px;
    text-align: left;
  }

  .boo-img {
    text-align: center;
  }

  .boo-img img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 25px;
    padding: 0 15px;
    display: block;
  }

  .boo-p p {
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .boo-sect {
    margin: 50px auto 30px auto;
    gap: 20px;
    padding: 10px;
    text-align: left;
  }

  .boo-img {
    text-align: center;
  }

  .boo-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 0 15px;
    display: block;
  }

  .boo-p p {
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .boo-sect {
    margin: 40px auto 25px auto;
    text-align: left;
  }

  .boo-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .boo-p p {
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 10px;
  }
}

/* Responsive styles for .free-sect */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .free-sect {
    max-width: 900px;
    gap: 25px;
  }

  .free-img img {
    width: 400px;
    height: 460px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .free-sect {
    flex-direction: column;
    gap: 30px;
    margin: 80px auto 50px auto;
    padding: 20px;
    text-align: left;
  }

  .free-img {
    margin: 0 auto;
    flex-shrink: 0;
    text-align: center;
    order: 1;
  }

  .free-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 0 20px;
    display: block;
  }

  .free-p {
    margin-left: 0;
    margin-right: 0;
    order: 2;
  }

  .free-p p {
    font-size: 17px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 20px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  .free-sect {
    margin: 60px auto 40px auto;
    gap: 25px;
    text-align: left;
  }

  .free-img {
    text-align: center;
    order: 1;
  }

  .free-img img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 25px;
    padding: 0 15px;
    display: block;
  }

  .free-p {
    order: 2;
  }

  .free-p p {
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .free-sect {
    margin: 50px auto 30px auto;
    gap: 20px;
    padding: 10px;
    text-align: left;
  }

  .free-img {
    text-align: center;
    order: 1;
  }

  .free-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 0 15px;
    display: block;
  }

  .free-p {
    order: 2;
  }

  .free-p p {
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 15px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .free-sect {
    margin: 40px auto 25px auto;
    text-align: left;
  }

  .free-img {
    order: 1;
  }

  .free-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .free-p {
    order: 2;
  }

  .free-p p {
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
    font-family: url(../fonts/fa-regular-400.woff2);
    padding: 0 10px;
  }
}

/* Responsive TV Mission Section */
@media (max-width: 1600px) {
  .text-line {
    height: 90vh;
    min-height: 700px;
  }

  .text-line h2 {
    font-size: 4.2rem;
    max-width: 650px;
    top: 55%;
  }
}

@media (max-width: 1200px) {
  .text-line {
    height: 80vh;
    min-height: 600px;
  }

  .text-line h2 {
    font-size: 3.8rem;
    max-width: 600px;
    top: 55%;
  }
}

@media (max-width: 768px) {
  .text-line {
    height: 100vh;
    min-height: 600px;
    margin: 50px 0;
    /* Enhanced mobile vertical centering */
    display: flex;
    justify-content: center;
    align-items: center;
    place-items: center;
    /* Remove any conflicting positioning */
    position: relative;
  }

  .text-line h2 {
    font-size: 3rem;
    max-width: 500px;
    white-space: normal;
    line-height: 1.3;
    /* Ensure proper centering on mobile - increased top value */
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    padding: 20px;
    /* Center the text within its container */
    text-align: center;
    display: block;
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .text-line {
    height: 100vh;
    min-height: 500px;
    margin: 30px 0;
    /* Enhanced small mobile vertical centering */
    display: flex;
    justify-content: center;
    align-items: center;
    place-items: center;
    /* Remove any conflicting positioning */
    position: relative;
  }

  .text-line h2 {
    font-size: 2.5rem;
    max-width: 420px;
    padding: 15px;
    margin: 0 !important;
    /* Ensure proper centering - increased top value */
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center the text within its container */
    text-align: center;
    display: block;
    width: calc(100% - 30px);
    line-height: 1.2;
    /* Force center alignment */
    justify-self: center;
    align-self: center;
  }
}

/* Additional mobile centering fix */
@media (max-width: 360px) {
  .text-line {
    height: 100vh;
    min-height: 450px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    place-items: center;
    position: relative;
  }

  .text-line h2 {
    font-size: 2.2rem;
    max-width: 360px;
    padding: 10px;
    margin: 0 !important;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: block;
    width: calc(100% - 20px);
    line-height: 1.1;
  }
}

/* Mobile-only animation styles */
@media (max-width: 768px) {
  /* Initial hidden state for mobile sections - only affects mobile */
  .nxt-section4-mobile .nxt-heading-mobile,
  .nxt-section4-mobile .nxt-img4-mobile,
  .nxt-section4-mobile .nxt-p4-mobile,
  .nxt-section-mobile .nxt-img-mobile,
  .nxt-section-mobile .nxt-p-mobile,
  .yoo-sect-mobile .yoo-heading-mobile,
  .yoo-sect-mobile .yoo-img4-mobile,
  .yoo-sect-mobile .yoo-p-mobile {
    opacity: 0;
    /* Initial state will be set by GSAP */
  }
  
  /* Hardware acceleration for smooth mobile animations */
  .nxt-section4-mobile,
  .nxt-section-mobile,
  .yoo-sect-mobile {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
  
  /* Ensure mobile sections have proper perspective for 3D animations */
  .nxt-section4-mobile {
    perspective: 1000px;
    overflow: hidden;
  }
  
  .nxt-section-mobile {
    perspective: 1200px;
    overflow: hidden;
  }
  
  .yoo-sect-mobile {
    perspective: 1500px;
    overflow: hidden;
  }
  
  /* Optimize performance for mobile animations */
  .nxt-section4-mobile .nxt-heading-mobile,
  .nxt-section4-mobile .nxt-img4-mobile,
  .nxt-section4-mobile .nxt-p4-mobile,
  .nxt-section-mobile .nxt-img-mobile,
  .nxt-section-mobile .nxt-p-mobile,
  .yoo-sect-mobile .yoo-heading-mobile,
  .yoo-sect-mobile .yoo-img4-mobile,
  .yoo-sect-mobile .yoo-p-mobile {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}
