/* Base Mobile-First Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Layout */
/* Container styles */
.container,
.nav .container,
.footer-container,
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Animation */
@keyframes slideIn {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Navigation Components */
.nav {
    background: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Specific nav container styles */
.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: block;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

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

.nav-logo .logo-text {
  fill: #555;
  transition: fill 0.3s ease;
}

.nav-logo:hover .logo-text {
  fill: #1CA69A;
}

.nav-logo-link {
  text-decoration: none;
  display: block;
}

.nav-logo-link:hover {
  opacity: 0.9;
}

.nav-links {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;  /* Add this line */
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Add this line */
}

.nav-links a {
  color: #555;
  text-decoration: none;
  padding: 1.5rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1CA69A;
  text-decoration: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #555;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  background-color: #1CA69A;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 2rem; /* Space for fixed navbar */
  margin-bottom: 0; /* Removed margin-bottom to eliminate white separator */
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
  animation: slideIn 1s ease-out;
  width: 100%;
  text-align: center;
}

.hero-content p {
  font-size: 3.3rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  max-width: 80%;
}

.hero img {
  width: 75%;
  aspect-ratio: 10/4;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 2rem auto; /* Margin between image and tagline */
}

.hero-tagline {
  width: 100%;
  text-align: center;
  padding: 0 2rem 3rem 2rem; /* Added bottom padding to increase teal margin */
}

.hero-tagline p {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 400;  /* Add this line */
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Services Section */
.services {
  background-color: #f5f5f5;
  padding: 5rem 0;
}

.services h2 {
  text-align: center;
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2.5rem;
  color: #1CA69A;
  margin-bottom: 1.5rem;
}

.service-card i.fa-solid {
  display: inline-block;
  font-size: 3rem;
  color: #1CA69A;
  margin-bottom: 1.5rem;
  width: auto;
  height: auto;
}

.service-card i.fa-solid.fa-bolt { font-size: 3.2rem; }
.service-card i.fa-solid.fa-brain { font-size: 2.8rem; }
.service-card i.fa-solid.fa-chart-line { font-size: 2.8rem; }

.service-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero img {
    width: 100%; /* Full width on mobile for better visibility */
  }

  .hero-content {
    padding: 4rem 1.5rem 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.75rem;  /* Reduced from 2rem to fit on one line */
    max-width: 100%;
  }
  
  .footer-container {
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
    align-items: center;
  }

  .services {
    padding: 3rem 0;
  }
  
  .services h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  /* Nav tablet styles */
  .menu-toggle {
    display: none;
  }
  
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    background: none;
    box-shadow: none;
    gap: 2rem;
    justify-content: flex-end;
    margin-left: auto;
  }

  .nav-links.active {
    flex-direction: row;
    box-shadow: none;
  }
  
  .hero-content {
    padding-top: 5rem;
  }
  
  .hero-tagline p {
    font-size: 2.25rem; /* Increased from 1.5rem by 50% */
  }
  
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 5rem 3rem 3rem 3rem;
  }
  
  .nav-links {
    gap: 3rem;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }

  .hero-tagline p {
    font-size: 2.25rem; /* Increased from 1.5rem by 50% */
  }
}

/* Footer Components */
.footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0 1.5rem;
  margin-top: 0; /* Removed margin to eliminate any white space between hero and footer */
}

/* Update footer container to remove duplicate padding */
.footer-container {
  display: flex;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  padding-right: 1rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-column p {
  color: #ccc;
  line-height: 1.7;
}

.footer-separator {
  border: 0;
  height: 1px;
  background-color: #555;
  margin: 1.5rem auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0rem;
  margin-bottom: 0.5rem;

}

.copyright {
  color: #aaa;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #aaa;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero img {
    width: 100%; /* Full width on mobile for better visibility */
  }

  .hero-content {
    padding: 4rem 1.5rem 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.75rem;  /* Reduced from 2rem to fit on one line */
    max-width: 100%;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
    align-items: center;
  }
}

@media (min-width: 768px) {
  /* Nav tablet styles */
  .menu-toggle {
    display: none;
  }
  
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    background: none;
    box-shadow: none;
    gap: 2rem;
    justify-content: flex-end;
    margin-left: auto;
  }

  .nav-links.active {
    flex-direction: row;
    box-shadow: none;
  }
  
  .hero-content {
    padding-top: 6rem;
  }
  
  .hero-tagline p {
    font-size: 2.25rem; /* Increased from 1.5rem by 50% */
  }
  
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 6rem 3rem 3rem 3rem;
  }
  
  .nav-links {
    gap: 3rem;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }

  .hero-tagline p {
    font-size: 2.25rem; /* Increased from 1.5rem by 50% */
  }
}
