:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --navy: #0d1b3e;
  --navy-light: #162347;
  --gold: #c8963e;
  --gold-light: #e0aa55;
  --red: #c0392b;
  --red-light: #e74c3c;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-mid: #e8ecf2;
  --gray-text: #6b7280;
  --body-text: #2d3748;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: var(--body-text);
  background: var(--white);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

main > section:not(#hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
/* ===========================
      IJPHD SECTION
=========================== */

.ijphd-section {
  padding: 90px 8%;
  background: var(--gray-light);
}

.ijphd-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.ijphd-content {
  flex: 1;
  min-width: 320px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(200, 150, 62, 0.12);
  color: var(--gold);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.ijphd-content h2 {
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.ijphd-content h2 span {
  color: var(--gold);
}

.ijphd-description {
  color: var(--gray-text);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 30px;
}

.ijphd-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.feature {
  background: white;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.ijphd-btn {
  display: inline-block;
  padding: 15px 34px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.ijphd-btn:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

.ijphd-card {
  position: relative;
  flex: 0 0 380px;
  overflow: hidden;
  border-radius: 20px;
  animation: journal-image-float 5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ijphd-card::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.8s ease;
}

.journal-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(200, 150, 62, 0.22);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(13, 27, 62, 0.25);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.ijphd-card:hover {
  transform: translateY(-8px) rotate(0.6deg);
}

.ijphd-card:hover::after {
  left: 125%;
}

.ijphd-card:hover .journal-image {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

@keyframes journal-image-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

.journal-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(13, 27, 62, 0.25);
}

.journal-card h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.journal-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 10px;
  margin-bottom: 25px;
}

.journal-card ul {
  list-style: none;
}

.journal-card li {
  margin-bottom: 14px;
  padding-left: 22px;
  position: relative;
}

.journal-card li::before {
  content: "✔";
  color: var(--gold);
  position: absolute;
  left: 0;
}

@media (max-width: 992px) {
  .ijphd-container {
    flex-direction: column;
  }

  .ijphd-card {
    flex: 0 1 auto;
    width: min(100%, 380px);
    max-width: 100%;
    margin-inline: auto;
  }

  .ijphd-features {
    grid-template-columns: 1fr;
  }

  .ijphd-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .ijphd-section {
    padding: 60px 20px;
  }

  .ijphd-container {
    gap: 40px;
  }

  .ijphd-content {
    width: 100%;
    min-width: 0;
  }

  .ijphd-content h2 {
    font-size: clamp(1.65rem, 8vw, 2rem);
    overflow-wrap: anywhere;
  }

  .ijphd-description {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .ijphd-card {
    width: min(74vw, 255px);
    max-height: calc(100svh - 120px);
    border-radius: 16px;
    animation: none;
    overflow: visible;
  }

  .journal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: calc(100svh - 120px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(13, 27, 62, 0.2);
  }

  .ijphd-card:hover,
  .ijphd-card:hover .journal-image {
    transform: none;
  }
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  right: auto;
  z-index: 1000;
  width: min(1280px, calc(100% - 32px));
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  border: 1px solid rgba(200, 150, 62, 0.42);
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(3, 9, 25, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  transition:
    top 0.3s ease,
    width 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

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

  .ijphd-card,
  .journal-image,
  .ijphd-card::after {
    transition: none;
  }
}

#navbar.scrolled {
  top: 8px;
  width: min(1280px, calc(100% - 32px));
  background: rgba(255, 253, 248, 0.97);
  border-color: rgba(200, 150, 62, 0.56);
  box-shadow: 0 18px 55px rgba(3, 9, 25, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 66px;
}

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

.logo-img {
  width: 56px;
  height: 56px;
}

.logo-text {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.nav-logo .s-red {
  color: var(--red-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(13, 27, 62, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.nav-links a:hover {
  color: var(--navy);
  background: rgba(200, 150, 62, 0.14);
  transform: translateY(-1px);
}
.nav-links a.active-section:not(.cta-nav) {
  color: var(--navy);
  background: rgba(200, 150, 62, 0.18);
  box-shadow: inset 0 0 0 1px rgba(200, 150, 62, 0.34);
}
.nav-links .cta-nav {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s !important;
}
.nav-links .cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 150, 62, 0.4);
  background: var(--navy) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: 0;
  background: transparent;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    #0a1428 50%,
    #0f2244 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 150, 62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 150, 62, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  top: -100px;
  right: -80px;
}
.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--red);
  bottom: -50px;
  left: -50px;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 150, 62, 0.15);
  border: 1px solid rgba(200, 150, 62, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.045em;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title .accent-gold {
  color: var(--gold);
}
.hero-title .accent-red {
  color: var(--red-light);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 150, 62, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(200, 150, 62, 0.08);
  color: var(--gold);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat-item {
  text-align: left;
}
.hero-stat-item .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-item .label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-card-visual {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
.hero-card-visual h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.3rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.service-pill:hover {
  border-color: var(--gold);
  background: rgba(200, 150, 62, 0.1);
  color: var(--gold);
}
.service-pill .pill-icon {
  font-size: 1rem;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 0.85rem 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.ticker-item::after {
  content: "◆";
  color: var(--red-light);
  font-size: 0.5rem;
}

/* ── SECTION COMMON ── */
section {
  padding: 5rem 2rem;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.section-title .red-s {
  color: var(--red);
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.75;
  max-width: 640px;
}

/* ── WHY US ── */
#why-us {
  background: var(--gray-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.why-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--gray-mid);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13, 27, 62, 0.1);
  border-color: var(--gold);
}
.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ── SERVICES ── */
#services {
  background: var(--white);
}

.services-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
}
.tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  color: var(--gray-text);
  cursor: pointer;
  transition: 0.2s;
  letter-spacing: 0.03em;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--white);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.09);
  border-color: var(--gold);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.service-card-icon.navy {
  background: rgba(13, 27, 62, 0.08);
}
.service-card-icon.gold {
  background: rgba(200, 150, 62, 0.12);
}
.service-card-icon.red {
  background: rgba(192, 57, 43, 0.1);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
}
.service-card p {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.7;
  flex: 1;
}
.service-card .learn-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card .learn-link:hover {
  color: var(--red);
}

/* ── SOFTECH HIGHLIGHT ── */
#softech {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2244 100%);
  position: relative;
  overflow: hidden;
}
.softech-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--red);
  filter: blur(100px);
  opacity: 0.12;
  right: -100px;
  top: -100px;
  pointer-events: none;
}
.softech-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.softech-inner .section-title {
  color: var(--white);
}
.softech-inner .section-sub {
  color: rgba(255, 255, 255, 0.65);
}
.softech-label {
  color: var(--red-light) !important;
}

.softech-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.softech-feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.softech-feat:hover {
  border-color: var(--red-light);
  background: rgba(192, 57, 43, 0.08);
}
.softech-feat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.softech-feat h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.softech-feat p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.softech-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.softech-tech-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.softech-tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-light);
}
.softech-tech-card .tech-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.softech-tech-card h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.softech-tech-card p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── PROCESS ── */
#process {
  background: var(--gray-light);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3rem;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red-light));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin: 0 auto 1.25rem;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.65;
}

