/* =================
   Anugrh Media Styles (Animated)
   Colors pulled from logo gradient
   =================== */

:root {
  --am-aqua: #2dc1cb;
  --am-green: #71c06f;
  --am-yellow: #d1d632;
  --am-cream: #e8e4dc;
  --am-bg-deep: #050608;
  --am-bg-card: rgba(10, 12, 18, 0.92);
  --am-bg-light: #f7f7f4;
  --am-text-main: #101010;
  --am-text-muted: #6c6c72;
  --am-white: #ffffff;
  --am-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
  --am-radius-lg: 26px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #0d1117 0, #050608 55%, #000 100%);
  color: var(--am-cream);
  line-height: 1.6;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

/* Layout */
.am-container {
  width: 92vw;              /* stretch the container */
  max-width: 1500px;        /* wider than before */
  margin: 0 auto;
  padding: 0 2rem;          /* add breathing room on edges */
}

.am-section {
  padding: 5rem 0
}

.am-section--light {
  background: var(--am-bg-light);
  color: var(--am-text-main)
}

.am-section--dark {
  background: radial-gradient(circle at top right, rgba(209, 214, 50, .03), transparent 55%), var(--am-bg-deep);
  color: var(--am-cream);
}

.am-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center
}

@media (max-width:768px) {
  .am-grid-2 {
    grid-template-columns: minmax(0, 1fr)
  }
}

/* ================= HEADER / NAV ================= */
.am-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(5, 6, 8, .94), rgba(5, 6, 8, .85), rgba(5, 6, 8, .94));
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.am-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0
}

/* Progress bar */
.am-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--am-aqua), var(--am-green), var(--am-yellow));
  width: 0
}

/* Logo */
.am-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none
}

.am-logo img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .55)
}

.am-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1
}

.am-logo-main {
  font-family: "Poppins";
  font-weight: 700;
  letter-spacing: .16em;
  font-size: .85rem;
  color: var(--am-cream);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 0, 0, .7)
}

.am-logo-sub {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, .8)
}

/* Nav links */
.am-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center
}

.am-nav a {
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, .78);
  font-weight: 500;
  position: relative
}

.am-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--am-aqua), var(--am-green), var(--am-yellow));
  transition: width .2s ease-out
}

.am-nav a:hover::after {
  width: 100%
}

.am-nav-cta {
  padding: .55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 228, 220, .5);
  background: radial-gradient(circle at top left, rgba(45, 193, 203, .2), transparent 55%);
  transform: translateZ(0);
  transition: transform .18s ease
}

.am-nav-cta:hover {
  transform: translateY(-2px)
}

/* Burger (mobile) */
.am-burger {
  display: none;
  flex-direction: column;
  gap: .22rem;
  background: none;
  border: none;
  padding: .25rem
}

.am-burger span {
  width: 18px;
  height: 2px;
  background: var(--am-cream);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease
}

@media (max-width:768px) {
  .am-nav {
    position: fixed;
    inset: 3.1rem 1rem auto;
    padding: 1.1rem 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: #050608;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
    transform-origin: top right;
    transform: scale(.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease
  }

  .am-nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
  }

  .am-burger {
    display: flex
  }

  .am-burger.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg)
  }

  .am-burger.is-open span:nth-child(2) {
    opacity: 0
  }

  .am-burger.is-open span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg)
  }
}

/* ================= HERO ================= */
.am-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden
}

.am-hero-gradient {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 20%, rgba(45, 193, 203, .25) 0, transparent 55%),
    radial-gradient(circle at 60% 0%, rgba(113, 192, 111, .22) 0, transparent 55%),
    radial-gradient(circle at 90% 40%, rgba(209, 214, 50, .22) 0, transparent 55%);
  opacity: .95;
  pointer-events: none;
  z-index: -1;
  animation: drift 24s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0)
  }

  to {
    transform: translate3d(0, -2%, 0) rotate(360deg)
  }
}

.am-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center
}

@media (max-width:900px) {
  .am-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem
  }
}

.am-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .76rem;
  color: rgba(232, 228, 220, .8);
  margin-bottom: .75rem
}

