/* ==========================================================
   ImTech Innovations — futuristic dark theme
   ========================================================== */

:root {
  --navy: #0a0e17;
  --navy-soft: #10151f;
  --panel: #131a27;
  --panel-border: rgba(120, 170, 255, 0.14);
  --blue: #5da9dc;
  --blue-bright: #6fd7ff;
  --cyan: #3fa7ff;
  --violet: #5468f2;
  --text-body: #b9c3d4;
  --text-dim: #7a869c;
  --white: #ffffff;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
  --container-width: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.65;
  background: var(--navy);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px var(--cyan);
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.24s; }
.reveal-delay-3.in-view { transition-delay: 0.36s; }

/* ---------- Cursor light ---------- */

.cursor-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 167, 255, 0.16), rgba(84, 104, 242, 0.08) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

.cursor-light.active { opacity: 1; }

@media (pointer: coarse) {
  .cursor-light { display: none; }
}

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan), var(--violet));
  z-index: 300;
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo { height: 68px; width: auto; filter: drop-shadow(0 0 10px rgba(93, 169, 220, 0.35)); }

.site-nav { display: flex; gap: 36px; }

.site-nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 8px 2px;
  transition: color 0.2s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  color: var(--navy);
  box-shadow: 0 0 0 rgba(63, 167, 255, 0);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(63, 167, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--panel-border);
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.55) 0%, rgba(10, 14, 23, 0.75) 55%, var(--navy) 100%),
              linear-gradient(90deg, rgba(10, 14, 23, 0.85) 0%, rgba(10, 14, 23, 0.35) 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 169, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 169, 220, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 40%, transparent 90%);
}

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 167, 255, 0.25), transparent 70%);
  top: -180px;
  right: -160px;
  filter: blur(10px);
  animation: float-glow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-content p {
  color: var(--text-body);
  font-size: 1.08rem;
  max-width: 600px;
  margin-bottom: 36px;
}

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

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--panel-border);
  border-radius: 20px;
  z-index: 1;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 8px; opacity: 0; }
}

/* ---------- About ---------- */

.about { position: relative; background: var(--navy-soft); padding: 120px 0; }

.about-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
}

.logo-frame {
  position: relative;
  padding: 36px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 40px rgba(93, 169, 220, 0.08);
}

.logo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue-bright), transparent 40%, var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.about-logo { width: 100%; max-width: 260px; margin: 0 auto; }

.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-text p { color: var(--text-body); }

/* ---------- Services ---------- */

.services { position: relative; background: var(--navy); padding: 120px 0; overflow: hidden; }

.services-grid-bg {
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 85%);
}

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.section-heading h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-lead { color: var(--text-dim); font-size: 1.02rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(63, 167, 255, 0.5);
  box-shadow: 0 16px 40px rgba(63, 167, 255, 0.12);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-soft);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img { transform: scale(1.07); }

.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0) 55%, var(--panel) 100%);
}

.service-body { position: relative; padding: 0 30px 34px; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: var(--navy-soft);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  margin-top: -28px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p { color: var(--text-body); font-size: 0.95rem; }

/* ---------- Products ---------- */

.products { position: relative; background: var(--navy-soft); padding: 120px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(63, 167, 255, 0.5);
  box-shadow: 0 16px 40px rgba(63, 167, 255, 0.12);
}

.product-logo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy-soft);
  border: 1px solid var(--panel-border);
}

.product-logo img { width: 100%; height: 100%; object-fit: cover; }

.product-body { min-width: 0; }

.product-body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }

.product-body p { color: var(--text-body); font-size: 0.92rem; margin-bottom: 12px; }

.product-link { display: inline-block; color: var(--cyan); font-size: 0.85rem; font-weight: 600; }

/* ---------- Contact ---------- */

.contact { position: relative; background: var(--navy-soft); padding: 120px 0; overflow: hidden; }

.contact-glow {
  width: 520px;
  height: 520px;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(84, 104, 242, 0.22), transparent 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--navy-soft);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 167, 255, 0.15);
}

.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }

.contact-form .btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.hidden-field { position: absolute; opacity: 0; height: 0; width: 0; pointer-events: none; }

.form-status { font-size: 0.9rem; min-height: 1.2em; }

.form-status.success { color: var(--cyan); }

.form-status.error { color: #ff6b6b; }

.contact-direct {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.direct-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-body);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.direct-link:hover { color: var(--cyan); }

.direct-link .icon {
  font-size: 1.05rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy-soft);
  border: 1px solid var(--panel-border);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); border-top: 1px solid var(--panel-border); padding: 56px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 140px;
  gap: 40px;
}

.footer-brand img { width: 190px; margin-bottom: 18px; }

.footer-copyright { color: var(--text-dim); font-size: 0.9rem; }

.footer-about { color: var(--text-body); font-size: 0.92rem; max-width: 480px; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a { color: var(--text-body); font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cyan); }

.footer-reg {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .logo-frame { max-width: 260px; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .brand-logo { height: 50px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-soft);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.open { max-height: 300px; }

  .site-nav a { padding: 14px 24px; border-bottom: 1px solid var(--panel-border); }

  .hero { min-height: 92vh; }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-light { display: none; }
}
