﻿body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  background-color: rgb(0, 0, 0);
  color: #111;
  /*border: 10px solid rgba(196, 3, 3, 0.467);*/
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px;
  box-sizing: border-box;
  background: hsla(0, 0%, 0%, 0.798);
  backdrop-filter: blur(10px);
  z-index: 99999999;
}

/* Scrollbar width */
::-webkit-scrollbar {
  width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}
/* Thumb (draggable part) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgb(255, 0, 0),
    rgba(117, 0, 0, 0.765)
  );
  border-radius: 80px;
}
/* Hover effect */
::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255);
}

.unihome {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.bing {
  height: 70px;
  margin-left: 10px;
  transition: 0.2s ease;
  margin-top: 5px;
  display: block;
}

.bing:hover {
  transform: scale(1.1);
}

.navlink {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 28px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.Top {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: black;
}

.Top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 20%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.72) 68%,
    rgba(0, 0, 0, 0.92) 86%,
    rgb(0, 0, 0) 100%
  );
}

.Title {
  position: absolute;
  inset: 0;
  margin-left: 80px;
  color: rgb(228, 17, 17);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin-top: 110px;
  font-size: 50px;
  letter-spacing: -0.02em;
  z-index: 1111;
  text-shadow: 0 4.5px 100px rgb(228, 17, 17);
}

.Title h1 {
  margin: 0;
}

.wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* ABOVE the video */

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.329) 60%,
    rgba(0, 0, 0, 0.77) 80%,
    rgb(0, 0, 0) 94%
  );
}

.vidback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.icon {
  height: 75%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.List {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  row-gap: 250px;
  padding: 50px;
  z-index: 1;
  transform: translateY(80px);
  animation: fadeUp 2.5s ease-out forwards;
  opacity: 0;
}

.card {
  position: relative;
  text-decoration: none;
  display: block;
  background: rgba(183, 39, 39, 0.698);
  padding: 10px;
  width: 70%;
  height: 125%;
  margin: auto;
  transition: transform 0.2s ease;
  border-radius: 20px;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 50px rgba(196, 79, 79, 0.797);
}

.card:hover .content h2 {
  color: rgb(0, 0, 0);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.797);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  color: white;
  margin-top: -95px;
  padding-left: 15px;
  padding-right: 15px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 18px;
}

.content h2 {
  font-style: italic;
  font-weight: 700;
  font-size: 27px;
}

.buttons {
  align-content: center;
  justify-content: end;
  padding-right: 20px;
  gap: 20px;
  display: flex;
  margin-bottom: 30px;
}

.button {
  display: inline-block;
  border-radius: 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.849);
  text-decoration: none;
  padding: 10px 10px;
  transition: transform 0.2s ease;
  color: black;
  width: 100px;
  font-size: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.List .card:nth-child(3):hover {
  transform: scale(1);
}

.button:hover {
  transform: scale(1.05);
  background-color: rgb(0, 0, 0);
  color: white;
}

