:root {
  --bg: #03050c;
  --nav: #111423;
  --footer: #1d2435;
  --card: rgba(31, 38, 54, 0.72);
  --card-soft: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.16);
  --stroke-strong: rgba(255, 255, 255, 0.24);
  --text: #f8f8fb;
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.48);
  --cyan: #2bd5e1;
  --blue: #147dff;
  --violet: #7758f4;
  --green: #24dfb4;
  --purple: #b65af7;
  --radius: 34px;
  --content: 2660px;
}

@font-face {
  font-family: "FiraGO";
  src: url("assets/fonts/FiraGO-Regular.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FiraGO";
  src: url("assets/fonts/FiraGO-Bold.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

/* Skip-link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 1000;
  background: rgba(3,5,12,0.98);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 28%, rgba(36, 213, 222, 0.14), transparent 23rem),
    radial-gradient(circle at 78% 36%, rgba(62, 120, 255, 0.16), transparent 30rem),
    linear-gradient(112deg, #050714 0%, #010308 54%, #06162d 100%);
  color: var(--text);
  font-family: "FiraGO", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.hero-copy h1,
.service-card h2,
.center-hero h1,
.center-hero h2,
.badge,
.gradient-button,
  .ghost-button,
  .back-button,
  .nav-home,
  .nav-services,
  .nav-about,
  .footer-col h2 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

button,
input,
textarea {
  font: inherit;
}

.phone-status {
  display: none !important; /* Ensure it's hidden across all breakpoints */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  width: min(var(--content), calc(100% - 80px));
  min-height: clamp(112px, 6.8vw, 180px);
  margin: 8px auto 0;
  padding: 0 clamp(30px, 4vw, 60px);
  border: 1px solid var(--stroke);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(105deg, rgba(20, 24, 42, 0.96), rgba(8, 9, 14, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  width: clamp(220px, 13.2vw, 360px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  font-size: 20px;
  font-weight: 300;
  justify-content: flex-end;
}

.nav-about {
  display: none !important;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a.is-active {
  color: var(--cyan);
}

.gradient-button {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #fff;
  box-shadow: 0 8px 40px rgba(69, 126, 255, 0.18), 0 0 80px rgba(119,88,244,0.06) inset;
}

#app {
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto;
}

.page {
  min-height: 600px;
  padding: clamp(60px, 5.2vw, 120px) clamp(32px, 3.2vw, 80px) clamp(60px, 4vw, 100px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.home-page {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(36px, 6vw, 120px);
}

.hero-copy {
  align-self: center;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
}

.hero-copy h1,
.page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5vw, 96px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 28px 0 56px;
  max-width: 32ch; /* Optimized line length for large text */
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 32px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-actions .ghost-button {
  display: none;
}

.hero-actions-mobile {
  display: none;
}

.gradient-button,
.ghost-button,
.back-button {
  min-height: 56px;
  padding: 0 36px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.back-button {
  min-height: 32px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
  width: fit-content;
}

.ghost-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(2, 284px);
  gap: 28px;
  align-content: center;
  position: relative;
  justify-content: end;
}

.service-card {
  position: relative;
  width: 100%;
  height: 205px;
  padding: 14px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 16%, rgba(43, 213, 225, 0.12), transparent 11rem),
    linear-gradient(128deg, rgba(255, 255, 255, 0.05), rgba(25, 44, 77, 0.62));
  box-shadow: 0 12px 32px rgba(3,8,18,0.5);
}

.service-card::after {
  content: '';
  position: absolute;
  right: -6%;
  top: -12%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 30% 30%, rgba(119,88,244,0.12), transparent 35%);
  filter: blur(36px);
  opacity: 0.95;
  pointer-events: none;
}

.service-card:nth-child(2)::after {
  background: radial-gradient(circle at 30% 30%, rgba(36,213,222,0.12), transparent 35%);
}

.service-card:nth-child(3)::after {
  background: radial-gradient(circle at 30% 30%, rgba(183,90,247,0.08), transparent 35%);
}

.service-card:nth-child(4)::after {
  background: radial-gradient(circle at 30% 30%, rgba(37,220,180,0.06), transparent 35%);
}

.service-card h2,
.service-card h3 {
  margin: 12px 0 4px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.80;
  overflow-wrap: anywhere;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(17, 44, 96, 0.75);
  color: #147dff;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(6,12,24,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}

.icon-box.green {
  background: rgba(20, 71, 68, 0.78);
  color: var(--green);
}

.icon-box.purple {
  background: rgba(55, 23, 76, 0.78);
  color: var(--purple);
}

.icon-box.cyan {
  background: rgba(24, 69, 90, 0.78);
  color: var(--cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  margin-bottom: 20px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: clamp(13px, 1vw, 18px);
  line-height: 1.2;
}

.badge span {
  color: var(--cyan);
  font-size: 20px;
}

.center-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 20px;
}

/* Styles for the new services page layout */
.upper-box {
  padding: clamp(40px, 5vw, 80px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  min-height: 200px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  position: relative; /* For back button positioning */
}

.bottom-box {
  margin-top: 40px;
  padding: clamp(30px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  min-height: 400px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.center-hero .page-title {
  margin-top: 8px;
}

.upper-box .page-title {
  margin-top: 0; /* Reset margin from center-hero */
  font-size: clamp(48px, 6vw, 80px); /* Large font */
  color: #fff;
}

.upper-box .subcopy {
  max-width: 800px; /* Limit width for readability */
  margin: 12px auto 0; /* Spacing below title, centered */
  font-size: clamp(18px, 2vw, 28px);
  color: var(--muted);
  line-height: 1.5;
}

.center-hero .subcopy {
  max-width: 1100px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: clamp(20px, 1.6vw, 32px);
  font-weight: 400;
  line-height: 1.5;
}

.rule {
  width: 100vw;
  max-width: 100%;
  height: 2px;
  margin: 0 0 10px; /* Adjusted margin to separate from upper-box */
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-list-card {
  min-height: 245px;
}

.service-list-card .learn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #00D98C;
  font-size: 12px;
}

/* Back button on services page */
.upper-box .back-button {
  position: absolute;
  left: clamp(20px, 3vw, 40px); /* Position from left */
  top: clamp(20px, 3vw, 40px); /* Position from top */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px; /* Pill shape */
  padding: 8px 16px;
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Specific styles for the services page cards */
.services-page-card {
  width: auto; /* Allow grid to manage width */
  min-height: 205px; /* Change to min-height for content adaptability */
  padding: 24px 24px 40px 32px; /* Increased padding, especially left and bottom */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content vertically */
  align-items: flex-start; /* Align content to the left */
  background: var(--card); /* Dark, slightly translucent */
  border-radius: var(--radius); /* Significantly rounded corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* Subtle shadow */
  overflow: hidden; /* Hide overflow from glow */
}

.services-page-card .icon-box {
  position: relative; /* For glow effect */
  z-index: 1; /* Ensure icon is above glow */
}

.services-page-card .icon-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2.5); /* Adjust size of glow */
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(20px); /* Soft blur */
  opacity: 0.4; /* Subtle opacity */
  z-index: 0;
}

/* Individual icon glow colors for services page cards */
.services-page-card .icon-box.blue::before { background: var(--blue); } /* Default blue */
.services-page-card .icon-box.green::before { background: var(--green); }
.services-page-card .icon-box.cyan::before { background: var(--cyan); }
.services-page-card .icon-box.purple::before { background: var(--purple); }

.card-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
  z-index: 2; /* Ensure badge is above icon and glow */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.services-page-card h2 {
  margin-top: 12px; /* Spacing after icon/badge */
  margin-bottom: 2px; /* Spacing between title and text */
  font-size: 26px; /* Slightly increased for hierarchy */
  color: #fff;
  text-align: left;
  width: 100%; /* Ensure it takes full width */
}

.services-page-card p {
  margin: 0;
  font-size: 15px; /* Balanced with title */
  color: var(--muted);
  text-align: left;
  width: 100%;
}

.services-page-card .services-page-learn {
  margin-top: 12px; /* Spacing below paragraph */
  align-self: flex-start; /* Align to left */
  font-size: 15px;
  font-weight: 500;
  color: #00D98C;
}

.detail-card {
  position: relative;
  width: min(620px, 100%);
  margin: 12px auto 0;
  padding: 40px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(22,42,78,.54));
}

.detail-card h2 {
  margin: 12px 0 20px;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
}

.price-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(20, 125, 255, 0.18), 
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.6;
}

.check-list li::before {
  content: "◎";
  margin-right: 10px;
  color: var(--green);
}

.small-cta {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 15px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 70px;
  align-items: start;
  padding-top: 110px;
}

.about-layout h1 {
  margin: 0 0 58px;
  font-size: clamp(44px, 4vw, 74px);
  font-weight: 700;
  text-align: center;
}

.about-layout h2 {
  margin: 0 0 34px;
  font-size: 32px;
  font-weight: 700;
}

.about-layout p {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.7;
}

.about-image {
  width: 100%;
  border-radius: 4px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 70px;
  align-items: end;
}

.contact-art {
  align-self: end;
  max-width: 520px;
  margin-bottom: -100px;
}

.contact-form {
  display: grid;
  gap: 40px;
  padding: 70px 70px 90px;
  border: 1px solid var(--stroke-strong);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(30,38,55,.88));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.contact-form label {
  display: grid;
  gap: 20px;
  color: #fff;
  font-size: clamp(22px, 1.4vw, 30px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.contact-form input {
  height: 72px;
  padding: 0 22px;
}

.contact-form textarea {
  min-height: 240px;
  padding: 22px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(43, 213, 225, 0.72);
}

.contact-form .gradient-button {
  justify-self: center;
  width: min(480px, 100%);
  cursor: pointer;
}

.gradient-button.is-sent {
  background: #00D98C !important;
  color: #03050c !important;
  box-shadow: 0 0 30px rgba(0, 217, 140, 0.3);
  animation: buttonPop 0.3s ease-out;
}

@keyframes buttonPop {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.state-page {
  display: grid;
  place-items: center;
  text-align: center;
}

.state-page h1 {
  margin: 0 0 44px;
  font-size: clamp(48px, 4vw, 86px);
  font-weight: 700;
}

.pulse-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 86px;
}

.pulse-mark i {
  width: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.pulse-mark i:nth-child(1),
.pulse-mark i:nth-child(7) {
  height: 30px;
}

.pulse-mark i:nth-child(2),
.pulse-mark i:nth-child(6) {
  height: 55px;
}

.pulse-mark i:nth-child(3),
.pulse-mark i:nth-child(5) {
  height: 74px;
}

.pulse-mark i:nth-child(4) {
  height: 86px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto 40px;
  padding: clamp(40px, 6vw, 80px) clamp(30px, 4vw, 60px) 40px;
  border: 1px solid var(--stroke);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--cyan), var(--violet)) 1;
  background: linear-gradient(112deg, #1a1d22, var(--footer));
}

.footer-logo .logo-img {
  width: 230px;
}

.footer-brand p,
.footer-col a,
.footer-bottom {
  color: var(--muted);
  font-weight: 200;
}

.footer-brand p {
  max-width: 390px;
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-col h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 300;
}

.footer-col a {
  font-size: 18px;
}

.social-row {
  display: flex;
  gap: 18px;
  margin: 4px 0 20px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 38px;
  font-weight: 700;
}

.email-link {
  text-decoration: underline;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 20px;
}

.footer-bottom span:last-child {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
}

@media (max-width: 980px) {
  body {
    background:
      radial-gradient(circle at 0% 28%, rgba(44, 213, 225, .13), transparent 18rem),
      radial-gradient(circle at 95% 54%, rgba(50, 105, 255, .18), transparent 22rem),
      linear-gradient(112deg, #050714, #02040a 62%, #06142a);
  }

  .phone-status {
    display: none;
  }

  .status-icons {
    letter-spacing: 2px;
  }

  .site-header,
  #app,
  .site-footer {
    width: 100%;
    margin: 0;
  }

  .site-header {
    position: relative;
    grid-template-columns: auto 1fr auto;
    min-height: 70px;
    padding: 0 20px;
    border-left: 0;
    border-right: 0;
    gap: 20px;
  }

  .logo-img {
    width: clamp(190px, 29vw, 250px);
  }

  .main-nav {
    gap: clamp(22px, 5vw, 48px);
    font-size: clamp(20px, 4vw, 31px);
    justify-content: flex-end;
  }

  .nav-services {
    order: 3;
  }

  .page {
    min-height: 0;
    padding: 32px 24px 40px;
    border: 0;
  }

  .home-page,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-title {
    font-size: clamp(48px, 10vw, 72px);
  }

  .hero-copy p {
    margin: 24px 0 32px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.5;
  }

  .badge {
    min-height: 40px;
    padding: 0 26px;
    font-size: 20px;
  }

  .hero-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    justify-content: center;
    padding: 0;
    width: 100%;
  }

  .hero-services .service-card {
    width: 100%;
    max-width: 100%;
  }

  .service-card {
    height: auto;
    overflow: visible;
    min-height: 454px;
    padding: 32px 36px 48px;
    display: flex;
    flex-direction: column;
  }

  .service-card h2, .service-card h3 {
    order: 1;
    margin-top: 32px;
    font-size: 46px;
  }

  .service-card p {
    order: 2;
    font-size: 24px;
    padding-bottom: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    margin-top: 24px;
  }

  .gradient-button,
  .ghost-button {
    min-height: 74px;
    font-size: 30px;
  }

  .center-hero {
    padding-top: 12px;
  }

  .center-hero .page-title {
    margin-top: 10px;
  }

  .center-hero .subcopy {
    font-size: 22px;
  }

  .rule {
    margin: 12px 0;
  }

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

  .detail-card {
    margin-top: 48px;
  }

  .about-layout h1 {
    text-align: left;
  }

  .about-layout {
    gap: 38px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 54px 28px 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    font-size: 18px;
  }
}

@media (max-width: 620px) {
  .phone-status {
    display: none;
  }

  .site-header {
    min-height: 56px;
    padding: 0 12px;
    gap: 16px;
  }

  .logo-img {
    width: 80px;
  }

  .main-nav {
    gap: 24px;
    font-size: 14px;
  }

  .page {
    padding: 16px 12px 20px;
  }

  .upper-box {
    padding-top: 72px; /* Extra space for the minimized back button */
  }

  .back-button {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 16px;
    width: fit-content;
  }

  .upper-box .back-button {
    top: 20px;
    left: 16px;
    width: auto;
    right: auto;
  }

  .services-page-learn {
    order: 3; /* Places the button below h2 (order 1) and p (order 2) */
    margin-top: 16px;
  }

  .hero-copy {
    position: relative;
    padding-top: 0;
  }

  .hero-copy h1,
  .page-title {
    font-size: clamp(34px, 8vw, 42px);
    display: block;
  }

  .hero-copy p,
  .service-card p {
    order: 2;
    font-size: 14.5px;
    margin: 0;
  }

  .hero-copy p {
    margin-top: 16px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
    margin: 0 0 12px 0;
    padding: 0 8px 0 4px;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-title-line {
    display: inline-block;
  }

  .hero-services {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .hero-services .service-card {
    min-width: min(88vw, 320px);
    width: min(88vw, 320px);
    max-width: 320px;
    padding: 24px 20px;
    scroll-snap-align: center;
  }

  .service-card {
    height: 100%;
    overflow: visible;
    min-height: auto;
    padding: 28px 20px 48px;
    display: flex; 
    flex-direction: column;
  }

  .service-card h2,
  .service-card h3 {
    order: 1;
    margin: 14px 0 6px;
    font-size: 24px;
  }

  /* Specific adjustment for Creative Design card */
  .service-card[href="#service-creative"] p,
  .hero-services .service-card:nth-child(4) p {
    margin-top: 8px; /* Increased spacing between title and description */
  }

  .hero-actions,
  .form-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: none;
  }

  .hero-actions-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 8px auto 0;
    width: min(90vw, 340px);
    max-width: 340px;
    padding: 0 4px;
  }

  .hero-actions-mobile .gradient-button,
  .hero-actions-mobile .ghost-button {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    min-height: 48px;
    font-size: 14px;
  }

  .gradient-button,
  .ghost-button,
  .back-button {
    width: 100%;
  }

  .footer-brand,
  .footer-col:not(.footer-connect) {
    display: none;
  }

  .footer-connect {
    grid-column: 1 / -1;
  }

  .footer-col a,
  .footer-brand p {
    font-size: 17px;
  }

  .site-footer {
    padding: 16px 16px 12px;
    gap: 12px;
  }

  .footer-brand p {
    margin-top: 16px;
  }

  .footer-bottom {
    justify-content: center;
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
  }

  .footer-bottom span:first-child {
    width: 100%;
    text-align: center;
  }

  .footer-bottom span:last-child {
    display: none;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
