/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Navigation Bar */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: transparent;
}

.navbar .logo img {
  height: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px; /* Reduced gap for better spacing */
  text-align: right;
  margin-left: 45rem;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.nav-links a:hover {
  color: yellow;
}

.navbar .btn {
  background-color: #0033cc;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}

.navbar .btn:hover {
  background-color: #0022aa;
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 15;
}

.hamburger span {
  width: 25px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide links by default */
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: #484848;
    padding: 10px;
    border-radius: 5px;
  }

  .nav-links.active {
    display: flex; /* Show links when hamburger is clicked */
  }

  .navbar .btn {
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex; /* Show hamburger menu */
  }

  .logo {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .navbar .btn {
    display: none; /* Hide button for larger screens */
  }

  .nav-links.active .btn {
    display: block; /* Show the button inside hamburger menu */
    width: 100%;
    margin-top: 10px;
  }

  .logo {
    width: 30px;
    height: 30px;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("Images/Hero\ Image.png") no-repeat center center/cover;
  position: relative;
  padding-top: 120px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: left;
  color: white;
  padding: 220px 100px;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 50px;
  margin-top: 10rem;
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero-overlay .explore-btn {
  display: inline-block;
  padding: 20px 30px;
  background: transparent;
  color: white;
  border: 0.3px solid white;
  border-radius: 2px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  max-width: 12rem;
  max-height: 15rem;
  font-size: larger;
}

.hero-overlay .explore-btn:hover {
  background: white;
  color: black;
}

/* Expertise section */

#expertise {
  min-height: 100vh; /* Full viewport height */
  margin-top: 15rem;
}

#expertise h2 {
  font-size: 1.8rem;
  text-align: center;
  color: #002366;
  font-weight: 700;
}

.paragraph {
  font-size: 1.3rem;
  align-items: center;
  text-align: center;
  margin-left: 20rem;
  margin-right: 20rem;
  margin-top: 2rem;
  font-weight: lighter;
}

.cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Space between cards */
  margin-top: 4rem;
}

.card-container {
  position: relative;
  width: 389px;
  height: 202px;
  background-size: cover;
  background-position: center;
  margin: 20px;
  display: inline-block;
}

.card {
  position: absolute;
  width: 357px;
  height: 310px;
  background: rgba(255, 255, 255, 0.8);
  top: 50%; /* Aligning towards the middle */
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  background: #ffffff; /* White background on hover */
}

.card:hover .card-footer {
  background: #ffffff87; /* Keeps the footer blue on hover */
}

.card-header {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  gap: 50px;
  color: #002366;
}

.card-header img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.card-text {
  color: black;
  text-align: left;
  align-items: center;
  margin-top: 50px;
  font-weight: lighter;
}

.card-footer {
  width: 222px;
  height: 8px;
  background: #002366;
  margin-top: 20px;
  align-self: center;
}

/*Partners Section*/

#partners {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  background-color: #ffffff;
}

.content {
  max-width: 40%;
  margin-left: 4rem;
}

h2 {
  color: #0a2463;
  font-size: 2rem;
  margin-bottom: 20px;
}

.partner-para {
  line-height: 2rem;
  font-size: 1.3rem;
  font-weight: 200;
}

.partner-name {
  font-size: 18px;
}

.images {
  display: flex;
  gap: 20px; /* Add space between the images */
  margin-right: 8rem;
  margin-bottom: 10rem;
  background: url("Images/Anuj\ background.png");
}

.partner-card {
  position: relative; /* Makes it easier to position elements inside */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  border-radius: 10px;
  padding: 20px;
}

.card-details {
  position: relative;
  z-index: 1; /* Keep the image above the design */
}

/* .card-details img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
} */

.card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align items to the top */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 500px; /* Adjust width as needed */
  margin: 0 auto;
}

.card-left {
  text-align: left; /* Left-align name and education */
}

.name-education h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 5px 0; /* Space between name and education */
}

.name-education p {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.name-education .partner-name {
  font-size: 18px;
  color: #454545;
  font-weight: 700;
  margin-right: 12px;
}

.card-right {
  text-align: right; /* Right-align location and icons */
}

.location-icons span {
  font-size: 14px;
  color: #555;
  display: block; /* Ensure location is on its own line */
  margin-bottom: 10px; /* Space between location and icons */
}

.links {
  display: flex;
  gap: 10px; /* Space between icons */
  justify-content: flex-end; /* Align icons to the right */
}

.links a {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.links img:hover {
  opacity: 0.7;
}

.email-icon {
  width: 10px;
  height: 16px;
}

#partners,
#expertise {
  overflow: visible;
}

/* Disclaimer popup styling */

/* Disclaimer popup styling */
.disclaimer-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px; /* Limits width for larger screens */
  height: 90%;
  max-height: 750px; /* Ensures it doesn't overflow small screens */
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-sizing: border-box;
  overflow: hidden; /* Prevents accidental overflow */
}