.foot {
  color: white;
  pointer-events: none;
  text-align: center;
  position: relative;
  margin-right: -900px;
  margin-top: -405px;
  padding: 100px;
  padding-bottom: 400px;
  text-shadow: #ffffff 0px 0px 10px;
  font-size: 30px;
  font-style: italic;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.footer {
  background: rgba(35, 35, 35, 0.84);
  color: white;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgb(255, 0, 0);
  flex-wrap: wrap;
  gap: 20px;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 550;
  font-size: 17px;
}

/* 3 equal sections */
.footerLeft,
.footerCenter,
.footerSocial {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Left */
.footerLeft {
  justify-content: flex-start;
  opacity: 0.8;
}

/* Center (THIS is the fix) */
.footerCenter {
  justify-content: center;
}

/* Right */
.footerSocial {
  justify-content: flex-end;
  gap: 40px;
}

/* Links */
.footerLinks {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Anchor styling */
.footer a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.75;
}

.logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo2 {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-right: -14px;
  flex-shrink: 0;
}

/* -------------------- Responsive additions -------------------- */

@media (max-width: 1200px) {
  .topbar {
    justify-content: center;
    padding: 12px 18px;
    min-height: 90px;
    height: auto;
    gap: 8px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
  }

  .navlink {
    margin: 0 12px;
    padding: 10px 10px;
    font-size: 15px;
  }

  .Title {
    margin-left: 60px;
    margin-top: 80px;
  }

  .Title h1 {
    font-size: 88px;
    margin: 0;
    line-height: 1;
  }

  .List {
    row-gap: 120px;
    padding: 40px;
  }

  .card {
    width: 82%;
    height: auto;
  }

  .content {
    margin-top: -70px;
    font-size: 17px;
  }

  .content h2 {
    margin-top: 80px;
  }

  .foot {
    margin-right: 0;
    margin-top: -180px;
    padding-bottom: 220px;
  }

  .footerLinks {
    margin-right: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footerSocial {
    flex-wrap: wrap;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .List {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    row-gap: 140px;
    padding: 40px;
  }

  .Title {
    margin-top: 150px;
  }

  .card {
    width: 82%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .icon {
    height: 260px;
    flex-shrink: 0;
  }

  .content {
    margin-top: -45px;
    font-size: 16px;
    flex-grow: 1;
  }

  .buttons {
    margin-top: auto;
    padding-top: 10px;
  }

  .foot {
    position: relative;
    text-align: right;
    margin-right: 100px;
    margin-top: -260px;
    padding: 0 0 260px 0;
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .topbar {
    position: fixed;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
  }

  .unihome {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .bing {
    height: 62px;
    margin-top: 0;
  }

  .navlink {
    font-size: 14px;
    padding: 8px 10px;
    margin: 0 6px;
  }

  .Top {
    height: 430px;
  }

  .Top::after {
    height: 170px;
  }

  .Title {
    margin-left: 40px;
    margin-top: 155px;
  }

  .Title h1 {
    font-size: 72px;
    margin: 0;
    line-height: 1;
  }

  .wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.12) 35%,
      rgba(0, 0, 0, 0.25) 52%,
      rgba(0, 0, 0, 0.48) 68%,
      rgba(0, 0, 0, 0.72) 82%,
      rgba(0, 0, 0, 0.9) 93%,
      rgb(0, 0, 0) 100%
    );
  }

  .List {
    grid-template-columns: 1fr;
    row-gap: 50px;
    padding: 30px 20px;
    transform: translateY(40px);
  }

  .card {
    width: 100%;
    max-width: 650px;
    height: auto;
    padding: 10px;
  }

  .icon {
    height: 260px;
  }

  .content {
    margin-top: -40px;
    font-size: 17px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .content h2 {
    font-size: 25px;
    margin-top: 50px;
  }

  .buttons {
    justify-content: center;
    padding-right: 0;
    padding-top: 10px;
    flex-wrap: wrap;
  }

  .button {
    width: 140px;
  }

  .foot {
    margin-right: 0;
    margin-top: 0;
    padding: 70px 20px 140px;
    font-size: 26px;
  }

  .footer {
    padding: 35px 30px;
    flex-direction: column;
    text-align: center;
  }

  .footerLinks,
  .footerSocial {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 10px 10px 14px;
    gap: 4px;
  }

  .bing {
    height: 54px;
  }

  .navlink {
    font-size: 13px;
    padding: 7px 8px;
    margin: 0 4px;
  }

  .Top {
    height: 400px;
  }

  .Top::after {
    height: 160px;
  }

  .Title {
    margin-left: 20px;
    margin-top: 165px;
  }

  .Title h1 {
    font-size: 52px;
    margin: 0;
    line-height: 1;
  }

  .wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.08) 28%,
      rgba(0, 0, 0, 0.2) 46%,
      rgba(0, 0, 0, 0.42) 64%,
      rgba(0, 0, 0, 0.68) 80%,
      rgba(0, 0, 0, 0.9) 93%,
      rgb(0, 0, 0) 100%
    );
  }

  .List {
    padding: 20px 14px;
    row-gap: 30px;
    transform: translateY(25px);
  }

  .card {
    width: 100%;
    border-radius: 16px;
  }

  .card:hover {
    transform: scale(1.02);
  }

  .icon {
    height: 210px;
  }

  .content {
    margin-top: -20px;
    font-size: 15px;
    line-height: 1.55;
  }

  .content h2 {
    font-size: 22px;
    margin-top: 30px;
  }

  .buttons {
    gap: 12px;
  }

  .button {
    width: 130px;
    font-size: 13px;
    padding: 10px 8px;
  }

  .foot {
    padding: 50px 16px 110px;
    font-size: 21px;
  }

  .footer {
    padding: 28px 20px;
    gap: 18px;
    font-size: 15px;
  }

  .footerLeft {
    font-size: 15px;
  }

  .footerLinks {
    gap: 18px;
  }

  .footerSocial {
    gap: 18px;
  }

  .logo2 {
    width: 48px;
    height: 48px;
    margin-right: -8px;
  }
}

@media (max-width: 380px) {
  .Top {
    height: 380px;
  }

  .Top::after {
    height: 150px;
  }

  .Title {
    margin-top: 170px;
  }

  .Title h1 {
    font-size: 44px;
  }

  .navlink {
    font-size: 12px;
    padding: 6px 7px;
  }

  .icon {
    height: 180px;
  }

  .content {
    font-size: 14px;
  }

  .content h2 {
    font-size: 20px;
    margin-top: 30px;
  }

  .button {
    width: 120px;
    font-size: 12px;
  }

  .foot {
    font-size: 18px;
  }
}

@media (max-width: 1280px) and (min-width: 1000px) and (max-height: 850px) {
  .topbar {
    justify-content: center;
    padding: 10px 18px;
    min-height: 90px;
    height: auto;
    gap: 8px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
    height: 62px;
    margin-top: 0;
  }

  .navlink {
    margin: 0 10px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .Top {
    height: 460px;
  }

  .Top::after {
    height: 170px;
  }

  .Title {
    margin-left: 55px;
    margin-top: 150px;
  }

  .Title h1 {
    font-size: 84px;
    line-height: 1;
  }

  .wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.16) 36%,
      rgba(0, 0, 0, 0.3) 54%,
      rgba(0, 0, 0, 0.52) 70%,
      rgba(0, 0, 0, 0.75) 84%,
      rgba(0, 0, 0, 0.92) 94%,
      rgb(0, 0, 0) 100%
    );
  }

  .List {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    row-gap: 110px;
    padding: 35px;
    transform: translateY(35px);
  }

  .card {
    width: 82%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .icon {
    height: 235px;
    flex-shrink: 0;
  }

  .content {
    margin-top: -45px;
    font-size: 16px;
    flex-grow: 1;
  }

  .content h2 {
    font-size: 24px;
    margin-top: 60px;
  }

  .content p {
    line-height: 1.5;
  }

  .buttons {
    margin-top: auto;
    justify-content: center;
    padding-right: 0;
    padding-top: 10px;
    flex-wrap: wrap;
  }

  .button {
    width: 130px;
  }

  .foot {
    position: relative;
    text-align: right;
    margin-right: 205px;
    margin-top: -250px;
    padding: 0 0 260px 0;
    font-size: 26px;
  }

  .footer {
    padding: 38px 40px;
  }

  .footerLinks {
    gap: 26px;
  }

  .footerSocial {
    gap: 26px;
  }
}