/* ======== GLOBAL STYLES ======== */
:root {
  --primary-color: #34a853; /* A fresher, modern green */
  --primary-dark: #006400;
  --secondary-color: #f8f9fa; /* Lighter grey */
  --blue-color: rgb(0, 127, 212);
  --dark-color: #222;
  --light-color: #ffffff;
  --text-color: #444;
  --text-light: #777;
  --footer-bg: #1a1a1a;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Lato", sans-serif;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

::selection {
  background-color: var(
    --primary-color
  ); /* Change this to your desired background color */
  color: white; /* Change this to your desired text color */
}

/* For Firefox compatibility */
::-moz-selection {
  background-color: var(
    --primary-color
  ); /* Change this to your desired background color */
  color: white; /* Change this to your desired text color */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.7;
  background: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  position: relative; /* for spotlight effect */
  overflow: hidden;
}

/* Primary button */
.btn-primary {
  background: var(--primary-color);
  color: var(--light-color);
  border: 2px solid var(--primary-color);
}

/* Spotlight hover effect */
.btn-primary:hover {
  background: radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.2) 0%,
      transparent 80px
    ),
    var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Secondary button */
.btn-secondary {
  background: var(--light-color);
  color: var(--primary-color);
  border: 2px solid var(--light-color);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--light-color);
  transform: translateY(-2px);
}

section {
  padding: 6rem 0;
}

/* ======== HEADER & NAVBAR ======== */
.header {
  background: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  height: 100px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* You might want to adjust the existing .nav-logo i rule too for alignment */
.nav-logo i {
  margin-right: 0.5rem;
  vertical-align: middle; /* Ensure icon also aligns */
}

.nav-logo {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-logo-img {
  height: 100px; /* Adjust as needed, typical height for nav logos */
  width: auto; /* Maintain aspect ratio */
  vertical-align: middle; /* Align with text */
  margin-right: 0.5rem; /* Space between logo and text/icon */
}

.nav-logo i {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-family: var(--font-primary);
  padding: 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

/* Underline for non-button links */
.nav-link:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:not(.btn):hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-item .btn {
  padding: 12px 24px;
  border: 2px solid #000;
  color: #000;
  background: transparent;
  transition: 0.3s;
}

.nav-item .btn:hover {
  box-shadow: 0 0 10px #25d366, 0 0 30px #25d366;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-color);
  transition: all 0.3s ease-in-out;
}

/* ======== HERO SECTION ======== */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--light-color);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ======== ABOUT SECTION ======== */
.about {
  background: #ffffff;
  padding: 5rem 0;
}

.about .section-title {
  text-align: center;
  color: #1a4d2e;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.about-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Vision & Mission cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.about-card {
  background: #f9f9f9
    url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-blend-mode: lighten;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: justify;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
  color: #1a4d2e;
  margin-bottom: 1rem;
  font-size: 1.85rem;
  font-weight: 700;
}

.about-card p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Text justification */
.about p,
.about h3,
.about h4 {
  text-align: justify;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.focus-tags {
  margin-top: 2rem;
  text-align: center;
}

.focus-tags .tag {
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  margin: 0.3rem;
  display: inline-block;
  font-size: 0.9rem;
}

/* ======== SERVICES SECTION ======== */
.services {
  background: var(--secondary-color);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  background: var(--light-color);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* --- ADD THIS --- */
  /* This replaces 'minmax(300px, 1fr)' */
  flex-basis: 300px;

  /* Optional: If you want cards to grow to fill space (like 1fr) 
       add flex-grow. But this might make the bottom 2 cards 
       wider than the top 3, which you may not want.
       Try with just flex-basis first. */
  /* flex-grow: 1; */
  /* --- END ADD --- */
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), #fff);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover i {
  background: var(--primary-color);
  color: var(--light-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ======== PROCESS SECTION ======== */
.process {
  background: var(--light-color);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--light-color);
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.process-step .step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--light-color);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 0 6px var(--secondary-color);
}

.process-step h3 {
  font-size: 1.2rem;
}

/* ======== PROJECTS SECTION ======== */
/* ======== PROJECTS SECTION (GLOBAL PRESENCE MAP) ======== */
.projects {
  background: var(--text-color);
  color: var(--light-color);
  text-align: center;
  padding: 6rem 0;
}

.projects .section-title {
  color: var(--primary-color);
  background: var(--light-color);
  border-radius: 20px;
  display: inline-block;
  padding: 1rem 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.projects .section-title::after {
  background: var(--primary-color);
}

.projects-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- THIS IS THE KEY CSS FOR THE RESPONSIVE MAP --- */
#regions_div {
  width: 100%;
  /* Let the JS handle the height to maintain aspect ratio */
  /* We can set a min-height for initial load */
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden; /* Ensures the chart respects the border-radius */
  background: var(--text-color); /* Placeholder while chart loads */
  margin: 0 auto; /* Center the map */
}

/* Ensure the chart's SVG scales properly */
#regions_div svg {
  width: 100%;
  height: 100%;
}

/* ======== RESPONSIVE DESIGN ======== */

/* Tablet */
@media (max-width: 992px) {
  /* ... (your existing tablet styles) ... */
}

/* Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  /* ... (your existing mobile styles) ... */
}

/* ======== CONTACT SECTION ======== */
.contact {
  background: var(--secondary-color);
  text-align: center;
}

