/* Animation Keyframes */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reveal-left.active {
  animation: fadeInLeft 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.reveal-right.active {
  animation: fadeInRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Avenir", sans-serif;
  /* font-family: "Libre Baskerville", serif; */
  background-color: #010101;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.footer-component {
  width: 100%;
  display: block;
}

/* ── NEW PREMIUM SITE FOOTER (GLOBAL) ── */
.site-footer {
  width: 100%;
  background-color: #000000;
  padding: 60px 0 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  /* Push to bottom if content is short */
}

.footer-inner {
  width: 82%;
  /* Enforcing site-wide constraint */
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* Align bottom like the image */
  gap: 60px;
}

/* Brand & Disclosure Column (Left) */
.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 32%;
  text-align: left;
}

.footer-logo-link {
  display: block;
}

.footer-brand-logo {
  height: 55px;
  /* Premium logo scale */
  width: auto;
  display: block;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
  max-width: 380px;
  font-family: 'Avenir', sans-serif;
  letter-spacing: 0.01em;
}

/* Navigation Column (Right) */
.footer-nav-section {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 10px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.7);
  /* The thin white line above links */
}

.footer-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.footer-nav-links a:hover {
  opacity: 0.7;
}

.footer-nav-links .sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 300;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .site-footer {
    padding: 60px 0 40px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  .footer-brand-section {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-disclaimer {
    max-width: 90%;
    margin: 0 auto;
  }

  .footer-nav-section {
    width: 100%;
    align-items: center;
  }

  .footer-nav-links {
    justify-content: center;
  }
}

/*  */
@font-face {
  font-family: "Avenir";
  src: url("fonts/Avenir.woff2") format("woff2"),
    url("fonts/Avenir.woff") format("woff"),
    url("fonts/Avenir.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* top-video-file */
.top-video-file {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}


.top-video-file video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  /* no need for translate if using full width/height */
}

/* main-content-section */
/* .main-content-section {
  width: 82%;
  height: 100vh;
  margin: 0vh auto;
  background-color: #000000;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 25vh;
} */
/* main-content-section */
/* main-navbar */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 9%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-sizing: border-box;
  transition: background 0.3s ease;
}

/* main-content-section */
.main-content-section {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background-color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.main-content-section.visible {
  opacity: 1;
}

.main-content-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.main-content-section .third-section {
  position: relative;
  z-index: 2;
  width: 82%;
  margin: 0 auto;
}

/* top-sectiion */
.top-sectiion {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.logo {
  height: 55px;
  width: 350px;
  cursor: pointer;
  object-fit: contain;
}


.category-section {
  display: flex;
  align-items: center;
  gap: 50px;
}

.category-section.b {
  display: none;
}


.category {
  margin: 0;
  color: #ffffff;
  font-size: 9px;
  font-weight: 80;
  text-transform: uppercase;
}

.menu {
  display: none;
}

/* second-section */

.text {
  font-size: 12px;
  margin: 0;
  color: #d7d7d7;
  font-weight: 100;
  line-height: 1rem;
  text-align: justify;
  word-spacing: -0.06rem;
}

.text.i {
  font-size: 11px;
  font-weight: 100;
  color: #d7d7d7;
  text-align: initial;
}

.text.b {
  width: 58%;
  font-size: 11px;
  font-weight: 100;
  text-align: center;
  color: #d7d7d7;
}

.text.c {
  font-size: 11px;
  font-weight: 100;
  color: #d7d7d7;
  text-align: center;
}

/* third-section */
.third-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.third-section-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.third-logo {
  height: 36px;
  width: 110px;
}

.heading {
  font-size: 40px;
  font-weight: 500;
  font-family: "Libre Baskerville", serif;
  margin: 0;
  color: #ffffff;
  text-align: left;
  letter-spacing: -0.05em;
  line-height: 1.2em;
}

.second-head {
  font-size: 16px;
  font-weight: 500;
  /* font-family: "Libre Baskerville", serif; */
  margin: 0;
  color: #ffffff;
  text-align: left;
  letter-spacing: -0.05em;
  line-height: 1.2em;
  padding-bottom: 15px;
}

.heading.b {
  text-align: left;
  width: 90%;
}

.third-section-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.third-section-bottom-left {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: justify;
  word-spacing: -0.02rem;
}

.third-section-bottom-right {
  width: 62%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  /* important: allow full height */
}

.egs-frame {
  width: 450px;
  height: auto;
}

.visible .egs-frame {
  animation-delay: 2.6s !important;
  ;
}

.overview-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* push children (arrow, line, text) to the right */
  text-align: right;
  gap: 8px;
}

.overview-row.b {
  gap: 5px;
}

.length-arrow {
  display: block;
  /* removes inline spacing under image */
  height: 20px;
  width: auto;
}

.company-overview-text {
  font-size: 14px;
  font-weight: 200;
  text-transform: uppercase;
  font-family: "Libre Baskerville", serif;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin: 0;
}

.company-overview-text.b {
  padding-top: 10px;
}

.arrow {
  display: inline-block;
  /* removes block spacing */
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  /* remove paragraph default margin */
  padding: 0;
  /* remove extra padding */
  line-height: 0;
  /* removes extra top/bottom gap */
}


.company-line {
  width: 45%;
  height: 1px;
  background-color: #ffffff;
}

.company-line.b {
  width: 25%;
  align-self: flex-end;
  /* force this line to hug the right side */
}

.company-line.c {
  width: 65%;
  height: 1px;
  background-color: #ffffff;
}

/* institutional-section */
.institutional-section {
  position: relative;
  /* keep this! */
  height: 90vh;
  background: url(./images/city.jpeg) center / cover no-repeat;
  color: white;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 50px;
}







.fade-in {
  opacity: 0;
  transform: translateY(0px);
  /* stays fixed */
}

/* Trigger animation when visible */
.visible .fade-in {
  animation: fadeInOnly 2s ease forwards;
}

/* Keyframes: just opacity */
@keyframes fadeInOnly {
  from {
    opacity: 0;
    transform: translateY(0px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Staggered delays */
.visible .heading,
.visible .text,
.visible .second-head {
  animation-delay: 2s;
}

.visible .third-logo,
.visible .arrow {
  animation-delay: 2.2s;
}

.visible .company-overview-text,
.visible .company-line,
.visible .top-sectiion,
.visible .category-section {
  animation-delay: 2.4s;
}



/* Transparent black overlay */
.institutional-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}


/* Text content */
.institutional-section .content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  gap: 40px;
  width: 50%;
}

.institutional-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(0%);
}

.institutional-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 50%;
  padding-left: 30px;
  border-left: 2px solid #ffffff;
}

.institutional-grid-head {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 400;
}

.fade-in {
  opacity: 0;
  transform: translateY(0);
  /* stays fixed position */
}

/* Animate when visible */
.fade-in.visible {
  animation: fadeInOnly 1s ease forwards;
  animation-delay: 1s;
  /* starts 1 second after element is visible */
}

@keyframes fadeInOnly {
  from {
    opacity: 0;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden state */
.fade-zoom-in {
  opacity: 0;
  transform: scale(1);
  /* slightly smaller */
}

/* Animate when visible */
.fade-zoom-in.visible {
  animation: fadeZoomIn 1s ease forwards;
  animation-delay: 0.5s;
  /* delay after visible */
}

@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* body-content */
.body-content {
  position: relative;
  height: 100vh;
  background: url(./images/lines.avif) center center / cover no-repeat;

  margin: 0 auto;
  background-color: #000000;

  display: flex;
  justify-content: center;
  /* horizontal center */
  align-items: center;
  /* vertical center */
}

/* Transparent black overlay */
.body-content .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* adjust opacity */
  z-index: 1;
}

.body-content-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 15vh;
  width: 82%;
  margin: 0 auto;
  height: 60vh;
  justify-content: center;
}

.body-content-grid.d {
  gap: 50px;
  width: 82%;
  margin: 0 auto;
}

.team-text {
  margin: 0;
  width: 50%;
  font-family: "Libre Baskerville", serif;
  font-size: 32px;
  color: #ffffff;
  font-weight: normal;
  line-height: 1em;
  text-align: center;
  margin: 0 auto;
}

.team-text span {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.team-text.b {
  width: 100%;
  margin: 0;
  font-weight: 400;
}

.team-text.c {
  text-align: left;
  margin: 0;
  font-weight: 200;
  font-size: 24px;
  line-height: 1.2em;
  width: 65%;
}

.team-text.d {
  width: 76%;
  text-align: center;
  line-height: 1.2em;
  font-weight: 200;
}

.team-grid-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 30%;
}

.arrow-section {
  display: flex;
  justify-content: flex-end;
  /* push contents to right */
  flex-direction: column;
  gap: 5px;
  width: 100%;
  /* take full width of parent */
}

.bottom-logo {
  height: 45px;
  width: auto;
  padding-bottom: 10px;
}

.bottom-logo-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10vh;
}

