/* MaximyzMedia - Modern Design with Payne Gray / Silver / Mahogany Palette */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Palette (Payne Gray / Silver / Mahogany) */
  --color-payne-gray: #626675;
  --color-silver: #D1D3CE;
  --color-mahogany: #BB4500;

  /* Core Theme */
  --primary-color: var(--color-payne-gray);
  --accent-color: radial-gradient(65.28% 65.28% at 50% 100%,
      rgba(255, 165, 0, 0.8) 0%,
      rgba(255, 165, 0, 0) 100%),
    linear-gradient(0deg, #f97316, #f97316);

  /* Backgrounds */
  --bg-dark: #000000;
  --bg-elevated: #221818;
  --bg-card: #1F2029;
  --text-primary: #fff;
  --text-secondary: #B8BAC4;
  --text-muted: #8B8E99;
  --text-on-accent: #ffffff;

  /* Borders */
  --border-color: rgba(209, 211, 206, 0.18);
  --border-subtle: rgba(209, 211, 206, 0.12);
  --border-strong: rgba(209, 211, 206, 0.35);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.7);

  /* Glass Effect */
  --glass-bg: rgba(17, 18, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* database svg */
  --ag-db-width: 9rem;
  --ag-db-height: 12rem;
  --ag-db-ring-height: 3.2rem;
  --ag-db-depth: 3rem;
  --ag-db-folder-width: 9.5rem;
  --ag-db-folder-height: 2.9rem;
  --ag-db-folder-thickness: 0.6rem;
  --ag-db-radius: 3rem;
  --ag-db-duration: 600ms;
  --ag-db-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

html {
  scroll-behavior: auto;
  /* Create a snapping rule on the html element for services */
  scroll-snap-type: y mandatory;
  /* Create a timeline scope, so we can target any element on the page */
  timeline-scope: --service-section;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-silver);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  font-size: 1rem;
}

/* === Relay-style shell & hero === */

.relay-shell {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 1.5rem 1.25rem 0;
}
.relay-logo-header{
  text-align: center;
}
.relay-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.relay-logo{
  display: flex;
}
.relay-logo-header{
  display: flex;
  align-items: center;
  transform: translateX(-7px);

}

.relay-logo-header span {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateX(-15px);
}

.relay-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.9rem;
  color: #525252;
}

.relay-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.relay-menu a:hover {
  background: var(--accent-color);
  background-clip: text;
  -webkit-background-clip: text;
  /* Safari/Chrome */
  color: transparent;
  /* Firefox + fallback */
  -webkit-text-fill-color: transparent;
}


.relay-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.relay-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.relay-menu-toggle:hover {
  background: #171717;
}

/* Hero container */
.relay-hero {
  position: relative;
  border-top: transparent;
  width: 100%;
  max-width: 1120px;
  margin: 3rem auto 3rem;
  padding: 0 1.25rem;
  color: #ffffff;
  /* background-color: #000000; */
}

/* Headline */
.relay-heading {
  max-width: 48rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.04em;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.relay-chip-image {
  display: inline-block;
  vertical-align: middle;
  height: 2.5rem;
  width: 3.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin: 0 0.5rem;
  box-shadow:
    0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.12);
}

.relay-subcopy {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  color: #ffffff;
}

/* Badges */
.relay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
}

/* CTAs row */
.relay-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .relay-ctas {
    flex-direction: row;
  }
}

