/* ==========================================================================
   FONT FACES
   ========================================================================== */

@font-face {
  font-family: "STIXTwoText";
  src: url("../fonts/STIXTwoText.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Benguiat";
  src: url("../fonts/BENGUIAT.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Bickham";
  src: url("../fonts/Bickham.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   BASE STYLES & PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

html {
  scroll-behavior: auto !important; /* Let JavaScript handle smooth scrolling */
}

body {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: 20px;
  overflow-x: hidden;
  -webkit-overflow-scrolling: auto; /* Disable iOS momentum scrolling */
  overscroll-behavior: none; /* Prevent bounce effects */
}

/* ==========================================================================
   SCROLL PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

.scroll-section {
  transform: translate3d(0, 0, 0); /* Force GPU acceleration */
  backface-visibility: hidden; /* Reduce rendering artifacts */
  will-change: transform; /* Optimize for animations */
}

.full-height {
  min-height: 100vh;
  display: flex;
  contain: layout style paint; /* Improve rendering performance */
}

.full-height .row {
  min-height: 100vh;
}

/* ==========================================================================
   SCROLL NAVIGATION
   ========================================================================== */

.scroll-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: all;
  will-change: transform; /* Optimize for animations */
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.7);
  will-change: transform, background-color; /* Optimize dot animations */
}

.scroll-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.scroll-dot.active {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ebecd5;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  z-index: 100;
}

.scroll-arrow {
  display: block;
  margin-top: 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Hide scroll navigation on mobile */
@media (max-width: 768px) {
  .scroll-nav {
    display: none;
  }
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

#ub-header-section {
  background: url(../img/mobile-header-bg.png) no-repeat center center;
  background-size: cover;
  position: relative;
}

.logo-card {
  padding-top: 30px;
  text-align: center;
}

.logo-card img {
  max-width: 230px;
  width: 100%;
  height: auto;
}

.header-titles {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  color: #ebecd5;
}

.header-title {
  font-weight: 400;
  font-family: "Bickham", serif;
  font-size: clamp(24px, 16.9vw, 162px);
  line-height: 0.5em;
  margin: 0; /* remove top/bottom margin */
}

.header-subtitle {
  font-weight: 300;
  font-size: clamp(14px, 2.5vw, 24px);
  font-family: "Benguiat", serif;
  margin: 0; /* remove all margin */
  line-height: 1em;
}

/* Extra Small (below 400px) */
@media (max-width: 399.98px) {
  .header-title {
    font-size: clamp(18px, 11.5vw, 44px);
  }
  .header-titles {
    display: flex;
    padding: 0.5rem 0.4rem;
  }
}

/* Small (400px to 767.98px) */
@media (min-width: 400px) and (max-width: 767.98px) {
  .header-title {
    font-size: clamp(36px, 11.8vw, 78px);
  }
  .header-titles {
    padding: 0.5rem 0.5rem;
  }
}

/* Medium (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .header-title {
    font-size: clamp(32px, 10vw, 96px);
  }
}

/* Large (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-title {
    font-size: clamp(48px, 10vw, 112px);
  }
}

/* Extra Large (1200px to 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-title {
    font-size: clamp(64px, 8.3vw, 136px);
  }
}

/* Extra Extra Large (1400px and above) */
@media (min-width: 1400px) {
  .header-title {
    font-size: clamp(80px, 9.3vw, 172px);
    line-height: 0.5em;
  }
  .header-subtitle {
    font-size: clamp(18px, 2.5vw, 30px);
    line-height: 1em;
  }
}

/* Header - Tablet & Desktop */
@media (min-width: 768px) {
  #ub-header-section {
    background: url(../img/header-bg.png) no-repeat center center;
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }

  .logo-card img {
    max-width: 330px;
    padding-top: 20px;
  }

  .header-titles {
    padding: 4rem 3rem 0 3rem;
    align-items: flex-start;
    margin-top: 60px !important; /* Adjust this value as needed */
  }
}

/* ==========================================================================
   CONTENT SECTIONS BACKGROUNDS
   ========================================================================== */

.ub-bg-1 {
  background: url(../img/bg-1.png) no-repeat center center;
  background-size: cover;
}

.ub-bg-2 {
  background: url(../img/bg-2.png) no-repeat center center;
  background-size: cover;
}

.ub-bg-3 {
  background: url(../img/bg-3.png) no-repeat center center;
  background-size: cover;
}

.ub-bg-4-1 {
  background: url(../img/bg-4-lg.png) no-repeat center center;
  background-size: cover;
  min-height: 100vh;
}
.ub-bg-4-2 {
  background: url(../img/bg-5.png) no-repeat bottom center;
  background-size: cover;
}
.vid-container {
  height: 100vh;
  overflow: hidden;
  padding: 40px;
}
@media (max-width: 768px) {
  .ub-bg-3 {
    background: url(../img/mobile-bg-3.png) no-repeat center center;
    background-size: cover;
  }

  .ub-bg-4-1 {
    background: url(../img/bg-4-lg.png) no-repeat center center;
    background-size: cover;
    min-height: 50vh;
  }
  .ub-bg-4-2 {
    background: url(../img/mobile-bg-5.png) no-repeat bottom center;
    background-size: cover;
  }

  .vid-container {
    height: auto;
    overflow: hidden;
    padding: 40px;
  }
}

.grey-bg {
  background-color: #ececec;
}

/* ==========================================================================
   CONTENT BOXES
   ========================================================================== */

.grey-box-left {
  background-color: #ececec;
  padding: 30px 10px;
  color: #050505;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
}

.grey-box-right {
  background-color: #ececec;
  padding: 30px 10px;
  color: #050505;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
}

.grey-box {
  background-color: #ececec;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
}

/* Content Boxes - Desktop */
@media (min-width: 768px) {
  .grey-box-left {
    top: 30px;
    left: 30px;
    right: 0;
    bottom: 30px;
    padding: 30px 150px 30px 30px;
  }

  .grey-box-right {
    top: 30px;
    left: 0;
    right: 30px;
    bottom: 30px;
    padding: 30px 150px 30px 30px;
  }

  .grey-box {
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 0;
    padding: 30px;
  }
}

.max-width-sec3 {
  max-width: 560px !important;
}
/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.dark-font-title {
  font-family: "Benguiat", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 54px);
  color: #000000;
  line-height: 0.9em;
}

