:root {
  --primary-font: "Inter", sans-serif;
  --gradient-text: linear-gradient(80.32deg,
      #f83a3a 10%,
      #f13dd4 50%,
      #7000ff 90%);
  --blue: #4353ff;
  --text-white: #fff;
  --text-black: #000;
  --gray-text: #6c757d;
  --nav-bg: rgba(0, 0, 0, 0.5);
  --btn-hover: #2c3ae8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--primary-font);
  background-color: var(--bg-color);
  color: var(--text-black);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0px 60px;
}

a {
  text-decoration: none;
}

a h3 {
  text-decoration: none;
}

@media (max-width : 780px) {
  .container {
    padding: 0px 24px;
  }
}

@media (max-width : 480px) {
  .container {
    padding: 0px 16px;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  padding: 26px 0px;
  width: 100%;
  top: 0;
  left: 0;
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.logo img {
  max-width: 159px;
  max-height: 49px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

menu {
  display: flex;
  align-items: center;
}

menu ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

menu ul li {
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
  color: white;
}

menu ul li:hover {
  opacity: 0.7;
}

menu ul li:not(:first-child) {
  color: white;
}

menu ul li a {
  text-decoration: none;
  color: var(--text-white);
  border: none;
}

nav menu ul li:last-child a {
  text-decoration: none;
  background: transparent;
  border: 2px solid white;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}



menu ul li a:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid white;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

@media (max-width: 780px) {
  .logo img {
    max-width: 125px;
    max-height: 38px;
  }

  nav {
    position: relative;
    z-index: 1002;
  }

  nav menu ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    text-align: right;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;

  }

  nav menu ul.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav menu ul .close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-white);
    cursor: pointer;
  }

  nav menu ul li {
    margin: 10px 0;
  }

  nav menu ul li a {
    border: none;
  }

  nav .menu-toggle {
    display: block;
    border: 1px solid #FFFFFF;
    padding: 10px 20px;
    font-size: 16px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  nav .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  /* Just below the nav z-index */
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.backdrop.active {
  display: block;
  opacity: 1;
}

.hero {
  display: flex;
  align-items: start;
  justify-content: center;
  height: 100%;
  text-align: center;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 200px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  text-align: start;
  width: 100%;
  /* background-color: red; */
}

.hero-text h1 {
  font-weight: 500;
  font-size: 90px;
  line-height: 120%;
  letter-spacing: 1.2px;
  color: var(--text-white);
}

.hero-text .gradient-text {
  font-style: italic;
}

.hero-content-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding-top: 24px;
}

.hero-content-bottom p {
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  text-align: start;
  max-width: 650px;
  color: var(--text-white);
}

.btn-next {
  background-color: var(--blue);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  border: none;
  max-width: 354px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.btn-next span:nth-child(2) {
  display: flex;
}

.btn-next:hover {
  background-color: var(--btn-hover);
}

.btn-next span svg {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

.btn-next:hover span svg {
  transform: translateX(10px);
}

@media (max-width: 780px) {
  .hero-content {
    padding-top: 90px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    letter-spacing: 1.2px;
  }

  .hero-content-bottom {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 2rem;
  }
}

h2 {
  font-weight: 500;
  font-size: 90px;
  line-height: 120%;
  letter-spacing: 1.2px;
  color: var(--text-black);
}

.services {
  padding: 80px 0;
  background-color: var(--bg-color);
  text-align: start;
}

.services .gradient-text {
  display: inline-block;
  font-size: inherit;
  font-style: italic;
}

.services-provided {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 120px;
  margin-bottom: 60px;
  height: 100%;
}

.service-image {
  flex: 1.5;
  display: flex;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.services-cards {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.service-card {
  padding: 36px;
  text-align: left;
  transition: all 0.4s ease-in-out;
  /* Smooth transition for all properties */
  max-width: 563px;
  width: 100%;
  border-bottom: 1px solid #E4E4E4;
  overflow: hidden;
  cursor: pointer;
}

/* Remove hover effects */
.service-card:hover {
  transform: none;
}

/* Active card styling */
.service-card.active {
  box-shadow: -1px 22px 43px 2px rgba(204, 202, 204, 1);
  max-height: 212px;
  padding: 36px;
  border: none;
  transform: translateY(-10px);
  /* Move the active card up */
}

/* Smooth color transition for text */
.service-card h3 {
  display: flex;
  justify-content: start;
  align-items: center;
  color: black;
  transition: color 0.3s ease-in-out;
}

.service-card h3 span {
  display: flex;
  margin-right: 16px;
}

/* Active state modifications */
.service-card.active h3 {
  /* color: var(--blue); */
}

.service-card.active h3 span img {
  color: var(--blue);
}

.service-card p,
.service-card a {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  /* Smooth fade-in transition */
}

.service-card.active p,
.service-card.active a {
  display: flex;
  opacity: 1;
  /* Fade in */
}

.service-card.active p {
  padding-top: 10px;
  font-weight: 300;
  font-size: 16px;
}

.service-card.active a {
  padding-top: 16px;
  text-decoration: none;
  color: var(--text-black);
}

.service-card a svg {
  margin-left: 22px;
}

/* Remove hover effect on SVG */
.service-card:hover svg {
  transition: none;
}


@media (max-width:780px) {
  .services {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .services-provided {
    flex-direction: column;
    margin: 50px 0;
  }

  .service-image {
    height: 400px;
    width: 100%;
    background-color: red;
  }

  .service-image img {
    position: relative;
  }

  .services-card {
    font-size: 16px;
  }
}

@media (max-width:360px) {
  .services-card {
    font-size: 24px;
  }
}

/* testimonials */


.testimonial {
  padding: 60px 0;
  max-height: 700px;
  height: 100%;
}

.testimonial h2 {
  padding-bottom: 60px;
}

.testimonial-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;

}

.testimonial-img {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;


}

.testimonial-img img {
  background-color: #fff;
  border-radius: 24px;
  max-height: 90px;
  width: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonials {
  flex: 2;
  position: relative;
  display: flex;
  align-items: start;
  justify-content: center;
  height: 450px;
}

.testimonial-card {
  display: none;
  max-width: 600px;
  text-align: left;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-text {
  font-size: 24px;
}

.testimonial-card.active {
  display: block;
}

.client {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-img img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.client-details {
  margin-left: 15px;
}

.client-name {
  font-weight: bold;
}

.client-position {
  font-size: 14px;
  color: gray;
}


.testimonial-dots {
  position: absolute;
  left: 45%;
  top: 90%;
  display: flex;
  gap: 10px;
}

.testimonial-dots span {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin: 0 5px;
  position: relative;
  /* Needed for pseudo-element */
}

.testimonial-dots span.active {
  background-color: #fff;
}

.testimonial-dots span.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centering fix */
  width: 14px;
  height: 14px;
  border: 2px solid var(--blue);
  /* Outer circle */
  border-radius: 50%;
}


@media (max-width:780px) {
  .testimonial {
    padding-bottom: 41px;
    max-height: 100%;
  }

  .testimonial-wrapper {
    display: block;
    flex-direction: column;
    height: 100%;
  }

  .testimonial-text {
    font-size: 20px;
    line-height: 40px;
    font-weight: 400;
    vertical-align: middle;
  }

  .testimonial-img {
    height: 100px
  }

  .testimonials {
    height: 100%;
  }

  .testimonial-dots {
    position: absolute;
    left: 0%;
    top: 105%;
    gap: 10px;
  }
}


/* case study  */
.case-study {
  padding: 60px 0;
}

.case-study .gradient-text {
  display: inline-block;
  font-size: inherit;
  font-style: italic;
}

.case-study p {
  font-weight: 400;
  font-size: 24px;
}

.case-study p span {
  font-weight: 500;
  font-style: italic;
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
  gap: 60px 60px;
  justify-content: center;
  margin: 60px 0;
}


.case {
  text-align: start;
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 630px;
  width: 100%;
}

.case:hover {
  transform: translateY(-5px);
}

.case img {
  max-height: 414px;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.case h3 {
  color: var(--text-black);
  font-family: Inter;
  font-weight: 500;
  font-size: 24px;
  padding: 12px 0;
}

.case p {
  font-size: 16px;
  color: #555;
}

@media (max-width :780px) {
  .case-study h2 {
    display: contents;
  }

  .case-study p {
    padding-top: 60px;
    font-size: 20px;

  }

  .case-studies {
    grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    gap: 60px;
  }

  .case {
    max-width: 100%;
  }

  .case h3 {
    max-width: 100%;
    padding-bottom: 0px;
    line-height: 100%;
  }

  .case p {
    padding-top: 16px;
    font-size: 16px;
  }
}

.footer {
  position: relative;
  padding: 141px 0;
  background: transparent;
  color: var(--text-white);
}

.footer .container {
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
}

.footer h2 {
  color: var(--text-white);
  font-size: 90px;
  font-style: italic;
  margin-bottom: 24px;
}

.footer p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 1000px;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.contact-form input {
  width: 354px;
  height: 54px;
  border: 1px solid white;
  background: transparent;
  color: var(--text-white);
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

.contact-form input::placeholder {
  color: var(--text-white);
  opacity: 1;
}

@media (max-width: 780px) {
  .contact-form input {
    width: 100%;
  }
}

footer {
  color: var(--text-white);
  padding: 24px 0;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  margin-top: 24px;
}

footer span {
  font-size: 18px;
  font-weight: 500;
}

footer menu {
  display: flex;
}

footer ul {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

footer ul li {
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

footer ul li:hover {
  color: var(--blue);
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer {
    padding: 60px 0px;
  }

  .contact-form .btn-next {
    max-width: 100%;
  }

  .footer h2 {
    font-size: 48px;
  }

  footer ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .footer h2 {
    font-size: 2rem;
  }
}



.animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #000;
}

.animation div {
  position: absolute;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite alternate, pulse 6s ease-in-out infinite alternate;

}

/* @keyframes float {

  70% {
    transform: scale(1.2) translateX(50px);
  }
  
} */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) translateX(20px) scale(1.05) rotate(5deg);
  }

  100% {
    transform: translateY(45px) translateX(-35px) scale(0.95) rotate(-5deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Gradient-based colors */
.animation div:nth-child(1) {
  aspect-ratio: 1/1;
  width: 20%;
  background: radial-gradient(circle, #ff6ec4, #f13dd4);
  left: 25%;
  top: 50%;
  animation-duration: 5s;
  animation-delay: 0.5s;
}

.animation div:nth-child(2) {
  aspect-ratio: 1/1;
  width: 30%;
  background: radial-gradient(circle, #6a00ff, #7000ff);
  left: 50%;
  top: 10%;
  animation-duration: 6s;
  animation-delay: 1.5s;
}

/* .animation div:nth-child(3) {
  aspect-ratio: 1/1;
  width: 50%;
  background: radial-gradient(circle, #3d89e6, #2c3ae8);
  left: -5%;
  top: 10%;
  animation-duration: 25s;
  animation-delay: 1s;
} */

.animation::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(80px);
  z-index: 1;
}

@media(max-width : 768px) {
  .animation div:nth-child(1) {
    width: 90%;
    left: 25%;
    top: 50%;
  }

  .animation div:nth-child(2) {
    width: 70%;
    left: 10%;
    top: 10%;
  }
}

.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Popup Box */
.popup {
  background: white;
  padding: 46px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font: 500;
  font-size: 24px;
}
@media (max-width:760px) {
  .popup {
    padding: 16px;
    font-size: 16px;
  }
}

/* Close Button */
.close-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}