/* Fancy button (points) */
.relay-fancy-button {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
  background:
    radial-gradient(65.28% 65.28% at 50% 100%,
      rgba(255, 165, 0, 0.8) 0%,
      rgba(255, 165, 0, 0) 100%),
    linear-gradient(0deg, #f97316, #f97316);
  border-radius: 9999px;
  border: none;
  outline: none;
  padding: 12px 24px;
  min-height: 48px;
  min-width: 102px;
}

.relay-fancy-button::before,
.relay-fancy-button::after {
  content: "";
  position: absolute;
  transition: all 0.5s ease-in-out;
  z-index: 0;
}

.relay-fancy-button::before {
  inset: 1px;
  background: linear-gradient(177.95deg,
      rgba(255, 255, 255, 0.19) 0%,
      rgba(255, 255, 255, 0) 100%);
  border-radius: 9999px;
}

.relay-fancy-button::after {
  inset: 2px;
  background:
    radial-gradient(65.28% 65.28% at 50% 100%,
      rgba(255, 165, 0, 0.8) 0%,
      rgba(255, 165, 0, 0) 100%),
    linear-gradient(0deg, #f97316, #f97316);
  border-radius: 9999px;
}

.relay-fancy-button:active {
  transform: scale(0.95);
}

.points_wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.points_wrapper .point {
  bottom: -10px;
  position: absolute;
  animation: floating-points infinite ease-in-out;
  pointer-events: none;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 9999px;
}

@keyframes floating-points {
  0% {
    transform: translateY(0);
  }

  85% {
    opacity: 0;
  }

  100% {
    transform: translateY(-55px);
    opacity: 0;
  }
}

/* Positions of points – keep same as snippet */
.points_wrapper .point:nth-child(1) {
  left: 10%;
  opacity: 1;
  animation-duration: 2.35s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(2) {
  left: 30%;
  opacity: 0.7;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}

.points_wrapper .point:nth-child(3) {
  left: 25%;
  opacity: 0.8;
  animation-duration: 2.2s;
  animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(4) {
  left: 44%;
  opacity: 0.6;
  animation-duration: 2.05s;
}

.points_wrapper .point:nth-child(5) {
  left: 50%;
  opacity: 1;
  animation-duration: 1.9s;
}

.points_wrapper .point:nth-child(6) {
  left: 75%;
  opacity: 0.5;
  animation-duration: 1.5s;
  animation-delay: 1.5s;
}

.points_wrapper .point:nth-child(7) {
  left: 88%;
  opacity: 0.9;
  animation-duration: 2.2s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(8) {
  left: 58%;
  opacity: 0.8;
  animation-duration: 2.25s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(9) {
  left: 98%;
  opacity: 0.6;
  animation-duration: 2.6s;
  animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(10) {
  left: 65%;
  opacity: 1;
  animation-duration: 2.5s;
  animation-delay: 0.2s;
}

.relay-fancy-button .inner {
  z-index: 2;
  gap: 6px;
  position: relative;
  width: 100%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease-in-out;
}

.relay-fancy-button .inner svg.icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  stroke: white;
  fill: none;
}

.relay-fancy-button:hover svg.icon {
  transform: translateX(2px);
}

.relay-fancy-button:hover svg.icon path {
  animation: dash 0.8s linear forwards;
}

@keyframes dash {
  0% {
    stroke-dasharray: 0, 20;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 10, 10;
    stroke-dashoffset: -5;
  }

  100% {
    stroke-dasharray: 20, 0;
    stroke-dashoffset: -10;
  }
}

/* Secondary CTA */
.relay-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  box-shadow:
    0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, color 0.3s ease;
}

.relay-secondary-cta:hover {
  background: var(--accent-color);
  background-clip: text;
  -webkit-background-clip: text;
  /* Safari/Chrome */
  color: transparent;
  /* Firefox + fallback */
  -webkit-text-fill-color: transparent;

}

/* Mobile behaviour */
@media (max-width: 768px) {
  .relay-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(54, 54, 54, 0.9);
    backdrop-filter: blur(16px);
  }

  .relay-menu.active {
    display: flex;
  }

  .relay-menu-toggle {
    display: inline-flex;
  }

  .relay-cta-primary {
    display: none;
  }

  .relay-hero {
    margin-top: 4.5rem;
  }
  .contact-us{
    display: none;
  }
}

/* Sections */
section {
  padding: 4rem 1rem;
  /* border-top: 1px solid var(--border-color); */
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(98, 102, 117, 0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Services Section - Spread Fx Gallery */
.services-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  flex-flow: column nowrap;
  padding: 0rem 2rem;
  overflow-x: hidden;
  background: var(--bg-dark);
  position: relative;
}

.service-section {
  /* Override general section styles */
  padding: 0;
  overflow: visible;

  /* Creating a snapping rule on the service section element */
  scroll-snap-align: start;
  scroll-snap-stop: always;

  /* Attach the timeline to the section element */
  view-timeline: --service-section;

  /* Set each section to the full dynamic height of the viewport */
  height: 100dvh;
  position: relative;
}

.service-section::before {
  display: none; /* Disable the section::before pseudo-element */
}

.service-section .content {
  /* Fix the content, so it doesn't scroll with the section */
  overflow: hidden;
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark, #000);
  z-index: 2; /* Above regular content but below navbar/modals */

  /* Animate the content based on the section scrolling */
  --contrast: 4;
  --blur: 0.5rem;

  animation: service-blink ease-in-out both;
  animation-timeline: --service-section;
}

.service-section .service-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.service-section .service-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.service-section .text {
  text-align: center;
  color: var(--text-primary);
}

.service-section .service-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.service-section .text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes service-blink {
  0%,
  100% {
    filter: blur(var(--blur)) contrast(var(--contrast));
    opacity: 0;
    visibility: hidden;
  }

  50% {
    filter: blur(0) contrast(1);
    opacity: 1;
    visibility: visible;
  }
}

/* Alternative animation: horizontal-scroll */
.services-section:has([data-animation="horizontal-scroll"]) .content {
  animation: service-horizontal-scroll ease-in-out both;
  animation-timeline: --service-section;
}

@keyframes service-horizontal-scroll {
  0% {
    transform: translate3d(100%, 0%, 0);
  }

  50% {
    transform: none;
  }

  100% {
    transform: translate3d(-100%, 0%, 0);
  }
}

/* Alternative animation: backwards-scroll */
.services-section:has([data-animation="backwards-scroll"]) .content {
  animation: service-backwards-scroll ease-in-out both;
  animation-timeline: --service-section;
}

@keyframes service-backwards-scroll {
  0% {
    transform: translate3d(0%, -100%, 0);
  }

  50% {
    transform: none;
  }

  100% {
    transform: translate3d(0%, 100%, 0);
  }
}

/* Alternative animation: zoom-scroll */
.services-section:has([data-animation="zoom-scroll"]) .content {
  animation: service-zoom-scroll ease-in-out both;
  animation-timeline: --service-section;
}

@keyframes service-zoom-scroll {
  0% {
    filter: blur(5rem);
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
  }

  50% {
    filter: blur(0);
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  100% {
    filter: blur(3rem);
    transform: scale(1.5);
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 768px) {
  .service-section .service-inner {
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .service-section .service-image {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-section .content {
    animation: none;
    opacity: 1;
    visibility: visible;
    filter: none;
  }
}

/* Services Spread Fx Animation */
.services-title {
  /* font: 1.3em/1 monospace; */
  /* font-variant: small-caps; */
  /* letter-spacing: 0.5em; */
  margin: 0.5rem 0 2rem;
  color: var(--text-primary);
  text-align: center;
}

.services-gallery {
  perspective: 1000px;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.service-circle {
  position: relative;
  width: 400px;
  height: 400px;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: autoRun3d 20s linear infinite;
  will-change: transform;
}

.service-circle:hover {
  animation-play-state: paused !important;
}

@keyframes autoRun3d {
  from {
    transform: perspective(1000px) rotateY(-360deg);
  }
  to {
    transform: perspective(1000px) rotateY(0deg);
  }
}

@keyframes animateBrightness {
  10% {
    filter: brightness(1) grayscale(0.9);
  }
  50% {
    filter: brightness(0.1) grayscale(0.9);
  }
  90% {
    filter: brightness(1) grayscale(0.9);
  }
}

.service-item {
  position: absolute;
  width: 200px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  animation: animateBrightness 20s linear infinite;
  transition: transform 0.3s, filter 1s;
  will-change: transform, filter;
  backface-visibility: hidden;
  cursor: pointer;
}

.service-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  filter: grayscale(0.9);
  transition: filter 0.3s, transform 0.3s;
}

.service-item:hover .service-image {
  filter: grayscale(0) brightness(1);
  transform: scale(1.1);
}

/* Position each service item in a circle (6 items = 60deg intervals) */
.service-item:nth-child(1) {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(250px);
  animation-delay: -0s;
}

.service-item:nth-child(2) {
  transform: translate(-50%, -50%) rotateY(60deg) translateZ(250px);
  animation-delay: -3.33s;
}

.service-item:nth-child(3) {
  transform: translate(-50%, -50%) rotateY(120deg) translateZ(250px);
  animation-delay: -6.66s;
}

.service-item:nth-child(4) {
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(250px);
  animation-delay: -10s;
}

.service-item:nth-child(5) {
  transform: translate(-50%, -50%) rotateY(240deg) translateZ(250px);
  animation-delay: -13.33s;
}

.service-item:nth-child(6) {
  transform: translate(-50%, -50%) rotateY(300deg) translateZ(250px);
  animation-delay: -16.66s;
}

/* Set background image source for each service */
.service-item[data-service="1"] .service-image {
  background-image: url(https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&q=80);
}

.service-item[data-service="2"] .service-image {
  background-image: url(https://images.unsplash.com/photo-1561070791-2526d30994b5?w=1424&q=80);
}

.service-item[data-service="3"] .service-image {
  background-image: url(https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1618&q=80);
}

.service-item[data-service="4"] .service-image {
  background-image: url(https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1200&q=80);
}

.service-item[data-service="5"] .service-image {
  background-image: url(https://images.unsplash.com/photo-1552664730-d307ca884978?w=1042&q=80);
}

.service-item[data-service="6"] .service-image {
  background-image: url(https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1000&q=80);
}

/* Service content overlay */
.service-cube-content {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  width: 200px;
}

.service-item:hover .service-cube-content {
  opacity: 1;
}

.service-cube-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-cube-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-circle {
    width: 300px;
    height: 300px;
  }

  .service-item {
    width: 150px;
    height: 112px;
  }

  .service-item:nth-child(1) {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(180px);
  }

  .service-item:nth-child(2) {
    transform: translate(-50%, -50%) rotateY(60deg) translateZ(180px);
  }

  .service-item:nth-child(3) {
    transform: translate(-50%, -50%) rotateY(120deg) translateZ(180px);
  }

  .service-item:nth-child(4) {
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(180px);
  }

  .service-item:nth-child(5) {
    transform: translate(-50%, -50%) rotateY(240deg) translateZ(180px);
  }

  .service-item:nth-child(6) {
    transform: translate(-50%, -50%) rotateY(300deg) translateZ(180px);
  }

  .service-cube-content {
    width: 150px;
    padding: 0.75rem;
    bottom: -70px;
  }

  .service-cube-content h3 {
    font-size: 0.875rem;
  }

  .service-cube-content p {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin: 1em 0 2em;
  }

  .service-circle {
    width: 250px;
    height: 250px;
  }

  .service-item {
    width: 120px;
    height: 90px;
  }

  .service-item:nth-child(1) {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(150px);
  }

  .service-item:nth-child(2) {
    transform: translate(-50%, -50%) rotateY(60deg) translateZ(150px);
  }

  .service-item:nth-child(3) {
    transform: translate(-50%, -50%) rotateY(120deg) translateZ(150px);
  }

  .service-item:nth-child(4) {
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(150px);
  }

  .service-item:nth-child(5) {
    transform: translate(-50%, -50%) rotateY(240deg) translateZ(150px);
  }

  .service-item:nth-child(6) {
    transform: translate(-50%, -50%) rotateY(300deg) translateZ(150px);
  }

  .service-cube-content {
    width: 120px;
    padding: 0.5rem;
    bottom: -60px;
  }
}

/* Tech Stack */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(187, 69, 0, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tech-item:hover::before {
  opacity: 1;
}

.tech-item:hover {
  border-color: var(--accent-color);
  background: var(--bg-elevated);
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.tech-item.animate-in {
  animation: slideInUp 0.6s ease-out;
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  display: block;
}

.tech-item:hover .tech-icon {
  transform: scale(1.2) rotate(5deg);
}

.tech-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

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

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 6rem 1rem 0rem;
  position: relative;
  overflow: hidden;
  display: flex !important;
  /* min-height: 80vh; */
  flex-direction: column !important;

}
footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
  opacity: 0.4;
  z-index: 1;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.footer-column.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links li {
  display: block;
  margin: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-column.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-email,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.footer-email-link {
  color: var(--color-silver);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-all;
}

.footer-email-link:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(187, 69, 0, 0.3);
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: transparent;
}

.social-icons svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.social-icons a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(187, 69, 0, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(187, 69, 0, 0.25);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin: 0;
}

/* Huge footer wordmark partially hidden at bottom */
.footer-wordmark {
  position: relative;
  bottom: -5.2rem; /* partially hidden */
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(3rem,12vw, 10rem); /* responsive: mobile → desktop */
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: rgb(255, 255, 255);
  pointer-events: none;
  user-select: none;
  /* z-index: 0; */
}

/* Mobile Responsive Footer */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .footer-wordmark{
    bottom: -4rem;
  }
}

@media (max-width: 768px) {
  .footer-wordmark{
    bottom: -3rem;
  }
  .footer {
    padding: 4rem 1rem 0rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
  }

  .footer-column {
    align-items: flex-start;
  }
/* 
  .footer-logo-svg {
    /* max-width: 400px;
    margin: 2rem auto 0.5rem; */
/* } */

  .footer-links {
    gap: 0.75rem;
  }

  .footer-links a {
    font-size: 0.95rem;
  }

  .social-icons {
    gap: 1rem;
  }

  .social-icons a {
    width: 36px;
    height: 36px;
  }

  .social-icons svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .footer-wordmark{
    bottom: -1.7rem;
  }
  .footer {
    padding: 3rem 1rem 0rem;
  }

  .footer-container {
    gap: 2rem;
    margin-bottom: 1rem;
  }

  .footer-title,
  .footer-label {
    font-size: 0.75rem;
  }

  .footer-links a,
  .footer-email-link {
    font-size: 0.9rem;
  }

  .social-icons {
    gap: 0.75rem;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
  }

  .social-icons svg {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding: 1.5rem 1rem;
  }

  .footer-logo-svg {
    /* max-width: 280px;
    margin: 1rem auto 0.5rem; */
  }
}

/* Mobile Responsive - General */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .services-grid,
  .why-us-grid,
  .tech-stack-grid {
    grid-template-columns: 1fr;
  }

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

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  .process-step {
    flex-direction: row;
    gap: 1rem;
  }

  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

/* From Uiverse.io by andrew-demchenk0 */
.relay-badges {
  display: flex;
  flex-direction: row;
}

.radio-wrapper {
  position: relative;
  height: 38px;
  width: 84px;
  margin: 3px;
}

.radio-wrapper .input {
  position: absolute;
  height: 100%;
  width: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
}

.btn {
  --primary: #ff184c;
  --shadow-primary: #fded00;
  --color: white;
  --font-size: 9px;
  --shadow-primary-hue: 180;
  --shadow-secondary-hue: 60;
  --shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
  --clip: polygon(11% 0, 95% 0, 100% 25%, 90% 90%, 95% 90%, 85% 90%, 85% 100%, 7% 100%, 0 80%);
  --border: 5px;
  --shimmy-distance: 5;
  --clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  --clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
  --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
  --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
  color: var(--color);
  text-transform: uppercase;
  font-size: var(--font-size);
  letter-spacing: 3px;
  position: relative;
  font-weight: 900;
  width: 100%;
  height: 100%;
  line-height: 38px;
  text-align: center;
  transition: background 0.2s, 0.3s;
}

.input:checked+.btn {
  --primary: #8B00FF;
  --shadow-primary: #00e572;
}

.input:hover+.btn {
  --primary: #cc133c;
  --font-size: 11px;
}

.btn:after,
.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), 0);
}

.btn:after {
  background: var(--primary);
}

.btn__glitch {
  position: absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
  clip-path: var(--clip);
  animation: glitch 2s infinite;
  display: none;
}

.input:hover+.btn .btn__glitch {
  display: block;
}

.input:checked+.btn .btn__glitch {
  display: block;
  animation: glitch 5s infinite;
}

.btn__glitch:before {
  content: '';
  position: absolute;
  top: calc(var(--border) * 1);
  right: calc(var(--border) * 1);
  bottom: calc(var(--border) * 1);
  left: calc(var(--border) * 1);
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch {
  0% {
    clip-path: var(--clip-one);
  }

  2%,
  8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }

  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }

  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }

  14%,
  21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }

  35%,
  45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1%));
  }

  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1%));
  }

  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }

  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }

  31%,
  61%,
  100% {
    clip-path: var(--clip-four);
  }
}

