:root {
  color-scheme: dark;
  --bg: #05080f;
  --surface: #0a1020;
  --surface-2: #0f172c;
  --heading: #7fb6ff;
  --text: #e8f0ff;
  --muted: #9cb6d8;
  --accent: #6aa8ff;
  --accent-2: #3f8bff;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(106, 168, 255, 0.18),
    rgba(63, 139, 255, 0.12),
    rgba(5, 8, 15, 0.6) 55%,
    rgba(5, 8, 15, 0.85) 75%
  );
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hero-card,
article {
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease,
  background 0.25s ease;
}

.hero-card:hover,
article:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow), 0 0 24px rgba(106, 168, 255, 0.22);
  border-color: rgba(106, 168, 255, 0.35);
}

.hero {
  /* spacing */
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
  position: relative;
  overflow: hidden;

  /* layout */
  min-height: clamp(65vh, 80vh, 92vh); /* responsive height across devices */
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("hero_background.png/hero.png"),
    radial-gradient(circle at 20% 20%, rgba(106, 168, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(63, 139, 255, 0.25), transparent 50%),
    linear-gradient(180deg, rgba(6, 9, 21, 0.7), rgba(6, 9, 21, 0.95));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(3px);
  transform: scale(1.03); /* slight scale to avoid edge bleed from blur */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-actions a{
  margin-top: 1.25rem;
}

.hero-stats li{
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero {
    padding: 1.5rem clamp(1.2rem, 5vw, 3rem) 3rem;
    min-height: clamp(60vh, 72vh, 78vh);
    background-position: center top;
  }

  .hero::before {
    background-position: center top;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 1.5rem clamp(1.2rem, 5vw, 3rem) 3rem;
    min-height: clamp(60vh, 72vh, 78vh);
    background-position: center top;
  }

  .hero::before {
    background-position: center top;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.25rem clamp(1rem, 5vw, 2.5rem) 2.5rem;
    min-height: 65vh;
  }
}

.nav,
main,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 1.25rem clamp(1.5rem, 2vw, 2rem) 0.75rem;
  position: relative;
  z-index: 40;
}

.nav {
  position: relative;
  z-index: 40;
}

.quick-back {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 167, 255, 0.4);
  background: rgba(10, 16, 32, 0.9);
  color: #dbe8ff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-back.show {
  opacity: 1;
  pointer-events: auto;
}

.quick-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-loaded .fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(106, 168, 255, 0.3);
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.logo small {
  color: #8bb5ff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  position: relative;
  z-index: 40;
}

.nav-links a {
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: #b8d4ff;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(106, 168, 255, 0.15);
}


