:root {
  --hm-yellow: #fdb827;
  --hm-orange: #f4791e;
  --hm-green: #2fa86a;
  --hm-teal: #1c93a8;
  --hm-blue: #1c5fae;
  --hm-purple: #6a2ad0;

  --hm-gradient: linear-gradient(120deg, var(--hm-yellow) 0%, var(--hm-orange) 22%, var(--hm-green) 45%, var(--hm-teal) 62%, var(--hm-blue) 80%, var(--hm-purple) 100%);
  --hm-bg: #06060f;
  --hm-bg-2: #0a0a18;
  --hm-glass: rgba(255, 255, 255, 0.045);
  --hm-glass-border: rgba(255, 255, 255, 0.09);
  --hm-text-dim: rgba(255, 255, 255, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(255, 255, 255, 0.92);
  background: var(--hm-bg);
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.3px;
}

p, .fs-5 {
  color: var(--hm-text-dim);
}

.text-muted,
.text-white-50 {
  color: var(--hm-text-dim) !important;
}

a {
  color: inherit;
}

/* ---------------- Ambient background: club lighting ---------------- */
.hm-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, #10101f 0%, var(--hm-bg) 55%);
}

.hm-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  will-change: transform;
}

.hm-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--hm-orange), transparent 70%);
  animation: hm-drift-a 22s ease-in-out infinite;
}

.hm-orb-2 {
  width: 620px;
  height: 620px;
  top: 30%;
  right: -160px;
  background: radial-gradient(circle, var(--hm-teal), transparent 70%);
  animation: hm-drift-b 26s ease-in-out infinite;
}

.hm-orb-3 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: 20%;
  background: radial-gradient(circle, var(--hm-purple), transparent 70%);
  animation: hm-drift-c 30s ease-in-out infinite;
}

.hm-orb-4 {
  width: 420px;
  height: 420px;
  top: 60%;
  left: -120px;
  background: radial-gradient(circle, var(--hm-yellow), transparent 70%);
  opacity: 0.28;
  animation: hm-drift-a 19s ease-in-out infinite reverse;
}

@keyframes hm-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes hm-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.08); }
}

@keyframes hm-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-orb { animation: none; }
}

/* ---------------- Navbar ---------------- */
.navbar-brand img {
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(244, 121, 30, 0.35));
}

.navbar-brand span {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.5px;
}

.hm-navbar {
  background: rgba(6, 6, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.35);
}

.hm-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  position: relative;
}

.hm-navbar .nav-link:hover {
  color: #fff;
}

.hm-navbar .nav-link.hm-btn-gradient {
  color: #fff;
  font-weight: 600;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------------- Hero ---------------- */
.hm-hero {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 7rem;
}

.hm-hero .hm-btn-gradient,
.hm-hero .hm-btn-outline,
#about .hm-btn-outline {
  font-size: 1.15rem;
}

.hm-logo-wrap {
  position: relative;
  display: inline-block;
}

.hm-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(244, 121, 30, 0.4), rgba(28, 147, 168, 0.25) 45%, transparent 72%);
  filter: blur(50px);
  animation: hm-pulse 5s ease-in-out infinite;
  z-index: -1;
}

@keyframes hm-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.12); }
}

.hm-logo {
  max-width: 260px;
  width: 100%;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.55));
}

.hm-hero h1 {
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 40px rgba(244, 121, 30, 0.25);
}

.hm-gradient-text {
  background: var(--hm-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(244, 121, 30, 0.3));
}

.hm-hero .lead {
  color: var(--hm-text-dim);
}

/* ---------------- Buttons ---------------- */
.hm-btn-gradient {
  background: var(--hm-gradient);
  background-size: 220% auto;
  background-position: 0% 50%;
  border: none;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.1rem;
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(244, 121, 30, 0.3), 0 0 55px rgba(28, 95, 174, 0.2);
  transition: background-position 0.7s ease, box-shadow 0.35s ease, transform 0.25s ease;
  display: inline-block;
  text-decoration: none;
}

