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

:root {
  --green: #00B140;
  --green-dark: #009933;
  --bg: #0d0d0d;
  --bg-light: #161616;
  --bg-card: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #999;
  --white: #ffffff;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 40px;
  text-align: center;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--green);
  margin: 12px auto 0;
  border-radius: 2px;
}

.accent {
  color: var(--green);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.25rem;
  white-space: nowrap;
}

.logo-eng {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-rest {
  color: var(--white);
  font-weight: 300;
}

.logo-fitness {
  color: var(--text-muted);
  font-weight: 300;
  margin-left: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--green);
}

.nav-links a.active-link {
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--green-dark) !important;
  color: var(--bg) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 177, 64, 0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 177, 64, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 177, 64, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-style: italic;
  min-height: 1.6em;
}

.hero-sub .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover,
.btn:focus {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--green);
  color: var(--bg);
}

/* === About === */
.about {
  padding: 120px 0 100px;
  background: var(--bg-light);
  position: relative;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
  margin-top: -40px;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  border-left: 3px solid var(--green);
  padding-left: 24px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text);
}

.about-content p:last-child {
  color: var(--green);
  font-weight: 500;
  font-style: italic;
}

/* === Services === */
.services {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 177, 64, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 177, 64, 0.2), 0 0 40px rgba(0, 177, 64, 0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--green);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Fitness Callout === */
.fitness-callout {
  width: 100%;
  margin: 40px auto 0;
  background: transparent;
  border: 1px dashed rgba(0, 177, 64, 0.4);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s;
}

.fitness-callout:hover {
  border-color: var(--green);
}

.fitness-callout h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}

.fitness-callout h3 em {
  color: var(--green);
  font-style: italic;
}

.fitness-callout p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.fitness-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* === Credentials === */
.credentials {
  padding: 120px 0 100px;
  background: var(--bg-light);
  position: relative;
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
  margin-top: -40px;
}

.highlights-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.highlight {
  text-align: center;
  padding: 24px 20px;
  min-width: 180px;
  flex: 1;
  max-width: 220px;
}

.highlight-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}

.highlight-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === Contact === */
.contact {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 177, 64, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 9s ease-in-out infinite reverse;
  pointer-events: none;
}

.contact p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* === Footer === */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Mobile === */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* === Animations === */
.counter {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1em;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