.number {
  background: var(--shadow-primary);
  color: #323232;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 1px;
  position: absolute;
  width: 15px;
  height: 6px;
  top: 0;
  left: 81%;
  line-height: 6.2px;
}

/* ========================================
   SERVICES SECTION - ANTIGRAVITY REDESIGN
   ======================================== */

.ag-services {
  position: relative;
  padding: 1rem 0 6rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.ag-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.ag-services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.ag-services-header {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ag-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(249, 115, 22, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.2);
  margin-bottom: 1.5rem;
}

.ag-services-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Services Grid */
.ag-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  position: relative;
}

/* Service Card */
.ag-service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.ag-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ag-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 
    0 0 0 1px rgba(249, 115, 22, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(249, 115, 22, 0.15);
}

.ag-service-card:hover::before {
  opacity: 1;
}

/* Hover Gradient Effect */
.ag-service-hover-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
}

.ag-service-card:hover .ag-service-hover-gradient {
  opacity: 1;
}

/* Service Icon */
.ag-service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  color: #f97316;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-service-card:hover .ag-service-icon {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.5);
  transform: scale(1.05) rotate(2deg);
}

.ag-service-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

/* Service Content */
.ag-service-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.ag-service-card:hover .ag-service-title {
  color: #f97316;
}

.ag-service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Scroll Reveal Animation */
.ag-service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation when revealed */
.ag-service-card.revealed:nth-child(1) { transition-delay: 0.1s; }
.ag-service-card.revealed:nth-child(2) { transition-delay: 0.2s; }
.ag-service-card.revealed:nth-child(3) { transition-delay: 0.3s; }
.ag-service-card.revealed:nth-child(4) { transition-delay: 0.4s; }
.ag-service-card.revealed:nth-child(5) { transition-delay: 0.5s; }
.ag-service-card.revealed:nth-child(6) { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  .ag-services {
    padding: 5rem 0 4rem;
  }

  .ag-services-header {
    margin-bottom: 3rem;
  }

  .ag-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ag-service-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .ag-services-container {
    padding: 0 1rem;
  }
}
/* ========================================
   WHY US SECTION - ANTIGRAVITY REDESIGN
   ======================================== */

