        :root {
            --primary: #111827;
            --secondary: #6530ce;
            --light: #f6f3fc;
            --dark: #1f2937;
        }

        body {
            font-family: 'Inter', 'Inter', sans-serif;
            color: var(--dark);
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'DM Sans', 'DM Sans', sans-serif;
            font-weight: 700;
        }

        .custom-navbar {
  height: 70px;
  padding-top: 0;
  padding-bottom: 0;
  background-color: #111827;
}
html {
  scroll-padding-top: 70px;
}
#consultation {
    scroll-margin-top: 70px;
}

.custom-navbar .navbar-brand img {
  max-height: 40px;
  object-fit: contain;
}

.navbar-logo {
  max-height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

body {
  overflow-x: hidden;
}

.navbar .btn {
  white-space: nowrap;
}

/* padding-top now set inline in critical CSS (64px) to prevent FOUC */
.container {
  -webkit-overflow-scrolling: touch;
}

.navbar-logo {
  max-height: 50px;
  height: auto;
  width: auto;
}

        .navbar {
            background-color: #111827;
            transition: all 0.3s;
            padding: 15px 0;
        }

        .navbar.scrolled {
            background-color: #111827 !important;
            padding: 10px 0;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
        }

        .hero-section {
            position: relative;
            height: 50vh;
            min-height: 600px;
            overflow: hidden;
            display: flex;
            align-items: center;
        }

        .hero-fallback {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: -2;
        }

        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .hero-video.playing {
            opacity: 1;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(17, 24, 39, 0.72);
            z-index: -1;
        }

        .hero-content {
            color: white;
            z-index: 1;
        }

        .btn-primary {
            background-color: #6530ce;
            border-color: #6530ce;
            color: #ffffff;
        }

        .btn-primary:hover,
        .btn-primary:focus,
        .btn-primary:active,
        .btn-primary:focus-visible {
            background-color: #5022a9;
            border-color: #5022a9;
            color: #ffffff;
        }

        .btn-secondary {
            background-color: #6530ce;
            border-color: #6530ce;
            color: #ffffff;
        }

        .btn-secondary:hover,
        .btn-secondary:focus,
        .btn-secondary:active,
        .btn-secondary:focus-visible {
            background-color: #5022a9;
            border-color: #5022a9;
            color: #ffffff;
        }

        .text-secondary {
            color: #6530ce !important;
        }

        .service-card {
            transition: all 0.3s;
            border: none;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            height: 100%;
        }

        #privacyModal .modal-content {
            color: black;
            text-align: left;
        }

        #termsModal .modal-content {
            color: black;
            text-align: left;
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .service-icon {
            font-size: 2.5rem;
            color: var(--secondary);
            margin-bottom: 15px;
        }

        .practice-card {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            margin-bottom: 20px;
            height: 250px;
        }

        .practice-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .practice-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(17, 24, 39, 0.9), transparent);
            color: white;
            padding: 20px;
        }

        .practice-card:hover .practice-img {
            transform: scale(1.1);
        }

        .testimonial-card {
            border-left: 4px solid var(--secondary);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin: 10px;
        }

        .testimonial-img {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--secondary);
        }

        footer {
            background-color: #1f2937;
            color: white;
            padding: 50px 0 20px;
        }

        footer a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.3s;
        }

        footer a:hover {
            color: white;
            text-decoration: underline;
        }

        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            margin-right: 10px;
            transition: all 0.3s;
        }

        .social-icon:hover {
            background-color: var(--secondary);
            transform: translateY(-3px);
        }

        .section-title {
            position: relative;
            margin-bottom: 40px;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--secondary);
        }

        .about-timeline {
            position: relative;
            padding-left: 30px;
        }

        .about-timeline:before {
            content: '';
            position: absolute;
            top: 0;
            left: 10px;
            height: 100%;
            width: 2px;
            background-color: var(--secondary);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 30px;
        }

        .timeline-item:before {
            content: '';
            position: absolute;
            top: 5px;
            left: -30px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: var(--primary);
            border: 3px solid var(--secondary);
        }

        .team-card {
            border: none;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
            transition: all 0.3s;
        }

        .team-card:hover {
            transform: translateY(-10px);
        }

        .team-img {
            height: 250px;
            object-fit: cover;
        }

        .contact-info-box {
            padding: 30px;
            border-radius: 10px;
            background-color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
            height: 100%;
        }

        .contact-icon {
            font-size: 2rem;
            color: var(--secondary);
            margin-bottom: 15px;
        }

        .accordion-button:not(.collapsed) {
            background-color: rgba(101,48,206, 0.1);
            color: var(--dark);
        }

        .accordion-button:focus {
            box-shadow: none;
            border-color: rgba(101,48,206, 0.25);
        }

        .process-step {
            position: relative;
            padding-left: 80px;
            margin-bottom: 40px;
        }

        .step-number {
            position: absolute;
            left: 0;
            top: 0;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: var(--secondary);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
        }

        /* Warm off-white for light sections */
        .bg-light {
            background-color: #f6f3fc !important;
        }

        /* Ensure form controls have visible focus ring for accessibility */
        .form-control:focus,
        .form-select:focus {
            border-color: #6530ce;
            box-shadow: 0 0 0 0.2rem rgba(101,48,206, 0.25);
        }

        /* btn-outline-light hover: use gold tint on dark bg */
        .navbar .btn-outline-light:hover {
            background-color: rgba(101,48,206, 0.15);
            border-color: #6530ce;
            color: #6530ce;
        }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS (site-wide)
   ============================================================ */