/* Disclaimer content box */
.disclaimer-content {
  background-color: #ffffff;
  width: 100%;
  height: 100%;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
  text-align: left;
  overflow-y: auto;
  box-sizing: border-box; /* Ensures padding doesn't cause overflow */
}

/* Header section */
.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 2px solid #002366;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.disclaimer-content h2 {
  color: #002366;
  font-size: 24px;
  margin: 0;
}

.disclaimer-content p,
.disclaimer-content ul {
  color: #333;
  margin-bottom: 20px;
  font-size: 16px;
}

.disclaimer-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* "I Agree" button */
#agree-button {
  background-color: #002366;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

#agree-button:hover {
  background-color: #001a4b;
}

.hidden {
  display: none !important; /* Ensures it stays hidden */
}

@media (max-width: 600px) {
  .disclaimer-content {
    padding: 15px;
  }

  .disclaimer-content h2 {
    font-size: 18px;
  }

  #agree-button {
    font-size: 14px;
  }

  .hidden {
    display: none !important; /* Ensures it stays hidden */
  }
}

/* Contact Us */

.contact-form-wrapper {
  position: relative;
  max-width: 100%; /* Use max-width to ensure scaling */
  width: 480px; /* Allow form to fit smaller devices */
  height: auto; /* Let the height be flexible */
  margin: 50px auto;
  padding: 20px; /* Add padding for small screens */
  box-sizing: border-box; /* Include padding in the width calculation */
}

