/* ===== aggTech — Liquid Glass minimal design (light) ===== */

:root {
  --navy-950: #0a1226;
  --navy-900: #101c38;
  --navy-800: #16264d;
  --blue-500: #2a4f8f;
  --teal-700: #0e7490;
  --teal-600: #157f95;
  --teal-400: #2ea3b8;
  --teal-300: #4fc3d9;

  --text-heading: var(--navy-950);
  --text-body: rgba(10, 18, 38, 0.66);
  --text-faint: rgba(10, 18, 38, 0.45);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(15, 35, 70, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --glass-shadow: rgba(20, 45, 90, 0.14);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-heading);
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #ffffff 0%, #eef2f8 45%, #e5eaf2 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--text-heading); }

p { margin: 0 0 1em; color: var(--text-body); }

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

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

.accent { color: var(--teal-700); }

/* ---------- Background ambient orbs (blue glass glow) ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}

.orb-1 {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, var(--teal-400), transparent 70%);
  animation: float1 22s ease-in-out infinite;
}

.orb-2 {
  width: 480px; height: 480px;
  top: 30%; right: -160px;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  animation: float2 26s ease-in-out infinite;
}

.orb-3 {
  width: 420px; height: 420px;
  bottom: -160px; left: 30%;
  background: radial-gradient(circle, var(--teal-300), transparent 70%);
  opacity: 0.22;
  animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 80px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-70px, 50px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.08); }
}

/* ---------- Glass core ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight);
  position: relative;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 20px 0;
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-heading) !important;
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  color: #04141a;
  box-shadow: 0 8px 24px rgba(46, 163, 184, 0.30);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 163, 184, 0.4);
}

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-heading);
}

.btn-ghost:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 100px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-700);
  padding: 8px 18px;
  margin-bottom: 28px;
}

.glass-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section head ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

/* ---------- Services ---------- */
.services {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px;
}

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

.service-card {
  padding: 32px 26px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-strong);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46,163,184,0.22), rgba(42,79,143,0.18));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  margin-bottom: 20px;
}

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

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

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.brand-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(15, 35, 70, 0.05);
  color: var(--teal-600);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.brand-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.brand-icon:hover {
  color: var(--navy-900);
  background: rgba(15, 35, 70, 0.09);
  transform: translateY(-2px);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-700);
}

.service-link span {
  transition: transform 0.2s var(--ease);
}

.service-link:hover span {
  transform: translateX(3px);
}

/* ---------- About ---------- */
.about {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-card {
  padding: 48px;
  text-align: center;
}

.about-card p { max-width: 640px; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.contact-info {
  padding: 40px 32px;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--text-heading);
}

.info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
}

.info-icon svg { width: 18px; height: 18px; }

.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
}

.optional { color: var(--text-faint); font-weight: 400; }

.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(15, 35, 70, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1226' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-row select:invalid {
  color: var(--text-faint);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  background-color: rgba(15, 35, 70, 0.07);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.form-status.success { color: var(--teal-700); }
.form-status.error { color: #c0392b; }

/* ---------- Services detail page ---------- */
.page-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 40px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 24px;
  transition: color 0.2s var(--ease);
}

.back-link:hover { color: var(--text-heading); }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.quick-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.quick-nav a:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.service-detail {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  scroll-margin-top: 100px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail.reverse .service-detail-grid {
  direction: rtl;
}

.service-detail.reverse .service-detail-grid > * {
  direction: ltr;
}

.service-detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  aspect-ratio: 4 / 3;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(46,163,184,0.28), rgba(10,18,38,0.35));
  mix-blend-mode: multiply;
}

.service-detail-body .service-icon {
  margin-bottom: 20px;
}

.service-detail-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 6px;
}

.service-tagline {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-detail-body > p {
  font-size: 1.02rem;
}

.service-detail-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.service-detail-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal-600);
}

.service-process {
  margin-top: 28px;
}

.service-process h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.service-process ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-process li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.step-text span {
  font-size: 0.88rem;
  color: var(--text-body);
}

.service-audience {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.service-audience strong {
  color: var(--text-heading);
}

.final-cta {
  max-width: 900px;
  margin: 40px auto 100px;
  padding: 0 24px;
}

.final-cta-card {
  padding: 48px;
  text-align: center;
}

.final-cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .service-detail.reverse .service-detail-grid {
    direction: ltr;
  }
  .service-detail-image {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .page-hero { padding: 90px 20px 32px; }
  .final-cta-card { padding: 32px 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px var(--glass-shadow);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 10px 8px;
  }

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

  .hero { padding: 90px 20px 70px; }

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

  .about-card { padding: 32px 24px; }

  .contact-form { padding: 28px 22px; }

  .contact-info { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, html { animation: none !important; scroll-behavior: auto; }
}
