/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.main-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 1rem 0;
    color: white;
}

.main-header .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 250px;
    width: auto;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-overlay-text {
    position: absolute;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    top: 75%; /* Adjust this value to move the text vertically */
    pointer-events: none;
}

.highlight {
    color: #007a66;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu li a {
    color: white;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #007a66;
    text-shadow: 0 0 15px #00baff, 0 0 30px #00baff;
}

/* Hero */
.hero {
    background: url('../images/logo.jpg') no-repeat center center/cover;
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    padding-top: 150px;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.6);
}

/* For non-home pages */
.hero {
    height: 104vh; /* shorter height to hide bottom text */
    overflow: hidden; /* ensures hidden part doesn't show */
    background-position: center 43%;
    background-size: cover;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services-section {
    padding: 60px 20px;
    background: #f5f5f5;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #007a66;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* increase min-width */
    gap: 30px;
    justify-content: center; /* optional: center the grid */
}

.service-card {
    background: #007a66; /* initial inverted background */
    color: white; /* inverted text */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    cursor: pointer;

    /* Center icon + heading initially */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Initially hide content */
    height: 300px; /* adjust card height */
}

.service-card i {
    font-size: 4rem; /* bigger icon */
    margin-bottom: 15px;
    transition: all 0.5s ease;
}

.service-card h3 {
    font-size: 2rem; /* bigger heading */
    transition: all 0.5s ease;
}

.service-card p,
.service-card ul {
    opacity: 0; /* hide text initially */
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Active state on click */
.service-card.active {
    background: white;
    color: #333;
    height: auto; /* let it expand */
    text-align: left;
    padding: 30px;
    flex-direction: column; /* reset layout */
}

.service-card.active i {
    font-size: 2.5rem; /* normal icon size */
    color: #007a66;
    margin-bottom: 15px;
}

.service-card.active h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card.active p,
.service-card.active ul {
    opacity: 1;
    max-height: 1000px; /* allow full content to show */
}

.service-card.active ul {
    margin-left: 20px;
}

/* Hover effect: invert colors for non-active cards */
.service-card:hover:not(.active) {
    background: white;
    color: #007a66;
}

.service-card:hover:not(.active) i {
    color: #007a66;
}

/* Optional hover lift effect */
.service-card:hover:not(.active) {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Animation active state */
.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
  background-color: #007a66;
  color: #fff;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 220px;
  margin: 10px 20px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #007a66;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-logo {
  width: 200px;
  margin-bottom: 10px;
}

.footer-subtext {
  font-size: 10px;
  color: #ccc;
  margin-left: 65px;
  margin-top: -60px;
}

.footer-bottom {
  background-color: #002620; /* darker than footer */
  color: #aaa;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  border-top: 1px solid #00453b;
}