.contact-form {
  position: relative;
  z-index: 1;
  width: 100%; /* Make it fully responsive */
  max-width: 480px; /* Keep it from getting too wide */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.contact-form-background {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center behind the form */
  background-image: url("Images/Contact\ Us\ -\ Circle\ Design.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0; /* Place behind the form */
}

form label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

form textarea {
  resize: none;
  height: 120px;
}

form button {
  padding: 12px;
  background-color: #002b6b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

form button:hover {
  background-color: #004b9e;
}

#contact-us-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 40px;
  margin-left: 18px;
  padding: 40px; /* Reduced padding for smaller screens */
}

.contact-content {
  margin-left: 50px;
}

.contact-content h2 {
  font-size: 1.8rem;
  color: #002244;
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-content p {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.6;
}

.contact-form h2 {
  font-size: 1.5rem;
  color: #002466b0;
  margin-bottom: 1.5rem;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-size: 1rem;
  font-weight: bold;
  color: #002244;
}

input,
textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  height: 120px;
  resize: none;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  color: #ffffff;
  background-color: #002244;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #003366;
}

@media screen and (max-width: 768px) {
  .contact-us-section {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.footer {
  background-color: #002855;
  color: white;
  padding: 40px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
  justify-content: space-between;
  align-items: flex-start;
  font-family: Arial, sans-serif;
  gap: 2rem; /* Add space between items for better readability */
}

.footer-section {
  flex: 1;
  margin: 0 20px;
  min-width: 200px; /* Ensure sections don’t get too narrow */
}

.footer-section p {
  margin-top: 4rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ffffff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-icons {
  margin-top: 20px;
}

.footer-icons a {
  color: white;
  font-size: 1.5rem;
  margin-right: 15px;
  text-decoration: none;
}

.footer-icons a:hover {
  color: #66b2ff;
}

/* Responsive*/

/* Media Query for smaller devices */
@media screen and (max-width: 768px) {
  .hero {
    padding-top: 800px;
  }

  .hero-overlay {
    padding: 60px 20px;
  }

  .hero-overlay h1 {
    font-size: 2rem;
    margin-top: 2rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }

  .hero-overlay .explore-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    height: 70vh; /* Further height adjustment for very small screens */
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  .hero-overlay p {
    font-size: 0.8rem;
  }

  .hero-overlay .explore-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

/* Responsive Expertise */

/* Media Query for smaller devices */
@media screen and (max-width: 768px) {
  .paragraph {
    margin-left: 3rem;
    margin-right: 3rem;
    font-size: 1.1rem; /* Adjust font size */
  }

  @media (max-width: 768px) {
    #expertise {
      margin-top: 4rem; /* Reduced margin to prevent overlap */
      padding: 20px; /* Add padding for better spacing */
      margin-bottom: 300px;
    }

    .cards-wrapper {
      flex-direction: column; /* Stack cards vertically */
      gap: 13rem; /* Space between cards */
    }

    .card-container {
      width: 100%; /* Full width for smaller screens */
      max-width: 300px;
      margin: 0 auto; /* Center-align the cards */
    }

    .card {
      width: 100%;
      height: auto;
    }
  }

  .card-header {
    font-size: 1.2rem;
    gap: 10px; /* Smaller gap */
  }

  .card-text {
    font-size: 1rem;
    margin-top: 20px; /* Reduced margin-top */
  }

  .card-footer {
    width: 100%; /* Make footer fill entire width on small screens */
  }
}

/* Media Query for very small devices (phones) */
@media screen and (max-width: 480px) {
  #expertise {
    margin-bottom: 300px; /* Add space below expertise section */
  }

  #expertise h2 {
    font-size: 1.4rem;
  }

  .paragraph {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    font-size: 1rem; /* Adjust font size further */
  }

  .cards-wrapper {
    gap: 20rem;
    justify-content: center;
  }

  .card-container {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .card-header {
    font-size: 1rem;
    gap: 8px;
  }

  .card-footer {
    width: 100%;
  }
}

/* Responsive  Partners */

@media screen and (max-width: 1024px) {
  #partners {
    flex-direction: column; /* Stack items vertically on smaller screens */
    padding: 20px;
  }

  .content {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 20px; /* Add some space between the content and the cards */
  }

  h2 {
    font-size: 1.8rem;
  }

  .partner-para {
    font-size: 1.2rem;
  }

  .images {
    gap: 10px; /* Reduce gap between images */
    margin-right: 0;
    margin-bottom: 5rem; /* Space at the bottom for smaller screens */
  }

  .partner-card {
    width: 100%; /* Make the card full width on small screens */
    max-width: 400px; /* Limit max-width for consistency */
    margin-bottom: 20px; /* Space between cards */
  }

  .card-body {
    max-width: 100%; /* Allow the card body to take full width */
  }
}

/* Media Query for very small screens (mobile) */
@media screen and (max-width: 480px) {
  .content {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 1.6rem; /* Smaller heading */
  }

  .partner-para {
    font-size: 1rem; /* Smaller font size */
  }

  .images {
    gap: 10px;
    flex-direction: column; /* Stack images vertically */
    margin-bottom: 4rem; /* Adjust bottom margin */
  }

  .partner-card {
    width: 100%;
    margin-bottom: 15px; /* Space between cards */
  }

  .card-left {
    text-align: left;
    font-size: 14px; /* Adjust font size */
  }

  .card-body {
    padding: 30px; /* Less padding on smaller screens */
  }

  .links {
    justify-content: center; /* Center the icons */
  }
}

/* Contact Us */

@media screen and (max-width: 768px) {
  #contact-us-section {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .contact-form-wrapper {
    width: 100%;
    padding: 10px; /* Adjust for smaller screens */
  }

  .contact-form {
    padding: 15px;
  }

  .contact-content h2 {
    font-size: 1.5rem;
    margin-left: -2rem;
  }

  .contact-content p {
    font-size: 0.9rem;
    align-items: center;
    margin-left: -2rem;
  }

  form input,
  form textarea {
    font-size: 0.9rem;
  }

  form button {
    font-size: 0.9rem;
  }

  .contact-form-background {
    height: 100%;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .contact-form-wrapper {
    padding: 8px;
  }

  form label {
    font-size: 0.9rem;
  }
}

/* Footer section */

@media screen and (max-width: 768px) {
  .footer {
    flex-direction: column; /* Stack sections vertically */
    align-items: center; /* Center-align the content */
    text-align: center; /* Center-align text for better readability */
  }

  .footer-section {
    margin: 20px 0;
  }

  .footer-icons a {
    font-size: 1.3rem; /* Slightly reduce icon size */
    margin-right: 10px;
  }

  h3 {
    font-size: 1.3rem; /* Reduce header size */
  }
}

@media screen and (max-width: 480px) {
  .footer {
    padding: 20px; /* Reduce padding for smaller screens */
  }

  h3 {
    font-size: 1.2rem; /* Further reduce font size for small devices */
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-icons a {
    font-size: 1.1rem; /* Further adjust icon size */
    margin-right: 8px;
  }
}
