/* ========================================
   MOBILE RESPONSIVE STYLES
   Comprehensive mobile optimization
   ======================================== */

/* ========================================
   NAVBAR - CRITICAL FIX
   ======================================== */

/* Force navbar to always be visible */
.navbar,
nav.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.dark .navbar,
.dark nav.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Loading screen should be below navbar */
.loading-screen {
    z-index: 99990 !important;
}

/* ========================================
   HIDDEN SCROLLBAR - Premium App Feel
   ======================================== */

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html, body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* CRITICAL: Prevent horizontal scroll on all devices */
html {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    max-width: 100vw !important;
    position: relative;
}

body {
    overflow-x: hidden !important;
    position: relative;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Force all elements to respect viewport bounds */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent any element from causing horizontal overflow */
main,
section,
div,
nav,
header,
footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 49;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.dark .mobile-nav {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dark .mobile-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ========== MOBILE TYPOGRAPHY ========== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    /* Hero text sizing */
    .hero h1,
    .hero-title,
    .text-5xl.md\\:text-7xl {
        font-size: 1.75rem !important;
        line-height: 1.15 !important;
    }

    .hero h1 .inline-block img,
    .hero-title img {
        height: 1em !important;
        margin-top: -0.2em !important;
    }

    /* Section headings */
    section h2,
    .section-title {
        font-size: 1.75rem !important;
    }

    /* Card text */
    .service-card h3,
    .value-card h3 {
        font-size: 1.125rem !important;
    }

    /* General text */
    .text-responsive {
        font-size: 0.9375rem !important;
    }
}

@media (max-width: 480px) {

    .hero h1,
    .hero-title,
    .text-5xl.md\\:text-7xl {
        font-size: 1.5rem !important;
    }

    section h2,
    .section-title,
    .text-4xl {
        font-size: 1.375rem !important;
    }
}

/* ========== MOBILE SPACING ========== */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    main {
        padding-top: 5rem !important;
        width: 100%;
        overflow-x: hidden;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .p-12 {
        padding: 1.5rem !important;
    }

    .p-10 {
        padding: 1.25rem !important;
    }

    .p-8 {
        padding: 1rem !important;
    }

    .gap-12 {
        gap: 1.5rem !important;
    }

    .gap-8 {
        gap: 1rem !important;
    }

    .mb-16 {
        margin-bottom: 2rem !important;
    }

    .mb-10 {
        margin-bottom: 1.5rem !important;
    }

    .mb-8 {
        margin-bottom: 1rem !important;
    }
}

/* ========== MOBILE GRID/FLEX ========== */
@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .lg\\:grid-cols-2,
    .lg\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Stats section */
    .counter {
        font-size: 2.5rem !important;
    }

    /* Card adjustments */
    .service-card,
    .value-card,
    .bg-white.rounded-3xl,
    .bg-white.rounded-\[2rem\],
    .bg-white.rounded-\[2.5rem\] {
        border-radius: 1.25rem !important;
    }

    /* Image heights */
    .h-64,
    .h-48 {
        height: auto !important;
        min-height: 200px;
    }

    .h-28 {
        height: 3rem !important;
    }

    /* Logo carousel - prevent overflow */
    .logo-carousel,
    .logo-track {
        display: flex !important;
    }

    .logo-carousel {
        width: 100% !important;
        overflow: hidden !important;
    }

    .logo-track {
        width: max-content !important;
    }

    .logo-carousel img,
    .logo-track img {
        height: 2rem !important;
        width: auto !important;
        max-width: 100px !important;
        flex-shrink: 0 !important;
    }

    /* Ensure parent containers don't overflow */
    .relative.overflow-hidden {
        overflow: hidden !important;
    }

    /* Hide glow blobs on mobile */
    .glow-blob-1,
    .glow-blob-2 {
        display: none !important;
    }

    /* Fix max-width containers */
    .max-w-7xl,
    .max-w-5xl,
    .max-w-3xl,
    .max-w-2xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Fix flex containers */
    .flex {
        max-width: 100%;
    }

    /* Fix gap-12 and gap-20 that might cause overflow */
    .gap-12,
    .gap-20,
    .md\\:gap-20 {
        gap: 1rem !important;
    }
}

/* ========== MOBILE NAVBAR ========== */
@media (max-width: 768px) {

    nav.navbar,
    nav.fixed {
        height: 64px !important;
    }

    nav .text-2xl {
        font-size: 1.25rem !important;
    }

    nav .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* CTA button in nav */
    nav a.bg-primary {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }

    nav a.bg-primary span:first-child {
        display: none;
    }
}

