/* ==========================================================
   Innoventra Technologies - Main Stylesheet
   ========================================================== */

:root {
  --bg: #0b0f16;
  --bg-card: #111822;
  --bg-card-hover: #152030;
  --accent: #00ffea;
  --accent-2: #00c9a7;
  --text: #e8eef2;
  --text-muted: #a9b8c3;
  --border: rgba(0, 255, 234, 0.18);
  --glow: 0 0 24px rgba(0, 255, 234, 0.25);
  --radius: 14px;
  --nav-h: 70px;
  --font-head: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .3s ease;
}
a:hover { color: var(--accent-2); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 20px; }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .3px;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 255, 234, .55);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 201, 167, .8);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: rgba(0, 0, 0, .25);
}
.btn-outline:hover { background: var(--accent); color: var(--bg); }

.btn-lg { padding: 16px 38px; font-size: 1.15rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(11, 15, 22, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .9rem;
  color: var(--accent);
  box-shadow: var(--glow);
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu .nav-cta {
  padding: 8px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 30px;
  color: var(--accent);
}
.nav-menu .nav-cta:hover { background: var(--accent); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--accent);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image: url("../images/hero-ai.jpg");
  background-image: image-set(url("../images/hero-ai.webp") type("image/webp"), url("../images/hero-ai.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

/* Dark overlay = readable title on any part of the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 22, .95) 0%, rgba(11, 15, 22, .82) 45%, rgba(11, 15, 22, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(0, 255, 234, .08);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .7);
  margin-bottom: 16px;
}
.hero-title span {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(0, 255, 234, .45));
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  max-width: 560px;
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- About ---------- */
.about-text { max-width: 860px; margin: 0 auto; }
.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  text-align: center;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 0 30px rgba(0, 255, 234, .35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 255, 234, .1);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 { font-size: 1.15rem; color: var(--accent); }
.feature-card p { margin: 0; color: var(--text-muted); }

/* ---------- Showcase ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-media { order: 2; }

.showcase-media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(0, 255, 234, .2);
}
.showcase-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease;
}
.showcase-media:hover img { transform: scale(1.05); }

.showcase-text h3 { font-size: 1.5rem; color: var(--accent); }
.showcase-text p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Industries ---------- */
.industries-list {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.industries-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.industries-list li:hover {
  background: rgba(0, 255, 234, .12);
  color: var(--accent);
  box-shadow: var(--glow);
}

/* ---------- Why us / Contact ---------- */
.why-us { text-align: center; }
.why-list {
  list-style: none;
  max-width: 620px;
  margin: 0 auto 40px;
  padding: 0;
  text-align: left;
}
.why-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.why-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: .9rem;
  border-top: 1px solid var(--border);
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 234, .65);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation (enabled by JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 15, 22, .98);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-menu.open { max-height: 400px; border-top: 1px solid var(--border); }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 14px 0; }
  .nav-menu .nav-cta { border: 0; border-radius: 0; padding: 14px 0 18px; }

  .showcase-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .showcase-row.reverse .showcase-media { order: 0; }

  .hero { background-position: 70% center; }
  .hero-overlay { background: rgba(11, 15, 22, .82); }
  .section { padding: 60px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