/* Fade + slide up */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  -webkit-transform: translateY(32px);
  transition: opacity .6s cubic-bezier(.25,.46,.45,.94),
              transform .6s cubic-bezier(.25,.46,.45,.94),
              -webkit-transform .6s cubic-bezier(.25,.46,.45,.94);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.reveal.reveal-left  { transform: translateX(-44px); -webkit-transform: translateX(-44px) }
.reveal.reveal-right { transform: translateX(44px);  -webkit-transform: translateX(44px)  }
.reveal.visible      { opacity: 1; transform: translate(0,0); -webkit-transform: translate(0,0) }

/* Pop from back (cards) */
.reveal-card {
  opacity: 0;
  transform: scale(0.82) translateY(24px);
  -webkit-transform: scale(0.82) translateY(24px);
  transition: opacity .5s ease,
              transform .5s cubic-bezier(0.34,1.06,0.64,1),
              -webkit-transform .5s cubic-bezier(0.34,1.06,0.64,1);
  /* backface-visibility forces GPU layer in Safari — same effect as will-change in Chrome */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.reveal-card.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  -webkit-transform: scale(1) translateY(0);
}

/* Stagger delays */
.reveal-d1 { transition-delay: .07s }
.reveal-d2 { transition-delay: .14s }
.reveal-d3 { transition-delay: .21s }
.reveal-d4 { transition-delay: .28s }
.reveal-d5 { transition-delay: .35s }
.reveal-d6 { transition-delay: .42s }

/* ============================================================
   BUTTON ANIMATIONS
   ============================================================ */
/* btn-ring-pulse: uses only opacity+transform — fully GPU-composited, zero repaints */
@keyframes btn-ring-pulse {
  0%   { opacity: .75; transform: scale(1); }
  80%  { opacity: 0;   transform: scale(1.22); }
  100% { opacity: 0;   transform: scale(1.22); }
}
.btn-primary {
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(101,48,206,.65);
  pointer-events: none;
  animation: btn-ring-pulse 2.4s ease-out infinite;
}
.btn-primary:hover,
.btn-primary:focus { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(101,48,206,.35) }
.btn-primary:hover::after,
.btn-primary:focus::after { animation: none; opacity: 0; }

.btn-outline-light {
  transition: transform .2s ease, background-color .25s ease,
              border-color .25s ease, color .25s ease;
}
.btn-outline-light:hover { transform: translateY(-2px) }

/* ============================================================
   CARD HOVER EFFECTS
   ============================================================ */
/* Service cards */
.service-card {
  transition: transform .3s cubic-bezier(.34,1.3,.64,1), box-shadow .3s ease !important;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.18) !important;
}
.service-card:hover .service-icon i,
.service-card:hover .service-icon svg { animation: icon-bounce .45s ease }
@keyframes icon-bounce {
  0%,100% { transform: translateY(0) scale(1) }
  40%     { transform: translateY(-8px) scale(1.2) }
  70%     { transform: translateY(-2px) scale(1.05) }
}

/* Practice cards */
.practice-card {
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.28,.64,1), box-shadow .35s ease;
}
.practice-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 36px rgba(0,0,0,.25) }
.practice-img        { transition: transform .6s ease }
.practice-card:hover .practice-img  { transform: scale(1.1) }
.practice-overlay    { transition: background .35s ease }
.practice-card:hover .practice-overlay { background: linear-gradient(to top,rgba(17,24,39,1),rgba(17,24,39,.2)) }

/* Generic cards */
.card:not(.service-card):not(.practice-card) {
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:not(.service-card):not(.practice-card):hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* Team cards */
.team-card { transition: transform .3s ease, box-shadow .3s ease }
.team-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,.15) }

/* Contact info boxes */
.contact-info-box { transition: transform .3s ease, box-shadow .3s ease }
.contact-info-box:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.12) }

/* Social icons */
.social-icon { transition: transform .25s ease }
.social-icon:hover { transform: scale(1.2) }

/* Images */
img.img-fluid:not(.navbar-logo) { transition: transform .4s ease }
img.img-fluid:not(.navbar-logo):hover { transform: scale(1.03) }

/* ============================================================
   MOBILE PERFORMANCE — opacity-only, no transforms, no GPU layers
   ============================================================ */
@media (max-width: 767.98px) {

  /* Replace all transform-based reveals with simple fade */
  .reveal,
  .reveal-card {
    transform: none !important;
    opacity: 0;
    transition: opacity .4s ease !important;
    will-change: auto !important;
  }
  .reveal.visible,
  .reveal-card.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Kill stagger on mobile — too many delayed items = perceived freeze */
  .reveal-d1,.reveal-d2,.reveal-d3,.reveal-d4,.reveal-d5,.reveal-d6 {
    transition-delay: 0s !important;
  }

  /* Kill button ring on mobile — saves two compositing layers per button */
  .btn-primary::after { display: none !important; }
  .btn-primary { animation: none !important; }

  /* No hover transforms on touch screens */
  .service-card:hover,
  .practice-card:hover,
  .card:not(.service-card):not(.practice-card):hover,
  .team-card:hover,
  .contact-info-box:hover,
  img.img-fluid:not(.navbar-logo):hover {
    transform: none !important;
  }
}
