:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: rgba(15, 23, 42, 0.94);
  --surface-soft: rgba(15, 23, 42, 0.82);
  --card: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #ffffff;
  --accent: #f97316;
  --accent-strong: #fb923c;
  --accent-alt: #38bdf8;
  --border: rgba(255, 255, 255, 0.12);
  --overlay-one: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 25%);
  --overlay-two: radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 28%);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.82);
  --card: rgba(15, 23, 42, 0.05);
  --text: #0f172a;
  --muted: #475569;
  --heading: #0f172a;
  --accent: #f97316;
  --accent-strong: #ef4444;
  --accent-alt: #38bdf8;
  --border: rgba(15, 23, 42, 0.12);
  --overlay-one: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 25%);
  --overlay-two: radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.10), transparent 28%);
}

[data-theme="sunrise"] {
  --bg: #fff7ed;
  --surface: rgba(255, 248, 242, 0.95);
  --surface-soft: rgba(255, 241, 235, 0.96);
  --card: rgba(255, 255, 255, 0.92);
  --text: #7c2d12;
  --muted: #92400e;
  --heading: #7c2d12;
  --accent: #f97316;
  --accent-strong: #facc15;
  --accent-alt: #fb7185;
  --border: rgba(251, 146, 60, 0.24);
  --overlay-one: radial-gradient(circle at top left, rgba(251, 146, 60, 0.14), transparent 25%);
  --overlay-two: radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.12), transparent 28%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--overlay-one), var(--overlay-two);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] header,
body[data-theme="sunrise"] header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.logo h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
}

nav a.active {
  background: rgba(249, 115, 22, 0.18);
  color: var(--accent-strong);
}

.theme-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-selector label {
  font-size: 0.95rem;
  color: var(--muted);
}


.theme-selector select {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 130px;
  min-height: 44px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}

.theme-selector select:hover {
  border-color: var(--accent);
}

.theme-selector select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-banner {
  margin: 80px 24px 0;
  padding: 68px 24px;
  text-align: center;
  color: var(--heading);
  background: var(--surface-soft);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 28px;
}

.page-banner h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-title {
  color: var(--heading);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.8rem;
}

.box,
.card,
.contact-box,
.service-card,
.form-box,
.info-box,
.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  color: var(--text);
}

.service-card img,
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 28px;
}

.client-logo img {
  width: auto;
  max-width: 220px;
  height: auto;
  display: block;
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: contain;
}

.service-card h2,
.card h2 {
  margin-bottom: 18px;
  font-size: 1.7rem;
}

.box,
.card,
.contact-box,
.service-card,
.form-box {
  padding: 34px;
  transition: 0.4s;
  overflow: hidden;
}

.box:hover,
.card:hover,
.contact-box:hover,
.service-card:hover,
.form-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.55);
}

.form-box h2 {
  margin-bottom: 22px;
  color: var(--heading);
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight {
  margin-top: 70px;
  padding: 70px 30px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  color: #fff;
  text-align: center;
}

.hero {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 180px 70px 100px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 320px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

#typing-text {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
  min-height: 170px;
}

.hero-text p,
.about-text p,
.box p,
.card p,
.service-card p,
.contact-box p,
.info-box p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
}

.contact-box p {
  margin-bottom: 18px;
}

.contact-box strong {
  display: block;
  color: var(--heading);
  margin-bottom: 8px;
}

.contact-box a {
  color: var(--accent);
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  color: #fff;
}

.btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover,
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.hero-image-box {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 70px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
}

.stat-box h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--heading);
}

.stat-box p {
  color: var(--muted);
  font-size: 1rem;
}

.grid,
.cards,
.services-grid,
form {
  display: grid;
  gap: 30px;
}

.grid,
.cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-layout > :only-child {
  grid-column: 1 / -1;
}

.contact-layout > .contact-box,
.contact-layout > .image-box {
  min-height: 520px;
}

.image-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vending-img {
  width: 100%;
  height: auto !important;
  max-height: 520px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

form {
  grid-template-columns: 1fr;
}

input,
textarea {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.18);
}

textarea {
  resize: vertical;
  min-height: 180px;
}

button,
.btn-submit {
  width: max-content;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  color: #fff;
  border: none;
  padding: 18px 28px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

button:hover,
.btn-submit:hover {
  transform: translateY(-2px);
}

footer {
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  padding: 22px 16px;
  font-size: 0.95rem;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  header {
    padding: 18px 30px;
  }

  .hero {
    padding-top: 160px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout > .contact-box,
  .contact-layout > .image-box {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  .logo h1 {
    font-size: 28px;
  }

  .theme-selector {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .page-banner {
    margin: 80px 12px 0;
    padding: 40px 20px;
  }

  .container {
    width: min(100%, calc(100% - 24px));
    padding: 40px 0;
  }

  .hero {
    padding: 120px 16px 70px;
  }

  .stats,
  .grid,
  .cards,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  nav {
    justify-content: flex-start;
    gap: 8px;
    order: 2;
    width: 100%;
    flex-wrap: wrap;
  }

  nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hero-text {
    min-width: auto;
  }

  input,
  textarea,
  button,
  select {
    min-height: 44px;
    font-size: 16px;
  }

  input,
  textarea {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 12px;
    flex-direction: column;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .logo h1 {
    font-size: 24px;
  }

  .logo p {
    font-size: 11px;
  }

  nav {
    order: 2;
  }

  .theme-selector {
    width: 100%;
    margin-left: 0;
  }

  .theme-selector select {
    width: 100%;
  }

  nav {
    justify-content: center;
  }

  .page-banner {
    margin: 60px 8px 0;
    padding: 30px 16px;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 100px 12px 60px;
  }

  .container {
    width: 100%;
    padding: 30px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .box,
  .card,
  .contact-box,
  .service-card,
  .form-box {
    padding: 20px;
  }

  .service-card img,
  .card img {
    height: 180px;
    margin-bottom: 16px;
  }

  .service-card h2,
  .card h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  button,
  input[type="submit"],
  input[type="reset"],
  input[type="button"] {
    width: 100%;
    margin-bottom: 10px;
  }
}
