﻿/* ============================================================
   MOXIMTECH – INDEX PAGE STYLES
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(0, 62, 117,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 85% 20%, rgba(90,144,184,0.05) 0%, transparent 45%),
              radial-gradient(ellipse at 60% 85%, rgba(56,200,240,0.04) 0%, transparent 40%),
              linear-gradient(160deg, #eef5fc 0%, #ffffff 100%);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 {
  width: 500px; height: 500px;
  background: rgba(0, 62, 117,0.07);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb2 {
  width: 350px; height: 350px;
  background: rgba(90,144,184,0.05);
  top: 30%; right: 5%;
  animation-delay: -3s;
}
.orb3 {
  width: 280px; height: 280px;
  background: rgba(56,200,240,0.04);
  bottom: 5%; left: 30%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 62, 117,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 62, 117,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 80%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 0 80px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-title {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 14px 0 28px;
  color: var(--text-dark);
}

.hero-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px 32px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 60, 120, 0.08);
}
.stat { text-align: center; padding: 0 24px; }
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
}
.stat-unit { font-size: 18px; color: var(--primary); }
.stat-swap .swap-a, .stat-swap .swap-b {
  display: inline-block;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
  transform-origin: center bottom;
}
.stat-swap:has(.swap-b:hover) .swap-a {
  transform: scale(0.5625);
  color: var(--primary);
}
.stat-swap:has(.swap-b:hover) .swap-b {
  transform: scale(1.778);
  color: var(--text-dark);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* Hero image */
.hero-image {
  flex: 0 1 460px;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 62, 117,0.2) 0%, transparent 70%);
  filter: blur(40px);
}
/* ── HERO CAROUSEL ─────────────────────────────────────── */
.hero-carousel {
  display: grid;
  width: 100%;
  max-width: 420px;
}
.hero-slide {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s var(--ease);
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 0 30px rgba(0, 62, 117,0.15));
  animation: imgFloat 6s ease-in-out infinite;
}
@keyframes imgFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* ── HERO BADGES ───────────────────────────────────────── */
.hero-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,62,117,0.18);
  border-radius: 40px;
  padding: 7px 14px 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,62,117,0.12);
  backdrop-filter: blur(8px);
}
.hero-badge svg {
  width: 15px; height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}
.hb-tl { top: 8%;   left: -12%; }
.hb-tr { top: 32%;  right: -10%; }
.hb-bl { bottom: 16%; left: -10%; }

@keyframes badgeFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes badgeFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes badgeFloat3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float-a { animation: badgeFloat1 5s   ease-in-out infinite; }
.float-b { animation: badgeFloat2 6.5s ease-in-out infinite 1s; }
.float-c { animation: badgeFloat3 5.5s ease-in-out infinite 2s; }


/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ── SHARED CONTAINER ──────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── SECTION HEAD ──────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .section-subtitle {
  margin: 16px auto 0;
}

/* ── SERVICES ──────────────────────────────────────────── */
.services {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 60, 120, 0.06);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(0, 60, 120, 0.12);
}
.service-card:hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 62, 117,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: var(--primary-dim);
  border: 1px solid rgba(0, 62, 117,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── FEATURED PRODUCTS ─────────────────────────────────── */
.products-section {
  padding: 120px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 60, 120, 0.06);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 62, 117,0.3);
  box-shadow: 0 10px 36px rgba(0, 60, 120, 0.12);
}

.product-img-wrap {
  background: var(--bg3);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-bottom: 1px solid var(--glass-border);
}
.product-img-wrap img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 62, 117,0.10));
  transition: transform 0.3s var(--ease);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
}
.product-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(56,200,240,0.1);
  border: 1px solid rgba(56,200,240,0.2);
  border-radius: 40px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.product-specs {
  list-style: none;
  margin-bottom: 20px;
}
.product-specs li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.product-specs li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: letter-spacing 0.2s;
}
.product-link:hover { letter-spacing: 0.05em; }

.products-cta { text-align: center; }

/* ── CONTACT STRIP ─────────────────────────────────────── */
.contact-strip {
  padding: 80px 0;
  background: var(--bg3);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-brand {
  flex: 0 0 auto;
}
.contact-logo {
  width: 160px;
  filter: brightness(1.1);
  display: block;
  margin-bottom: 10px;
}
.contact-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.contact-items {
  display: flex;
  gap: 40px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--primary-dim);
  border: 1px solid rgba(0, 62, 117,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon img { width: 18px; }

.contact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.contact-value:hover { color: var(--primary); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .hero-image { flex-basis: 380px; }
}

@media (max-width: 960px) {
  .hero-inner { flex-direction: column; text-align: center; padding: 80px 0 60px; gap: 40px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-image { flex: 0 0 auto; width: 100%; max-width: 320px; }
  .img-glow { width: 240px; height: 240px; }
  .hero-badge { font-size: 11px; padding: 5px 11px 5px 8px; gap: 5px; }
  .hero-badge svg { width: 13px; height: 13px; }
  .hb-tl { left: -6%; }
  .hb-tr { right: -6%; }
  .hb-bl { left: -6%; }
}

@media (max-width: 600px) {
  .hero-badge { font-size: 10px; padding: 4px 9px 4px 7px; gap: 4px; white-space: normal; max-width: 140px; line-height: 1.3; }
  .hero-badge svg { width: 12px; height: 12px; }
  .hb-tl { top: 2%;  left: -4%; }
  .hb-tr { top: 25%; right: -4%; }
  .hb-bl { bottom: 10%; left: -4%; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .services, .products-section { padding: 60px 0; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .stat-divider { width: 60px; height: 1px; }
  .contact-strip-inner { flex-direction: column; align-items: flex-start; }
  .contact-items { flex-direction: column; gap: 20px; }
}
