:root {
  --blue-dark: #15304B;
  --blue-main: #3882B7;
  --blue-light: #63a4e9;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(56,130,183,0.25);
  --white: #fff;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif; /* Ensure Montserrat font weights used are loaded via Google Fonts link */
  background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-dark) 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header/Nav */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5vw 1rem 5vw;
  background: transparent; /* Will be overridden by backdrop-filter creating a blur layer */
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border); /* Optional: adds a subtle line to sticky header */
}

footer {
  text-align: center;
  color: #eaf4ff;
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1); /* Using rgba for consistency */
  box-shadow: 0 4px 24px rgba(0,0,0,0.1); /* Using rgba for consistency */
  transition: transform 0.2s ease-in-out;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500; /* Ensure font weight 500 is loaded if using Montserrat */
  transition: color 0.2s, transform 0.2s ease-in-out;
}

nav a:hover {
  color: var(--blue-light);
  transform: translateY(-2px);
}

/* Hero Section (General) */
.hero,
.hero-contact,
.hero-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1; /* Ensure hero content is above floating shapes if they overlap */
  padding: 2rem 2vw;
}

/* Hero Section (Homepage Specific) */
.hero {
  min-height: 70vh;
}

/* Hero Section (Contact Page Specific) */
.hero-contact {
  min-height: 30vh; /* Reduced height, good for contact */
}

/* Hero Section (About Page Specific) */
.hero-about {
  min-height: 40vh;
}

.hero-about h1 {
  font-size: 3rem;
  font-weight: 800; /* Ensure font weight 800 is loaded */
  background: linear-gradient(90deg, var(--blue-light), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1.5rem 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(21, 48, 75, 0.13); /* Using rgba */
  animation: fadeInDown 1s;
}

.hero-about p {
  font-size: 1.2rem;
  color: #eaf4ff;
  margin-bottom: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 1.2s;
}

.hero-contact h1 {
  font-size: 2.8rem;
  font-weight: 800; /* Ensure font weight 800 is loaded */
  background: linear-gradient(90deg, var(--blue-light), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1rem 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(21, 48, 75, 0.13); /* Using rgba */
  animation: fadeInDown 1s;
}

.hero-contact p {
  font-size: 1.15rem;
  color: #eaf4ff;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 1.2s;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800; /* Ensure font weight 800 is loaded */
  background: linear-gradient(90deg, var(--blue-light), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1.2rem 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(21, 48, 75, 0.13); /* Using rgba */
  animation: fadeInDown 1s;
}

.hero p {
  font-size: 1.15rem;
  color: #eaf4ff;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 1.2s;
}

/* General Glass Card (if used independently) */
.glass-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); /* Using rgba */
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease-in-out;
}

.glass-card:hover {
  box-shadow: 0 12px 38px rgba(0,0,0,0.25); /* Using rgba */
}

/* Sections */
.services-section,
.expertise-section,
.team-section, /* Added */
.projects-section, /* Added */
.contact-section {
  padding: 5rem 2vw; /* Using vw for consistency with hero padding */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-section h2,
.expertise-section h2,
.team-section h2,   /* Added */
.projects-section h2, /* Added */
.contact-section h2 {
  font-size: 2.3rem;
  color: var(--blue-light);
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}


/* Service and Expertise Cards (These are identical, consider consolidating) */
.services-cards,
.expertise-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  max-width: 1200px;
  width: 90vw;
  padding: 2rem 0;
}

.service-card,
.expertise-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1); /* Using rgba */
  padding: 2.5rem 1.8rem 2rem 1.8rem;
  width: 300px;
  min-width: 250px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s, transform 0.2s ease-in-out;
  animation: fadeInUp 1.2s; /* Consider staggering this animation if many cards load at once */
  display: flex; /* Added for better internal alignment */
  flex-direction: column; /* Added */
  justify-content: flex-start; /* Added */
  align-items: center; /* Added */
}

.service-card:hover,
.expertise-card:hover {
  box-shadow: 0 10px 32px rgba(56, 130, 183, 0.26); /* Using rgba */
  transform: translateY(-6px) scale(1.04);
}

.service-icon, /* Consider renaming to .card-icon if used more generically */
.expertise-icon {
  font-size: 3rem;
  margin-bottom: 1.3rem;
  color: var(--blue-light);
  filter: drop-shadow(0 2px 6px rgba(56, 130, 183, 0.26)); /* Using rgba */
  transition: color 0.2s;
}

.service-card h3,
.expertise-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 600; /* Ensure font weight 600 is loaded */
}

.service-card p,
.expertise-card p {
  color: #eaf4ff;
  font-size: 1.05rem;
  opacity: 0.93;
  line-height: 1.7;
}

