﻿@import url("https://fonts.googleapis.com/css2?family=Stack+Sans+Text:wght@200..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Stack Sans Text", sans-serif;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

hr {
  color: #1475c4 !important;
  opacity: 0.8 !important;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

nav {
  font-family: "Stack Sans Text", sans-serif;
  animation: slideDown 0.8s ease-out;

  
  height: auto !important;
  min-height: 20vh;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand img {
  height: 10rem;
  border-radius: 50%;
}

.nav-center-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 0.2rem solid rgba(255, 255, 255, 0.3);
  border-radius: 5rem;
  padding: 0.5rem 2rem;
}

.nav-center-container .nav-link {
  color: white !important;
  font-size: 1.8rem;
  margin-right: 2.5rem;
  padding: 1rem 1.5rem;
  transition: 0.3s ease;
}

.nav-center-container .nav-link:hover {
  transform: translateY(-0.2rem);
  cursor: pointer;
}

.btn-register {
  font-family: "Stack Sans Text", sans-serif;
  font-size: 1.6rem;
  background: white;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  padding: 0.6rem 1.9rem;
  border-radius: 2.5rem;
  font-weight: 600;
  margin-right: 1.2rem;
  transition: all 0.3s ease;
  animation: slideInUp 1.4s ease-out;
}

.btn-register:hover {
  background: #f1f1f1;
  transform: translateY(-0.4rem);
  cursor: pointer;
  -webkit-transform: translateY(-0.4rem);
  -moz-transform: translateY(-0.4rem);
  -ms-transform: translateY(-0.4rem);
  -o-transform: translateY(-0.4rem);
}

.btn-login {
  font-family: "Stack Sans Text", sans-serif;
  font-size: 1.6rem;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: #fff;
  padding: 0.6rem 2.5rem;
  background: linear-gradient(90deg, #1475c4, #19a7da);
  border-radius: 5.8rem;
  border: 0.1rem solid white;
  transition: all 0.3s ease;
  animation: slideInUp 1.6s ease-out;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.btn-login:hover {
  border: 0.1rem solid white;
  color: #19a7da;
  transform: translateY(-0.4rem);
  background: white;
  cursor: pointer;
  -webkit-transform: translateY(-0.4rem);
  -moz-transform: translateY(-0.4rem);
  -ms-transform: translateY(-0.4rem);
  -o-transform: translateY(-0.4rem);
}

.hero-container {
  background-image: url("../images/hero1.jpg");
  background-size: cover;
  background-position: center;

  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-container-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  animation: fadeIn 1.5s ease-out;
  padding: 2rem;
}

.hero-container h1 {
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 10rem);
  color: white;
  animation: slideInUp 1s ease-out;
  -webkit-animation: slideInUp 1s ease-out;
}

.hero-container-text h4 {
  font-weight: 400;
  font-family: "Stack Sans Text", sans-serif;
  font-size: clamp(2rem, 3vw, 7rem);
  color: white;
  line-height: 1.5;
  animation: slideInUp 1.2s ease-out;
  -webkit-animation: slideInUp 1.2s ease-out;
}

.solutions-container {
  background-image: url("../images/hero5.jpeg");
  background-size: cover;
  background-position: right center;

  min-height: 55rem;
  height: auto;

  text-align: left;
  animation: fadeIn 1.5s ease-out;
}

.solutions-boxes-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 30rem;
  margin-top: 2rem;
}

.solutions-boxes-vertical .soln-box {
  width: 100%;
  padding: 1.5rem 2.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .solutions-boxes-vertical {
    max-width: 100%;
  }
}

.soln-box1,
.soln-box2,
.soln-box3,
.soln-box4 {
  color: #fff;
  text-align: left !important;
  background: rgba(49, 175, 137, 0.64);
  box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.1);
  border-radius: 1.3rem;
  padding: 1.5rem 2rem;
}

.soln-box1 h3,
.soln-box2 h3,
.soln-box3 h3,
.soln-box4 h3 {
  display: flex;
  align-items: center;
}

.soln-box2 {
  background: rgba(47, 163, 231, 0.64);
  border-radius: 1.3rem;
}

.soln-box3 {
  background: rgba(140, 32, 210, 0.39);
  border-radius: 1.3rem;
}

.soln-box4 {
  background: rgba(252, 190, 55, 0.37);
  box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);
  border-radius: 1.3rem;
}

