* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "open sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

body,
html {
  font-family: "open sans", sans-serif;
  font-weight: 200;
  font-style: normal;
  height: 100%;
  background: black;
  touch-action: manipulation;
}

.video-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(12, 35, 71, 0.3),
    rgba(0, 5, 15, 0.78),
    rgba(5, 17, 40, 0.52)
  );
  background-size: 100% 300%;
  background-position: top;
  animation: gradientShift 5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.navbar {
  width: 100%;
  padding: 25px 25px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 13px;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.logo {
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 65px;
  font-size: 18px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  transition: 0.3s;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nav-links .btn {
  background: #cfd8dc;
  color: black;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .logo img {
    height: 50px;
  }

  .navbar {
    display: none !important;
  }
}

.hamburger-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.7));
  position: relative; /* important */
  z-index: 20; /* above the main navbar */
  display: none;
}

.hamburger-logo img {
  height: 50px;
}

.hamburger-toggle {
  display: none; /* shown only on mobile */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 30; /* above menu */
}

.hamburger-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease; /* smooth animation */
}

.hamburger-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Links */
.hamburger-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.hamburger-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger-navbar, .hamburger-toggle {
    display: flex;
  }

  .hamburger-links {
    position: absolute;
    top: 70px; /* adjust if needed */
    left: 0;
    right: 0;
    background-color: #000;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    display: none;
    z-index: 20;
  }

  .hamburger-links.show {
    display: flex;
  }
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #2772eb;
  box-shadow: 0 0 0 2px #2772eb;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #2772eb;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  background-color: #2772eb;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #212121;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #2772eb;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

.animated-button2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #2772eb;
  box-shadow: 0 0 0 2px #2772eb;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button3 svg {
  position: absolute;
  width: 24px;
  fill: #ffffff;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button3 .arr-1 {
  right: 16px;
}

.animated-button3 .arr-2 {
  left: -25%;
}

.animated-button3 .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button3 .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button3:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #000000ff;
  border-radius: 12px;
}

.animated-button3:hover .arr-1 {
  right: -25%;
}

.animated-button3:hover .arr-2 {
  left: 16px;
}

.animated-button3:hover .text {
  transform: translateX(12px);
}

.animated-button3:hover svg {
  fill: #000000ff;
}

.animated-button3:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #ffffffff;
}

.animated-button3:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 30px;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  display: none;
  list-style: none;
  z-index: 20;
  min-width: 150px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
}

.hero {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 5;
}

.hero h1 {
  font-size: 58px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 60px;
  width: 1000px;
}

.hero p {
  font-size: 22px;
  margin-bottom: 50px;
}

.hero button {
  font-size: 20px;
}

.social-icons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.social-icons img {
  width: 30px;
  margin-left: 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.social-icons2 {
  position: absolute;
  display: flex;
  right: 100px;
  align-items: center;
  z-index: 1;
}

.social-icons2 img {
  width: 30px;
  margin-left: 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.social-icons2 img:hover {
  transform: scale(1.2);
}

.gradient-bg {
  background: none;
  background-image: url("../images/bg4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.gradient-bg2 {
  background: none;
  background-image: url("../images/bg2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.gradient-bg2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.team-member-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.team-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.team-card:hover .team-member-img {
  transform: scale(1.05);
  z-index: 10;
}
.socials {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.team-card:hover .socials {
  opacity: 1;
  pointer-events: auto;
}

.socials a {
  transition: transform 0.3s ease;
}

.socials a:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
    width: 600px;
  }

  .hero p {
    font-size: 22px;
  }

  .social-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
    width: 350px;
  }

  .hero p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    word-wrap: break-word; /* ensures long text wraps */
  }

  .footer p {
    margin-bottom: 10px;
    max-width: 90%; /* optional: prevents overflow */
  }

  .social-icons2 {
    justify-content: center;
    gap: 45px;
    margin-top: 70px;
  }
}

.video-section-wrapper {
  position: relative;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Wrapper for page content */
.content-wrapper {
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-2 {
  margin-top: 0.5rem;
}

/* Headings */
h1 {
  font-weight: 600;
  color: #edf2f7;
  font-size: 1.75rem;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  h1 {
    font-size: 1.875rem;
  }
}

/* Decorative underline */
.underline-group {
  display: flex;
  margin-top: 1.5rem;
  justify-content: flex-start;
  gap: 0.25rem;
}
.underline-group span {
  display: inline-block;
  border-radius: 9999px;
  background-color: #3b82f6; /* blue */
  height: 0.25rem;
}
.underline-group .long {
  width: 10rem;
}
.underline-group .medium {
  width: 0.75rem;
}
.underline-group .short {
  width: 0.25rem;
}

/* Flex container for header and arrows */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}
@media (max-width: 767px) {
  .flex-between {
    flex-direction: column;
    gap: 1rem;
  }
}


}

section .card:last-child img {
  object-fit: contain;
  object-position: center;
}

section {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr 1.5fr; /* Left, Center (main), Right */
  grid-template-rows: 1.5fr 2.5fr 1.5fr; /* Top, Center (main), Bottom */
  gap: 3px;
  place-content: center;
  height: 80vh;
  min-height: 460px;
  padding: max(2vh, 1.5rem);
}

section .card {
  border-radius: 25px;
  box-shadow: -2px 4px 15px rgb(0 0 0 / 26%);
  border: none;
  outline: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  section .card {
    left: 30px;
  }

  
}

section .card:hover {
  transform: scale(1.25);
  box-shadow: -4px 8px 25px rgb(0 0 0 / 35%);
  z-index: 10;
}

section .card p {
  font-size: clamp(0.9rem, 0.875rem + 0.125vw, 1rem);
  line-height: 1.4;
}

section .card img {
  border-radius: 25px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section .card .card__img {
  position: relative;
  height: 100%;
}

section .card .card__img .card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  color: #fff;
  padding: clamp(0.938rem, 5vw, 1.563rem);
  background: linear-gradient(
    0deg,
    rgb(0 0 0 / 57%) 0%,
    rgb(255 255 255 / 0%) 100%
  );
  width: 100%;
  height: 100%;
  border-radius: 25px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}

section .card .card__img span {
  position: absolute;
  top: 25px;
  left: min(2vmax, 1.563rem);
  color: #ff7b29;
  background: #fff;
  border-radius: 50px;
  padding: 2px 8px 2px 6px;
  display: flex;
  box-shadow: 0px 1px 20px #0000002b;
}

section .card .card__img span svg {
  fill: #ff7b29;
  width: 20px;
  margin-right: 2px;
}

/* Main central image - largest and most prominent */
section .card:nth-child(1) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  transform: scale(1.25);
  z-index: 5;
}