/* Team Section - Added Styles */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem; /* Consistent with other card grids */
  justify-content: center;
  max-width: 1200px;
  width: 90vw;
  padding: 2rem 0;
}

.team-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 2rem 1.8rem;
  width: 280px; /* Adjusted for potentially 3-4 cards per row */
  min-width: 250px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s, transform 0.2s ease-in-out;
  animation: fadeInUp 1.2s .2s; /* Added slight delay */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover {
  box-shadow: 0 10px 32px rgba(56, 130, 183, 0.26);
  transform: translateY(-6px) scale(1.03);
}

.team-photo {
  width: 120px; /* Increased size */
  height: 120px;
  border-radius: 50%;
  object-fit: cover; /* Ensures the image covers the area without distortion */
  margin-bottom: 1.2rem;
  border: 3px solid var(--glass-border); /* Subtle border */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.team-card h3 {
  font-size: 1.3rem; /* Slightly larger for names */
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-card p {
  color: #eaf4ff;
  font-size: 1rem;
  opacity: 0.93;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
/* Style for the span within team-card p, replacing inline styles */
.team-card p .role-details {
  color: var(--blue-light);
  font-size: 0.92em; /* As per inline style */
  display: block; /* Makes it appear on a new line if desired after <br> */
  margin-top: 0.25rem;
}


/* Projects Section - Added Styles */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem; /* Consistent with other card grids */
  justify-content: center;
  max-width: 1200px;
  width: 90vw;
  padding: 2rem 0;
}

.project-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 2rem 1.8rem;
  width: 320px; /* Can be adjusted */
  min-width: 280px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s, transform 0.2s ease-in-out;
  animation: fadeInUp 1.2s .4s; /* Added slight delay */
  display: flex;
  flex-direction: column;
  /* text-align: center; already default for children */
}
.project-card:hover {
  box-shadow: 0 10px 32px rgba(56, 130, 183, 0.26);
  transform: translateY(-6px) scale(1.03);
}

.project-icon { /* Styles for the emoji/icon */
  font-size: 2.8rem; /* Adjust as needed */
  margin-bottom: 1rem;
  text-align: center; /* Center the icon if card text is left-aligned */
  color: var(--blue-light); /* Optional: color for emoji, though emojis have their own colors */
}

.project-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-align: center; /* Center title */
}

.project-card p {
  color: #eaf4ff;
  font-size: 1rem; /* Slightly smaller for denser project descriptions */
  opacity: 0.93;
  line-height: 1.6;
  text-align: center; /* Center description */
}


/* --- CTA Button --- */
.cta-btn {
  background: linear-gradient(90deg, var(--blue-light), var(--blue-main));
  color: #fff;
  border: none;
  border-radius: 32px; /* Large radius for pill shape */
  padding: 1.1rem 2.8rem;
  font-size: 1.15rem;
  font-weight: bold; /* Typically 700 */
  box-shadow: 0 4px 16px rgba(56, 130, 183, 0.26);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-top: 1.5rem; /* Default margin */
  text-decoration: none; /* For cases where it's an <a> tag styled as button */
  display: inline-block; /* For proper padding and margin on <a> tags */
}

.cta-btn:hover {
  background: linear-gradient(90deg, #fff, var(--blue-light)); /* Consider a slightly different gradient on hover */
  color: var(--blue-main);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(56, 130, 183, 0.4);
}

/* --- Floating Shapes (Background Decoration) --- */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0; /* Ensure it's behind content */
  animation: float 6s infinite alternate ease-in-out; /* Smoother timing function */
  will-change: transform; /* Performance hint */
}

.floating-shape.one {
  width: 320px; height: 320px;
  top: 10vh; left: -80px;
  background: var(--blue-light);
  animation-delay: 0s;
}

.floating-shape.two {
  width: 180px; height: 180px;
  bottom: 12vh; right: -60px;
  background: #fff; /* White might be too stark, consider var(--blue-light) or another theme color */
  animation-delay: 1.5s;
}

/* --- Contact Section Modern Layout --- */
.contact-section {
  min-height: 70vh; /* This was already defined generally for .contact-section */
  /* display: flex; flex-direction: column; align-items: center; already defined */
  justify-content: center; /* Added to center card vertically if min-height is large */
  padding: 2rem 2vw; /* Consistent padding */
  position: relative; /* z-index needs a non-static position */
  z-index: 2; /* Ensure it's above floating shapes */
}

