/* --- General Setup & Variables --- */
:root {
  --red: #ed1c24;
  --blue: #0072bc;
  --dark-grey: #39393b;
  --light-grey: #f4f4f4;
  --white: #ffffff;
  --font-family: "Poppins", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-grey);
  background-color: var(--white);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-grey);
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--blue);
  margin: 10px auto;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -20px auto 40px;
  color: #666;
  font-size: 1.1rem;
}
.cta-button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
  background-color: #c0141c;
  transform: translateY(-3px);
}

/* --- REVEAL BOX ANIMATION STYLES --- */
/* GSAP handles the initial state (opacity, scale), so no complex CSS is needed. */
/* This class is now just a target for the JavaScript animation. */
.reveal-box {
  /* Base styles can be added here if necessary */
}

/* --- Background Morpher (Homepage only) --- */
#background-morpher {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  visibility: hidden;
}
.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
#bg-image-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?q=80&w=2070&auto=format&fit=crop");
  z-index: 2;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
#bg-image-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1488521787991-ed7b2f28a727?q=80&w=2070&auto=format&fit=crop");
  z-index: 1;
}
.content-wrapper {
  position: relative;
  z-index: 3;
  background-color: var(--white);
}
.transparent-bg {
  background-color: transparent;
}
.transparent-bg .section-title,
.transparent-bg h4 {
  color: var(--white);
}
.transparent-bg .section-title::after {
  background: var(--white);
}

/* --- Header & Navbar --- */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-out;
}
.navbar.is-hidden {
  transform: translateY(-100%);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-grey);
  text-decoration: none;
}
.navbar .logo img {
  height: 40px;
  margin-right: 10px;
}
.navbar nav ul {
  list-style: none;
  display: flex;
}
.navbar nav ul li {
  margin-left: 25px;
}
.navbar nav a {
  color: var(--dark-grey);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}
.navbar nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--red);
  transition: width 0.3s ease;
}

/* --- Page-Specific Headers --- */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background-color: var(--dark-grey);
  color: var(--white);
}
.page-header h1 {
  font-size: 3rem;
}
.page-section-dark {
  background: var(--dark-grey);
}
.page-section-dark .section-title {
  color: var(--white);
}
.page-section-dark .section-title::after {
  background: var(--white);
}

/* --- Homepage Hero & Summaries --- */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#hero h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  color: var(--dark-grey);
}
#hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--blue);
}
#hero .hero-logo {
  height: 120px;
  margin-bottom: 20px;
}
#about-summary,
#projects-summary {
  background: var(--light-grey);
}
#contact-cta {
  text-align: center;
}
#contact-cta .section-title {
  color: var(--white);
}
#contact-cta .section-title::after {
  background-color: var(--white);
}
#contact-cta .section-subtitle {
  color: #eee;
}

/* --- Content Cards & Grids --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 40px;
}
.about-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.about-card i {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 15px;
}
.about-card h3 {
  color: var(--dark-grey);
  margin-bottom: 15px;
}

#values {
  background-color: var(--light-grey);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.value-item {
  background: var(--white);
  padding: 30px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.pillar-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
.pillar-card i {
  font-size: 2rem;
  margin-bottom: 10px;
}
.pillar-card h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--red);
}
.project-card h3 {
  color: var(--red);
  margin-bottom: 10px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: #0072bc;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 114, 188, 0.3);
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
  font-style: italic;
}
.testimonial-card h4 {
  text-align: right;
  margin-top: 15px;
  font-style: normal;
  font-weight: 600;
}

.team-subtitle {
  text-align: center;
  font-size: 1.8rem;
  margin: 50px 0 25px;
  color: var(--dark-grey);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  text-align: center;
}
.team-member {
  background: var(--light-grey);
  padding: 15px;
  border-radius: 5px;
  font-weight: 600;
}
.team-grid-management {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}
.team-member-mgmt {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.team-member-mgmt h4 {
  color: var(--blue);
}
.team-member-mgmt p {
  color: #666;
  font-size: 0.9rem;
}

/* --- Contact & Footer --- */
#contact {
  background-color: var(--light-grey);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.contact-info h3,
.contact-form h3 {
  color: var(--blue);
  margin-bottom: 20px;
}
.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.contact-info i {
  color: var(--red);
  margin-right: 15px;
  width: 20px;
  text-align: center;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-family: var(--font-family);
}
/* --- NEW FOOTER STYLES --- */
footer {
  background-color: var(--dark-grey);
  color: #ccc;
  padding-top: 60px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col .logo {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--white);
  text-decoration: none;
}
.footer-col .logo img {
  height: 45px;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--blue);
}
.footer-col .social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.footer-col .social-icons a:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
}
.footer-col p i {
  color: var(--blue);
  margin-right: 10px;
  width: 20px;
}
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }
  .navbar nav ul {
    margin-top: 10px;
    padding-left: 0;
  }
  #hero h1 {
    font-size: 2.5rem;
  }
  .page-header h1 {
    font-size: 2.2rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