.solutions-container .soln-box {
  opacity: 0;
  transform: translateX(-6rem);
  transition: all 0.8s ease-out;
}

.solutions-container.solutions-show .soln-box {
  opacity: 1;
  transform: translateX(0);
}

.solutions-container .soln-box:nth-child(1) {
  transition-delay: 0s;
}
.solutions-container .soln-box:nth-child(2) {
  transition-delay: 0.15s;
}
.solutions-container .soln-box:nth-child(3) {
  transition-delay: 0.3s;
}
.solutions-container .soln-box:nth-child(4) {
  transition-delay: 0.45s;
}

.solutions-container .row {
  --bs-gutter-x: 0;
}

.work-container {
  background-color: #f8faff;
  opacity: 0;
  transform: translateX(-6rem);
  transition: all 0.9s ease-out;
}

.work-container.work-show {
  opacity: 1;
  transform: translateX(0);
}

.text-box p {
  font-weight: lighter;
  font-size: 1.5rem;
  line-height: 2 !important;
  width: 85%;
  font-family: "Stack Sans Text", sans-serif;
}

.features-section {
  background-image: url("../images/hero3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(4rem);
  transition: all 0.9s ease-out;
}

.features-section.features-show {
  opacity: 1;
  transform: translateY(0);
}

.key-features {
  background-color: #f8faff;
  opacity: 0;
  transform: translateX(-6rem);
  transition: all 0.9s ease-out;
}

.key-features.key-features-show {
  opacity: 1;
  transform: translateX(0);
}

.key-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  margin-top: 1.5rem;
}

.key-feature-card img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.key-feature-card h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #000;
}

.key-feature-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.key-feature-card li {
  font-size: 1.3rem;
  color: #555;
  line-height: 1.6;
  list-style: disc;
}

.key-feature-1 {
  background: rgba(255, 233, 184, 0.59);
  border-radius: 2.2rem;
}

.key-feature-2 {
  background: rgba(49, 175, 137, 0.14);
  border-radius: 2.2rem;
}

.key-feature-3 {
  background: rgba(216, 237, 250, 0.86);
  border-radius: 1.9rem;
}

.key-feature-4 {
  background: rgba(138, 0, 231, 0.16);
  border-radius: 1.9rem;
}

.features-img {
  width: 100%;
  max-width: 45rem;
  align-self: center;
  margin-top: 15rem;
}

.features-section .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  justify-content: center;
}

.features-section .row > [class*="col-"] {
  flex: 0 0 auto;
  width: calc(33.333% - 1.5rem);
}

.features-section .card-img-top {
  max-height: 10rem;
  width: auto;
  margin: 2rem auto 0;
  object-fit: contain;
}

