/* ====================================================
   HELIOS INFOTECH — style.css
   Deep navy + electric blue futuristic tech palette
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #030B1A;
  --bg-2:      #040F1F;
  --bg-3:      #071428;
  --border:    rgba(255,255,255,0.06);
  --fg:        #f0f4ff;
  --muted:     rgba(160,180,220,0.65);
  --primary:   #0EA5E9;
  --primary-2: #38BDF8;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Sora', sans-serif;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* ── Utility ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.hidden { display: none !important; }

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll Reveal ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.21,0.47,0.32,0.98),
              transform 0.7s cubic-bezier(0.21,0.47,0.32,0.98);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: #0284C7;
  box-shadow: 0 0 20px rgba(14,165,233,0.4);
}

.btn-white {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.btn-white:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.4); }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(14,165,233,0.5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-primary:hover { background: rgba(14,165,233,0.1); }

.btn-lg { font-size: 1rem; padding: 1rem 2rem; height: 3.5rem; }
.btn-sm { font-size: 0.8rem; padding: 0.5rem 1.25rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-mobile { width: 100%; justify-content: center; padding: 1rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(3,11,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.05);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-icon {
  width: 2rem; height: 2rem;
  background: var(--primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  font-family: var(--font-display);
}
.logo-icon-sm {
  width: 1.5rem; height: 1.5rem;
  background: rgba(14,165,233,0.2);
  border: 1px solid rgba(14,165,233,0.35);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  color: var(--primary);
  font-family: var(--font-display);
}

.nav-links { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover { color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(3,11,26,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-link:hover { color: #fff; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.4; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(3,11,26,0.8) 0%, rgba(3,11,26,0.6) 50%, var(--bg) 100%);
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.1) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }
.hero-inner { max-width: 56rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); }
.scroll-line { width: 1px; height: 3rem; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative; z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ── Services ── */
.services-section {
  padding: 6rem 0 8rem;
  background: var(--bg-2);
  position: relative;
}
.section-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(14,165,233,0.5), transparent);
}

.section-header { margin-bottom: 4rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.5s;
}
.service-card:hover { border-color: rgba(14,165,233,0.5); }

.service-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-card:hover .service-img { transform: scale(1.05); }

.service-img-overlay {
  position: absolute; inset: 0;
  background: rgba(3,11,26,0.5);
  z-index: 1;
  transition: background 0.5s;
  mix-blend-mode: multiply;
}
.service-card:hover .service-img-overlay { background: transparent; }

.service-img-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-2) 0%, transparent 50%);
  z-index: 2;
}

.service-icon-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 10;
  width: 2.5rem; height: 2.5rem;
  border-radius: 3px;
  background: rgba(14,165,233,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(14,165,233,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

.service-body {
  padding: 1.5rem;
  position: relative;
  z-index: 10;
  margin-top: -2rem;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.service-card:hover .service-body h3 { color: var(--primary); }
.service-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.service-card:hover .service-link { color: var(--primary); }
.service-link svg { transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(3px); }

.service-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  box-shadow: inset 0 0 40px rgba(14,165,233,0.1);
}
.service-card:hover .service-glow { opacity: 1; }

/* ── Why Section ── */
.why-section {
  padding: 6rem 0 8rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; } }

.why-left { display: flex; flex-direction: column; gap: 1.5rem; }
.why-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) { .why-right { grid-template-columns: 1fr 1fr; } }

.why-card { display: flex; flex-direction: column; }
.why-icon {
  width: 3rem; height: 3rem;
  border-radius: 4px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}
.why-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── Process ── */
.process-section { padding: 6rem 0 8rem; background: var(--bg); }
.process-header { text-align: center; margin-bottom: 4rem; }
.process-header .section-sub { margin: 0 auto; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.process-line {
  display: none;
}
@media (min-width: 768px) {
  .process-line {
    display: block;
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.07);
    z-index: 0;
  }
}

.process-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s;
}
.process-card:hover { border-color: rgba(14,165,233,0.3); }

.process-step {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
  text-stroke: 1px rgba(255,255,255,0.15);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}
.process-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── Contact ── */
.contact-section {
  padding: 6rem 0 8rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

.contact-info .section-sub { margin-bottom: 3rem; }
.contact-details { display: flex; flex-direction: column; gap: 2rem; }
.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.35rem;
}
.contact-value {
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--primary); }

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.form-glow {
  position: absolute;
  top: -4rem; right: -4rem;
  width: 8rem; height: 8rem;
  background: rgba(14,165,233,0.1);
  border-radius: 50%;
  filter: blur(3rem);
  pointer-events: none;
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

input, textarea, select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 2px;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(14,165,233,0.5);
  box-shadow: 0 0 0 1px rgba(14,165,233,0.5);
}
input.invalid, textarea.invalid { border-color: #f87171; }
textarea { resize: none; }
select { appearance: none; -webkit-appearance: none; }
::placeholder { color: rgba(255,255,255,0.2); }

.select-wrap { position: relative; }
.select-arrow {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

.form-error { font-size: 0.72rem; color: #f87171; min-height: 1rem; }

.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 28rem;
  padding: 2rem;
}
.form-success.visible { display: flex; }
.success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.form-success p { color: var(--muted); font-size: 0.9rem; }

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-tagline { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.2); }

/* ── Responsive ── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .navbar .btn-sm { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 4.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