.am-hero-title {
  font-family: "Poppins";
  font-size: clamp(2.6rem, 3.5vw + 1rem, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1.3rem;
  max-width: 20ch;
  text-shadow: 0 18px 40px rgba(0, 0, 0, .75), 0 0 1px rgba(0, 0, 0, .65)
}

.am-hero-highlight {
  display: inline-block;
  background: linear-gradient(90deg, var(--am-aqua), var(--am-green), var(--am-yellow));
  -webkit-background-clip: text;
  color: transparent
}

.am-hero-copy {
  font-size: .98rem;
  max-width: 52ch;
  color: rgba(232, 228, 220, .9);
  margin: 0 0 .6rem
}

.am-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 1.25rem
}

.am-btn-primary,
.am-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: none;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease
}

.am-btn-primary {
  background: linear-gradient(135deg, var(--am-aqua), var(--am-green), var(--am-yellow));
  color: #050608;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .65)
}

.am-btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-2px)
}

.am-btn-ghost {
  background: rgba(5, 6, 8, .5);
  color: var(--am-cream);
  border: 1px solid rgba(232, 228, 220, .35)
}

.am-btn-ghost:hover {
  background: rgba(5, 6, 8, .8);
  transform: translateY(-2px)
}

.am-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem
}

.am-hero-tags span {
  font-size: .8rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(5, 6, 8, .6);
  border: 1px solid rgba(232, 228, 220, .14)
}

/* Hero orbit */
.am-hero-right {
  display: flex;
  justify-content: center
}

.am-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateZ(0)
}

.am-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 228, 220, .15)
}

.am-orbit-ring--outer {
  inset: 0;
  background: radial-gradient(circle, rgba(45, 193, 203, .14), transparent 55%);
  animation: spin 28s linear infinite
}

.am-orbit-ring--inner {
  inset: 18%;
  border-style: dashed;
  animation: spin 16s linear infinite reverse
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.am-orbit-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 260px;
  padding: 1.4rem 1.5rem;
  border-radius: var(--am-radius-lg);
  background: var(--am-bg-card);
  box-shadow: var(--am-shadow-soft);
  border: 1px solid rgba(232, 228, 220, .1);
  backdrop-filter: blur(18px);
  animation: float 6s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.am-orbit-label {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, .7);
  margin-bottom: .9rem
}

.am-orbit-metrics {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: .9rem
}

.am-orbit-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--am-aqua), var(--am-yellow));
  -webkit-background-clip: text;
  color: transparent
}

.am-orbit-text {
  display: block;
  font-size: .8rem;
  color: rgba(232, 228, 220, .9)
}

.am-orbit-foot {
  font-size: .82rem;
  color: rgba(232, 228, 220, .8)
}

/* ================= SECTION HEADERS ================= */
.am-section-header {
  text-align: left;
  margin-bottom: 2.5rem
}

.am-section-kicker {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--am-text-muted);
  margin-bottom: .5rem
}

.am-section--dark .am-section-kicker {
  color: rgba(232, 228, 220, .65)
}

.am-section-title {
  font-family: "Poppins";
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.5rem);
  margin: 0 0 .75rem
}

.am-section-subtitle {
  max-width: 44ch;
  font-size: .98rem;
  color: var(--am-text-muted);
  margin: 0
}

.am-section--dark .am-section-subtitle {
  color: rgba(232, 228, 220, .75)
}

.am-text-block p {
  margin-top: 0
}

.am-about-signature {
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--am-text-muted)
}

/* ================= SERVICES ================= */
.am-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem
}

@media (max-width:992px) {
  .am-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:640px) {
  .am-services-grid {
    grid-template-columns: minmax(0, 1fr)
  }
}

.am-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 22px;
  background: var(--am-white);
  border: 1px solid rgba(0, 0, 0, .04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .06);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease
}

.am-section--dark .am-card {
  background: rgba(10, 12, 18, .96);
  border-color: rgba(255, 255, 255, .05);
  box-shadow: var(--am-shadow-soft)
}

.am-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45, 193, 203, .5), rgba(113, 192, 111, .2), rgba(209, 214, 50, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .16s ease-out
}

.am-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  filter: saturate(1.04)
}

