@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

/* --- Reset & Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: hsl(228, 100%, 61%);
  /* logo royal/electric blue */
  --primary-hover: hsl(228, 100%, 54%);
  --primary-light: hsl(228, 100%, 75%);
  --primary-glow: rgba(59, 89, 255, 0.12);
  --primary-glow-strong: rgba(59, 89, 255, 0.25);

  --dark-bg: hsl(222, 47%, 7%);
  /* Sleek dark slate */
  --dark-card: hsl(222, 47%, 11%);

  --white: #ffffff;
  --offwhite: hsl(210, 40%, 98%);
  /* Cool light slate */
  --light-blue: hsl(220, 100%, 96%);

  --slate-body: hsl(215, 25%, 27%);
  --slate-heading: hsl(220, 40%, 13%);
  --slate-sub: hsl(215, 16%, 47%);

  --accent-gold: hsl(45, 60%, 55%);
  /* Gold highlight */
  --accent-gold-light: hsl(45, 75%, 68%);

  --border: rgba(59, 89, 255, 0.08);
  --border-hover: rgba(59, 89, 255, 0.16);
  --card-shadow:
    0 12px 30px -10px rgba(59, 89, 255, 0.06),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --card-shadow-hover:
    0 24px 48px -15px rgba(59, 89, 255, 0.14),
    0 4px 10px -2px rgba(59, 89, 255, 0.03);

  /* Fonts */
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-serif: "Cinzel", serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--slate-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--offwhite);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* --- Custom Cursor follower (Desktop only) --- */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    width 0.3s,
    height 0.3s,
    background 0.3s;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--primary-light);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.18s ease-out,
    width 0.3s,
    height 0.3s,
    border-color 0.3s;
}

body.hovering .cursor {
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
}

body.hovering .cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--accent-gold-light);
}

@media (hover: none) {
  .cursor,
  .cursor-ring {
    display: none;
  }
}

/* --- Progress Bar --- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 2000;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent-gold) 100%
  );
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  height: 80px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo svg {
  width: 44px;
  height: 44px;
  transition: var(--transition-bounce);
}

.nav-logo:hover svg {
  transform: scale(1.08) rotate(5deg);
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-heading);
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--slate-sub);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

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

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 89, 255, 0.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-heading);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 6% 100px;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 70% 50% at 75% 35%,
      var(--primary-glow) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 15% 75%,
      rgba(212, 175, 55, 0.035) 0%,
      transparent 60%
    );
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59, 89, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 89, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 40%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s forwards;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--slate-heading);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s forwards;
}

.hero-h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.hero-h1 .gold {
  color: var(--accent-gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--slate-body);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) 0.8s forwards;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px var(--primary-glow-strong);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 89, 255, 0.3);
}

.btn-outline {
  padding: 13px 32px;
  background: transparent;
  color: var(--slate-heading);
  border: 1.5px solid rgba(59, 89, 255, 0.2);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  background: rgba(59, 89, 255, 0.02);
}

.hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.9s forwards;
}

.hero-logo-anim {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotateRing 20s linear infinite;
}

.logo-ring:nth-child(1) {
  inset: 0;
  border-color: rgba(59, 89, 255, 0.12);
  animation-duration: 25s;
}

.logo-ring:nth-child(2) {
  inset: 35px;
  border-color: rgba(59, 89, 255, 0.06);
  animation-duration: 18s;
  animation-direction: reverse;
}

.logo-ring:nth-child(3) {
  inset: 70px;
  border-color: rgba(212, 175, 55, 0.1);
  animation-duration: 28s;
}

.logo-center {
  position: absolute;
  inset: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 89, 255, 0.08);
  box-shadow: 0 10px 40px rgba(59, 89, 255, 0.1);
}

.logo-center svg {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 4px 15px rgba(59, 89, 255, 0.15));
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-light);
  animation: orbitDot 10s linear infinite;
  top: 50%;
  left: 50%;
}

.orbit-dot:nth-child(5) {
  animation-delay: -5s;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-light);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 1s forwards;
}

.stat-item {
  position: relative;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--slate-heading);
  line-height: 1.1;
}

.stat-num .plus {
  color: var(--primary);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--slate-sub);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}

/* --- Common Sections --- */
section {
  padding: 100px 6%;
  position: relative;
  background: var(--white);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--slate-heading);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: normal;
  color: var(--primary);
}

.section-sub {
  color: var(--slate-body);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 56px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* --- About Section --- */
#about {
  background: var(--offwhite);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(59, 89, 255, 0.15);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
  line-height: 1;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-heading);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--slate-sub);
  font-size: 0.88rem;
  line-height: 1.6;
}