/* ========== MOBILE CARDS ========== */
@media (max-width: 768px) {

    /* Portfolio/Case study cards */
    .group.flex-col.lg\\:flex-row,
    .group.flex-col.lg\\:flex-row-reverse {
        border-radius: 1.5rem !important;
    }

    .group.flex-col.lg\\:flex-row .h-\[400px\],
    .group.flex-col.lg\\:flex-row-reverse .h-\[400px\] {
        height: 250px !important;
    }

    /* Feature cards with images */
    .flex.-space-x-4 {
        gap: 0.5rem;
    }

    .flex.-space-x-4 img {
        width: 4rem !important;
        height: 5rem !important;
    }
}

/* ========== MOBILE HERO SECTION ========== */
@media (max-width: 768px) {

    .hero .cta-group button,
    .hero button.bg-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem !important;
    }

    .hero-badge {
        font-size: 0.6875rem !important;
        padding: 0.375rem 0.875rem !important;
    }

    /* Cookie banner mobile fix */
    .fixed.bottom-6.right-6 {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        max-width: none !important;
        width: auto !important;
    }

    .fixed.bottom-6.right-6 .flex-wrap {
        flex-direction: column;
    }

    .fixed.bottom-6.right-6 button {
        width: 100%;
    }

    /* Fix logo carousel overflow */
    .logo-carousel,
    .logo-track {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .logo-track img {
        max-width: none !important;
        height: 2rem !important;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix hero section */
    .hero {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Fix any absolutely positioned elements */
    .glow-blob-1,
    .glow-blob-2 {
        display: none !important;
    }

    /* Ensure all sections stay within bounds */
    section {
        max-width: 100% !important;
        overflow-x: hidden !important;
        width: 100%;
    }

    /* Fix reveal text overflow */
    .reveal-text {
        display: inline !important;
    }

    .reveal-text span {
        display: inline !important;
    }

    /* Fix inline images in hero */
    .hero h1 img,
    h1 img {
        display: inline-block;
        max-width: 1em !important;
        height: 1em !important;
        vertical-align: middle;
    }

    /* Ensure nav stays in bounds */
    nav {
        max-width: 100% !important;
        width: 100% !important;
    }

    nav .max-w-7xl {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ========== MOBILE FOOTER ========== */
@media (max-width: 768px) {
    footer .grid {
        gap: 2rem !important;
    }

    footer h4 {
        font-size: 0.875rem !important;
    }

    footer a {
        font-size: 0.8125rem !important;
    }
}

/* ========== MOBILE FORMS ========== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }
}

/* ========== MOBILE ANIMATIONS ========== */
@media (max-width: 768px) {

    /* Reduce animation complexity on mobile */
    .glow-blob-1,
    .glow-blob-2 {
        display: none !important;
    }

    /* Disable complex hover effects on touch devices */
    @media (hover: none) {
        .group:hover .group-hover\\:scale-105 {
            transform: none !important;
        }

        .hover\\:shadow-2xl:hover {
            box-shadow: none !important;
        }
    }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .btn:hover,
    button:hover,
    a:hover {
        transform: none !important;
    }

    /* Increase touch targets */
    .mobile-nav a,
    button,
    a {
        min-height: 44px;
    }
}

/* ========== PAGE-SPECIFIC MOBILE STYLES ========== */

/* About page stats */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-item {
        padding: 1rem !important;
    }

    .stat-number {
        font-size: 1.75rem !important;
    }
}

/* Services page */
@media (max-width: 768px) {
    .service-detail {
        padding: 1.5rem !important;
    }

    .service-detail-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .service-features {
        grid-template-columns: 1fr !important;
    }
}

/* Contact page */
@media (max-width: 768px) {
    .contact-method {
        padding: 1rem !important;
    }

    .method-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Portfolio page */
@media (max-width: 768px) {
    .portfolio-item.featured {
        padding: 1rem !important;
    }

    .portfolio-image {
        height: 200px !important;
        margin: 0 !important;
        border-radius: 0.75rem !important;
    }

    .portfolio-meta {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* ========== SAFARI/FIXES ========== */
@supports (-webkit-touch-callout: none) {

    /* iOS specific fixes */
    .fixed {
        position: fixed;
    }

    input,
    textarea {
        -webkit-appearance: none;
        border-radius: 0.5rem;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mobile-nav {
        transition: none !important;
    }
}

/* ========================================
   CUSTOM FAQ ACCORDION
   ======================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.dark .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.dark .faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: #64748b;
  line-height: 1.6;
}

.dark .faq-answer-content {
  color: #94a3b8;
}

/* ========================================
   PARALLAX SCROLL EFFECTS
   ======================================== */

.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-slow {
  will-change: transform;
}

.parallax-fast {
  will-change: transform;
}

.parallax-rotate {
  will-change: transform;
}

/* Floating animation for elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

/* Subtle pulse for glow effects */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Decorative background shapes - subtle gray/blue tones */
.parallax-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.3;
}

.parallax-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  top: 10%;
  right: -100px;
}

.parallax-shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  bottom: 20%;
  left: -100px;
}

.dark .parallax-shape {
  opacity: 0.15;
}

.dark .parallax-shape-1 {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.dark .parallax-shape-2 {
  background: linear-gradient(135deg, #334155, #1e293b);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

/* IMPORTANT: All elements visible by default */
.reveal,
.reveal-animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Disable reveal animations on mobile for better performance */
@media (max-width: 768px) {
  .reveal,
  .reveal-animated,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========================================
   MAGNETIC BUTTONS & HOVER EFFECTS
   ======================================== */

.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-magnetic:hover::before {
  opacity: 1;
}

/* Card hover lift effect - fixed overflow issue */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dark .card-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Ensure parent containers don't clip hover effects */
.grid,
.flex {
  overflow: visible !important;
}

/* Image zoom on hover */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Link underline animation */
.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Glow effect on hover */
.glow-hover {
  transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Button press effect */
.btn-press {
  transition: transform 0.1s ease;
}

.btn-press:active {
  transform: scale(0.96);
}

/* Shine effect on buttons */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-shine:hover::after {
  left: 100%;
}

/* Icon bounce on hover */
.icon-bounce {
  transition: transform 0.3s ease;
}

.group:hover .icon-bounce {
  transform: translateX(4px);
}

/* Border draw animation */
.border-draw {
  position: relative;
}

.border-draw::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 0.3s ease;
}

.border-draw:hover::before {
  border-color: currentColor;
}

/* ========================================
   VIDEO TESTIMONIAL SECTION
   ======================================== */

.video-testimonial-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.dark .video-testimonial-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .video-testimonial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.video-testimonial-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.video-testimonial-content p {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.dark .video-testimonial-content p {
  color: #94a3b8;
}

.video-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.video-testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-testimonial-info h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.video-testimonial-info p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.dark .video-testimonial-info p {
  color: #94a3b8;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.video-play-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 4px;
}
/* ========================================
   DROPDOWN NAVIGATION
   ======================================== */

.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 100;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0.5rem 0.5rem;
  margin: -0.5rem -0.5rem;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 101;
  border-radius: 8px;
}

.nav-dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark .nav-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.nav-dropdown.active .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border-radius: 16px;
  padding: 12px;
  min-width: 220px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 9999;
}

.dark .nav-dropdown-menu {
  background: #1a1a1a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-icon-box {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dark .nav-dropdown-icon-box {
  background: #334155;
}

.nav-dropdown-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-dropdown-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.dark .nav-dropdown-desc {
  color: #94a3b8;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.dark .loading-screen {
  background: #0a0a0a;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
  background: linear-gradient(135deg, #000 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loadingPulse 2s ease-in-out infinite;
}

.dark .loading-logo {
  background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.loading-bar-container {
  width: 200px;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.dark .loading-bar-container {
  background: rgba(255, 255, 255, 0.1);
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #000, #4b5563);
  border-radius: 3px;
  animation: loadingProgress 2s ease-in-out infinite;
  transform-origin: left;
}

.dark .loading-bar {
  background: linear-gradient(90deg, #fff, #9ca3af);
}

@keyframes loadingProgress {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}

.loading-text {
  font-size: 0.875rem;
  color: #64748b;
  letter-spacing: 0.05em;
}

.dark .loading-text {
  color: #94a3b8;
}

/* ========================================
   ENHANCED TESTIMONIAL CARDS
   ======================================== */

.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.dark .testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.dark .testimonial-card::before {
  color: rgba(255, 255, 255, 0.03);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.dark .testimonial-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.dark .testimonial-quote {
  color: #e2e8f0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .testimonial-avatar {
  border-color: #1e293b;
}

.testimonial-avatar-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #7c3aed;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .testimonial-avatar-initials {
  border-color: #1e293b;
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
  color: #ede9fe;
}

.testimonial-info h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.dark .testimonial-info h4 {
  color: #f8fafc;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.dark .testimonial-info p {
  color: #94a3b8;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-rating svg {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
  color: #fbbf24;
}
