/* Hero Section */
/* Hero Fly-in Animation */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: url("/static/images/home-header.webp") no-repeat center
    center/cover !important;
}
.hero h1 .short-title {
  opacity: 1;
}

@keyframes flyIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Keyframes for Fly-in */
@keyframes flyIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shrinked Hero on Scroll */
.hero.shrink {
  height: 30vh; /* Reduce height when scrolled */
  padding: 20px 0; /* Adjust padding to fit */
}

/* Shrinking Title */
.hero h1 {
  font-size: var(--font-hero) !important;
  margin-bottom: 10px;

  transform: translateY(20px);
  transition: font-size 0.5s ease-in-out;
  animation: fadeInUp 1s ease-in-out forwards;
  line-height: 5rem;
  color: var(--md-sys-color-on-primary);
}

.hero.shrink h1 {
  font-size: 2rem; /* Shrink text size */
}

.hero p {
  font-size: 1.5rem;
  line-height: 2.3rem;
  transition:
    font-size 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-in-out forwards;
  margin-bottom: 60px;
}

/* HERO SECTION */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #00264f 10%,
    /* 80% opacity black */ #00264fb8 50%,
    /* 40% opacity black */ #00264fbc 100% /* Fully transparent */
  );
  z-index: 1;
}

/* Hero Content (Ensures Text is Visible) */
.hero-content {
  position: relative;
  z-index: 2; /* Places text above overlay */
  max-width: 800px;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: flyIn 1.5s ease-out forwards 0.5s; /* Delay of 0.5s */
}

/* Animations */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

.cta-btn {
  display: inline-block;
  background: hsl(211, 100%, 15%);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  margin-top: 20px;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: hsl(211, 100%, 25%);
}

/* Navigation Styles */