.am-card:hover::before {
  opacity: 1
}

.am-card h3 {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-family: "Poppins"
}

.am-card p {
  margin: 0 0 1rem;
  font-size: .9rem;
  color: var(--am-text-muted)
}

.am-section--dark .am-card p {
  color: rgba(232, 228, 220, .75)
}

.am-pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(5, 6, 8, .03);
  color: var(--am-text-main)
}

.am-section--dark .am-pill {
  background: rgba(5, 6, 8, .9);
  color: rgba(232, 228, 220, .85)
}

/* ================= WORK ================= */
.am-work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem
}

@media (max-width:900px) {
  .am-work-layout {
    grid-template-columns: minmax(0, 1fr)
  }
}

.am-bold-line {
  margin-top: 1rem;
  font-weight: 600
}

.am-work-cards {
  display: grid;
  gap: 1.4rem
}

.am-work-card {
  padding: 1.4rem 1.3rem;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(45, 193, 203, .08), transparent 60%), rgba(10, 12, 18, .96);
  border: 1px solid rgba(232, 228, 220, .1);
  box-shadow: var(--am-shadow-soft);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease
}

.am-work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35)
}

.am-work-card h3 {
  margin: 0 0 .5rem;
  font-size: 1rem
}

.am-work-card p {
  margin: 0 0 .6rem;
  font-size: .9rem;
  color: rgba(232, 228, 220, .78)
}

.am-work-card span {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, .6)
}

.am-industries h4 {
  margin: 0 0 .6rem;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(232, 228, 220, .7)
}

.am-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.am-pill-row span {
  font-size: .8rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(10, 12, 18, .9);
  border: 1px solid rgba(232, 228, 220, .15)
}

/* ================= CONNECT ================= */
.am-connect-grid {
  align-items: flex-start
}

.am-contact-card {
  background: var(--am-white)
}

.am-contact-card h3 {
  margin-top: 0;
  margin-bottom: .9rem
}

.am-form {
  display: flex;
  flex-direction: column;
  gap: .9rem
}

.am-form-row {
  display: flex;
  flex-direction: column;
  gap: .3rem
}

.am-form-row label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--am-text-muted)
}

.am-form-row input,
.am-form-row textarea {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  padding: .7rem .9rem;
  font: inherit;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease
}

.am-form-row input:focus,
.am-form-row textarea:focus {
  outline: none;
  border-color: rgba(45, 193, 203, .6);
  box-shadow: 0 0 0 3px rgba(45, 193, 203, .15)
}

.am-btn-full {
  width: 100%;
  margin-top: .6rem
}

.am-contact-lines p {
  margin: .2rem 0
}

.am-contact-lines a {
  color: inherit
}

/* ================= FOOTER ================= */
.am-footer {
  padding: 1.8rem 0 2.2rem;
  background: var(--am-bg-deep);
  color: rgba(232, 228, 220, .8)
}

.am-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem
}

.am-footer-tagline {
  letter-spacing: .18em;
  text-transform: uppercase
}

/* ================= SCROLL REVEAL ================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(.98);
  filter: blur(4px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
}

.is-visible {
  opacity: 1;
  transform: none;
  filter: none
}

/* Give children in groups a gentle stagger when visible */
[data-reveal-group]>[data-reveal] {
  --d: 0ms
}

[data-reveal-group]>[data-reveal]:nth-child(1) {
  --d: 0ms
}

[data-reveal-group]>[data-reveal]:nth-child(2) {
  --d: 80ms
}

[data-reveal-group]>[data-reveal]:nth-child(3) {
  --d: 160ms
}

[data-reveal-group]>[data-reveal]:nth-child(4) {
  --d: 0ms
}

[data-reveal-group]>[data-reveal]:nth-child(5) {
  --d: 80ms
}

[data-reveal-group]>[data-reveal]:nth-child(6) {
  --d: 160ms
}

[data-reveal-group]>[data-reveal]:nth-child(7) {
  --d: 0ms
}

[data-reveal-group]>[data-reveal]:nth-child(8) {
  --d: 80ms
}

[data-reveal-group]>[data-reveal]:nth-child(9) {
  --d: 160ms
}