.hm-btn-gradient:hover {
  background-position: 100% 50%;
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(244, 121, 30, 0.5), 0 0 80px rgba(106, 42, 208, 0.35);
  color: #fff;
}

.hm-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: inline-block;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

.hm-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* ---------------- Section headings ---------------- */
.hm-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section {
  padding: 6rem 0;
  position: relative;
}

.hm-divider {
  height: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  position: relative;
}

.hm-divider::before {
  content: "";
  position: absolute;
  inset: -8px 30%;
  background: var(--hm-gradient);
  filter: blur(20px);
  opacity: 0.35;
}

/* ---------------- About ---------------- */
.hm-about-photo-frame {
  position: relative;
  border-radius: 1.25rem;
  padding: 1px;
  background: var(--hm-gradient);
  box-shadow: 0 0 50px rgba(28, 95, 174, 0.18);
}

.hm-about-photo-frame img {
  border-radius: 1.2rem;
  display: block;
  width: 100%;
  background: #0a0a18;
}

.hm-stat {
  border-left: 2px solid;
  border-image: var(--hm-gradient) 1;
  padding-left: 1rem;
}

.hm-stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
}

/* ---------------- Impact ---------------- */
.hm-flip-card {
  height: 260px;
  perspective: 1400px;
}

.hm-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.1rem;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.hm-flip-card:hover .hm-flip-card-inner,
.hm-flip-card:focus-within .hm-flip-card-inner {
  transform: rotateY(180deg);
}

.hm-flip-card-front,
.hm-flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--hm-glass-border);
}

.hm-flip-card-front {
  background-color: #10101f;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hm-flip-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 6, 15, 0.9) 100%);
}

.hm-flip-title {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.hm-flip-card-back {
  background: var(--hm-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: rotateY(180deg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hm-flip-card-back h5 {
  color: #fff;
}

/* ---------------- Services ---------------- */
.hm-service-card {
  background: var(--hm-glass);
  border: 1px solid var(--hm-glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.1rem;
  padding: 2.25rem 1.85rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hm-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.22);
}

.hm-glow-1:hover { box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 0 45px rgba(244, 121, 30, 0.28); }
.hm-glow-2:hover { box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 0 45px rgba(47, 168, 106, 0.28); }
.hm-glow-3:hover { box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 0 45px rgba(106, 42, 208, 0.32); }

.hm-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hm-service-icon.icon-1 { background: linear-gradient(135deg, var(--hm-yellow), var(--hm-orange)); box-shadow: 0 0 25px rgba(244, 121, 30, 0.4); }
.hm-service-icon.icon-2 { background: linear-gradient(135deg, var(--hm-green), var(--hm-teal)); box-shadow: 0 0 25px rgba(47, 168, 106, 0.4); }
.hm-service-icon.icon-3 { background: linear-gradient(135deg, var(--hm-blue), var(--hm-purple)); box-shadow: 0 0 25px rgba(106, 42, 208, 0.4); }

.hm-service-card h4 {
  color: #fff;
}

/* ---------------- Process ---------------- */
.hm-process .step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--hm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(28, 147, 168, 0.3));
}

.hm-process h5 {
  color: #fff;
}

.hm-process-step {
  padding: 1.75rem 1.25rem;
  border-radius: 1rem;
  transition: background 0.3s ease;
}

.hm-process-step:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ---------------- Contact ---------------- */
.hm-contact h2 {
  color: #fff;
}

.hm-contact-card {
  background: var(--hm-glass);
  border: 1px solid var(--hm-glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.1rem;
  padding: 2rem;
}

.hm-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  border-radius: 0.6rem;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.hm-contact-item:last-child {
  border-bottom: none;
}

.hm-contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--hm-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(244, 121, 30, 0.3);
}

.hm-contact-item:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 0.6rem;
  color: var(--hm-yellow);
}

/* ---------------- Footer ---------------- */
.hm-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.hm-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.hm-footer a:hover {
  color: #fff;
}

/* ---------------- Reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 4rem 0;
  }
  .hm-hero {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
    text-align: center;
  }
  .hm-orb {
    opacity: 0.28;
  }
}
