﻿body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  background-color: black;
  min-height: 100%;
}

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

/* 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(138, 138, 138),
    rgba(79, 79, 79, 0.6)
  );
  border-radius: 80px;
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255);
}

.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;
}

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

.bing {
  height: 70px;
  margin-left: 10px;
  margin-top: 5px;
  transition: 0.2s ease;
  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; /* restored spacing */
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

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

.everything {
  width: 100%;
}

.wrap {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
}

.wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.193) 50%,
    rgba(0, 0, 0, 0.63) 65%,
    rgba(0, 0, 0, 0.683) 75%,
    rgba(0, 0, 0, 0.713) 80%,
    rgba(0, 0, 0, 0.824) 90%,
    rgba(0, 0, 0, 0.929) 95%,
    rgb(0, 0, 0) 99%
  );
}

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

.title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: white;
  padding: 290px 24px 120px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.title h1 {
  margin: 0;
  font-size: 110px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 2s ease-out forwards;
  text-shadow: 0 4px 20px rgb(137, 134, 137);
}

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

.rotating {
  font-style: italic;
  font-size: 50px;
  opacity: 1;
  margin: 55px 0 0;
}

#rotateText {
  display: inline-block;
  opacity: 1;
  transition: opacity 1s ease;
}

#rotateText.fade-out {
  opacity: 0;
}

.descriptions {
  position: relative;
  z-index: 3;
}

.sub {
  position: relative;
  color: white;
  font-size: 30px;
  font-weight: 600;
  text-shadow: 0 1px 20px rgb(255, 255, 255);
  font-style: oblique;
  margin: -150px 0 50px 80px;
  z-index: 3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.gridd {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 60px;
  margin-top: -50px;
  padding: 60px;
  z-index: 3;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.card {
  position: relative;
  text-decoration: none;
  display: block;
  background: rgba(45, 45, 45, 0.506);
  width: 100%;
  min-height: 350px;
  margin: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 10px;
  overflow: hidden;
  z-index: 6;
}

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

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

.icon {
  height: 245px;
  width: 100%;
  object-fit: cover;
  display: block;
}

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

.content h2 {
  font-style: italic;
  font-weight: 500;
  margin: 0 0 10px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.content p {
  margin: 0;
  line-height: 1.5;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  padding: 0;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.75);
  animation: scrollBounce 1.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.scroll-indicator.hide {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@keyframes scrollBounce {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, 10px);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 0);
    opacity: 0.5;
  }
}

.footer {
  background: rgba(35, 35, 35, 0.84);
  color: white;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgb(93, 93, 93);
  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;
}

/* ----------- Large tablets / smaller laptops ----------- */
@media (max-width: 1200px) {
  .topbar {
    justify-content: center;
    padding: 12px 18px;
    min-height: 90px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
  }

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

  .title {
    padding-top: 240px;
  }

  .title h1 {
    font-size: 88px;
  }

  .rotating {
    font-size: 40px;
  }

  .sub {
    margin: -120px 0 40px 60px;
    font-size: 28px;
  }

  .gridd {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 36px;
    padding: 50px;
  }

}

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

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

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

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

  .vid {
    height: 780px;
  }

  .title {
    padding: 240px 20px 110px;
  }

  .title h1 {
    font-size: 68px;
  }

  .rotating {
    font-size: 32px;
  }

  .scroll-indicator {
    bottom: 60px;
    font-size: 40px;
  }

  .sub {
    margin: -90px 0 35px 40px;
    font-size: 24px;
  }

  .gridd {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px;
    margin-top: -20px;
  }

  .card {
    min-height: 320px;
  }

  .icon {
    height: 220px;
  }

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

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

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

  .bing {
    height: 54px;
  }

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

  .vid {
    height: 700px;
  }

  .title {
    padding: 220px 16px 100px;
  }

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

  .rotating {
    font-size: 22px;
    line-height: 1.4;
  }

  .scroll-indicator {
    font-size: 34px;
    bottom: 42px;
  }

  .sub {
    margin: -60px 0 28px 20px;
    font-size: 20px;
  }

  .gridd {
    padding: 20px;
    gap: 22px;
  }

  .card {
    min-height: 300px;
    border-radius: 12px;
  }

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

  .icon {
    height: 190px;
  }

  .content {
    padding: 16px 14px 18px;
  }

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

  .content p {
    font-size: 15px;
  }

  .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;
  }
}

/* ----------- Very small phones ----------- */
@media (max-width: 380px) {
  .title h1 {
    font-size: 38px;
  }

  .rotating {
    font-size: 19px;
  }

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

  .sub {
    margin-left: 16px;
    font-size: 18px;
  }

  .gridd {
    padding: 16px;
  }
}

@media (max-width: 1100px) and (min-width: 901px) and (min-height: 1000px) {
 

  .gridd {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 36px;
    padding: 40px;
    align-items: stretch;
  }

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

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

  .content {
    margin-top: 0;
    padding: 18px 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .content h2 {
    margin: 0 0 10px;
  }

  .content p {
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
  }
}

@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;
  }

  .vid {
    height: 760px;
  }

  .title {
    padding: 270px 24px 100px;
  }

  .title h1 {
    font-size: 88px;
  }

  .rotating {
    font-size: 38px;
    margin-top: 38px;
  }

  .scroll-indicator {
    bottom: 55px;
    font-size: 40px;
  }

  .sub {
    margin: -95px 0 35px 50px;
    font-size: 26px;
  }

  .gridd {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px;
    margin-top: -20px;
    align-items: stretch;
  }

  .card {
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

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

  .content {
    padding: 16px 14px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

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

  .content p {
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
    flex-grow: 1;
  }

  .footer {
    padding: 38px 40px;
  }

  .footerLinks {
    gap: 26px;
  }

  .footerSocial {
    gap: 26px;
  }
}