/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Root Themes */
:root {
  --primary-color: #007f5f;      /* Default: Green */
  --accent-color: #00b894;
  --theme-name: 'green';

  --dark-text: #1a1a1a;
  --light-text: #f9f9f9;
  --bg-light: #e8fdf5;
  --bg-dark: #1a1a1a;
  --text-darkmode: #f5f5f5;
  --bg-section: #f0fff8;
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

/* Alternate Theme Overrides */
body[data-theme='green'] {
  --primary-color: #007f5f;
  --accent-color: #00b894;
  --bg-light: #e8fdf5;
  --bg-section: #f0fff8;
}

body[data-theme='blue'] {
  --primary-color: #004eff;
  --accent-color: #0099ff;
  --bg-light: #e6f3ff;
  --bg-section: #f0f8ff;
}

body[data-theme='orange'] {
  --primary-color: #ff6b00;
  --accent-color: #ff8800;
  --bg-light: #fff4e6;
  --bg-section: #fff8ed;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--dark-text);
  line-height: 1.6;
  transition: var(--transition);
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-darkmode);
}

/* Header */
header {
  background-color: #0b1f3a;
  padding: 1rem 0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent-color);
}

/* Hero */
.hero {
  background: linear-gradient(to right, #29334d, #769ee4);
  color: white;
  text-align: center;
  padding: 6rem 1rem 4rem;
  animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.7rem;
  max-width: 800px;
  margin: auto;
}

/* Section */
.section {
  padding: 4rem 0;
  background-color: var(--bg-section);
  transition: var(--transition);
}

body.dark-mode .section {
  background-color: #2a2a2a;
}

.section h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Card Grid */
.service-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

.card.clicked {
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.4);
  transform: scale(1.02);
  background: linear-gradient(145deg, var(--bg-light), #ffffff);
}

.card.clicked::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  padding: 3px 7px;
  border-radius: 5px;
  pointer-events: none;
  animation: fadeIn 0.5s ease;
}

.card img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 1.7rem;
  line-height: 1.7;
}

/* Pulse Animation */
@keyframes pulseBorder {
  0%   { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 184, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}


/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 2rem auto 0;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form button:hover {
  background-color: #009874;
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

.marquee img {
  height: 40px;
  margin: 0 20px;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Footer */
footer {
  background-color: #0b1f3a;
  color: var(--light-text);
  padding: 3rem 1rem 2rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
}

.footer-col p {
  line-height: 1.6;
}

footer img {
  height: 50px;
  margin-bottom: 1rem;
}

footer .copyright {
  text-align: center;
  color: #ccc;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    padding: 1rem 0;
  }
}



/* Icons */
.bi {
  color: var(--primary-color);
  margin-right: 8px;
  vertical-align: middle;
  font-size: 1.1em;
}

body.dark-mode .bi {
  color: var(--accent-color);
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
