/* ===========================
   CSS Variables & Design Tokens
   =========================== */
:root {
  /* Primary Palette - Elevated Forest Greens */
  --primary-dark: #0a4f36;
  --primary: #0f8c65;
  --primary-light: #4ba88a;
  --primary-lighter: #b2e2d1;

  /* Secondary - Vibrant Olive/Lime */
  --secondary: #8a9a2e;
  --secondary-light: #acc03a;
  --secondary-accent: #d4e157;
  --bg-olive: linear-gradient(135deg, #8a9a2e 0%, #acc03a 100%);

  /* Teal & Deep Accents */
  --teal: #3a8f85;
  --teal-dark: #225a53;
  --teal-light: #76c1b8;
  --deep-forest: #072e21;

  /* Backgrounds & Surfaces */
  --bg-hero: linear-gradient(135deg, #d8f3dc 0%, #e9f5db 30%, #f0f7da 50%, #d8e2dc 80%, #cfe1d8 100%);
  --bg-challenge: linear-gradient(135deg, #f0fdf4 0%, #fcfdf2 40%, #f1f8f6 100%);
  --bg-dark-section: #0a4f36;
  --bg-light-mint: #f4faf8;
  --bg-glass-white: rgba(255, 255, 255, 0.7);
  --bg-glass-dark: rgba(10, 79, 54, 0.1);

  /* Text Colors */
  --text-heading: #0a3d2e;
  --text-heading-dark: #05241b;
  --text-body: #2d3e35;
  --text-body-light: #526b5d;
  --text-white: #ffffff;
  --text-muted: rgba(45, 62, 53, 0.7);

  /* Borders & Shadows */
  --border-light: rgba(15, 140, 101, 0.12);
  --border-glass: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(15, 140, 101, 0.3);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1240px;
  --container-padding: 0 40px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1600px) {
  :root {
    --container-max: 1440px;
  }
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bg-light-mint);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===========================
   Scroll Animations
   =========================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay utility classes */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.invisible-logo {
  height: 48px;
  width: auto;
  transition: var(--transition-medium);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  /* Sharpness Optimizations */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
  flex-shrink: 0;
}

.navbar.scrolled .invisible-logo {
  height: 32px;
}

.brand-divider {
  height: 32px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--primary-light), transparent);
  margin: 0 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  height: 48px;
  width: auto;
  transition: var(--transition-medium);
  flex-shrink: 0;
}

.navbar.scrolled .logo-icon {
  height: 40px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-dark) !important;
  color: var(--text-white) !important;
  padding: 12px 28px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
  background: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 140, 101, 0.3);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2.5px;
  background: var(--text-heading-dark);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-medium);
  gap: 8px;
}

.btn-primary {
  background: var(--primary-dark);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(13, 110, 78, 0.25);
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 78, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 78, 0.25);
}

.btn-white {
  background: var(--text-white);
  color: var(--primary-dark);
}

.btn-white:hover {
  background: var(--bg-light-mint);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-hero);
  padding: 160px 20px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(15, 140, 101, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(138, 154, 46, 0.15), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), transparent 70%);
  animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.hero-logo {
  margin-bottom: 40px;
}

.hero-logo-img {
  width: 240px;
  max-width: 80%;
  margin: 0 auto;
  animation: logoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.hero:hover .particle,
.hero:active .particle {
  animation-play-state: paused;
}

.particle {
  position: absolute;
  border-radius: 50%;
  top: -20px;
  z-index: 1;
  pointer-events: none;
  animation-name: floatParticle;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) rotate(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  color: var(--text-heading);
  margin-bottom: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-heading-dark), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
  box-shadow: 0 10px 25px rgba(10, 79, 54, 0.25);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-light);
  color: var(--primary-dark);
}

/* ===========================
   SECTION: The Challenge
   =========================== */
.section-challenge {
  padding: var(--section-padding);
  background: var(--bg-challenge);
  position: relative;
  overflow: hidden;
}

.section-challenge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(200, 220, 200, 0.5), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(215, 225, 170, 0.4), transparent 60%);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-heading);
  position: relative;
  z-index: 1;
}

.challenge-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.challenge-text h3 {
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.challenge-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.challenge-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.challenge-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.challenge-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   SECTION: Why Traditional Methods
   =========================== */
.section-traditional {
  padding: var(--section-padding);
  background: var(--bg-olive);
  position: relative;
}

.section-traditional .section-title {
  color: var(--text-white);
}

.traditional-card-container {
  background: rgba(230, 240, 210, 0.85);
  border-radius: 24px;
  padding: 50px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.traditional-card-container h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 40px;
}

.traditional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.traditional-item {
  background: var(--bg-glass-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  transition: all var(--transition-medium);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.traditional-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
  border-color: var(--primary-light);
}

.traditional-item .item-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.75rem;
  color: var(--text-white);
  box-shadow: 0 8px 16px rgba(10, 79, 54, 0.2);
}

.traditional-item h4 {
  font-size: 1.35rem;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.traditional-item p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ===========================
   SECTION: The Solution
   =========================== */
.section-solution {
  padding: var(--section-padding);
  background: var(--bg-challenge);
  position: relative;
  overflow: hidden;
}

.section-solution::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(200, 220, 200, 0.5), transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(180, 210, 200, 0.4), transparent 60%);
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.solution-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.solution-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-text h3 {
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.solution-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

/* ===========================
   SECTION: Gaming Solutions
   =========================== */
.section-gaming {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--primary-light) 100%);
  position: relative;
}

