﻿html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  background-color: black;
  background-image: linear-gradient(
    180deg,
    #000000 55%,
    rgba(0, 51, 255, 0.718) 80%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-decoration: none;
  min-height: 100%;
}

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

/* Scrollbar width */
::-webkit-scrollbar {
  width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0);
}
/* Thumb (draggable part) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgb(62, 75, 255),
    rgba(255, 255, 255, 0.156)
  );
  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;
  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%
  );
}

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

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

.Titlecontact h1 {
  margin: 0;
}

.wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  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;
}

.contactMain {
  color: black;
}

.contactlist {
  padding: 20px 0 40px;
}

.icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  z-index: 10000;
  flex-shrink: 0;
}

.card {
  position: relative;
  max-width: 1669px;
  display: flex;
  gap: 30px;
  padding: 34px 64px;
  margin: 60px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  border-radius: 20px;

  /* CHAT ANIMATION */
  opacity: 0;
  filter: blur(1px);
  transition: opacity 1s ease, transform 2s ease, filter 1s ease;
  will-change: transform, opacity, filter;
}

.card:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  transform: translateX(-150px);
  box-shadow: 10px 5px 15px rgba(34, 34, 34, 0.486);
}

.card:nth-child(odd) {
  transform: translateX(150px);
  box-shadow: -10px 5px 15px rgba(34, 34, 34, 0.486);
}

/* Visible state */
.card.show {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.card h {
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.content {
  position: relative;
  font-size: 25px;
  margin-left: 50px;
  align-content: center;
  max-width: 600px;
  min-width: 0;
}

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

.click {
  align-content: center;
  margin: auto;
  flex-shrink: 0;
}

.button {
  display: inline-block;
  border-radius: 110px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.849);
  text-decoration: none;
  padding: 40px 40px;
  transition: transform 0.2s ease;
  color: black;
  width: 250px;
  font-size: 18px;
}

.button:hover {
  transform: scale(1.1);
  color: white;
  background-color: black;
}

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

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
  }

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

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

  .Titlecontact h1 {
    font-size: 88px;
    line-height: 1;
  }

  .card {
    gap: 24px;
    padding: 30px 42px;
    margin: 45px;
  }

  .icon {
    width: 170px;
    height: 170px;
  }

  .content {
    font-size: 22px;
    margin-left: 20px;
    max-width: 520px;
  }

  .button {
    width: 170px;
    padding: 28px 22px;
    font-size: 16px;
  }
}

@media (max-width:1050px) and (max-height:650px) {

  body {
    background-image: linear-gradient(
      180deg,
      #000000 98%,
      rgba(0, 51, 255, 0.85) 99%
    );
  }

}

/* ----------- iPad Pro / Surface Pro portrait ----------- */
@media (max-width: 1100px) and (min-width: 850px) and (min-height: 1000px) {
  .Top {
    height: 460px;
  }

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

  .Titlecontact {
    margin-left: 45px;
    margin-top: 150px;
  }

  .Titlecontact h1 {
    font-size: 76px;
    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%
    );
  }

  .card,
  .card:nth-child(even),
  .card:nth-child(odd) {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }

  .card {
    gap: 24px;
    padding: 28px 30px;
  }

  .icon {
    width: 150px;
    height: 150px;
  }

  .content {
    margin-left: 0;
    font-size: 21px;
    max-width: 100%;
    flex: 1;
  }

  .card h {
    font-size: 28px;
  }

  .button {
    width: 165px;
    padding: 24px 18px;
    font-size: 16px;
  }
}

/* ----------- Nest Hub Max / short wide screen ----------- */
@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: 165px;
  }

  .Titlecontact {
    margin-left: 50px;
    margin-top: 145px;
  }

  .Titlecontact h1 {
    font-size: 82px;
    line-height: 1;
  }

  .wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.14) 34%,
      rgba(0, 0, 0, 0.28) 52%,
      rgba(0, 0, 0, 0.5) 68%,
      rgba(0, 0, 0, 0.74) 83%,
      rgba(0, 0, 0, 0.92) 94%,
      rgb(0, 0, 0) 100%
    );
  }

  .contactlist {
    padding-top: 10px;
    padding: 20px;
  }

  .card {
    gap: 20px;
    padding: 24px 30px;
    margin: 34px 34px;
  }

  .icon {
    width: 140px;
    height: 140px;
  }

  .content {
    font-size: 20px;
    margin-left: 0;
    max-width: 100%;
    flex: 1;
  }

  .card h {
    font-size: 27px;
  }

  .button {
    width: 160px;
    padding: 22px 18px;
    font-size: 15px;
  }

  .footer {
    padding: 38px 40px;
  }

  .footerLinks {
    gap: 26px;
  }

  .footerSocial {
    gap: 26px;
  }
}

/* ----------- 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;
  }

  .Top {
    height: 430px;
  }

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

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

  .Titlecontact h1 {
    font-size: 72px;
    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%
    );
  }

  .card,
  .card:nth-child(even),
  .card:nth-child(odd) {
    flex-direction: column;
    transform: translateY(70px);
    margin: 28px 20px;
    max-width: none;
  }

  .card.show {
    transform: translateY(0);
  }

  .icon {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .content {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
    font-size: 20px;
  }

  .click {
    margin-top: 10px;
  }

  .button {
    width: 170px;
    padding: 24px 20px;
    font-size: 16px;
  }

  .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 {
    font-size: 13px;
    padding: 7px 8px;
    margin: 0 4px;
  }

  .Top {
    height: 400px;
  }

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

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

  .Titlecontact h1 {
    font-size: 52px;
    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%
    );
  }

  .card,
  .card:nth-child(even),
  .card:nth-child(odd) {
    margin: 22px 14px;
    padding: 22px 18px;
    gap: 18px;
  }

  .icon {
    width: 120px;
    height: 120px;
  }

  .card h {
    font-size: 24px;
  }

  .content {
    font-size: 17px;
  }

  .button {
    width: 150px;
    padding: 18px 14px;
    font-size: 14px;
  }

  .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) {
  .Top {
    height: 380px;
  }

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

  .Titlecontact {
    margin-top: 170px;
  }

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

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

  .icon {
    width: 100px;
    height: 100px;
  }

  .card h {
    font-size: 22px;
  }

  .content {
    font-size: 15px;
  }

  .button {
    width: 135px;
    font-size: 13px;
    padding: 16px 12px;
  }
}