.bottom-logo-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  width: 17%;
}

.bottom-logo-grid-head {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;

}

/* Hidden state */
.fade-zoom-out {
  opacity: 0;
  transform: scale(1.2);
  /* start slightly bigger */
}

.fade-in {
  opacity: 0;
}

/* Fade Zoom Out */
.fade-zoom-out.visible {
  animation: fadeZoomOut 2s ease forwards;
  /* 1s smooth */
}

/* Fade In */
.fade-in.visible {
  animation: fadeIn 3s ease forwards;
  /* 2s smooth */
}

/* Keyframes */
@keyframes fadeZoomOut {
  from {
    opacity: 0;
    transform: scale(1.2);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* image-section */
.image-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.section-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Black transparent overlay */
.image-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

/* bottom-section */
.bottom-section {
  position: relative;
  height: auto;
  background-image: url(./images/lines.avif);
  background-repeat: repeat;
  background-position: top left;
  background-size: 1400px auto;
  /* adjust this size as you like */
  margin: 0 auto;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  gap: 6vh;
}

.bottom-section.b {
  height: 100vh;
  background: url("./images/Emirates Financial Group14.jpg") center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bottom-section.b .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.bottom-section.b .footer {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Transparent black overlay */
.bottom-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* adjust opacity */
  z-index: 1;
}

.capital-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.capital-section-top {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 20vh 0px;
  width: 82%;
  margin: 0 auto;
}

.main-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  animation: fadeImageIn 2s ease forwards;
}

@keyframes fadeImageIn {
  from {
    opacity: 0.3;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* footer */
.footer {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: 0 auto;
  gap: 5px;
  padding: 10vh 20px;
  position: relative;
  z-index: 2;
  padding-bottom: 5vh;
}

.footer.f {
  width: 100%;
  padding: 10vh 0px;
}

.footer-section {
  width: 75%;
  color: #ffffff;
  /* black text since you don't want background */
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  text-align: center;
}

/* Logos */
.footer-logos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  align-items: center;
}

.footer-logo {
  filter: brightness(0) invert(1);
  /* makes logo white */
  height: 60px;
  /* fix the height */
  width: auto;
  /* keep aspect ratio */
  object-fit: contain;
}

.footer-logo.b {
  display: none;
}

.footer-logo.small {
  height: 45px;
  width: auto;
  padding-top: 10px;
  filter: none;
}

/* Contact Info */
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  font-size: 14px;
  border-bottom: 0.5px solid #fff;
  padding-bottom: 8px;
}

.address {
  width: 60%;
  font-size: 10px;
  font-weight: 100;
  margin: 0;
  color: #ffffff;
}

.footer-contact div {
  width: 20%;
}

.footer-contact .email {
  font-size: 10px;
  margin: 0;
  font-weight: 100;
  text-align: center;
}

.footer-contact .phone {
  font-size: 10px;
  text-align: right;
  font-weight: 100;
  margin: 0;
}

/* Contact Us Right Side */
.arrow {
  font-size: 30px;
  margin: 0;
  line-height: 1;
}

/* Footer Links */
.footer-links {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0px;
  font-weight: 100;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Footer Note */
.footer-note {
  font-size: 10px;
  font-weight: 100;
  line-height: 1.5em;
  margin: 0;
  letter-spacing: 0.01rem;
}

.footer-link-section {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* new inner pages */
.contact {
  padding: 100px 0px 100px;
}

/* Global Mobile View Fixes (Shared Foundations) */
@media (max-width: 767px) {
  .footer-section {
    width: 90% !important;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .footer-contact div,
  .address,
  .footer-contact .email,
  .footer-contact .phone {
    width: 100% !important;
    text-align: center !important;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 8px;
    line-height: 1.6;
  }

  .logo {
    width: 240px !important;
    height: auto !important;
  }

  .main-navbar {
    padding: 10px 5% !important;
  }

  .constrained-container {
    width: 92% !important;
    margin: 0 auto !important;
  }

  .category-section {
    display: none !important;
  }

  .menu {
    display: block !important;
    width: 25px;
    height: auto;
  }
}