.section-gaming .section-title {
  color: var(--text-white);
}

.gaming-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.gaming-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.gaming-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.gaming-card-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.gaming-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(5, 36, 27, 0.4));
}

.gaming-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.gaming-card:hover .gaming-card-image img {
  transform: scale(1.15);
}

.gaming-card-content {
  padding: 40px;
  flex-grow: 1;
}

.gaming-card h3 {
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 16px;
  font-weight: 700;
}

.gaming-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ===========================
   SECTION: Specialised Games List
   =========================== */
.section-specialised {
  padding: var(--section-padding);
  background: var(--bg-challenge);
  position: relative;
  overflow: hidden;
}

.section-specialised::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(200, 230, 210, 0.5), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(220, 230, 170, 0.4), transparent 60%);
}

.specialised-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.specialised-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-medium);
}

.specialised-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.specialised-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(138, 154, 46, 0.3);
}

.specialised-item-content h4 {
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 700;
}

.specialised-item-content p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ===========================
   SECTION: Benefits
   =========================== */
.section-benefits {
  padding: var(--section-padding);
  background: linear-gradient(to bottom, var(--deep-forest), var(--primary-dark));
  position: relative;
  overflow: hidden;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 48px;
  transition: all var(--transition-medium);
}

.benefit-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-light);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.benefit-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin-bottom: 32px;
  color: var(--text-white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.benefit-card h3 {
  font-size: 1.75rem;
  color: var(--text-white);
  margin-bottom: 24px;
  font-weight: 700;
}

.benefit-list li {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  padding-left: 32px;
  position: relative;
  line-height: 1.6;
}

.benefit-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--secondary-light);
  font-size: 1.2rem;
}

/* ===========================
   SECTION: Smart Therapy Management
   =========================== */
.section-management {
  padding: var(--section-padding);
  background: var(--bg-light-mint);
  position: relative;
}

.management-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-body-light);
  margin-bottom: 50px;
  margin-top: -40px;
}

.management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.management-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-light);
  transition: var(--transition-medium);
  position: relative;
}

.management-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.management-item .item-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.management-item h4 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}

.management-item p {
  font-size: 0.95rem;
  color: var(--text-body-light);
  line-height: 1.7;
}

.management-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 0 0 16px 16px;
  opacity: 0;
  transition: var(--transition-medium);
}

.management-item:hover::after {
  opacity: 1;
}

/* ===========================
   SECTION: Transform Practice
   =========================== */
.section-transform {
  padding: var(--section-padding);
  background: var(--bg-challenge);
  position: relative;
  overflow: hidden;
}

.section-transform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200, 220, 200, 0.4), transparent 60%);
}

.transform-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.transform-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.transform-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.transform-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.transform-text h3 {
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.transform-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

.why-choose-list {
  list-style: none;
  margin-top: 20px;
}

.why-choose-list li {
  font-size: 1.02rem;
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-body);
}

.why-choose-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===========================
   SECTION: Contact
   =========================== */
.section-contact {
  padding: var(--section-padding);
  background: var(--bg-olive);
  position: relative;
}

.contact-wrapper {
  background: rgba(230, 240, 210, 0.85);
  border-radius: 24px;
  padding: 60px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.contact-info>p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--primary-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-body-light);
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-detail-text p,
.contact-detail-text a {
  font-size: 1rem;
  color: var(--text-heading);
  font-weight: 500;
}

.contact-detail-text a:hover {
  color: var(--primary);
}

.contact-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.contact-map-note {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-top: 16px;
  line-height: 1.7;
  text-align: center;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 40px 0;
  background: var(--text-heading-dark);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-logo-text span {
  color: var(--primary-light);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 20px auto;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-company {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-company-logo {
  height: 30px;
  opacity: 0.7;
}


/* ===========================
   Utility - Smooth scroll target offset
   =========================== */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================================================
   MODERN CONTACT & FOOTER (Inspired by Clarity Mech Website)
   ============================================================ */

.section-contact-modern {
  padding: 0;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
  z-index: 0;
}

.contact-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 110, 78, 0.9) 0%, rgba(15, 140, 101, 0.4) 100%);
  z-index: 1;
}

.contact-flex-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
  padding: 100px 0 60px;
  position: relative;
  z-index: 2;
}

.section-title-modern {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: left;
}

.contact-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-lighter);
  margin-bottom: 2rem;
}

.contact-info-panel p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  text-align: left;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.info-item a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  word-break: break-word;
}