.card-1 {
  background: rgba(223, 231, 255, 0.2);
  border-radius: 2.7rem;
  border: none;
  color: white;
  font-family: "Google Sans Flex", sans-serif;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-1:hover,
.card-2:hover,
.card-3:hover {
  transform: scale(1.05);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.card-1 .card-body {
  padding: 3rem;
}

.card-1 .card-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.card-1 .card-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
}

.card-2 {
  background: rgba(253, 145, 112, 0.2);
  border-radius: 2.8rem;
  border: none;
  color: white;
  font-family: "Google Sans Flex", sans-serif;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-2 .card-body {
  padding: 3rem;
}

.card-2 .card-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.card-2 .card-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
}

.card-3 {
  background: rgba(49, 175, 137, 0.2);
  border-radius: 2.8rem;
  border: none;
  color: white;
  font-family: "Google Sans Flex", sans-serif;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3 .card-body {
  padding: 3rem;
}

.card-3 .card-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.card-3 .card-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
    -webkit-transform: translateY(2rem);
    -moz-transform: translateY(2rem);
    -ms-transform: translateY(2rem);
    -o-transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .solutions-container .row {
    display: block;
  }

  .solutions-container .col-lg-3 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1.2rem;
  }
  .soln-box1 h3,
  .soln-box2 h3,
  .soln-box3 h3,
  .soln-box4 h3 {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 991px) {
  .nav-center-container {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 7rem;
  }
}

.solutions-container .col-lg-3 {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.solutions-container .soln-box1,
.solutions-container .soln-box2,
.solutions-container .soln-box3,
.solutions-container .soln-box4 {
  height: 100%;
}

.solutions-container .row {
  display: flex;
  flex-wrap: nowrap; 
  gap: 1.5rem; 
}

.solutions-container .row > [class*="col-"] {
  flex: 0 0 auto;
  width: calc(25% - 1.2rem); 
}

@media (max-width: 991px) {
  
  .features-section .row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .features-section .row > [class*="col-"] {
    width: calc(50% - 1.5rem);
    margin-bottom: 2rem;
  }

  
  .card-1 .card-title,
  .card-2 .card-title,
  .card-3 .card-title {
    font-size: 1.9rem;
  }

  .card-1 .card-text,
  .card-2 .card-text,
  .card-3 .card-text {
    font-size: 1.1rem;
  }

  
  .work-container h2 {
    font-size: 3.5rem !important;
  }

  .work-container h3 {
    font-size: 2rem !important;
  }

  
  .solutions-container .row {
    flex-wrap: wrap;
  }

  .solutions-container .row > [class*="col-"] {
    width: calc(50% - 1rem);
    margin-bottom: 1rem;
  }

  
  .key-features .row {
    flex-direction: column;
  }

  .key-features .col-lg-6 {
    width: 100%;
  }

  .features-img {
    max-width: 35rem;
    margin-top: 3rem;
  }

  .key-feature-card h4 {
    font-size: 1.6rem;
  }

  .key-feature-card li {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  
  .features-section {
    padding: 4rem 1.5rem;
  }

  .features-section .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .features-section .row > [class*="col-"] {
    width: 100%;
    margin-bottom: 0;
  }

  
  .card-1 .card-title,
  .card-2 .card-title,
  .card-3 .card-title {
    font-size: 1.6rem;
  }

  .card-1 .card-text,
  .card-2 .card-text,
  .card-3 .card-text {
    font-size: 1rem;
  }

  .card-1 .card-body,
  .card-2 .card-body,
  .card-3 .card-body {
    padding: 2rem;
  }

  .features-section .card-img-top {
    max-height: 8rem;
  }

  
  .work-container h2 {
    font-size: 2.8rem !important;
  }

  .work-container h3 {
    font-size: 1.6rem !important;
  }

  .text-box p {
    font-size: 1.3rem;
    width: 100%;
  }

  
  .solutions-container .row {
    flex-direction: column;
  }

  .solutions-container .row > [class*="col-"] {
    width: 100%;
  }

  
  .hero-container-text h4 {
    font-size: 1.8rem !important;
  }

  
  .features-section {
    background-attachment: scroll;
  }

  
  .key-features {
    padding: 3rem 1.5rem;
  }

  .key-features h2 {
    font-size: 3rem !important;
  }

  .key-features h3 {
    font-size: 1.6rem !important;
  }

  .features-img {
    max-width: 25rem;
    margin-top: 2rem;
  }

  .key-feature-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .key-feature-card img {
    width: 4rem;
    height: 4rem;
  }

  .key-feature-card h4 {
    font-size: 1.4rem;
  }

  .key-feature-card li {
    font-size: 1.1rem;
  }
}

.team-section {
  background-color: #f6f7f9;
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(4rem);
  transition: all 0.9s ease-out;
}

.team-section.team-show {
  opacity: 1;
  transform: translateY(0);
}

.team-header {
  text-align: left;
  margin-bottom: 4rem;
}

.team-header h2 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #1a8b6d;
}

.star-icon {
  margin-left: 1rem;
}

.team-subtitle {
  font-size: 1.8rem;
  color: #333;
  margin-top: 0.5rem;
}

.text-red {
  color: #ff6b6b;
  font-weight: 600;
}

.text-green {
  color: #31af89;
  font-weight: 600;
}

.featured-member {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
  padding: 3rem;
}

.featured-img-wrapper {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #a8edea, #fed6e3);
  padding: 0.5rem;
  flex-shrink: 0;
}

.featured-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.featured-info h3 {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

.featured-info p {
  font-size: 1.6rem;
  color: #555;
  line-height: 1.8;
  max-width: 70rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icons a {
  color: #333;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #1a8b6d;
  cursor: pointer;
}

.team-members {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  width: 28rem;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.team-card-img {
  width: 100%;
  height: 18rem;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-card h4 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.team-card p {
  font-size: 1.3rem;
  color: #555;
  line-height: 1.6;
}

.team-card-orange {
  background-color: rgba(255, 200, 170, 0.4);
}

.team-card-orange h4 {
  color: #d35400;
}

.team-card-blue {
  background-color: rgba(100, 180, 220, 0.3);
}

.team-card-blue h4 {
  color: #2980b9;
}

.team-card-pink {
  background-color: rgba(255, 180, 190, 0.4);
}

.team-card-pink h4 {
  color: #e74c3c;
}

@media (max-width: 991px) {
  .featured-member {
    flex-direction: column;
    text-align: center;
  }

  .featured-info {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .team-members {
    gap: 2rem;
  }

  .team-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  .team-header h2 {
    font-size: 2.8rem;
  }

  .featured-img-wrapper {
    width: 10rem;
    height: 10rem;
  }

  .featured-info h3 {
    font-size: 2rem;
  }

  .featured-info p {
    font-size: 1.3rem;
  }

  .team-card {
    width: 100%;
  }

  .team-card h4 {
    font-size: 1.8rem;
  }
}

.scheme-section {
  background-image: url("../images/hero2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(4rem);
  transition: all 0.9s ease-out;
}

.scheme-section.scheme-show {
  opacity: 1;
  transform: translateY(0);
}

.scheme-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4rem;
}

.scheme-title .highlight {
  color: #31af89;
  font-weight: 700;
}

.scheme-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.scheme-logo {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scheme-logo:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.scheme-logo img {
  height: 8rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .scheme-logos {
    gap: 3rem;
  }

  .scheme-logo img {
    height: 6rem;
  }
}

@media (max-width: 576px) {
  .scheme-title {
    font-size: 2.2rem;
  }

  .scheme-logos {
    gap: 2rem;
  }

  .scheme-logo {
    padding: 1.5rem 2rem;
  }

  .scheme-logo img {
    height: 5rem;
  }
}

.contact-section {
  background-image: url("../images/hero4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  opacity: 0;
  filter: blur(10px);
  transition: all 1s ease-out;
}

.contact-section.contact-show {
  opacity: 1;
  filter: blur(0);
}

.contact-title {
  text-align: center;
  font-size: 4.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4rem;
}

.contact-form-wrapper {
  max-width: 55rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 4rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #31af89;
  box-shadow: 0 0 0 3px rgba(49, 175, 137, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 10rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1.2rem 3rem;
  border: 2px solid #fff;
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #fff;
  color: #1a8b6d;
  transform: translateY(-0.3rem);
}

.submit-btn i {
  font-size: 1.4rem;
}

@media (max-width: 991px) {
  .contact-form-wrapper {
    max-width: 45rem;
    padding: 3rem;
  }

  .contact-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 5rem 1.5rem;
  }

  .contact-title {
    font-size: 2.6rem;
  }

  .contact-form-wrapper {
    padding: 2.5rem 2rem;
  }

  .form-group label {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1.3rem;
    padding: 1rem 1.2rem;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

.site-footer {
  background: #0a1628;
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 400;
}

.site-footer .heart {
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  animation: modalFadeIn 0.3s ease forwards;
  backdrop-filter: blur(5px);
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
  }
}

.modal-overlay.hidden {
  display: none;
}

.test-modal {
  background: #fff;
  border-radius: 2rem;
  padding: 3.5rem;
  max-width: 50rem;
  width: 90%;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a8b6d;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.instructions-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.instructions-list li {
  font-size: 1.4rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  padding-left: 2.5rem;
  position: relative;
}

.instructions-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a8b6d;
  font-weight: bold;
}

.proceed-btn {
  display: block;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a8b6d 0%, #2ecc71 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.2rem 4rem;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 139, 109, 0.3);
}

.proceed-btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 8px 25px rgba(26, 139, 109, 0.4);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #fff;
  border: 2px solid #e53935;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 1.6rem;
  color: #e53935;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e53935;
  color: #fff;
  transform: scale(1.1);
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2rem 0 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
}

.step.active .step-dot {
  background: #2196f3;
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.step.completed .step-dot {
  background: #4caf50;
}

.step span {
  font-size: 1.2rem;
  color: #888;
  white-space: nowrap;
}

.step.active span {
  color: #2196f3;
  font-weight: 600;
}

.step.completed span {
  color: #4caf50;
  font-weight: 600;
}

.step-line {
  width: 6rem;
  height: 2px;
  background: #ddd;
  margin: 0 0.5rem;
  margin-bottom: 2rem;
}

.step-line.completed {
  background: #4caf50;
}

.personal-data-modal {
  background: #fff;
  border-radius: 2rem;
  padding: 3rem;
  max-width: 70rem;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s ease;
  position: relative;
}

.personal-data-form {
  margin-top: 1rem;
}

.personal-data-form .form-group {
  margin-bottom: 2rem;
}

.personal-data-form .form-group label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.personal-data-form .form-group input[type="text"],
.personal-data-form .form-group input[type="number"],
.personal-data-form .form-group input[type="date"] {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1.4rem;
  border: 2px solid #e0e0e0;
  border-radius: 1rem;
  background: #fafafa;
  transition: all 0.3s ease;
}

.personal-data-form .form-group input:focus {
  outline: none;
  border-color: #1a8b6d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 139, 109, 0.1);
}

.personal-data-form .form-group input::placeholder {
  color: #aaa;
}

.personal-data-form .form-group input[readonly] {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
  cursor: not-allowed;
}

.gender-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gender-btn {
  padding: 1rem 2rem;
  font-size: 1.4rem;
  border: 2px solid #e0e0e0;
  border-radius: 1rem;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gender-btn:hover {
  border-color: #1a8b6d;
  background: #f0faf7;
}

.gender-btn.active {
  background: linear-gradient(135deg, #1a8b6d 0%, #2ecc71 100%);
  color: #fff;
  border-color: #1a8b6d;
}

.personal-data-form .form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1.4rem;
  border: 2px solid #e0e0e0;
  border-radius: 1rem;
  background: #fafafa;
  resize: vertical;
  font-family: inherit;
  transition: all 0.3s ease;
}

.personal-data-form .form-group textarea:focus {
  outline: none;
  border-color: #1a8b6d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 139, 109, 0.1);
}

.personal-data-form .form-group textarea::placeholder {
  color: #aaa;
}

.recording-modal {
  background: #fff;
  border-radius: 2rem;
  padding: 3rem;
  max-width: 70rem;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s ease;
  position: relative;
}

.reading-section {
  margin-bottom: 2rem;
}

.reading-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.reading-text {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.9;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  max-height: 15rem;
  overflow-y: auto;
  border-left: 4px solid #1a8b6d;
}

.recording-section {
  margin-top: 2rem;
}

.media-controls {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.media-box {
  flex: 1;
  border-radius: 1.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.media-box:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.8rem;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.media-header span {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.webcam-box {
  border-color: #e3f2fd;
}

.webcam-box .media-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.webcam-box .media-header i {
  color: #1976d2;
}

.webcam-box .media-content {
  background: #0d1117;
}

.audio-box {
  border-color: #fce4ec;
}

.audio-box .media-header {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.audio-box .media-header i {
  color: #c2185b;
}

.audio-box .media-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.record-single-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: none;
  background: #ff5252;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255, 82, 82, 0.3);
}

.record-single-btn i {
  color: #fff !important;
}

.record-single-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 82, 82, 0.4);
}

.record-single-btn.recording {
  background: #d32f2f;
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(211, 47, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

.combined-record-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.combined-record-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.combined-record-btn i {
  font-size: 1.4rem;
}

.combined-record-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.combined-record-btn.recording {
  background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
  box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
  animation: combinedRecordPulse 1.5s infinite;
}

.combined-record-btn.recording:hover {
  box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4);
}

.combined-record-hint {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #757575;
}

@keyframes combinedRecordPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 142, 60, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(56, 142, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 142, 60, 0);
  }
}

.media-content {
  flex: 1;
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-actions {
  padding: 1.2rem;
  background: #fafafa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.media-actions.hidden {
  display: none;
}

.play-btn {
  padding: 0.8rem 2rem;
  border-radius: 5rem;
  border: 2px solid #1976d2;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.play-btn:hover {
  background: #1976d2;
  color: #fff;
}

.webcam-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transform: scaleX(-1);
}

.webcam-box video.active {
  display: block;
}

.webcam-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

.webcam-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.webcam-placeholder p {
  font-size: 1.2rem;
}

.webcam-placeholder.hidden {
  display: none;
}

.audio-visualizer {
  font-size: 5rem;
  color: rgba(255, 82, 82, 0.5);
  transition: all 0.3s ease;
}

.audio-visualizer.recording {
  color: #ff5252;
  animation: audioPulse 0.5s infinite alternate;
}

@keyframes audioPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

.audio-status {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 1.5rem;
  border-radius: 5rem;
}

.device-selection {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.device-group {
  flex: 1;
}

.device-group label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.device-group select {
  width: 100%;
  padding: 1rem;
  font-size: 1.3rem;
  border: 2px solid #e0e0e0;
  border-radius: 1rem;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.device-group select:focus {
  outline: none;
  border-color: #1a8b6d;
}

.recording-note {
  font-size: 1.2rem;
  color: #888;
  text-align: center;
  margin-bottom: 2rem;
}

.confirmation-modal {
  background: #fff;
  border-radius: 2rem;
  padding: 3rem;
  max-width: 60rem;
  width: 95%;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s ease;
  position: relative;
}

.success-cards {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  justify-content: center;
}

.success-card {
  width: 14rem;
  height: 14rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.video-success {
  border: 3px solid #4caf50;
}

.audio-success {
  border: 3px solid #4caf50;
}

.success-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.success-icon i {
  font-size: 3rem;
  color: #fff;
}

.retry-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #4caf50;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.retry-btn:hover {
  color: #2e7d32;
}

.modal-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-top: 2rem;
}

.back-btn {
  background: #fff;
  color: #666;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 1rem 3rem;
  border: 2px solid #ddd;
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.modal-nav .proceed-btn {
  margin: 0;
}

.analyzing-modal {
  background: #fff;
  border-radius: 2rem;
  padding: 3rem;
  max-width: 60rem;
  width: 95%;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s ease;
  position: relative;
}

.analyzing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
}

.analyzing-box {
  width: 25rem;
  height: 25rem;
  border: none;
  border-radius: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.center-icon {
  width: 12rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.center-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rotating-ring {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 3px dashed #4ecdc4;
  border-radius: 50%;
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.orbit-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(var(--angle));
}

.orbit-icon-inner {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: counterRotate 8s linear infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes counterRotate {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(-360deg);
  }
}

.orbit-icon-inner i {
  font-size: 1.8rem;
  color: #fff;
}

.brain-icon {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
}

.medical-icon {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.language-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.analysis-icon {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.analyzing-text {
  font-size: 1.6rem;
  color: #666;
  margin-top: 2rem;
  text-align: center;
  font-weight: 500;
}

.auth-gate-modal {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 2rem;
  padding: 3.5rem;
  max-width: 55rem;
  width: 95%;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.4s ease;
  position: relative;
}

.auth-gate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.auth-gate-icon {
  width: 10rem;
  height: 10rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
  }
}

.auth-gate-icon i {
  font-size: 4rem;
  color: #fff;
}

.auth-gate-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a8b6d;
  margin-bottom: 1rem;
}

.auth-gate-message {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.7;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.auth-gate-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.auth-gate-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 3rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-gate-register {
  background: linear-gradient(135deg, #1a8b6d 0%, #2ecc71 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26, 139, 109, 0.3);
}

.auth-gate-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 139, 109, 0.4);
  color: #fff;
}

.auth-gate-login {
  background: #fff;
  color: #1a8b6d;
  border: 2px solid #1a8b6d;
}

.auth-gate-login:hover {
  background: #1a8b6d;
  color: #fff;
  transform: translateY(-3px);
}

.auth-gate-note {
  font-size: 1.3rem;
  color: #888;
  font-style: italic;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .media-controls {
    flex-direction: column;
  }

  .step-line {
    width: 4rem;
  }

  .step span {
    font-size: 1rem;
  }

  .device-selection {
    flex-direction: column;
    gap: 1rem;
  }

  .auth-gate-buttons {
    flex-direction: column;
    width: 100%;
  }

  .auth-gate-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .test-modal,
  .personal-data-modal,
  .recording-modal,
  .confirmation-modal,
  .analyzing-modal,
  .auth-gate-modal {
    padding: 2rem;
    border-radius: 1.5rem;
    margin: 1rem;
  }

  .step-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .step-line {
    display: none;
  }

  .success-cards {
    flex-direction: column;
    align-items: center;
  }

  .success-card {
    width: 12rem;
    height: 12rem;
  }

  .gender-options {
    flex-direction: column;
  }

  .analyzing-box {
    width: 18rem;
    height: 18rem;
  }

  .rotating-ring {
    width: 14rem;
    height: 14rem;
  }

  .center-icon {
    width: 8rem;
    height: 8rem;
  }

  .auth-gate-icon {
    width: 8rem;
    height: 8rem;
  }

  .auth-gate-icon i {
    font-size: 3rem;
  }

  .auth-gate-title {
    font-size: 2rem;
  }

  .auth-gate-message {
    font-size: 1.4rem;
  }
}