/* Services Section */
#services {
  color: var(--title-color);
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-color);
  box-shadow: none;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.service-card {
  background: var(--card-background);
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

@keyframes gradientAnimationtest {
  0% {
    stroke: #001f3f;
    fill: #001f3f;
  }
  50% {
    stroke: #0074d9;
    fill: #0074d9;
  }
  100% {
    stroke: #00ccff;
    fill: #00ccff;
  }
}

.service-card svg {
  width: 60px; /* Adjust icon size */
  height: auto;
  margin-bottom: 5px;
  fill: none;
  animation: gradientAnimationtest 6s infinite alternate;
}
.service-card h3 {
  font-size: 1.4rem;
  color: var(--title-color);
  margin-top: 10px;
  margin-bottom: 10px;

  background: linear-gradient(45deg, #001f3f, #0074d9, #00ccff);
  -webkit-text-fill-color: transparent;

  animation: gradientAnimation 6s infinite alternate;
  background-size: 200% 200%;
}
/* Animate colors title */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.service-card p {
  font-size: 1rem;
  /* color: var(--text-color); */
  color: var(--text-color);
  line-height: 1.5;
}

/* Hover Effect */
.service-card:hover {
  transform: scale(1.05);
}

/* Confirmation Message */
.hidden {
  display: none;
  color: green;
  font-weight: bold;
}

/* Ensure all sections have the same width */

html {
  scroll-behavior: smooth;
}

/* Scroll Down Arrow */
.scroll-down {
  position: absolute;
  bottom: 120px; /* Adjust distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  cursor: pointer; /* Makes it interactive */
  z-index: 1;
}

/* Arrow Styling */
.scroll-down span {
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  animation: bounce 1.5s infinite ease-in-out;
}

/* Arrow Bounce Animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
  50% {
    transform: translateY(10px) rotate(45deg);
    opacity: 0.7;
  }
}

/* General Section Styles */
.section-box {
  margin: 10px auto;
  padding: 60px 5%;
  text-align: center;
}

/* Header */
.about-header h2 {
  font-size: var(--font-title);
  font-weight: var(--weight-title);
  color: var(--md-sys-color-primary);
}

.about-header p {
  max-width: 600px;
  margin: 10px auto 40px;
  font-size: var(--font-body);
}

/* About Content - Desktop */
.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 30px;
}

/* Left Section - Features */
.about-features {
  display: grid;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.dark-card {
  background: black;
  color: white;
  z-index: 1;
}

.light-card {
  background: white;
  border: 1px solid #ddd;
  color: black;
  z-index: 2;
}

.cta-btn,
.cta-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
}

.cta-btn {
  background: transparent;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid white;
  margin-right: 60%;
  text-align: center;
}

.cta-link {
  color: #0033cc;
  transition: 0.3s;
}

.cta-link:hover {
  color: #001a66;
}

/* Right Section - Image */
.about-image img {
  max-width: 900px;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  z-index: 3;
}

/* Key Features */

.about-key-features {
  margin-top: 120px;
}

.features-list {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
}

.features-list h4 {
  font-size: var(--font-subtitle);
  font-weight: var(--weight-subtitle);
  line-height: 30px;
}

.feature-item {
  max-width: 250px;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

/* Stats Section */
.about-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
  margin-left: 40px;
}

.stat-box {
  background: black;
  color: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.stat-box span {
  font-size: 28px;
  font-weight: bold;
}

/* Feature Cards */
.about-features {
  max-width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr auto; /* Two equal columns inside */
  gap: 20px;
  align-items: stretch; /* Ensures they stretch to the same height */
  margin: auto auto !important;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 40px !important;
  border-radius: 20px;
  text-align: left;
  height: 100%;
  position: relative;
  transition: all 0.3s ease-out;
  border: none;
}

/* Force h3 and p elements to be the same height */
.feature-card h3 {
  min-height: 60px; /* Adjust as needed */
  display: flex;
  align-items: center;
}

/* Dark and Light Cards */
.dark-card {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.light-card {
  background: var(--md-sys-color-surface-container);
}

/* Image */
.about-image {
  margin: 0 auto;
  display: flex;
  align-items: center; /* Centers image vertically */
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Force h3 and p elements to be the same height */
.feature-card h3 {
  margin-bottom: 100px;
}

.feature-card p {
  min-height: 90px; /* Ensures both cards align */
  display: flex;
  align-items: flex-start;
  margin-bottom: 30%;
  align-self: top;
}

h3 {
  font-size: var(--font-subtitle);
  font-weight: var(--weight-subtitle);
  line-height: 35px;
}

/* Key Features Title Box */
.key-features-header {
  margin: 100px auto 10px;
  display: flex;
  justify-content: flex-start;
  align-content: center;
  max-width: 90%;
}

.key-features-tag {
  font-size: var(--font-title);
  font-weight: var(--weight-title);
  color: var(--md-sys-color-primary);
}

/* Main Features & Stats Layout */
.key-features-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--md-sys-color-surface-container);
  padding: 30px;
  border-radius: 20px;
  margin: 0 auto;
  max-width: 90%;
}

/* Features Section */
.features-list {
  display: flex;
  flex: 2;
  justify-content: space-around;
  gap: 20px;
}

.feature-item {
  text-align: center;
  max-width: 250px;
  flex: 1;
  line-height: 22px;
}

.feature-item i {
  font-size: 28px;
  margin-bottom: 10px;
}

/* Stats Section (Separate Container) */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.stat-box {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  min-width: 180px;
  transition: all 0.3s ease-out;
}

.stat-box:hover {
  transform: scale(1.05);
}

.stat-box i {
  font-size: 20px;
  margin-bottom: 5px;
}

.stat-box span {
  font-size: 24px;
  font-weight: bold;
}

/* Key Features Layout */
.features-list {
  display: flex;
  flex: 2;
  justify-content: space-around;
  gap: 20px;
}

/* Individual Feature Items */
.feature-item {
  text-align: center;
  max-width: 250px;
  flex: 1 1 auto;
  padding: 10px 20px;
  position: relative;
}

/* FAQ Section Layout */
.faq-section {
  background: transparent;
  max-width: 90%;
  margin: 0 auto;
  width: 90%;
  text-align: center;
}

.faq-section h2 {
  font-size: var(--font-title);
  font-weight: var(--weight-title);
  color: var(--md-sys-color-primary);
}

#faq-p {
  text-align: center;
  margin-top: -20px;
}

.faq-section h4 {
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  margin-bottom: -15px;
}
.faq-section p {
  text-align: left;
}

/* FAQ Container */
.faq-container {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-column {
  width: 100%;
}
/* FAQ Items */
.faq-item {
  font-size: var(--font-body);
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 20px;
  transition: 0.3s ease;
  background: var(--md-sys-color-surface-container);
  padding: 10px 20px 10px 35px;
  min-height: 200px;
  height: auto;
  margin-bottom: 15px;
}

.faq-item:hover {
  background: var(--md-sys-color-surface-container-high);
}

/* Icons */
/* Icons */
.faq-item i {
  font-size: 24px;
  color: white; /* Icon color */
  background: #00264f; /* Light blue background */
  padding: 12px;
  border-radius: 15px; /* Makes it a circle */
  border: 2px solid white; /* Blue border */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Load More Button */
.load-more-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.load-more-btn:hover {
  background: #0056b3;
}

.faq-item.hidden {
  display: none;
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  border: none;
  background: #00264f;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.load-more-btn:hover {
  background: #003d7a;
}

/* General Styles */

.contact-container {
  display: grid;
  flex-direction: row;
  grid-template-columns: 1fr 1.1fr;
  background: white;
  border-radius: 12px;

  overflow: hidden; /* Ensures children respect rounded corners */
  width: clamp(50%, 81%, 90%);
  margin: 100px auto 100px;
}

.contact-title {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: url("/static/images/home-header.webp") no-repeat center
    center/cover;
  padding: 40px;
  position: relative;
}

.contact-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 35%;
  width: 100%;
  height: 100%;
  z-index: 0; /* Ensures it stays behind the text */
  backdrop-filter: blur(10px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5); /* Adjust darkness */

  mask-image: linear-gradient(
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.8) 60%,
    rgba(0, 0, 0, 0) 100%
  );

  transition: all 0.3s ease-out;
}

.hero h1 .short-title {
  opacity: 0;
  text-align: center;
  word-wrap: break-word;
  font-size: clamp(2.5rem, 6vw, 3rem); /* Responsive font size */
  line-height: 1.2;
  max-width: 90%;
  margin: 0 auto;
}

/* Form Styles */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;

  z-index: 1;
}