.info-item a:hover {
  color: var(--primary-lighter);
  transform: translateX(5px);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-lighter);
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-action-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-filled {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
}

.btn-filled:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outlined {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outlined:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.social-links-modern {
  display: flex;
  gap: 1rem;
}

.social-links-modern a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-modern a:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(15, 140, 101, 0.3);
}

.social-links-modern.small a {
  width: 35px;
  height: 35px;
  font-size: 1rem;
}

/* Form Panel */
.modern-form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sent-message, .error-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.sent-message {
  background: rgba(15, 140, 101, 0.2);
  border: 1px solid var(--primary-light);
  color: #fff;
}

.error-message {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #fff;
}

.modern-form-card h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 2rem;
  text-align: left;
}

.modern-form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modern-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-form-group input,
.modern-form-group select,
.modern-form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-form-group select option {
  background-color: #0a4f36; /* Matches primary-dark theme color */
  color: #ffffff;
}

.modern-form-group input:focus,
.modern-form-group select:focus,
.modern-form-group textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(15, 140, 101, 0.2);
}

.btn-modern.full-width {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 1.25rem;
}

/* Map Placeholder */
.map-link-container {
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.modern-map-link {
  text-decoration: none;
}

.modern-map-placeholder {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  color: var(--primary-lighter);
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modern-map-placeholder:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-lighter);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer Modern */
.modern-footer {
  background: #05070a;
  padding: 80px 0 40px;
  color: #fffa;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 60px;
}

.footer-logo-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand-text span {
  color: var(--primary-light);
}

.brand-description {
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-nav-links h4,
.footer-contact-info h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-nav-links ul,
.footer-contact-info ul {
  list-style: none;
  padding: 0;
}

.footer-nav-links li,
.footer-contact-info li {
  margin-bottom: 1rem;
  text-align: left;
}

.footer-nav-links a,
.footer-contact-info a,
.footer-contact-info span {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-nav-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact-info i {
  color: var(--primary-light);
  width: 20px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.powered-by a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.powered-by img {
  height: 30px;
  filter: brightness(1.2);
}


/* ===========================
   MODAL / POPUP STYLES
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  border-radius: 24px;
  width: 95%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-light-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  color: var(--primary);
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 140, 101, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(15, 140, 101, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 140, 101, 0);
  }
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.modal-text {
  color: var(--text-body);
  margin-bottom: 30px;
  line-height: 1.6;
}

.modal-btn {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.05rem;
  font-family: var(--font-body);
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 140, 101, 0.2);
}

.modal-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(15, 140, 101, 0.3);
}

/* ===========================
   RESPONSIVE DESIGN (Consolidated)
   =========================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 30px;
  }

  .challenge-content,
  .solution-content,
  .transform-content,
  .contact-grid,
  .contact-flex-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-flex-wrapper {
    padding: 60px 0;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .gaming-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialised-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .section-title-modern {
    font-size: 2.8rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: var(--transition-medium);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-brand-group {
    gap: 0.75rem;
  }

  .invisible-logo {
    height: 36px;
  }

  .logo-icon {
    height: 38px;
  }

  .brand-divider {
    height: 24px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .challenge-content,
  .solution-content,
  .transform-content {
    text-align: center;
    grid-template-columns: 1fr;
  }

  .solution-content .solution-image {
    order: -1;
  }

  .traditional-grid {
    grid-template-columns: 1fr;
  }

  .traditional-card-container {
    padding: 30px;
  }

  .traditional-card-container h3 {
    font-size: 1.75rem;
  }

  .gaming-cards {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card:last-child {
    max-width: 100%;
  }

  .benefit-card {
    padding: 30px;
  }

  .management-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-wrapper {
    padding: 30px;
  }

  .specialised-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-contact-modern {
    padding-top: 60px;
  }

  .section-title-modern {
    font-size: 2.2rem;
    text-align: center;
  }

  .contact-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contact-info-panel,
  .contact-form-panel {
    width: 100%;
    margin: 0 auto;
  }

  .contact-info-panel p {
    text-align: center;
  }

  .contact-action-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn-modern {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .social-links-modern {
    justify-content: center;
  }

  .modern-form-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
  }

  .hero {
    padding: 100px 15px 40px;
  }

  .nav-brand-group {
    gap: 0.4rem;
    max-width: 75%;
  }

  .invisible-logo {
    height: 28px;
  }

  .brand-divider {
    height: 20px;
    margin: 0 0.15rem;
  }

  .logo-text {
    font-size: 1rem;
    white-space: nowrap;
  }

  .logo-icon {
    height: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .section-contact-modern {
    padding-top: 40px;
  }

  .section-title-modern {
    font-size: 1.8rem;
  }

  .modern-form-card {
    padding: 1.5rem;
  }

  .footer-main-grid {
    gap: 1.5rem;
  }

  .modal-container {
    padding: 35px 25px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .contact-flex-wrapper {
    width: 90vw;
  }

  .contact-info-panel {
    width: 90vw;
  }

  .contact-form-panel {
    width: 90vw;
  }
}