.ag-why-us {
  position: relative;
  padding: 1rem 0 6rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0f 100%);
  overflow: hidden;
}

.ag-why-us::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(98, 102, 117, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-rotate 15s ease-in-out infinite;
}

@keyframes pulse-rotate {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); opacity: 0.6; }
}

/* Parallax Background Elements */
.ag-why-parallax-bg {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.ag-why-parallax-bg-2 {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(98, 102, 117, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.ag-why-us-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.ag-why-us-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-why-us-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.ag-section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ag-section-subheading {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
}

/* Why Grid */
.ag-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  position: relative;
}

/* Why Card */
.ag-why-card {
  position: relative;
  background: rgba(31, 32, 41, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.ag-why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.ag-why-card:hover {
  transform: translateY(-8px) scale(1);
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(31, 32, 41, 0.8);
  box-shadow: 
    0 0 0 1px rgba(249, 115, 22, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(249, 115, 22, 0.2);
  
}

.ag-why-card:hover::before {
  opacity: 1;
}

/* Image Wrapper with Zoom Effect */
.ag-why-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ag-why-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s ease;
  filter: grayscale(0.3) brightness(0.85);
  will-change: transform;
}

.ag-why-card:hover .ag-why-image {
  transform: scale(1.1);
  filter: grayscale(0) brightness(1);
}

/* Image Overlay with Gradient */
.ag-why-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0.7;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ag-why-card:hover .ag-why-image-overlay {
  opacity: 0.9;
  background: linear-gradient(
    180deg, 
    rgba(249, 115, 22, 0.1) 0%, 
    rgba(249, 115, 22, 0.2) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* Glow Effect */
.ag-why-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(249, 115, 22, 0.2) 0%, 
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.ag-why-card:hover .ag-why-glow {
  opacity: 0;
}

/* Number Badge */
.ag-why-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.ag-why-card:hover .ag-why-number {
  color: rgba(249, 115, 22, 0.9);
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);

  /* new background styling */
  background: #0000007f;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* Content */
.ag-why-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.ag-why-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ag-why-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, transparent);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-why-card:hover .ag-why-title {
  color: #f97316;
  transform: translateX(4px);
}

.ag-why-card:hover .ag-why-title::after {
  width: 60px;
}

.ag-why-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  transition: color 0.3s ease;
}

.ag-why-card:hover .ag-why-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Scroll Reveal Animation - Different effects per card */
.ag-why-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered reveal with different entry animations */
.ag-why-card[data-index="1"].revealed { 
  transition-delay: 0.1s; 
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ag-why-card[data-index="2"].revealed { 
  transition-delay: 0.2s;
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ag-why-card[data-index="3"].revealed { 
  transition-delay: 0.3s;
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ag-why-card[data-index="4"].revealed { 
  transition-delay: 0.4s;
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ag-why-card[data-index="5"].revealed { 
  transition-delay: 0.5s;
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ag-why-card[data-index="6"].revealed { 
  transition-delay: 0.6s;
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ag-why-us {
    padding: 5rem 0 4rem;
  }

  .ag-why-us-header {
    margin-bottom: 3rem;
  }

  .ag-why-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ag-why-card {
    padding: 0;
  }

  .ag-why-image-wrapper {
    height: 180px;
  }

  .ag-why-content {
    padding: 1.75rem 1.5rem;
  }

  .ag-why-number {
    font-size: 2rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  /* All cards slide in from bottom on mobile */
  .ag-why-card[data-index].revealed {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 480px) {
  .ag-why-us-container {
    padding: 0 1rem;
  }

  .ag-why-image-wrapper {
    height: 160px;
  }
}

/* ========================================
   PROJECTS SECTION - ANTIGRAVITY REDESIGN
   ======================================== */


.ag-projects {
  position: relative;
  padding: 1rem 0 6rem;
  background: var(--bg-dark);
  overflow: hidden;
}

/* Animated Grid Background */
.ag-projects-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  animation: grid-flow 20s linear infinite;
  pointer-events: none;
}
.ag-project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;       /* tuned for 1920×1080 screenshots */
  overflow: hidden;
}
@keyframes grid-flow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.ag-projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.ag-projects-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-projects-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.ag-projects-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Project Card Base */
.ag-project-card {
  position: relative;
  display: flex;
  flex-direction: column;        /* image on top, content below */
  background: rgba(31, 32, 41, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  will-change: transform;
  min-height: 360px;             /* more vertical space on 1920x1080 */
}


.ag-project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.ag-project-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(31, 32, 41, 0.9);
  box-shadow: 
    0 0 0 1px rgba(249, 115, 22, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(249, 115, 22, 0.15);
}

.ag-project-card:hover::before {
  opacity: 1;
}

/* Bento Grid Sizes */
/* .ag-project-large {
  grid-column: span 6;
  grid-row: span 2;
  grid-row: 1/3;
  min-height: 200px;
} */

/* .ag-project-medium {
  grid-column: span 6;
  min-height: 380px;
}
.project-2{grid-row: 1/2;}
.project-3{grid-row: 2/3;}

.ag-project-small {
  grid-column: span 4;
  min-height: 320px;
} */
.ag-project-large,
.ag-project-medium,
.ag-project-small {
  grid-column: auto;
  grid-row: auto;
}

/* Image Wrapper with Reveal Effect */
.ag-project-image-wrapper {
  position: relative;
  width: 100%;
  height: 55%;   /* top ~55% image, bottom ~45% content */
  overflow: hidden;
}



.ag-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* fill while keeping aspect */
  object-position: center top;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s ease;
  filter: grayscale(0.4) brightness(0.8);
}



.ag-project-card:hover .ag-project-image {
  transform: scale(1.08);
  filter: grayscale(0) brightness(1);
}
/* Projects: action button */
.ag-project-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}
.ag-project-header-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;      /* space between button and tag */
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 4;
}

.ag-project-btn {
  position: relative;
  z-index: 4;
}

.ag-project-tag {
  position: relative;
  z-index: 4;
}


.ag-project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-accent);
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.5);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-project-btn:hover {
  background: rgba(249, 115, 22, 0.28);
  border-color: rgba(249, 115, 22, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* Gradient Overlay */
.ag-project-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.95) 100%
  );
  transition: background 0.5s ease;
}

.ag-project-card:hover .ag-project-gradient {
  background: linear-gradient(
    180deg,
    rgba(249, 115, 22, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.98) 100%
  );
}

/* Content */
.ag-project-content {
  position: relative;
  padding: 1.75rem 1.75rem 1.25rem;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.2),
    transparent
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.ag-project-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: -1;
}


.ag-project-card:hover .ag-project-content {
  transform: translateY(-8px);
}

/* Tag */
.ag-project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.3);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* Title */
.ag-project-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ag-project-large .ag-project-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.ag-project-card:hover .ag-project-title {
  color: #f97316;
}

/* Description */
.ag-project-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
 
}

.ag-project-card:hover .ag-project-description {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
}

/* Tech Pills */
.ag-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ag-tech-pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.ag-project-card:hover .ag-tech-pill {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

/* Stats (only for large card) */
.ag-project-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ag-stat {
  text-align: left;
}

.ag-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 0.25rem;
}

.ag-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Magnetic Hover Effect */
.ag-magnetic-area {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Scroll Reveal */
.ag-project-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ag-project-card.revealed:nth-child(1) { transition-delay: 0.1s; }
.ag-project-card.revealed:nth-child(2) { transition-delay: 0.2s; }
.ag-project-card.revealed:nth-child(3) { transition-delay: 0.3s; }
.ag-project-card.revealed:nth-child(4) { transition-delay: 0.4s; }
.ag-project-card.revealed:nth-child(5) { transition-delay: 0.5s; }
.ag-project-card.revealed:nth-child(6) { transition-delay: 0.6s; }

/* View All CTA */
.ag-projects-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-projects-cta.revealed {
  opacity: 1;
  transform: translateY(0);
}

.ag-view-all-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(249, 115, 22, 0.1);
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.ag-view-all-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.ag-view-all-btn:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.ag-view-all-btn:hover::before {
  transform: translateX(100%);
}

.ag-btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.ag-view-all-btn:hover .ag-btn-icon {
  transform: translateX(4px);
}

@media (max-width: 1024px) {

  .ag-project-card {
    min-height: 320px;
  }

  .ag-project-image-wrapper {
    aspect-ratio: 16 / 8;    /* slightly shorter to give more room for text */
  }
}
@media (max-width: 768px) {
  .ag-projects-container {
    padding: 0 1rem;
  }

  .ag-projects-bento {
    grid-template-columns: 1fr;  /* single column */
    gap: 1.25rem;
  }

  .ag-project-card {
    min-height: 300px;
  }

  .ag-project-image-wrapper {
    aspect-ratio: 16 / 9;       /* classic ratio on phones */
  }

  .ag-project-content {
    padding: 1.4rem 1.4rem 1rem;
  }
}
/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .ag-projects-container {
    padding: 0 1rem;
  }

  .ag-projects-bento {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ag-project-card {
    min-height: 300px;
    border-radius: 18px;
  }

  .ag-project-image-wrapper {
    aspect-ratio: 16 / 10;                /* slightly taller image on phones */
  }

  .ag-project-content {
    padding: 1.25rem 1.25rem 0.9rem;
  }

  .ag-project-title {
    font-size: 1.05rem;
  }

  .ag-project-description {
    font-size: 0.9rem;
  }

  .ag-project-header-row {
    gap: 0.5rem;
    flex-wrap: wrap;                      /* button + tag wrap if needed */
  }
}
/* Extra-small devices (≤ 480px) */
@media (max-width: 480px) {
  .ag-project-image{
    object-fit: contain;
  }
  .ag-projects-container {
    padding: 0 0.75rem;
  }

  .ag-project-card {
    min-height: 150px;
    border-radius: 16px;
  }

  .ag-project-image-wrapper {
    aspect-ratio: 16 / 11;         /* shorter image so content has room */
  }

  .ag-project-content {
    padding: 1rem 1rem 0.75rem;
  }

  .ag-project-header-row {
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .ag-project-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.75rem;
  }

  .ag-project-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .ag-project-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .ag-project-description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
  }
}

/* ========================================
   PROCESS SECTION - ANIMATED SVG BUILDER
   ======================================== */

.ag-process {
  position: relative;
  padding: 1rem 0 6rem;
  background: linear-gradient(180deg, #0a0a0f 0%, var(--bg-dark) 100%);
  overflow: visible;
}

.ag-process-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.ag-process-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-process-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Layout */
.ag-process-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Steps */
.ag-process-steps {
  position: relative;
}

.ag-process-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(249, 115, 22, 0.5) 0%,
    rgba(249, 115, 22, 0.2) 50%,
    rgba(249, 115, 22, 0.5) 100%
  );
}