.contact > .container > p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.contact-card {
  background: var(--light-color);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-card a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--primary-color);
}

.direct-contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.direct-contact-links .btn {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.direct-contact-links .btn i {
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

.contact-main-layout {
  display: flex;
  flex-wrap: wrap;
  /* Allows columns to stack on small screens */
  gap: 30px;
  /* Space between the left and right columns */
  margin-bottom: 30px;
  /* Space before the WhatsApp/LinkedIn buttons */
}

.contact-details-left {
  flex: 1;
  /* Takes up 1 part of the space */
  min-width: 300px;
  /* Ensures a minimum width before wrapping */
}

.contact-form-right {
  flex: 2;
  /* Takes up 2 parts of the space, making it wider */
  min-width: 300px;
  /* Ensures a minimum width */
}

/* This stacks the contact cards vertically in the left column */
#contact .contact-grid {
  display: flex;
  flex-direction: column;
  /* Stack the contact cards */
  gap: 20px;
  /* Space between the cards */
  width: 100%;
  /* Fill the left column */
}

/* Ensure cards take full width in their new column */
#contact .contact-card {
  width: 100%;
}

/* Make the iframe responsive */
.contact-form-right iframe {
  width: 100%;
  border: none;
  /* height: 900px; is set inline on the iframe tag */
}

/* WhatsApp button */
.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: var(--light-color);
}

.btn-whatsapp:hover {
  background: radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.2) 0%,
      transparent 80px
    ),
    #25d366;
  border-color: #25d366;
  color: var(--light-color);
  transform: translateY(-2px);
}

/* Gmail button */
.btn-gmail {
  background-color: var(--blue-color);
  border-color: var(--blue-color);
  color: var(--light-color);
}

.btn-gmail:hover {
  background: radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.2) 0%,
      transparent 80px
    ),
    var(--blue-color);
  border-color: var(--blue-color);
  color: var(--light-color);
  transform: translateY(-2px);
}

/* ======== CONTACT SECTION (Additions) ======== */

/* You already have styles for .contact, .contact-grid, 
  .contact-card, .direct-contact-links, .btn-whatsapp, and .btn-gmail. 
  
  You just need to ADD the styles below.
*/

/* 1. New LinkedIn Button Style */
.btn-linkedin {
  background-color: #0077b5; /* LinkedIn blue */
  border-color: #0077b5;
  color: var(--light-color);
}

.btn-linkedin:hover {
  background: radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.2) 0%,
      transparent 80px
    ),
    #0077b5;
  border-color: #0077b5;
  color: var(--light-color);
  transform: translateY(-2px);
}

/* 2. New Social Media Icon Row Styles */
.contact-social-icons {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd; /* Separator line */
}

.contact-social-icons h3 {
  font-size: 1.3rem;
  color: var(--dark-color);
  font-family: var(--font-primary);
  margin-bottom: 1.5rem;
}

.contact-social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  color: var(--text-color);
  background-color: var(--light-color);
  border: 2px solid #eee;
  border-radius: 50%;
  margin: 0 0.75rem;
  transition: all 0.3s ease;
}

/* Generic hover */
.contact-social-icons .social-icon:hover {
  color: var(--light-color);
  background-color: var(--primary-color); /* Default hover */
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* --- ADDED: Specific brand color hovers --- */
.contact-social-icons a[aria-label="Facebook"]:hover {
  background-color: #1877f2;
  border-color: #1877f2;
}

.contact-social-icons a[aria-label="Instagram"]:hover {
  background-color: #e4405f;
  border-color: #e4405f;
}

.contact-social-icons a[aria-label="X"]:hover {
  background-color: #1da1f2; /* X brand color */
  border-color: #1da1f2;
}
/* Note: If you prefer the old Twitter blue for the X icon, 
   use this color instead: #1DA1F2 
*/
/* --- END OF ADDITIONS --- */

/* 3. Responsive adjustment for new icons */
@media (max-width: 768px) {
  .contact-social-icons .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin: 0 0.5rem;
  }
}

/* ======== FOOTER ======== */
.footer {
  background: var(--footer-bg);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--light-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-col p i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  width: 20px;
}

.footer-col a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  position: relative;
  left: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  left: 5px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* ======== RESPONSIVE DESIGN ======== */

/* Tablet */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-founder {
    grid-row: 1;
  }
  .about-intro {
    grid-row: 2;
  }

  .process-timeline {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  /* Hamburger menu */
  .nav-menu {
    position: fixed;
    left: 0;
    top: 70px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: var(--light-color);
    width: 100%;
    height: calc(100vh - 70px);
    padding: 2rem;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    overflow-y: auto;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }

  .nav-item .btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
  }

  .nav-link:not(.btn)::after {
    display: none;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .about-card {
    padding: 1.5rem;
  }
  .about-card h3 {
    font-size: 1.6rem;
  }
  .about-card p,
  .about-intro p {
    font-size: 1rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .direct-contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .direct-contact-links .btn {
    width: 90%;
    max-width: 400px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .footer-social {
    margin-bottom: 1rem;
  }
}

/* Responsive layout for smaller screens */
@media (max-width: 800px) {
  .contact-main-layout {
    flex-direction: column;
    /* Stack the columns */
  }

  .contact-form-right iframe {
    height: 700px;
    /* Adjust form height for mobile */
  }
}