.contact-card {
  margin-top: 2rem; /* Space from "Contact Us" hero text */
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px; /* Larger radius for a more modern feel */
  box-shadow: 0 8px 32px rgba(21, 48, 75, 0.2); /* Using rgba */
  padding: 3rem; /* Uniform padding */
  max-width: 500px;
  width: 90vw; /* Responsive width */
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s;
}

/* Form Styling (Completing the provided CSS) */
form { /* This targets the <form> tag directly */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced gap slightly for a tighter form */
  box-sizing: border-box;
}

.form-group {
  /* No specific styles needed if gap on form handles spacing */
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem; /* Space between label and input */
  font-weight: 500; /* Ensure font weight 500 is loaded */
  color: #eaf4ff;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem; /* Slightly more padding */
  border-radius: 8px;
  border: 1.5px solid var(--glass-border);
  background-color: rgba(255, 255, 255, 0.08); /* Slightly more visible bg */
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(99, 164, 233, 0.35);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px; /* Slightly taller */
}

/* Ensure the button within the form has proper styling */
#contact-form .cta-btn {
  width: 100%; /* Full width button */
  margin-top: 1rem; /* Override default if needed, or rely on form gap */
  padding: 1rem 2rem; /* Adjust padding if it looks too large at full width */
}


/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

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

@keyframes float { /* Added ease-in-out to keyframes as well */
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(30px) scale(1.05); }
}


/* Responsive */
@media (max-width: 1200px) {
  .services-cards,
  .expertise-cards,
  .team-grid,
  .projects-grid {
    gap: 2rem; /* Slightly reduce gap on larger tablets */
  }
}

@media (max-width: 992px) {
  /* For service, expertise, team, project cards to go 2-per-row */
  .service-card,
  .expertise-card,
  .team-card,
  .project-card {
    width: calc(50% - 1.5rem); /* Adjust for gap: (100% / 2) - gap */
    min-width: 280px; /* Ensure they don't get too small */
  }
  /* If .services-cards etc. had justify-content: space-around, this width might fight it.
     Using flex-basis or ensuring consistent justify-content is key.
     The current justify-content: center on the containers should work well with this.
  */
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 5vw; /* Maintain consistent horizontal padding */
    align-items: center; /* Explicitly center items when stacked */
  }

  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow nav items to wrap if too many */
    gap: 0.5rem 1rem; /* Row and column gap for wrapped items */
    width: 100%;
  }

  nav a {
    margin-left: 0; /* Remove left margin as gap is used */
    margin: 0 0.5rem; /* Horizontal margin for spacing */
    font-size: 1.1rem; /* Slightly larger for touch */
  }

  .hero h1,
  .hero-about h1,
  .hero-contact h1 {
    font-size: 2.4rem; /* Adjusted for readability */
    line-height: 1.25;
  }

  .hero p,
  .hero-about p,
  .hero-contact p {
    font-size: 1.1rem; /* Adjusted */
    max-width: 90vw; /* Ensure text doesn't touch edges */
  }

  .logo span {
    font-size: 1.6rem;
  }

  .services-section,
  .expertise-section,
  .team-section,
  .projects-section,
  .contact-section {
    padding: 4rem 2vw; /* Consistent padding */
  }

  .services-section h2,
  .expertise-section h2,
  .team-section h2,
  .projects-section h2,
  .contact-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .services-cards,
  .expertise-cards,
  .team-grid,
  .projects-grid {
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center cards in the column */
    gap: 1.8rem;
    width: 100%; /* Full width for the container */
  }

  .service-card,
  .expertise-card,
  .team-card,
  .project-card {
    width: 90vw; /* Make cards take most of the viewport width */
    max-width: 400px; /* But not too wide */
    min-width: unset; /* Remove min-width if it conflicts */
  }

  .contact-card {
    padding: 2rem; /* Reduce padding on smaller screens */
    width: 90vw;
  }

  #contact-form .cta-btn {
    padding: 0.9rem 1.5rem; /* Adjust button padding */
  }
}

@media (max-width: 576px) {
  .hero h1,
  .hero-about h1,
  .hero-contact h1 {
    font-size: 2rem; /* Further reduce for small screens */
  }

  .hero p,
  .hero-about p,
  .hero-contact p {
    font-size: 1rem;
  }

  nav a {
    font-size: 1rem; /* Standard mobile nav link size */
    margin: 0 0.4rem; /* Adjust margin for smaller screens */
  }

  .logo img {
    width: 48px;
    height: 48px;
  }
  .logo span {
    font-size: 1.4rem;
  }

  .floating-shape.one {
    width: 200px; height: 200px;
    top: 5vh; left: -50px;
  }
  .floating-shape.two {
    width: 120px; height: 120px;
    bottom: 8vh; right: -40px;
  }
}