/* ── JOURNAL ── */
#journal {
  background: linear-gradient(135deg, #0a1428 0%, var(--navy) 100%);
}
.journal-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.journal-inner .section-title {
  color: var(--white);
}
.journal-inner .section-sub {
  color: rgba(255, 255, 255, 0.65);
}

.journal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.journal-badge {
  background: rgba(200, 150, 62, 0.15);
  border: 1px solid rgba(200, 150, 62, 0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.06em;
}

.journal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.journal-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}
.journal-stat .big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.journal-stat .small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.journal-stat.red-stat {
  border-color: rgba(192, 57, 43, 0.3);
}
.journal-stat.red-stat .big {
  color: var(--red-light);
}

/* ── TESTIMONIALS ── */
#testimonials {
  background: var(--white);
}

.testimonials-grid {
  --testimonial-gap: 1.5rem;
  margin-top: 3rem;
  overflow: hidden;
  scrollbar-width: none;
}
.testimonials-grid::-webkit-scrollbar {
  display: none;
}
.testimonials-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: var(--testimonial-gap);
  will-change: transform;
  animation: testimonials-ticker 22s linear infinite;
}
.testimonials-grid:hover .testimonials-track,
.testimonials-grid:focus-within .testimonials-track {
  animation-play-state: paused;
}
.testi-card {
  flex: 0 0 clamp(300px, 29vw, 380px);
  border: 1px solid var(--gray-mid);
  border-radius: 18px;
  padding: 2rem;
  background: var(--white);
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(13, 27, 62, 0.1);
}
.testi-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}
.stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.testi-text {
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}
.author-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
/* ── COURSES ── */
#courses {
  background: var(--gray-light);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.course-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.1);
}
.course-header {
  background: linear-gradient(135deg, var(--navy) 0%, #162347 100%);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.course-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.15);
}
.course-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.course-header h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
}
.course-body {
  padding: 1.5rem;
}
.course-body p {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--gray-text);
}
.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── ABOUT ── */
#about {
  background: var(--white);
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2244 100%);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.15);
}
.about-visual::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.12);
}
.about-visual-content {
  position: relative;
  z-index: 2;
}
.about-logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.about-logo-text .s-red {
  color: var(--red-light);
}
.about-tagline {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.about-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 150, 62, 0.15);
  border: 1px solid rgba(200, 150, 62, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2rem;
}