/* Top left - tilted and moved closer */
section .card:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transform: scale(1.55)  translateX(20px) translateY(10px);
  z-index: 3;
}

/* Top right - tilted and moved closer */
section .card:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  transform: scale(1.55)  translateX(-20px) translateY(10px);
  z-index: 3;
}

/* Bottom left - tilted and moved closer */
section .card:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  transform: scale(1.55) translateX(20px) translateY(-10px);
  z-index: 3;
}

/* Bottom right - tilted and moved closer */
section .card:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  transform: scale(1.55)  translateX(-20px) translateY(-10px);
  z-index: 3;
}

/* Adjust hover effects for tilted cards */
section .card:nth-child(2):hover {
  transform: rotate(-8deg) translateX(20px) translateY(10px) scale(1.25);
}

section .card:nth-child(3):hover {
  transform: rotate(12deg) translateX(-20px) translateY(10px) scale(1.25);
}

section .card:nth-child(4):hover {
  transform: rotate(6deg) translateX(20px) translateY(-10px) scale(1.25);
}

section .card:nth-child(5):hover {
  transform: rotate(-10deg) translateX(-20px) translateY(-10px) scale(1.25);
}

/* Media Queries */
@media screen and (max-width: 690px) {
  section {
    height: 65vh;
    grid-template-columns: 1.3fr 2.2fr 1.3fr;
    grid-template-rows: 1.3fr 2.2fr 1.3fr;
    gap: 2px;
  }

  section .card .card__img span {
    top: 20px;
  }

  /* Reduce tilts for smaller screens */
  section .card:nth-child(2) {
    transform: rotate(-5deg) translateX(5px) translateY(8px);
  }

  section .card:nth-child(3) {
    transform: rotate(8deg) translateX(-15px) translateY(8px);
  }

  section .card:nth-child(4) {
    transform: rotate(4deg) translateX(15px) translateY(-8px);
  }

  section .card:nth-child(5) {
    transform: rotate(-7deg) translateX(-15px) translateY(-8px);
  }

  section .card:nth-child(2):hover {
    transform: rotate(-5deg) translateX(15px) translateY(8px) scale(1.25);
  }

  section .card:nth-child(3):hover {
    transform: rotate(8deg) translateX(-15px) translateY(8px) scale(1.25);
  }

  section .card:nth-child(4):hover {
    transform: rotate(4deg) translateX(15px) translateY(-8px) scale(1.25);
  }

  section .card:nth-child(5):hover {
    transform: rotate(-7deg) translateX(-15px) translateY(-8px) scale(1.25);
  }
}

@media screen and (max-width: 470px) {
  section {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 2fr 1fr;
    gap: 40px;
  }

  /* Main image takes center position in mobile */
  section .card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }

  /* Reset positions and reduce tilts for mobile */
  section .card:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transform: rotate(-3deg);
    margin: 0;
  }

  section .card:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    transform: rotate(4deg);
    margin: 0;
  }

  section .card:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    transform: rotate(2deg);
    margin: 0;
  }

  section .card:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    transform: rotate(-4deg);
    margin: 0;
  }

  section .card:nth-child(2):hover {
    transform: rotate(-3deg) scale(3.25);
    z-index: 20;
  }

  section .card:nth-child(3):hover {
    transform: rotate(4deg) scale(3.25);
    z-index: 20;
  }

  section .card:nth-child(4):hover {
    transform: rotate(2deg) scale(3.25);
    z-index: 20;
  }

  section .card:nth-child(5):hover {
    transform: rotate(-4deg) scale(3.25);
    z-index: 20;
  }

  section .card .card__img span {
    top: 15px;
  }
}