.ag-process-step {
  position: relative;
  padding-left: 80px;
  padding-bottom: 3.5rem;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-process-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.ag-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.ag-step-indicator {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--bg-dark);
  border: 2px solid rgba(249, 115, 22, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.ag-step-content {
  background: rgba(31, 32, 41, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.ag-process-step.active .ag-step-number {
  background: #f97316;
  color: #fff;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
  transform: scale(1.1);
}

.ag-process-step.active .ag-step-indicator {
  background: #f97316;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
}

.ag-process-step.active .ag-step-content {
  background: rgba(31, 32, 41, 0.8);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ag-step-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.ag-step-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.ag-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ag-step-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.ag-process-step.active .ag-step-tag {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

/* Right visual */
.ag-process-visual {
  position: relative;
  height: 100%;

}

.ag-visual-sticky {
  position: sticky;
  top: 50px ;
  background: rgba(31, 32, 41, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  margin-bottom: 5vh;
}

.ag-website-builder {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.ag-website-builder g {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-website-builder g.visible {
  opacity: 1;
  transform: translateY(0);
}

.ag-build-progress {
  margin-top: 1.5rem;
}

.ag-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.ag-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ff8c42);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-progress-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.ag-progress-text span {
  color: #f97316;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .ag-process-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ag-visual-sticky {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .ag-process {
    padding: 5rem 0 4rem;
  }

  .ag-process-header {
    margin-bottom: 3rem;
  }

  .ag-process-step {
    padding-left: 60px;
    padding-bottom: 3rem;
  }

  .ag-step-content {
    padding: 1.5rem;
  }

  .ag-visual-sticky {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ag-process-container {
    padding: 0 1rem;
  }
}
/* ================================
   TECH STACK · LIVING DATABASE
   ================================ */

.ag-techstack {
  position: relative;
  padding: 0.5rem 0 6rem;
  background: var(--bg-dark);
}

.ag-techstack__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header reveal */
.ag-techstack__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-techstack__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ag-techstack__title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.ag-techstack__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Layout: sticky visual + scrolling cards */
.ag-techstack__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3.5rem;
  align-items: flex-start;
}

.ag-techstack__visual {
  position: relative;
}

.ag-techstack__visual-inner {
  position: relative;
  top: 120px;
  display: flex;
  justify-content: center;
  transform: scale(1.15);
  transform-origin: center;
}

/* SVG base */
.ag-techstack__svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Database breathing */
.db__body,
.db__top,
.db__bottom {
  transform-origin: 100px 170px;
  animation: db-pulse 4s ease-in-out infinite;
}

@keyframes db-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Row highlight (will be overridden by active state) */
.db__row {
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

/* Pipes */
.pipe {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

/* Folder base state */
/* Base folder transform origin (keep) */
.folder {
  transform-origin: 225px 90px;
  opacity: 1;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Align each folder with its branch end:
   - folder--1 → branch at y≈105
   - folder--2 → branch at y≈170
   - folder--3 → branch at y≈240
   Adjust these translate values if you tweaked coordinates further. */

/* Top folder (Interface) */
.folder--1 {
  transform: translate(0px, -10px); /* small upward offset */
}

/* Middle folder (Logic) */
.folder--2 {
  transform: translate(0px, 55px);  /* moves down from folder--1 */
}

/* Bottom folder (Data & Infra) */
.folder--3 {
  transform: translate(0px, 125px); /* further down to meet last branch */
}

/* Folder label text */
.folder__label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    Roboto, sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: #7c3e05;
  text-anchor: middle;
  alignment-baseline: middle;
}

/* Right column cards */
.ag-techstack__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ag-techstack-card {
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(31, 32, 41, 0.7);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1.4rem 3.4rem rgba(0, 0, 0, 0.5);
  opacity: 0.4;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-techstack-card.is-active,.ag-techstack-card:hover {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(249, 115, 22, 0.7);
}

.ag-techstack-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.ag-techstack-card__body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.ag-techstack-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ag-techstack-card__tags span {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.ag-techstack-card.is-active .ag-techstack-card__tags span {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.12);
  color: rgba(255, 255, 255, 0.96);
}

/* Responsive */
@media (max-width: 960px) {
  .ag-techstack__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ag-techstack__visual-inner {
    position: relative;
    top: 0;
    transform: scale(0.95);
    transform-origin: center top;
  }

  .ag-techstack__content {
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .ag-techstack__inner {
    padding: 0 1.25rem;
  }

  .ag-techstack__visual-inner {
    transform: scale(0.8);
    transform-origin: center top;
  }

  .ag-techstack-card {
    padding: 1.5rem 1.25rem;
  }

  .ag-techstack-card__title {
    font-size: 1.15rem;
  }
}

.ag-techstack-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(249, 115, 22, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.2);
  margin-bottom: 1.5rem;
}

/* =========================================
   TESTIMONIALS · 3D ORBIT ON SCROLL
   ========================================= */

.ag-testimonials {
  position: relative;
  padding: 0.5rem 0 6rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.ag-testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ag-testimonials__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-testimonials__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ag-testimonials__title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.ag-testimonials__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Two-column layout */
.ag-testimonials__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

/* Orbit column */
.ag-testimonials__orbit {
  position: relative;
  perspective: 1200px;
}

.ag-testimonials__orbit-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: 360px;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(8deg);
}

/* Cards positioned around a circle in 3D space */
.ag-t-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  max-width: 360px;
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0,
              rgba(249, 115, 22, 0.2) 0,
              rgba(15, 23, 42, 1) 40%,
              rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(148, 81, 39, 0.85);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  opacity: 0;
  transform-style: preserve-3d;
  transform: translateZ(-160px);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.45s ease;
}

/* Base positions on the ring */
.ag-t-card[data-slot="1"] {
  transform: rotateY(0deg) translateZ(180px);
}
.ag-t-card[data-slot="2"] {
  transform: rotateY(120deg) translateZ(180px);
}
.ag-t-card[data-slot="3"] {
  transform: rotateY(240deg) translateZ(180px);
}

/* When a card is active (brought to front) */
.ag-t-card.is-active {
  opacity: 1;
  transform: rotateY(0deg) translateZ(230px) translateY(-8px);
  filter: drop-shadow(0 0 28px rgba(249, 115, 22, 0.4));
}

/* The non-active ones fade and recede a bit */
.ag-testimonials__orbit-scene.has-active .ag-t-card:not(.is-active) {
  opacity: 0.35;
  filter: blur(0.6px);
}

/* Card content */
.ag-t-card__quote {
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  position: relative;
}

.ag-t-card__quote::before {
  content: "“";
  position: absolute;
  left: -0.25rem;
  top: -1rem;
  font-size: 3rem;
  color: rgba(249, 115, 22, 0.3);
}

.ag-t-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.ag-t-card__name {
  font-weight: 600;
}

.ag-t-card__role {
  color: var(--text-secondary);
}

/* Right-hand scroll column controls active card */
.ag-testimonials__scroll {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ag-t-step {
  position: relative;
  padding: 1.2rem 1.4rem 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(31, 41, 55, 1);
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.5;
  transform: translateY(12px);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-t-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 81, 39, 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 0.6rem;
}

.ag-t-step__title {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.ag-t-step__body {
  font-size: 0.9rem;
}

/* Active step */
.ag-t-step.is-active ,.ag-t-step:hover{
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(249, 115, 22, 0.7);
  background: radial-gradient(circle at 0 0,
              rgba(249, 115, 22, 0.17) 0,
              rgba(15, 23, 42, 0.95) 45%);
}

/* Responsive */
@media (max-width: 960px) {
  .ag-testimonials__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ag-testimonials__orbit-scene {
    max-width: 360px;
    height: 320px;
    transform: rotateY(-1deg) rotateX(6deg);
  }
  .ag-testimonials__content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .ag-testimonials__inner {
    padding: 0 1.25rem;
  }

  .ag-testimonials__orbit-scene {
    max-width: 300px;
    height: 260px;
    transform: rotateY(-1deg) rotateX(4deg) scale(0.95);
  }
  .ag-testimonials__card {
    padding: 1.5rem 1.25rem;
  }

  .ag-testimonials__title {
    font-size: 1.65rem;
  }

  .ag-testimonials__subtitle {
    font-size: 0.9rem;
  }
}

/* ================================
   ABOUT · MAXIMYZMEDIA
   ================================ */

.ag-about {
  position: relative;
  padding: 0.5rem 0 6rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.ag-about__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ag-about__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-about__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ag-about__title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.ag-about__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Layout */
.ag-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

/* Left studio card */
.ag-about-card {
  position: relative;
  padding: 2.2rem 2.1rem 2.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0,
              rgba(249, 115, 22, 0.18) 0,
              rgba(15, 23, 42, 1) 40%,
              rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(148, 81, 39, 0.85);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-40px) translateY(10px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-about-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%,
              rgba(249, 115, 22, 0.18) 0,
              transparent 50%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.ag-about-card__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.ag-about-card__headline {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.ag-about-card__body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Pill grid */
.ag-about-card__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ag-about-pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.4rem 0.9rem;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.16);
}

.ag-about-pill__label {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.92);
}

/* Right timeline */
.ag-about-timeline {
  position: relative;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(55, 65, 81, 0.9);
  display: grid;
  gap: 1.8rem;
  opacity: 0;
  transform: translateX(40px) translateY(10px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-about-timeline__item {
  position: relative;
}

.ag-about-timeline__dot {
  position: absolute;
  left: -1.4rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f97316;
  box-shadow:
    0 0 18px rgba(249, 115, 22, 0.8),
    0 0 0 4px rgba(249, 115, 22, 0.1);
}

.ag-about-timeline__content h4 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.ag-about-timeline__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Activated states from JS */
.ag-about-card.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.ag-about-timeline.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .ag-about__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ag-about-timeline {
    padding-left: 1.1rem;
  }

  .ag-about-timeline__dot {
    left: -1.1rem;
  }
}

@media (max-width: 600px) {
  .ag-about__inner {
    padding: 0 1rem;
  }

  .ag-about-card {
    padding: 1.8rem 1.7rem 2rem;
  }
}

/* ================================
   CONTACT · TERMINAL FORM
   ================================ */

.ag-contact {
  position: relative;
  padding: 0rem 0 6rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.ag-contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ag-contact__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
  opacity: 1;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-contact__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ag-contact__title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.ag-contact__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Layout */
.ag-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width:60vw ;
  justify-content: center;
}
.form-group{
  display: flex;
  flex-direction: column;

}
/* .ag-contactterminal .form-group {
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
} */
/* .ag-contactterminal{
  justify-content: center;
} */
.ag-contactterminal{
  display: flex;
  justify-content: center;
}

.ag-contactterminal label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.ag-contactterminal input,
.ag-contactterminal textarea {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ag-contactterminal input:focus,
.ag-contactterminal textarea:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
  background: rgba(15, 23, 42, 1);
}

.ag-contactterminal .form-group.error input,
.ag-contactterminal .form-group.error textarea {
  border-color: #f97373;
}

.ag-contactterminal .form-group.error label {
  color: #f97373;
}


/* From Uiverse.io by Yaya12085, adapted */

.status-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.status {
  display: flex;
  flex-direction: column;
  background-color: #151824;
  color: #ffffff;
  padding: 12px 14px;
  width: 100%;
  max-width: 540px;
  height: 260px;
  border-radius: 16px;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(148, 81, 39, 0.6);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.9);
}

.mac-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.mac-header span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-header .red {
  background-color: #ff5f57;
}

.mac-header .yellow {
  background-color: #ffbd2e;
}

.mac-header .green {
  background-color: #28c941;
}

/* Content */
.mac-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  /* overscroll-behavior: contain; */
  overflow-y: auto;
  color: white;
}

.mac-lines {
  flex: 1;
  /* overflow-y: auto; */
  padding-right: 4px;
  /* overscroll-behavior: contain; */
}

/* Thin rectangular scrollbar for terminal */

.mac-content::-webkit-scrollbar,
.mac-lines::-webkit-scrollbar {
  width: 6px;
}

.mac-content::-webkit-scrollbar-track,
.mac-lines::-webkit-scrollbar-track {
  background: transparent;
}

.mac-content::-webkit-scrollbar-thumb,
.mac-lines::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.mac-content::-webkit-scrollbar-thumb:hover,
.mac-lines::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.9);
}

/* Firefox */
.mac-content,
.mac-lines {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.8) transparent;
}

/* Individual line */
.mac-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-block: 2px;
}

.mac-prompt {
  color: #57c7ff;
    flex-shrink: 0;
}
.mac-line span {
  word-break: break-word;
  white-space: pre-wrap;
}

.status span {
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
}

.status .arrow {
  color: #ff6ac1;
    flex-shrink: 0;
}

.cursor {
  height: 1rem;
  width: 1px;
  background-color: rgb(180, 173, 173);
  opacity: 0;
  animation: animateCursor 0.8s ease infinite;
}

/* Input field styled as part of the terminal line */
#terminalInput {
  flex: 1;
   min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fbebe2;
  font: inherit;
  padding: 0;
}

/* Right column copy */
.ag-contact__side {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.ag-contact__note h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.ag-contact__note p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.ag-contact__meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@keyframes animateCursor {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .ag-contact__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ag-contact__inner {
    padding: 0 1.25rem;
  }
}
@media (max-width: 768px) {
  .status {
    max-width: 100%;
  }
}