.about-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mini-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.mini-stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.mini-stat .lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.about-text .section-sub {
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--body-text);
}
.about-list li::before {
  content: "◆";
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── CTA BANNER ── */
#cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1428 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: -100px;
  left: -100px;
}
.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--red);
  bottom: -80px;
  right: -80px;
}
.cta-content {
  position: relative;
  z-index: 2;
}
#cta .section-title {
  color: var(--white);
}
#cta .section-sub {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 auto 2.5rem;
  text-align: center;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
#contact {
  background: var(--gray-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  margin-top: 3rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--gray-mid);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.contact-info-item p,
.contact-info-item a {
  font-size: 0.88rem;
  color: var(--gray-text);
  text-decoration: none;
  line-height: 1.6;
}
.contact-info-item a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--gray-mid);
}
.contact-form h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--body-text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── FOOTER ── */
footer {
  background: #070f22;
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.footer-logo .s-red {
  color: var(--red-light);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.social-btn:hover {
  background: rgba(200, 150, 62, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── WHATSAPP ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-sub {
    margin: 0 auto 2.5rem;
  }
  .hero-card-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-inner,
  .journal-inner,
  .softech-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps::before {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(13, 27, 62, 0.98);
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(200, 150, 62, 0.2);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }

  .softech-right {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .journal-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-stats-mini {
    grid-template-columns: 1fr 1fr;
  }
  .softech-right {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes testimonials-ticker {
  to {
    transform: translateX(calc(-1 * var(--ticker-distance, 0px)));
  }
}

@media (max-width: 900px) {
  .testi-card {
    flex-basis: min(44vw, 360px);
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    --testimonial-gap: 1rem;
  }

  .testi-card {
    flex-basis: min(82vw, 310px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-grid {
    display: flex;
    gap: var(--testimonial-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .testi-card {
    scroll-snap-align: start;
  }
}

/* Switch to the menu before desktop navigation can wrap. */
@media (max-width: 1220px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 1rem;
    gap: 0.25rem;
    background: rgba(255, 253, 248, 0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(200, 150, 62, 0.24);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(3, 9, 25, 0.24);
  }

  .nav-links.open {
    display: flex;
    animation: menu-open 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links a {
    width: 100%;
    padding: 0.72rem 1rem;
    text-align: center;
  }

  .nav-links .cta-nav {
    margin-top: 0.35rem;
  }

  .hamburger {
    display: flex;
  }
}

/* ── SUSHODH PUBLISHER SHOWCASE ── */
.publisher-section {
  background:
    radial-gradient(circle at 88% 26%, rgba(200, 150, 62, 0.18), transparent 28%),
    linear-gradient(145deg, #fffdf8, #f4efe4);
}

.publisher-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.publisher-copy .section-sub {
  margin-bottom: 1.8rem;
}

.publisher-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.publisher-points > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(13, 27, 62, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 28px rgba(13, 27, 62, 0.055);
}

.publisher-points > div > span {
  grid-row: 1 / 3;
  color: var(--gold);
  font-size: 1.15rem;
}

.publisher-points strong {
  color: var(--navy);
  font-size: 0.85rem;
}

.publisher-points small {
  color: var(--gray-text);
  font-size: 0.72rem;
  line-height: 1.5;
}

.publisher-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.publisher-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.publisher-author-link:hover {
  gap: 0.75rem;
  color: var(--red);
}

.publisher-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  perspective: 1100px;
}

.publisher-image-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(200, 150, 62, 0.3);
  border-radius: 28px;
  background: #e9d3b8;
  box-shadow: 0 30px 80px rgba(13, 27, 62, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: rotate(1.25deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.publisher-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.publisher-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.publisher-visual:hover .publisher-image-frame {
  box-shadow: 0 36px 95px rgba(13, 27, 62, 0.25), 0 0 0 1px rgba(200, 150, 62, 0.08);
  transform: rotate(0) translateY(-6px);
}

.publisher-seal {
  position: absolute;
  right: 4%;
  bottom: 10%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 104px;
  height: 66px;
  padding: 0 0.6rem;
  border: 1px solid rgba(200, 150, 62, 0.55);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(13, 27, 62, 0.14);
  backdrop-filter: blur(8px);
}

.publisher-seal strong {
  align-self: end;
  margin-bottom: -2px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.publisher-seal span {
  align-self: start;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .publisher-inner {
    grid-template-columns: 1fr;
  }

  .publisher-visual {
    min-height: 390px;
  }
}

@media (max-width: 600px) {
  .publisher-points {
    grid-template-columns: 1fr;
  }

  .publisher-visual {
    width: 100%;
    min-height: 0;
    margin: 1.75rem 0 0;
    padding: 0 0.35rem 1rem;
    transform: none;
  }

  .publisher-image-frame {
    width: 100%;
    border-radius: 18px;
    transform: none;
  }

  .publisher-visual:hover .publisher-image-frame {
    transform: none;
  }

  .publisher-seal {
    right: 0;
    bottom: 0;
    width: 88px;
    height: 56px;
  }

  .publisher-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes menu-open {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

/* ── FULL-PAGE DEPTH SYSTEM ── */
main > section {
  isolation: isolate;
  position: relative;
  overflow: clip;
}

main > section::before {
  content: "";
  position: absolute;
  top: var(--ambient-y, 20%);
  left: var(--ambient-x, 85%);
  z-index: -1;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.09), transparent 68%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
}

main > section:nth-of-type(even)::before {
  --ambient-x: 12%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.065), transparent 68%);
}

.interactive-card {
  --card-x: 50%;
  --card-y: 50%;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.interactive-card:hover {
  transform: perspective(900px) translateY(-6px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--card-x) var(--card-y),
    rgba(255, 232, 174, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.interactive-card > * {
  position: relative;
  z-index: 4;
}

.section-title {
  text-wrap: balance;
}

.section-title .red-s {
  position: relative;
  display: inline-block;
}

.section-title .red-s::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.12em;
  left: 0;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-light), var(--gold));
  transform: scaleX(0.28);
  transform-origin: left;
  opacity: 0.55;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

section:hover .section-title .red-s::after {
  opacity: 1;
  transform: scaleX(1);
}

.ticker-wrap {
  box-shadow: 0 12px 36px rgba(3, 9, 25, 0.18);
}

.ticker-track {
  animation-duration: 34s;
}

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

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .interactive-card {
    transform: none !important;
    will-change: auto;
  }

  .interactive-card::after {
    display: none;
  }
}

/* ── FINAL FULL-PAGE ART DIRECTION ── */
section {
  border-top: 1px solid rgba(13, 27, 62, 0.055);
}

#hero,
#softech,
#journal,
#cta {
  border-top-color: rgba(255, 255, 255, 0.075);
}

.section-inner,
.container,
.about-inner,
.journal-inner,
.softech-inner {
  position: relative;
  z-index: 2;
}

.section-title {
  max-width: 820px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-variation-settings: "opsz" 72;
}

.section-sub {
  max-width: 680px;
  font-size: clamp(0.94rem, 1.2vw, 1.06rem);
  line-height: 1.8;
}

.why-grid,
.services-grid,
.courses-grid,
.testimonials-grid {
  align-items: stretch;
}

.why-card,
.service-card,
.course-card,
.testi-card {
  height: 100%;
}

.why-card {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(200, 150, 62, 0.24), rgba(13, 27, 62, 0.08)) border-box;
  border: 1px solid transparent;
}

.why-card:nth-child(3n + 2) {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(192, 57, 43, 0.2), rgba(200, 150, 62, 0.16)) border-box;
}

.why-icon,
.service-card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 9px 24px rgba(13, 27, 62, 0.1);
}

.service-card {
  background: linear-gradient(145deg, #fff 0%, #fbfcff 100%);
}

.service-card h3,
.why-card h3,
.course-card h3 {
  letter-spacing: -0.015em;
}

.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  margin-top: auto;
  padding-bottom: 0.2rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: gap 0.25s ease, color 0.25s ease, background-size 0.3s ease;
}

.learn-link:hover {
  gap: 0.65rem;
  background-size: 100% 1px;
}

.course-card:nth-child(3n + 1) .course-header {
  background: linear-gradient(135deg, #0d1b3e, #1d376e);
}

.course-card:nth-child(3n + 2) .course-header {
  background: linear-gradient(135deg, #341b28, #7b2f32);
}

.course-card:nth-child(3n) .course-header {
  background: linear-gradient(135deg, #182a31, #315c62);
}

.testi-card {
  background: linear-gradient(145deg, #fff, #faf8f2);
}

.testi-card .quote-mark {
  color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--red-light));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.4;
}

.author-avatar {
  border: 2px solid rgba(200, 150, 62, 0.38);
  box-shadow: 0 8px 20px rgba(13, 27, 62, 0.16);
}

.journal-stat {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.journal-stat:hover {
  background: rgba(255, 255, 255, 0.09);
}

#cta .cta-content {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(200, 150, 62, 0.22);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.contact-info-item {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(6px);
}

.contact-form {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(200, 150, 62, 0.5), rgba(13, 27, 62, 0.12), rgba(192, 57, 43, 0.28)) border-box;
  border: 1px solid transparent;
}

.form-group label {
  transition: color 0.2s ease;
}

.form-group:focus-within label {
  color: var(--red);
}

footer {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 150, 62, 0.12), transparent 28%),
    linear-gradient(145deg, #070f22, #0b1730);
  border-top: 1px solid rgba(200, 150, 62, 0.22);
}

.footer-col ul li a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col ul li a:hover {
  transform: translateX(4px);
}

.whatsapp-float {
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.whatsapp-float::before {
  content: "Chat with us";
  position: absolute;
  right: calc(100% + 12px);
  width: max-content;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(3, 9, 25, 0.25);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  section {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .section-title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  #cta .cta-content {
    padding: 1.8rem 1.1rem;
    border-radius: 24px;
  }

  .whatsapp-float::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── HERO & NAVIGATION REFINEMENT PASS ── */
#navbar {
  top: 12px;
  background: rgba(255, 252, 245, 0.87);
  border-color: rgba(200, 150, 62, 0.32);
  box-shadow: 0 12px 36px rgba(3, 9, 25, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

#navbar.scrolled {
  top: 7px;
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(200, 150, 62, 0.4);
  box-shadow: 0 14px 42px rgba(3, 9, 25, 0.2);
}

.nav-inner {
  height: 60px;
  padding-right: 1.4rem;
  padding-left: 1.4rem;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-size: 1.25rem;
}

.nav-links a {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

.nav-links .cta-nav {
  padding: 0.48rem 1.05rem;
}

.hero-card-visual {
  border-color: rgba(224, 170, 85, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(15, 34, 60, 0.62);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(200, 150, 62, 0.09);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.hero-card-visual h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-card-visual h3::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--red-light));
  box-shadow: 0 0 12px rgba(224, 170, 85, 0.35);
}

.hero-card-visual .service-pill {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-stat-item .number,
.journal-stat .big,
.mini-stat .num {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero-title .accent-red {
  color: #e06452;
  text-shadow: 0 12px 36px rgba(224, 100, 82, 0.16);
}

.hero-scroll-cue {
  bottom: 3.8rem;
}

.ticker-wrap {
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-color: rgba(200, 150, 62, 0.48);
  background: #0a1830;
  box-shadow: 0 9px 28px rgba(3, 9, 25, 0.14);
}

.ticker-track {
  animation-duration: 44s;
}

.ticker-item {
  color: rgba(224, 170, 85, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.075em;
}

.whatsapp-float {
  bottom: 6.5rem;
}

.back-to-top {
  bottom: 12.25rem;
}

@media (max-width: 1220px) {
  .nav-inner {
    padding-right: 1rem;
    padding-left: 0.7rem;
  }
}

@media (max-width: 600px) {
  #navbar,
  #navbar.scrolled {
    top: 7px;
  }

  .nav-inner {
    height: 56px;
  }

  .logo-img {
    width: 46px;
    height: 46px;
  }

  .whatsapp-float {
    right: 1.25rem;
    bottom: 1.5rem;
  }

  .back-to-top {
    right: 1.65rem;
    bottom: 7.5rem;
  }
}

/* Floating pill navbar responsive treatment */
@media (max-width: 900px) {
  .nav-links {
    top: calc(100% + 10px);
    background: rgba(255, 253, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 150, 62, 0.24);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(3, 9, 25, 0.24);
  }

  .hamburger {
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .hamburger:hover {
    background: rgba(200, 150, 62, 0.12);
    transform: scale(1.05);
  }
}

@media (max-width: 600px) {
  #navbar,
  #navbar.scrolled {
    top: 8px;
    width: calc(100% - 16px);
  }

  .nav-inner {
    height: 60px;
    padding: 0 0.8rem 0 0.5rem;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.08rem;
  }
}

/* ── PREMIUM INTERACTION & VISUAL POLISH ── */
body {
  --pointer-x: 50vw;
  --pointer-y: 25vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--pointer-x) var(--pointer-y),
    rgba(200, 150, 62, 0.065),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.pointer-active::before {
  opacity: 1;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2001;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red-light), var(--gold-light));
  box-shadow: 0 0 14px rgba(224, 170, 85, 0.7);
  transform: scaleX(0);
  transform-origin: left;
}

#navbar::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -1px;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.nav-logo {
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.logo-img {
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
  transition: filter 0.3s ease, transform 0.4s ease;
}

.nav-logo:hover .logo-img {
  filter: drop-shadow(0 7px 16px rgba(200, 150, 62, 0.35));
  transform: rotate(-3deg) scale(1.04);
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 28%, rgba(200, 150, 62, 0.13), transparent 24%),
    radial-gradient(circle at 22% 82%, rgba(231, 76, 60, 0.12), transparent 28%);
  animation: hero-aurora 9s ease-in-out infinite alternate;
}

@keyframes hero-aurora {
  from {
    opacity: 0.55;
    transform: scale(0.96) translate3d(-1%, 1%, 0);
  }
  to {
    opacity: 1;
    transform: scale(1.06) translate3d(1%, -1%, 0);
  }
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.12);
  animation: badge-in 0.7s 0.15s both cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

.hero-title {
  text-wrap: balance;
  animation: title-in 0.85s 0.25s both cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes title-in {
  from {
    opacity: 0.25;
    filter: blur(2px);
    transform: translateY(18px);
  }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 0.25s ease;
}
.hero-scroll-cue i {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}
.hero-scroll-cue i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold-light);
  transform: translateX(-50%);
  animation: scroll-dot 1.7s ease-in-out infinite;
}
.hero-scroll-cue:hover { color: var(--gold-light); }
@keyframes scroll-dot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.back-to-top {
  position: fixed;
  right: 2.25rem;
  bottom: 6.4rem;
  z-index: 998;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 150, 62, 0.45);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(3, 9, 25, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  color: var(--white);
  background: var(--navy);
  transform: translateY(-3px) scale(1.04);
}
@media (max-width: 900px) {
  .hero-scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .back-to-top { right: 1.5rem; bottom: 5.8rem; }
}

/* ── HERO: RESEARCH CONSTELLATION BACKDROP ── */
#hero {
  background:
    linear-gradient(115deg, rgba(5, 14, 33, 0.2), rgba(5, 14, 33, 0.72)),
    radial-gradient(ellipse at 82% 38%, rgba(30, 91, 105, 0.42), transparent 38%),
    radial-gradient(ellipse at 12% 88%, rgba(110, 35, 60, 0.34), transparent 34%),
    linear-gradient(135deg, #071225 0%, #0b1f38 48%, #171426 100%);
}

.hero-grid-overlay {
  opacity: 0.65;
  background-image:
    radial-gradient(circle, rgba(235, 211, 157, 0.22) 0 1px, transparent 1.4px),
    linear-gradient(120deg, transparent 0 47%, rgba(200, 150, 62, 0.045) 48% 48.2%, transparent 49% 100%);
  background-size: 34px 34px, 220px 220px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 82%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

#hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  bottom: auto;
  left: auto;
  z-index: 0;
  width: min(72vw, 940px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: none;
  background: repeating-radial-gradient(
    circle,
    transparent 0 72px,
    rgba(229, 194, 113, 0.12) 73px 74px,
    transparent 75px 116px
  );
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 72%);
  mask-image: radial-gradient(circle, #000 18%, transparent 72%);
  animation: constellation-drift 18s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  top: -42%;
  right: -22%;
  bottom: auto;
  left: auto;
  width: min(82vw, 1050px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 42%;
  opacity: 0.22;
  background: conic-gradient(
    from 25deg,
    transparent 0 16%,
    rgba(224, 170, 85, 0.65) 22%,
    rgba(42, 137, 147, 0.52) 31%,
    transparent 42% 68%,
    rgba(192, 57, 43, 0.38) 77%,
    transparent 88%
  );
  filter: blur(58px);
  animation: constellation-aurora 22s linear infinite;
}

.hero-orb {
  z-index: 1;
  filter: none;
  opacity: 0.5;
  background: transparent;
  border: 1px solid rgba(224, 170, 85, 0.16);
}

.hero-orb-1 {
  top: 18%;
  right: 7%;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle at 50% 50%, rgba(200, 150, 62, 0.08), transparent 62%);
  box-shadow: 0 0 90px rgba(200, 150, 62, 0.08), inset 0 0 70px rgba(200, 150, 62, 0.06);
}

.hero-orb-2 {
  bottom: -9%;
  left: -5%;
  width: 330px;
  height: 330px;
  border-color: rgba(231, 76, 60, 0.14);
  background: radial-gradient(circle, rgba(192, 57, 43, 0.11), transparent 65%);
  box-shadow: 0 0 90px rgba(192, 57, 43, 0.08), inset 0 0 65px rgba(192, 57, 43, 0.06);
}

@keyframes constellation-drift {
  from { transform: translate3d(0, 0, 0) scale(0.96); }
  to { transform: translate3d(-3%, 3%, 0) scale(1.04); }
}

@keyframes constellation-aurora {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  #hero::before {
    top: 16%;
    right: -40%;
    width: 110vw;
  }

  #hero::after {
    top: -10%;
    right: -65%;
    width: 130vw;
    opacity: 0.16;
  }

  .hero-orb-1 {
    right: -45%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero::before,
  #hero::after {
    animation: none !important;
  }
}

.accent-gold {
  color: transparent;
  background: linear-gradient(100deg, #f8df9a, var(--gold), #fff0bd, var(--gold));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-shimmer 5s linear infinite;
}

@keyframes text-shimmer {
  to {
    background-position: 220% center;
  }
}

.hero-sub,
.hero-ctas,
.hero-stats {
  animation: content-up 0.75s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-sub { animation-delay: 0.42s; }
.hero-ctas { animation-delay: 0.54s; }
.hero-stats { animation-delay: 0.66s; }

@keyframes content-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.btn-primary,
.btn-secondary,
.ijphd-btn,
.cta-nav {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before,
.ijphd-btn::before,
.cta-nav::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.42) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.ijphd-btn:hover::before,
.cta-nav:hover::before {
  transform: translateX(120%);
}

.hero-card-visual,
.journal-card,
.about-visual {
  transform-style: preserve-3d;
  box-shadow: 0 28px 80px rgba(2, 8, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.hero-card-visual {
  animation: card-arrive 0.9s 0.42s both cubic-bezier(0.16, 1, 0.3, 1), card-float 5s 1.4s ease-in-out infinite;
}

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translate3d(35px, 20px, 0) rotateY(-7deg);
  }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(0.001deg); }
  50% { transform: translateY(-9px) rotate(0.001deg); }
}

.service-pill {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-pill:hover {
  z-index: 2;
  border-color: rgba(224, 170, 85, 0.7);
  background: rgba(200, 150, 62, 0.16);
  transform: translateY(-3px) scale(1.025);
}

.hero-stat-item .number {
  text-shadow: 0 8px 25px rgba(200, 150, 62, 0.2);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.35s ease;
}

section:hover .section-label::before {
  width: 46px;
}

.why-card,
.service-card,
.course-card,
.testi-card,
.softech-tech-card,
.contact-info-item,
.journal-stat,
.feature {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.why-card::before,
.service-card::before,
.course-card::before,
.testi-card::before,
.softech-tech-card::before,
.contact-info-item::before,
.journal-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 3px;
  background: linear-gradient(90deg, var(--red-light), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-card:hover::before,
.service-card:hover::before,
.course-card:hover::before,
.testi-card:hover::before,
.softech-tech-card:hover::before,
.contact-info-item:hover::before,
.journal-stat:hover::before {
  transform: scaleX(1);
}

.why-card:hover,
.service-card:hover,
.course-card:hover,
.testi-card:hover,
.contact-info-item:hover {
  border-color: rgba(200, 150, 62, 0.42);
  box-shadow: 0 22px 55px rgba(13, 27, 62, 0.13);
}

.why-icon,
.service-card-icon,
.tech-icon,
.contact-info-icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-card:hover .why-icon,
.service-card:hover .service-card-icon,
.softech-tech-card:hover .tech-icon,
.contact-info-item:hover .contact-info-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.08);
}

.tab-btn {
  position: relative;
  overflow: hidden;
}

.tab-btn::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s ease, left 0.3s ease;
}

.tab-btn:hover::after,
.tab-btn.active::after {
  right: 18%;
  left: 18%;
}

.reveal {
  filter: blur(3px);
}

.reveal.visible {
  filter: blur(0);
}

.services-grid .service-card,
.why-grid .why-card,
.courses-grid .course-card,
.testimonials-grid .testi-card {
  transition-delay: calc(var(--item-index, 0) * 35ms);
}

.service-card.service-enter {
  animation: service-enter 0.45s both cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: calc(var(--item-index, 0) * 30ms);
}

@keyframes service-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.contact-form {
  box-shadow: 0 25px 70px rgba(13, 27, 62, 0.1);
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-status.success {
  color: #167447;
}

.form-status.error {
  color: var(--red);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(200, 150, 62, 0.65);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 4px rgba(200, 150, 62, 0.1);
}

@media (max-width: 900px), (pointer: coarse) {
  body::before {
    display: none;
  }

  .hero-card-visual {
    animation: card-arrive 0.8s 0.25s both cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .scroll-progress {
    display: none;
  }

  .hero-card-visual,
  #hero::after,
  .accent-gold,
  .hero-title,
  .hero-badge,
  .hero-sub,
  .hero-ctas,
  .hero-stats {
    animation: none !important;
  }
}

/* Keep floating actions visually separated, including their shadows. */
.whatsapp-float {
  bottom: 6.5rem;
}

.back-to-top {
  bottom: 12.25rem;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 1.25rem;
    bottom: 1.5rem;
  }

  .back-to-top {
    right: 1.65rem;
    bottom: 7.5rem;
  }
}
