/* ======================================================
   NewTekno — styles.css (FINAL REDO)
   Premium Modern Layout + Carousel Fix Included
   ====================================================== */

/* RESET */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Helvetica, Arial;
  color: #eaf2ff;
  background: #060816;
  overflow-x: hidden;
}

/* THEME VARIABLES */
:root {
  --bg0: #060816;
  --bg1: #070a1c;

  --text: #eaf2ff;
  --muted: rgba(234, 242, 255, 0.75);
  --muted2: rgba(234, 242, 255, 0.55);

  --stroke: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.06);

  --aqua: #34d7ff;
  --violet: #9d7bff;
  --pink: #ff4fd8;
  --lime: #86ff9b;

  --shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  --shadow2: 0 12px 40px rgba(0, 0, 0, 0.45);

  --radius: 18px;
  --radius2: 24px;
  --max: 1160px;
}

/* ======================================================
   BACKGROUND GRAPHICS
   ====================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(1200px 600px at 20% 10%,
      rgba(52, 215, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 70% 30%,
      rgba(157, 123, 255, 0.16), transparent 60%),
    radial-gradient(800px 600px at 50% 80%,
      rgba(255, 79, 216, 0.10), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 10% 20%,
      rgba(52, 215, 255, 0.28), transparent 40%),
    radial-gradient(circle at 80% 30%,
      rgba(157, 123, 255, 0.24), transparent 42%),
    radial-gradient(circle at 50% 80%,
      rgba(255, 79, 216, 0.16), transparent 45%);
  filter: blur(45px);
  opacity: 0.95;
  animation: floatMesh 14s ease-in-out infinite;
}

@keyframes floatMesh {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(3%,-2%) scale(1.03); }
  100% { transform: translate(0,0) scale(1); }
}

.grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.25;
  pointer-events: none;
  background-image:
    linear-gradient(to right,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse at 50% 30%,
    black 35%,
    transparent 75%
  );
}

/* ======================================================
   LAYOUT
   ====================================================== */

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ======================================================
   NAVBAR
   ====================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 22, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 18px rgba(52,215,255,0.35);
}

.brandText strong {
  font-size: 14px;
}

.brandText span {
  font-size: 12px;
  color: var(--muted2);
}

.navLinks {
  display: flex;
  gap: 10px;
}

.navLinks a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.navLinks a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.navCtas {
  display: flex;
  gap: 10px;
}

/* ======================================================
   BUTTONS
   ====================================================== */

.btn {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn:hover {
  background: rgba(255,255,255,0.07);
}

.btnPrimary {
  border-color: rgba(52,215,255,0.50);
  background: linear-gradient(
    135deg,
    rgba(52,215,255,0.22),
    rgba(157,123,255,0.12)
  );
}

.btnPrimary:hover {
  border-color: rgba(52,215,255,0.70);
}

/* ======================================================
   HERO SECTION
   ====================================================== */

.hero {
  padding: 60px 0 30px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}

.heroLogo {
  width: 220px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--muted);
}

.kicker i {
  width: 10px;
  height: 10px;
  background: var(--aqua);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(52,215,255,0.60);
}

.h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 16px 0 10px;
}

.grad {
  background: linear-gradient(
    90deg,
    var(--aqua),
    var(--violet),
    var(--pink)
  );
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

/* ======================================================
   CAROUSEL FIXED (NO OVERLAP)
   ====================================================== */

.heroCarousel {
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 420px;
}

.carouselStage {
  height: 420px;
  position: relative;
}

.carouselSlide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  padding: 20px 20px 95px; /* FIXED SPACE */
}

.carouselSlide.is-active {
  opacity: 1;
}

.carouselSlide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carouselOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,8,22,0.15),
    rgba(6,8,22,0.70)
  );
}

.carouselCaption {
  position: relative;
  z-index: 5;
  max-width: 46ch;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.carouselControls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}

.dots {
  display: flex;
  gap: 8px;
}

.dotBtn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.dotBtn.is-active {
  width: 26px;
  background: rgba(52,215,255,0.25);
  border-color: rgba(52,215,255,0.60);
}

/* ======================================================
   CONTACT + FOOTER
   ====================================================== */

.contact {
  margin-top: 30px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow2);
}

.contactInner {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.input, .textarea {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: var(--text);
}

.textarea {
  min-height: 110px;
}

.footer {
  padding: 30px 0;
  font-size: 12px;
  color: var(--muted2);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 980px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }

  .carouselStage {
    height: 360px;
  }

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

@media (max-width: 640px) {
  .navLinks {
    display: none;
  }
}
