/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

/* ========== THEME ========== */

:root {
  --bg: #020617;
  --bg-soft: #020617;
  --glass: rgba(15, 23, 42, 0.88);
  --border-soft: rgba(148, 163, 184, 0.5);
  --primary: #6366f1;
  --primary-strong: #a855f7;
  --accent: #22d3ee;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}

/* Background gradient */
body {
  background:
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(8, 47, 73, 0.6), transparent 60%),
    #020617;
  color: var(--text-main);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.4rem auto 2rem;
}

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.85));
  border-bottom: 1px solid #1f2937;
  height: 80px; /* FIXED HEIGHT */
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.company-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin-left: -40px;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

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

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.hero-kicker span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.hero-text p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-tags span {
  font-size: 0.76rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero visual */

.hero-media {
  max-width: 380px;
  margin-left: auto;
}

.hero-orb {
  position: relative;
  border-radius: 999px;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(129, 140, 248, 0.6), transparent 60%),
    radial-gradient(circle at bottom, rgba(8, 47, 73, 0.8), transparent 60%);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.95);
}

.hero-orb-inner {
  border-radius: 999px;
  padding: 0.5rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
}

.hero-orb-inner img {
  border-radius: 999px;
  max-height: 260px;
  object-fit: cover;
}

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

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn.primary {
  background: radial-gradient(circle at top left, var(--primary-strong), var(--primary));
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(88, 28, 135, 0.6);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.outline {
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(15, 23, 42, 0.95);
}

.btn.white {
  background-color: #f9fafb;
  color: #111827;
}

.btn.full-width {
  width: 100%;
}

/* ========== TWO-COLUMN GENERIC ========== */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.two-column p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* ========== IMAGE STACK ========== */

.image-stack {
  position: relative;
  max-width: 360px;
  margin-left: auto;
}

.image-stack img {
  border-radius: 16px;
  max-height: 220px;
  object-fit: cover;
}

.image-stack .image-overlay {
  position: absolute;
  width: 68%;
  max-height: 170px;
  right: -8%;
  bottom: -18%;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 1);
}

/* ========== SERVICE TILE GRID ========== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 1.7rem;
}

/* Outer glass border for tilt effect */
.service-tile {
  border-radius: 22px;
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, 0.9), rgba(56, 189, 248, 0.4));
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

/* Inner glass content */
.service-tile-inner {
  border-radius: 21px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
  padding: 1.3rem 1.2rem 1.4rem;
  height: 100%;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.9), rgba(15, 23, 42, 0.95));
  color: #f9fafb;
  font-size: 1rem;
}

.service-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 0.35rem;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.service-tags span {
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* ========== HORIZONTAL SCROLLER ========== */

.scroller-section {
  padding-top: 1rem;
}

.scroller-track {
  margin-top: 1.3rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  -webkit-overflow-scrolling: touch;
}

.scroller-row {
  display: inline-flex;
  gap: 0.9rem;
  padding-bottom: 0.2rem;
}

.feature-pill {
  min-width: 220px;
  max-width: 260px;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========== TESTIMONIALS ========== */

.testimonials {
  padding: 3.5rem 0 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.testimonial-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), #020617);
  padding: 1.4rem;
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ========== TAG CHIPS ========== */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chips span {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* ========== CTA SECTION ========== */

.section-accent {
  background: radial-gradient(circle at top left, #4c1d95, #020617);
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
}

.cta p {
  max-width: 460px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* ========== PAGE HEADERS ========== */

.page-header {
  padding: 3rem 0 2.3rem;
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.4), #020617 60%);
}

.page-header h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.page-header p {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ========== SERVICE PAGE IMAGES ========== */

.image-card {
  max-width: 340px;
  margin: 0 auto;
}

.image-card img {
  border-radius: 16px;
  max-height: 220px;
  object-fit: cover;
}

/* ========== LISTS ========== */

.list {
  margin-top: 0.7rem;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list li {
  margin-bottom: 0.3rem;
}

/* ========== CONTACT ========== */

.contact-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.contact-left h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-form {
  margin-top: 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  padding: 1.9rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #475569;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  background-color: #020617;
  color: #e5e7eb;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.45);
}

/* POPUP */

.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.popup-backdrop.active {
  display: flex;
}

.popup {
  max-width: 360px;
  width: 100%;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.75), #020617);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.popup h3 {
  margin-bottom: 0.6rem;
}

.popup p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* ========== FOOTER ========== */

.footer {
  background: #020617;
  border-top: 1px solid #1f2937;
  padding: 2.7rem 0 1rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer h3,
.footer h4 {
  margin-bottom: 0.6rem;
}

.footer a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .image-stack,
  .image-card {
    margin: 0 auto;
  }

  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-form {
    padding: 1.6rem;
  }
}
