body {
  margin: 0;
  padding: 0;
  font-family: "Avenir", sans-serif;
  background-color: #010101;
}
html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
@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: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* makes video cover the whole div */
}

/* 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-content-section {
  position: absolute;  
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 85vh;
  opacity: 0;
  background-color: #000000; /* start with no bg */
  transition: opacity 1.5s ease-in-out, background-color 1.5s ease-in-out;
  z-index: 2;
  display: flex;
  gap: 25vh;
  flex-direction: column;
  padding: 7vh 0;
}

/* Show with fade-in */
.main-content-section.visible {
  opacity: 1;
  background-color: #000000; /* fade-in bg */
}

/* top-sectiion */
.top-sectiion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.logo {
  height: 36px;
  width: 140px;
  filter: brightness(0) invert(1);
  cursor: pointer;
}


.category-section {
  display: flex;
  align-items: center;
  gap: 50px;
}

.category {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 100;
  text-transform: capitalize;
}

/* second-section */

.text {
  font-size: 11px;
  margin: 0;
  color: #d7d7d7;
  font-weight: 100;
  line-height: 1.4em;
}
.text.i{
  font-size: 14px;
  font-weight: 100;
  color: #d7d7d7;
}
.text.b {
  width: 58%;
  font-size: 12px;
  font-weight: 100;
  text-align: center;
  color: #d7d7d7;
}

.text.c {
  font-size: 11px;
  font-weight: 100;
  color: #d7d7d7;
}

/* third-section */
.third-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.third-section-top {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 80%;
}

.third-logo {
  height: 36px;
  width: 110px;
}

.heading {
  font-size: 50px;
  font-weight: 500;
  font-family: "Libre Baskerville", serif;
  margin: 0;
  color: #ffffff;
  width: 55%;
  letter-spacing: -0.05em;
  line-height: 1.2em;
}

.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: 38%;
}

.third-section-bottom-right {
  width: 62%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.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.avif) 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 {
  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;
}

.body-content-grid.d {
  gap: 50px;
  width: 82%;
  margin: 0 auto;
}

.team-text {
  margin: 0;
  width: 55%;
  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: 400;
  font-size: 30px;
  line-height: 1.1em;
  width: 50%;
}

.team-text.d {
  width: 76%;
  text-align: center;
  line-height: 1.2em;
}

.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: 25px;
  width: 160px;
  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: url(./images/lines.avif) center center / cover no-repeat;
  margin: 0 auto;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  gap: 6vh;
}

/* 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;
}

/* 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-section {
  width: 82%;
  font-family: "avenir-lt-w01_35-light1475496", sans-serif;
  color: #ffffff;
  /* black text since you don't want background */
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

/* Logos */
.footer-logos {
  display: flex;
  justify-content: space-between;
  width: auto;
  /* remove the 25% restriction */
  align-items: flex-start;
  /* force items left */
  width: 30%;
  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: 40px;
  width: auto;
  padding-top: 10px;
}

/* Contact Info */
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  font-size: 14px;
}

.address {
  width: 60%;
  font-size: 10px;
  line-height: 1.1em;
  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: 11px;
  gap: 20px;
}

.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.8px;
}

.footer-link-section {
  width: 70%;
  display: flex;
  gap: 5px;
  flex-direction: column;
}