/* ========== CSS Variables ========== */
:root {
  --color-bg: #0d0d0d;
  --color-text: #e8e8e8;
  --color-accent: #2d7a4f;
  --color-accent-hover: #52b788;
  --color-card-bg: #1a1a1a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-speed: 0.6s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-centered {
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========== Sections ========== */
.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.section.active {
  opacity: 1;
  visibility: visible;
}

.content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.services-content {
  max-width: 1100px;
}

/* ========== Typography ========== */
h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #52b788, #2d7a4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--color-accent);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.tagline {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.subtitle {
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(232, 232, 232, 0.7);
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.services-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--color-card-bg);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(45, 122, 79, 0.25);
}

/* ========== Contact Info ========== */
.contact-info {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-in {
  animation: slideIn 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.slide-in-delay {
  animation: slideIn 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.slide-in-delay-2 {
  animation: slideIn 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.125rem;
  }

  .services-grid-4 {
    grid-template-columns: 1fr;
  }
}