#contact-form h2 {
  font-size: var(--font-title);
  font-weight: 500;
}

#contact-form p {
  font-size: var(--font-body);
  font-weight: 300;
  margin-top: -3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
}

.form-group textarea {
  resize: none;
}

/* Row Layout for First & Last Name, Team Size & Location */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Submit Button */
.cta-btn {
  width: 100%;
  background: #003f82;
  color: white;
  font-size: 16px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.cta-btn:hover {
  opacity: 0.8;
}

@media (max-width: 1200px) {
  /* Feature Cards */
  .about-features {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* Two equal columns inside */
    gap: 20px;
  }

  .feature-card {
    display: flex;
    flex-direction: column;
    padding: 40px !important;
    border-radius: 20px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease-out;
  }

  .feature-card:hover {
    transform: translateY(-10px) !important;
  }

  /* Force h3 and p elements to be the same height */
  .feature-card h3 {
    min-height: 60px; /* Adjust as needed */
    margin-bottom: 30px;
  }

  /* Dark and Light Cards */
  .dark-card {
    background: hsl(211, 100%, 35%);
    color: white;
  }

  .light-card {
    background: white;
  }

  /* Main Features & Stats Layout */
  .key-features-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid hsl(0, 0%, 90%);
    margin: 0 auto;
    max-width: 90%;
  }

  .key-features-tag {
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
  }

  .feature-card p {
    display: flex;
    align-items: flex-start;
    align-self: top;
    margin: 0px;
  }

  /* Key Features Layout */
  .features-list {
    display: grid;
    flex: 2;
    justify-content: space-around;
    gap: 20px;
  }

  /* Individual Feature Items */
  .feature-item {
    text-align: center;
    max-width: 440px;
    flex: 1;
    padding: 10px 20px;
    position: relative; /* Needed for the pseudo-border */
  }

  /* FAQ Container */
  .faq-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: 20px auto;
    max-width: 90%;
    width: clamp(60%, 90%, 90%);
    background: white;
    border-radius: 12px;
  }
  .contact-title {
    padding: 0px;
    height: 0px;
    opacity: 0;
  }

  #contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 1000px) {
  .hero h1 {
    line-height: 0.7;
    margin-bottom: 70px;
  }

  .hero h1 .full-title {
    display: none;
  }

  .hero h1 .short-title {
    text-align: center;
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    opacity: 1;
  }

  .hero p {
    font: var(--font-body);
  }

  .hero-btn {
    padding: 10px 20px !important; /* more padding = wider button */
    width: 100%;
  }
  /* Header */
  .about-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: -1rem auto 1rem;
    line-height: 3rem;
    text-align: center;
  }

  /* Feature Cards */
  .about-features {
    display: grid;
    grid-template-columns: 1fr; /* Two equal columns inside */
    gap: 20px;
    align-items: stretch; /* Ensures they stretch to the same height */
  }

  .feature-card h3 {
    margin: 5% 1px;
    text-align: left;
    justify-content: left;
  }

  .feature-card p {
    margin: 0% 1px 5%;
    text-align: left;
    justify-content: left;
  }

  .feature-card a {
    width: clamp(100%, 50%, 100%);
  }

  /* Key Features Title Box */
  .key-features-header {
    margin: 25% auto 5%;
    display: flex;
    justify-content: center;
    align-content: center;
    line-height: 3rem;
    max-width: 90%;
    font-size: 40px;
    font-weight: bold;
  }

  /* Main Features & Stats Layout */
  .key-features-container {
    display: grid;
    grid-template-columns: 1fr; /* Two equal columns inside */
    align-items: center;
    background: white;
    border-radius: 20px;
    border: 2px solid hsl(0, 0%, 90%);
    margin: 0 auto;
    max-width: 90%;
  }
  .features-list {
    display: grid;
    grid-template-columns: auto; /* Two equal columns inside */
    margin: -10px 0 50px;
  }

  .feature-item {
    position: relative;
    width: 100%;
    margin: -5% 0px;
    padding: 0;
  }
  .feature-item h4 {
    margin-bottom: 1rem;
  }

  /* FAQ Container */
  .faq-section h2 {
    line-height: 3rem;
  }

  .faq-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
    margin-top: 20px;
  }

  .faq-item {
    height: auto;
    flex-direction: column;
  }

  .faq-item i {
    color: red;
    align-content: center;
    margin: 20px auto -20px;
    font-size: 3rem;
    background: transparent;
    color: #00264f;
  }

  .faq-item p,
  .faq-item h4 {
    text-align: center;
    font-size: 1.2rem;
  }

  .contact-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: 1000px !important;
  }

  .contact-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 35%;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensures it stays behind the text */
    backdrop-filter: blur(0px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5); /* Adjust darkness */

    mask-image: linear-gradient(
      rgba(0, 0, 0, 1) 40%,
      rgba(0, 0, 0, 0.8) 60%,
      rgba(0, 0, 0, 0) 100%
    );

    transition: all 0.3s ease-out;
  }
}

.svg-faq {
  stroke-width: 2px;
  stroke: var(--md-sys-color-primary);
  fill: none;
  width: clamp(30px, 70px, 90px);
  height: auto;
}

.hero-btn {
  background: rgba(255, 255, 255, 0.1); /* transparent white */
  backdrop-filter: blur(6px); /* frosted effect */
  -webkit-backdrop-filter: blur(6px); /* Safari support */

  font-size: var(--font-body);
  color: white;
  padding: 12px 200px; /* more padding = wider button */
  min-width: 200px; /* or set width: 100% if needed */

  border-radius: 20px;
  border: 2px solid white;
  text-align: center;
  transition: background 0.3s ease;
  text-decoration: none;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