.nav-toggle {
  display: none;
  border: 1px solid rgba(106, 168, 255, 0.3);
  background: rgba(106, 168, 255, 0.1);
  color: #b8d4ff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  color: #ffffff;
  border-color: rgba(106, 168, 255, 0.5);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.open .icon-bars {
  display: none;
}

.nav-toggle.open .icon-close {
  display: inline;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(106, 168, 255, 0.4);
}

.hero-copy .lede {
  background-color: #000305;
  color: #4b9bff;           
  max-width: 600px;
}

.hero-copy .eyebrow {
  color: #6aa8ff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061023;
  box-shadow: 0 15px 30px rgba(106, 168, 255, 0.28);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn.secondary {
  background: none;
  border: 2px solid;
  border-radius: 36px;
  border-color: #4b9bff;
  padding: 0.25rem 0.5rem;
}

.btn.secondary::after {
  font-size: 1.75em;
  content: "→";
  margin-left: 4px;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  color: #a8c8ff;
}

.hero-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
  text-shadow: 0 0 15px rgba(106, 168, 255, 0.3);
}

.hero-stats span {
  color: #a8c8ff;
}

.hero-card {
  background: linear-gradient(145deg, rgba(10, 17, 35, 0.95), rgba(8, 12, 26, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.small-card {
  background: linear-gradient(145deg, rgba(10, 17, 35, 0.95), rgba(8, 12, 26, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 140vh;
}

.small-card h2 {
  margin-top: 0;
  color: var(--heading);
}

.small-card h3 {
  margin-top: 0;
  color: white;
  font-size: medium;
  margin-bottom: 0;
}

.small-card ul {
  margin-top: 8px;
  margin-bottom: 8px;
}


.meta {
  color: var(--muted);
  margin: 0.15rem 0;
}

.eyebrow {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 11px;
}

.section {
  padding: clamp(2rem, 2rem, 5rem) clamp(0.5rem, 3vw, 2rem);
}

.section-header {
  max-width: 720px;
}

.section-header h2 {
  color: var(--heading);
  margin: 0.1rem 0 0.4rem;
}

.section-header p {
  color: var(--muted);
}

.section-action {
  margin-top: 1.75rem;
}

.section-action .btn {
  min-width: 140px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.2rem;
  margin-top: 2rem;
}

.grid.three {
  margin-bottom: 2rem;
  justify-content: start;
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


@media (max-width: 1199px) and (min-width: 769px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) and (min-width: 620px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 619px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 500px));
  gap: 0;
  align-content: start;
}



article {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  max-width: 40vh;
  margin-top: 12px;
  margin-bottom: 12px;
  margin-right: 12px;
  display: fit-content;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  align-self: left;
}

article h3 {
  margin-top: 0;
  color: var(--heading);
  line-height: 1.3;
}

article img {
  width: 10rem;
  height: 12rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

article p{
  line-height: 1.6;
  min-height: calc(1.6em * 4); /* reserve space for ~6 lines */
}

.p1{
line-height: 1.6em;
min-height: calc(1.6em * 6);
}


.tag {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(106, 168, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.highlight {
  background: linear-gradient(135deg, rgba(9, 15, 31, 0.95), rgba(6, 10, 22, 0.95));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer {
  padding: 1.5rem clamp(1.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1rem;
}



@media (max-width: 1900px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh; /* limit overlay to hero area */
    background: rgba(5, 8, 15, 0.96);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    gap: 1.2rem;
    z-index: 50;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-card,
  article {
    transform: none !important;
    transition: none !important;
  }
}

.card-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* ensures responsiveness */
}

.card-image img {
  width: 16rem;
  height: 16rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.card-image {
  flex: 1 1 10%;
}

.card-content {
  flex: 1 1 55%;
}

@media (max-width: 768px) {
  .card-wrapper {
    flex-direction: column;
  }
  .card-image,
  .card-content {
    flex: 1 1 100%;
  }
}

.machines-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2rem;
  justify-content: start;

}

.machines img {
  width: 16rem;
  height: 16rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-two article{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: fit-content;
}


.contact-two p {
    line-height: 1.6;
    min-height: calc(1.6em * 1);
} 


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #0f172c;
  width: 400px;
  margin: 12% auto;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  animation: slideDown 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.modal-content h2 {
  color: white;
  margin-bottom: 10px;
  font-size: 22px;
}

.modal-content p {
  color: #3f8bff;
  font-size: 16px;
  margin-bottom: 20px;
}


.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  margin-top: -10px;
}

.ok-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #3f8bff;
  color: #000000;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.ok-btn:hover {
  background: #3f8bff;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}

@keyframes slideDown {
  from {transform: translateY(-30px);} to {transform: translateY(0);}
}

.file-upload-wrapper {
  max-width: 350px; /* Smaller box */
  margin: 0;

}

.file-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px; /* Smaller */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  height: 150px;
}

.file-upload-box:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}


.upload-text {
  font-size: 18px;
  color: var(--muted);
  text-align: center;
}

.upload-text span {
  font-weight: bold;
  color: var(--accent);
}

.file-input {
  display: none;
}

.file-upload-box.dragover {
  border-color: var(--accent-2);
  background: var(--surface-2);
}

.clear-file {
  display: none;
  position: static;
  top: 8px;
  right: 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  transition: 0.2s ease;
  text-align: end;
}

.clear-file:hover {
  color: var(--accent);
}
