* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.16);
  --primary-strong: #1d4ed8;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --bg-deep: #020617;
  --bg-alt: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-glass: rgba(148, 163, 184, 0.35);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.95);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --blur-hero: 20px;
}

/* ==== Global background with subtle animated gradient ==== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* animated gradient layer behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.24), transparent 55%),
    radial-gradient(circle at 0% 80%, rgba(34, 197, 94, 0.2), transparent 55%),
    radial-gradient(circle at 100% 80%, rgba(147, 51, 234, 0.16), transparent 55%),
    #020617;
  background-size: 180% 180%;
  z-index: -2;
  animation: bgMove 26s ease-in-out infinite alternate;
}

/* subtle dark overlay for contrast */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.97));
  z-index: -1;
}

/* background animation */
@keyframes bgMove {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 100%;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ==== Header: glass bar ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.92)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.98);
}

/* Layout containers */
.top-bar,
.footer-inner,
.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.4rem;
}

/* Top bar */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* small glowing logo */
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 20%, #93c5fd, #60a5fa 40%, #1d4ed8 70%, #020617 100%);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.5),
    0 14px 40px rgba(59, 130, 246, 0.9);
}

/* subtle pulse on logo */
.logo-mark {
  animation: logoPulse 3.4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(129, 140, 248, 0.5),
      0 12px 32px rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(129, 140, 248, 0.6),
      0 18px 50px rgba(59, 130, 246, 0.95);
  }
}

.phone {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.phone-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.28), transparent 60%),
    rgba(15, 23, 42, 0.85);
}

/* ==== Navigation with animated underline + glow ==== */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.7rem 1.4rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.45rem 0.3rem;
  transition:
    color 0.18s ease,
    transform 0.16s ease,
    text-shadow 0.18s ease;
}

/* animated underline */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #60a5fa, #22c55e);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.75);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: #e5e7eb;
  font-weight: 600;
}

.main-nav a.active::after {
  transform: scaleX(1);
}

/* ==== Content ==== */
.content {
  padding-top: 2.1rem;
  padding-bottom: 2.5rem;
}

/* Hero: glass card with subtle tilt on hover */
.hero {
  position: relative;
  margin-bottom: 1.9rem;
  padding: 2.1rem clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 60%),
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.9)
    );
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  backdrop-filter: blur(var(--blur-hero));
  -webkit-backdrop-filter: blur(var(--blur-hero));
  transform-style: preserve-3d;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 60%);
  top: -70px;
  right: -90px;
  opacity: 0.9;
  pointer-events: none;
}

/* slight tilt & lift on hover */
.hero:hover {
  transform: perspective(1200px) rotateX(4deg) rotateY(-3deg) translateY(-2px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.98);
  border-color: rgba(59, 130, 246, 0.7);
}

.hero h1 {
  font-size: clamp(2.1rem, 3.3vw, 2.6rem);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.button-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(22, 163, 74, 0.55);
  color: #ecfdf3;
  font-weight: 600;
  box-shadow: 0 16px 42px rgba(22, 163, 74, 0.85);
}

.button-primary:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 20px 48px rgba(22, 163, 74, 0.95);
}

.button-ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text-muted);
}

.button-ghost:hover {
  transform: translateY(-1px) scale(1.01);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.95);
}

/* Sections: glass cards with hover depth */
.section {
  position: relative;
  margin-bottom: 1.4rem;
  padding: 1.55rem 1.7rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, var(--primary-soft), transparent 65%),
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.94)
    );
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* hover lift on cards */
.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.95);
  border-color: rgba(59, 130, 246, 0.7);
}

.section h1,
.section h2 {
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}

.section p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 60%),
    rgba(15, 23, 42, 0.96);
  color: var(--text-muted);
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.65);
  font: inherit;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.6),
    0 0 0 9px rgba(37, 99, 235, 0.22);
  background: rgba(15, 23, 42, 0.97);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.96);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 55%),
    linear-gradient(to top, #020617, #020617 70%, #020617);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    padding-inline: 1.2rem;
  }

  .hero {
    padding: 1.7rem 1.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-primary,
  .button-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .top-bar,
  .footer-inner {
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}