.dark-font-subtitle {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 24px);
  color: #050505;
  line-height: 0.9em;
  margin-top: -5px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dark-font {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 24px);
  color: #050505;
  line-height: 1em;
  max-width: 700px;
}

.light-font-title {
  font-family: "Benguiat", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 50px);
  color: hsl(0, 0%, 100%);
  line-height: 1em;
}

.light-font-subtitle {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 24px);
  color: #ffffff;
  line-height: 1em;
  margin-top: -5px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.light-font {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 24px);
  color: #ffffff;
  line-height: 1em;
}

.max-400 {
  max-width: 450px;
  margin: 10px auto;
}

.max-width-sec4 {
  max-width: 520px;
  margin: 10px auto;
}

.padding-50 {
  padding: 50px;
}

.padding-ub-bg-4-2 {
  padding: 50px 0px !important;
}
@media (max-width: 768px) {
  .padding-ub-bg-4-2 {
    padding: 30px 5px 150px 5px !important;
  }
}

/* Typography - Desktop Adjustments */
@media (min-width: 768px) {
  .dark-font-title {
    font-size: clamp(2rem, 3vw, 54px);
  }

  .dark-font-subtitle {
    font-size: clamp(1.2rem, 2vw, 24px);
  }

  .dark-font {
    font-size: clamp(1rem, 1.5vw, 24px);
  }
}

/* ==========================================================================
   SEPARATORS
   ========================================================================== */

.custom-separator {
  height: 1px;
  background-color: #050505;
  width: 55%;
  margin: 18px 0;
  max-width: 500px;
}

.sep-center {
  margin: 20px auto 15px !important;
  max-width: 300px;
}

.sep-white {
  background-color: #ffffff;
  max-width: 300px;
  margin: 20px 0;
}

/* Separators - Desktop */
@media (min-width: 768px) {
  .custom-separator {
    margin: 30px 0;
  }
  .sep-white {
    background-color: #ffffff;
    max-width: 300px;
    margin: 30px 0 30px 0;
  }
  .sep-center {
    margin: 30px auto 25px !important;
    max-width: 300px;
  }
}

/* Ensure full-height section */
#ub-section-four {
  height: 100vh;
}

/* Flex container */
#ub-section-four .row {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* First column - 40% height */
#ub-section-four .row .col-12:nth-child(1) {
  height: 50%;
}

/* Second column - 60% height */
#ub-section-four .row .col-12:nth-child(2) {
  height: 50%;
}

@media (min-width: 768px) {
  #ub-section-four .row {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* First column - 40% height */
  #ub-section-four .row .col-12:nth-child(1) {
    height: 40%;
  }

  /* Second column - 60% height */
  #ub-section-four .row .col-12:nth-child(2) {
    height: 60%;
  }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

#ub-footer-section {
  background: #143c2e url(../img/footer-bg.png) no-repeat bottom center;
  background-size: cover;
  font-size: 20px;
}

.footer-icon {
  width: 36px;
}

#ub-footer-section .footer-logo img {
  max-width: 350px;
}

.footer-hr {
  background-color: #ffffff;
  height: 1px;
  margin: 50px 10px;
}
@media (max-width: 768px) {
  #ub-footer-section {
    background: #143c2e url(../img/mobile-footer-bg.png) no-repeat bottom center;
    background-size: cover;
    font-size: 16px;
  }
  #ub-footer-section .footer-logo img {
    max-width: 230px;
  }
  .footer-hr {
    background-color: #ffffff;
    height: 1px;
    margin: 20px 10px;
  }
  .footer-icon {
    width: 18px;
  }
  .footer-hr {
    background-color: #ffffff;
    height: 1px;
    margin: 50px 40px;
  }
}

.footer-link {
  color: #fff;
  text-decoration: none;
}
.footer-link:hover {
  color: #ececec;
}