.values-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--slate-body);
  font-size: 0.92rem;
  line-height: 1.5;
}

.values-list li::before {
  content: "✦";
  color: var(--primary);
  font-weight: bold;
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 10%,
    rgba(59, 89, 255, 0.035) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  border-color: rgba(59, 89, 255, 0.25);
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(59, 89, 255, 0.05);
  border: 1px solid rgba(59, 89, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  transition: var(--transition-bounce);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: rgba(59, 89, 255, 0.12);
  transform: scale(1.08) rotate(5deg);
  border-color: rgba(59, 89, 255, 0.2);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-heading);
  margin-bottom: 14px;
}

.service-card p {
  color: var(--slate-sub);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(59, 89, 255, 0.05);
  border: 1px solid rgba(59, 89, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.service-card:hover .tag {
  background: rgba(59, 89, 255, 0.08);
  border-color: rgba(59, 89, 255, 0.15);
}

/* --- Testimonials Section --- */
#testimonials {
  background: var(--offwhite);
  overflow: hidden;
}

.testimonials-track-wrap {
  position: relative;
  width: 100%;
}

/* Side gradients to fade cards */
.testimonials-track-wrap::before,
.testimonials-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  z-index: 2;
  pointer-events: none;
}

.testimonials-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--offwhite) 0%, transparent 100%);
}

.testimonials-track-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--offwhite) 0%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 28px;
  animation: scrollTrack 36s linear infinite;
  width: max-content;
  padding: 20px 0;
}

.testimonials-track-wrap:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  width: 400px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
  border-color: rgba(59, 89, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--slate-body);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--slate-heading);
}

.author-title {
  font-size: 0.75rem;
  color: var(--slate-sub);
  margin-top: 2px;
}

/* --- FAQ Section --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.faq-item:hover {
  border-color: rgba(59, 89, 255, 0.15);
}

.faq-item.open {
  border-color: rgba(59, 89, 255, 0.25);
  box-shadow: var(--card-shadow-hover);
}

.faq-q {
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 0.98rem;
  user-select: none;
  color: var(--slate-heading);
}

.faq-arrow {
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding 0.3s ease;
  color: var(--slate-body);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0 28px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 24px;
}

/* --- Contact Section --- */
#contact {
  background: var(--offwhite);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--slate-heading);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--slate-body);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(59, 89, 255, 0.05);
  border: 1px solid rgba(59, 89, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-detail-item:hover .contact-detail-icon {
  background: rgba(59, 89, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(59, 89, 255, 0.18);
}

.contact-detail-label {
  font-size: 0.7rem;
  color: var(--slate-sub);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-detail-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-heading);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 44px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--offwhite);
  border: 1.5px solid var(--border);
  color: var(--slate-heading);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 14px 16px;
  border-radius: 6px;
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-sub);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='hsl(215, 16%25, 47%25)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* --- Footer --- */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 6% 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  color: var(--slate-sub);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-heading);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul a {
  color: var(--slate-sub);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--slate-sub);
  font-size: 0.82rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-sub);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  background: transparent;
}

.footer-social:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-2px);
}

/* --- Scroll Reveal & Back to Top --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(59, 89, 255, 0.25);
}

#back-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-top:hover {
  transform: translateY(-4px);
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(59, 89, 255, 0.35);
}

/* --- Keyframe Animations --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitDot {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(170px) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(170px)
      rotate(-360deg);
  }
}

@keyframes scrollTrack {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --- Responsive Adaptations --- */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 1024px) {
  #hero {
    flex-direction: column;
    padding-top: 140px;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 60px;
    margin-bottom: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 6%;
  }

  nav {
    padding: 0 6%;
    height: 72px;
  }

  .nav-links {
    display: none;
    /* Controlled by JS menu toggle */
  }

  /* Mobile links drawer */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 6%;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 0.9rem;
    width: 100%;
    display: block;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
    /* Hidden on mobile header, can move into menu list */
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .contact-form {
    padding: 30px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-logo-anim {
    width: 320px;
    height: 320px;
  }

  .logo-center {
    inset: 80px;
  }

  .logo-center svg {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-h1 {
    font-size: 2.3rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .testimonial-card {
    width: 290px;
    padding: 24px;
  }
}

/* --- Reduced Motion Support --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .logo-ring,
  .orbit-dot,
  .testimonials-track {
    animation: none !important;
  }
}
