@font-face { font-family: 'Museo Sans 100'; src: url('./fonts/MuseoSans-100.otf'); }
@font-face { font-family: 'Museo Sans 300'; src: url('./fonts/MuseoSans-300.otf'); }
@font-face { font-family: 'Museo Sans 500'; src: url('./fonts/MuseoSans-500.otf'); }
@font-face { font-family: 'Museo Sans 700'; src: url('./fonts/MuseoSans-700.otf'); }
@font-face { font-family: 'Museo Sans 900'; src: url('./fonts/MuseoSans-900.otf'); }

.font100 { font-family: 'Museo Sans 100', sans-serif; }
.font300 { font-family: 'Museo Sans 300', sans-serif; }
.font500 { font-family: 'Museo Sans 500', sans-serif; }
.font700 { font-family: 'Museo Sans 700', sans-serif; }
.font900 { font-family: 'Museo Sans 900', sans-serif; }

:root {
  --bg: #0d1117;
  --surface: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.06);
  --primary: #23ADA9;
  --accent: #2ce8e2;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --icon-fill: var(--primary);
  --logo-filter: brightness(0) invert(1);
}

html.light {
  --bg: #fff;
  --surface: rgba(0, 0, 0, 0.6);
  --card-bg: rgba(255, 255, 255, 0.6);
  --primary: #0d9488;
  --accent: #758595;
  --text: #0f172a;
  --muted: #475569;
  --icon-fill: var(--primary);
  --logo-filter: brightness(0) invert(0) opacity(0.7);
}

html.light .hero { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
html.light .contact { background: #f3f4f6; }
html.light .clients { background: var(--card-bg); }

html, body,
.hero, .contact, .clients,
.service-box, .mango-section {
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
}

#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  transition: transform .4s ease, background .4s ease;
  z-index: 999;
}

#theme-toggle:hover { transform: rotate(20deg) scale(1.1); }

#theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--icon-fill);
  transition: fill .4s ease;
}

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

body {
  font-family: 'Museo Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1rem auto 0;
  max-width: 640px;
}

.hero a.button,
.mango-customer-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 12px var(--primary);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: var(--primary);
  color: #0f172a;
}

.hero a.button:hover,
.mango-customer-button:hover {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.services {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-box {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.service-box h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-box p {
  color: var(--muted);
}

.contact {
  padding: 4rem 2rem;
  text-align: center;
  background: #1e293b;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

footer {
  background-color: #0d1117;
  color: #64748b;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .hero h2 { font-size: 2rem; }
}

.gradient-image {
  width: 250px;
  height: 167px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-mask-image: url('./img/crts-white.png');
  mask-image: url('./img/crts-white.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mango-section {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 2.5rem 2rem 3rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: var(--text);
  text-align: center;
}

.mango-section h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.mango-section p {
  max-width: 720px;
  margin: 0.5rem auto 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.mango-customer-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: #5BB65F;
  color: #0f172a;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 12px #5BB65F;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mango-customer-button:hover {
  background: #B8D637;
  box-shadow: 0 0 14px #B8D637;
}

.clients {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--card-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clients h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.clients p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.client-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.client-logos img {
  height: 60px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  transform: scale(1);
  transition: filter 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  filter: var(--logo-filter);
}

.client-logos img:hover {
  opacity: 1;
  transform: scale(1.2);
}
