/* ===== BRANDO CSS DESIGN ===== */
/* Color Scheme: #352129 (dark burgundy) & #eb3252 (red/pink) */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #352129;
  --secondary-color: #eb3252;
  --secondary-color-darker: #ab0b26;
  --primary-light: #4a2f37;
  --secondary-light: #f55573;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --text-dark: #212529;
  --text-light: #6c757d;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-mixed: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-dark: linear-gradient(135deg, var(--secondary-color-darker) 0%, var(--primary-color) 90%);
  --gradient-purple: linear-gradient(135deg, #6f42c1 0%, #9a72d1 100%);
  --gradient-cyan: linear-gradient(135deg, #0dcaf0 0%, #46d9f7 100%);
  --gradient-danger: linear-gradient(135deg, #dc3545 0%, #e85d6b 100%);
  --box-shadow-color: rgba(1, 1, 1, 0.3);
  --box-shadow-hover-color: rgba(171, 11, 38, 0.3);
  
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow', 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.text-primary{
  color: var(--primary-color) !important;
}
.text-secondary{
  color: var(--secondary-color) !important;
}
.bg-gradient-mixed{
  background: var(--gradient-mixed) !important;
}
/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-mixed);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(53, 33, 41, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(53, 33, 41, 0.4);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(235, 50, 82, 0.2);
}

.btn-secondary:hover {
  background: var(--gradient-secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(235, 50, 82, 0.4);
}

/* Button Outline Variants */
.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  position: relative;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(235, 50, 82, 0.3);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
  background: var(--gradient-secondary);
  color: var(--white);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 10px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}

.section-dark {
  padding: 80px 0;
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
}

.section-gradient-dark {
  padding: 80px 0;
  background: var(--gradient-mixed);
  color: var(--white);
  position: relative;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Section with light background */
.section-light {
  background: var(--light-gray);
}

/* Section with gradient overlay */
.section-gradient {
  background: var(--gradient-mixed);
  color: var(--white);
}

.section-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-light); }

.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background: var(--gradient-secondary); }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-gray); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.py-5 { padding: 3rem 0; }
.py-4 { padding: 1.5rem 0; }
.py-3 { padding: 1rem 0; }

/* ===== GLASS EFFECTS ===== */
.glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px var(--box-shadow-color);
  color: var(--text-dark);
    transition: all 0.3s ease;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass--dark {
  background: rgba(53, 33, 41, 0.85);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px var(--box-shadow-color);
    transition: all 0.3s ease;
}

.glass--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.glass h1,
.glass h2,
.glass h3,
.glass h4,
.glass h5,
.glass h6 {
  color: var(--text-dark);
}

.glass--dark h1,
.glass--dark h2,
.glass--dark h3,
.glass--dark h4,
.glass--dark h5,
.glass--dark h6 {
  color: var(--white);
}

.glass p {
  color: var(--text-light);
}

.glass--dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Glass hover effects */
.glass:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px var(--box-shadow-hover-color);
  transition: all 0.3s ease;
  transform: translateY(-5px);
}

.glass--dark:hover {
  /* background: rgba(53, 33, 41, 0.35); */
   background: rgba(53, 33, 41, 0.95);
  border-color: rgba(235, 50, 82, 0.5);
  box-shadow: 0 12px 40px var(--box-shadow-hover-color);
  transition: all 0.3s ease;
  transform: translateY(-5px);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text, .text-gradient {
  background: linear-gradient(135deg, #352129 0%, #eb3252 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.gradient-text-light {
  background: linear-gradient(135deg, #f35a9a 0%, #eb2243 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .section,
  .section-dark {
    padding: 60px 0;
    overflow-x: hidden;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    max-width: 100%;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    max-width: 100%;
  }
  
  /* Prevent cards from causing overflow */
  .card {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Fix glass elements on mobile */
  .glass,
  .glass--dark {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Ensure rows don't overflow */
  .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .section,
  .section-dark {
    padding: 40px 0;
    overflow-x: hidden;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
    max-width: 100%;
  }
  
  .container {
    padding: 0 10px;
  }
  
  /* Reduce padding on small screens */
  .col,
  [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  /* Ensure text doesn't overflow */
  h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
.btn:focus {
  outline: 3px solid rgba(235, 50, 82, 0.3);
  outline-offset: 2px;
}

*:focus {
  outline-color: var(--secondary-color);
}

/* ===== NAVIGATION HOVER EFFECTS ===== */
.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  margin: 0 0.2rem;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-mixed);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(235, 50, 82, 0.1);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

.navbar-nav .nav-link:hover::after {
  opacity: 1;
}

/* Active state for nav links */
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.active::before {
  width: 80%;
}

/* Navbar brand hover effect */
.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  filter: drop-shadow(0 4px 8px rgba(235, 50, 82, 0.3));
}

/* Mobile menu improvements */
@media (max-width: 991px) {
  .navbar-nav .nav-link::before {
    left: 0;
    transform: none;
    width: 0;
    height: 2px;
  }
  
  .navbar-nav .nav-link:hover::before {
    width: 100%;
  }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  border: 2px solid var(--secondary-color) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
  overflow: visible;
}

.service-card-normal {
  background: var(--white) !important;
}

.service-card-featured {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--box-shadow-hover-color) !important;
}

.service-card-normal:hover {
  border-color: var(--secondary-color-darker) !important;
  background: linear-gradient(145deg, var(--white), rgba(235, 50, 82, 0.02)) !important;
}

.service-card-featured:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 40px var(--box-shadow-hover-color) !important;
}

/* Service icon hover effect */
.service-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  transition: all 0.3s ease;
}

/* Feature list hover effect */
.service-card:hover .feature-item {
  transform: translateX(5px);
  transition: all 0.2s ease;
}

.feature-item {
  transition: all 0.2s ease;
}

/* Button hover enhancement */
.service-card .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.service-card .btn:hover::before {
  left: 100%;
}

.stat-card {
  border: 2px solid var(--primary-color) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
  overflow: visible;

}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--box-shadow-hover-color) !important;
}

/* ===== PREMIUM SERVICE CARDS ===== */
.service-card-premium {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--secondary-color-darker) !important;
  min-height: 550px;
  cursor: pointer;
}

.service-card-premium:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.service-icon-premium {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-premium:hover .service-icon-premium {
  transform: scale(1.15) rotate(8deg);
  /* background: rgba(255, 255, 255, 0.25) !important; */
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.feature-list-premium .feature-item {
  transition: all 0.3s ease;
  margin-bottom: 1rem !important;
}

.service-card-premium:hover .feature-item {
  transform: translateX(8px);
}

.feature-list-premium .feature-icon {
  transition: all 0.3s ease;
}

.service-card-premium:hover .feature-icon {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.35) !important;
}

.btn-premium {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent !important;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

.btn-premium::before {
  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.8s ease;
}

.btn-premium:hover::before {
  left: 100%;
}

/* Enhanced text readability */
.service-card-premium h5 {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.service-card-premium p {
  font-weight: 400 !important;
}

.service-card-premium .feature-item span {
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}

/* ===== PRICING CARDS ===== */
.pricing-card-premium {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 520px;
  cursor: pointer;
}

.pricing-card-premium:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}

.pricing-card-premium .icon-wrapper {
  transition: all 0.3s ease;
}

.pricing-card-premium:hover .icon-wrapper {
  transform: scale(1.1) rotate(8deg);
}

.pricing-card-premium .feature-item {
  transition: all 0.3s ease;
}

.pricing-card-premium:hover .feature-item {
  transform: translateX(5px);
}

.pricing-card-premium .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card-premium .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.pricing-card-premium .btn:hover::before {
  left: 100%;
}

.pricing-card-premium .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Special styling for the popular card */
.pricing-card-premium[style*="transform: scale(1.05)"] {
  z-index: 5;
}

.pricing-card-premium[style*="transform: scale(1.05)"]:hover {
  transform: translateY(-15px) scale(1.07) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-card-premium {
    min-height: auto;
    margin-bottom: 2rem !important;
    max-width: 100%;
    overflow: hidden;
  }
  
  .service-card-premium:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .service-card-premium .card-body {
    padding: 1.5rem !important;
  }
  
  .pricing-card-premium {
    min-height: auto;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .pricing-card-premium:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  /* Reset scale for popular card on mobile */
  .pricing-card-premium[style*="transform: scale(1.05)"] {
    transform: none !important;
  }
  
  /* Fix for card content overflow */
  .service-card-premium .card-title,
  .pricing-card-premium .card-title {
    font-size: 1.25rem !important;
    word-wrap: break-word;
  }
  
  .service-card-premium .card-text,
  .pricing-card-premium .card-text {
    font-size: 0.9rem !important;
    word-wrap: break-word;
  }
  
  /* Reduce transform effects on mobile to prevent overflow */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .glass:hover,
  .glass--dark:hover {
    transform: translateY(-2px);
  }
}

/* ===== FLIP CARD STYLES ===== */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  width: 100%;
  height: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Flip the card on hover or touch */
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
  transform: rotateY(0deg);
}

.flip-card-back {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

/* Hover effects for the flip cards */
.flip-card:hover .flip-card-front {
  border-color: var(--secondary-color);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.flip-card:hover .flip-card-back {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* Animation for icons and elements inside flip cards */
.flip-card:hover .service-icon-premium {
  transform: scale(1.1) rotate(5deg);
  transition: all 0.3s ease;
}

.flip-card .hover-indicator {
  transition: all 0.3s ease;
  opacity: 0.7;
}

.flip-card:hover .hover-indicator {
  opacity: 1;
  transform: scale(1.1);
}

/* Mobile-specific flip card adjustments */
@media (max-width: 768px) {
  .flip-card {
    height: 350px;
  }
  
  .flip-card-inner {
    transition: transform 0.6s ease;
  }
  
  /* Enable tap to flip on mobile */
  .flip-card-inner.mobile-flipped {
    transform: rotateY(180deg);
  }
  
  .flip-card-front,
  .flip-card-back {
    padding: 1rem;
  }
  
  .flip-card-back .feature-list-premium {
    font-size: 0.85rem;
  }
}

/* Touch device support */
@media (hover: none) and (pointer: coarse) {
  .flip-card:hover .flip-card-inner {
    transform: none;
  }
  
  .flip-card.touch-flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Accessibility improvements */
.flip-card-inner:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.flip-card-inner[aria-expanded="true"] {
  transform: rotateY(180deg);
}

/* Animation delays for staggered effect */
.flip-card:nth-child(1) .flip-card-inner { transition-delay: 0s; }
.flip-card:nth-child(2) .flip-card-inner { transition-delay: 0.1s; }
.flip-card:nth-child(3) .flip-card-inner { transition-delay: 0.2s; }
.flip-card:nth-child(4) .flip-card-inner { transition-delay: 0.1s; }
.flip-card:nth-child(5) .flip-card-inner { transition-delay: 0.2s; }
.flip-card:nth-child(6) .flip-card-inner { transition-delay: 0.3s; }
.flip-card:nth-child(7) .flip-card-inner { transition-delay: 0.2s; }
.flip-card:nth-child(8) .flip-card-inner { transition-delay: 0.3s; }
.flip-card:nth-child(9) .flip-card-inner { transition-delay: 0.4s; }

/* ===== MOBILE OVERFLOW PREVENTION ===== */
/* Prevent horizontal scroll on all devices */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix for images causing overflow */
img {
  max-width: 100%;
}

/* Fix for wide elements */
* {
  max-width: 100%;
}



/* Responsive tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fix for absolute positioned elements */
.position-absolute {
  max-width: 100%;
}

/* Mobile specific fixes */
@media (max-width: 991px) {
  .navbar-collapse {
    max-width: 100%;
    overflow: hidden;
  }
  
  .navbar-nav {
    width: 100%;
  }
  
  /* Prevent buttons from overflowing */
  .btn-group,
  .btn-toolbar {
    flex-wrap: wrap;
  }
  
  /* Fix for cards in mobile */
  .card-deck,
  .card-group {
    flex-direction: column;
  }
  
  .card {
    margin-bottom: 15px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Reduce margins on very small screens */
  .mb-3 { margin-bottom: 0.75rem !important; }
  .mb-4 { margin-bottom: 1rem !important; }
  .mb-5 { margin-bottom: 1.5rem !important; }
  
  .mt-3 { margin-top: 0.75rem !important; }
  .mt-4 { margin-top: 1rem !important; }
  .mt-5 { margin-top: 1.5rem !important; }
  
  /* Ensure text fits on screen */
  .display-1,
  .display-2,
  .display-3,
  .display-4,
  .display-5,
  .display-6 {
    font-size: 2rem !important;
  }
}

/* ===== BOOTSTRAP MOBILE FIXES ===== */
/* Fix Bootstrap row overflow */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.container,
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Bootstrap column fixes for mobile */
@media (max-width: 767px) {
  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
  .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9,
  .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
  .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
  .col-md-10, .col-md-11, .col-md-12,
  .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4,
  .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9,
  .col-lg-10, .col-lg-11, .col-lg-12 {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
  }
  
  /* Bootstrap utility classes that might cause overflow */
  .me-auto, .ms-auto, .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Fix for Bootstrap cards */
  .card {
    max-width: 100% !important;
    overflow: hidden;
    word-wrap: break-word;
  }
  
  .card-body {
    padding: 1rem !important;
  }
  
  .card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .card-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Fix for Bootstrap buttons */
  .btn-group {
    flex-wrap: wrap;
  }
  
  .btn {
    max-width: 100%;
    word-wrap: break-word;
  }
  
  /* Fix for Bootstrap navbar */
  .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    max-width: 70%;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 575px) {
  .container {
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  
  /* Reduce font sizes to prevent text overflow */
  .h1, h1 { font-size: 1.8rem !important; }
  .h2, h2 { font-size: 1.6rem !important; }
  .h3, h3 { font-size: 1.4rem !important; }
  .h4, h4 { font-size: 1.2rem !important; }
  .h5, h5 { font-size: 1.1rem !important; }
  .h6, h6 { font-size: 1rem !important; }
  
  .lead {
    font-size: 1rem !important;
  }
  
  /* Navbar brand sizing for very small screens */
  .navbar-brand {
    max-width: 60%;
    font-size: 1rem !important;
  }
  
  /* Button sizing */
  .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* ===== SECTION-SPECIFIC MOBILE FIXES ===== */
/* Hero section mobile fixes */
.hero {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.hero .container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .hero {
    height: auto !important;
    min-height: 70vh;
    padding: 60px 0;
  }
  
  .hero .glass {
    padding: 2rem !important;
    margin: 0 10px;
  }
  
  .hero .display-4 {
    font-size: 2rem !important;
  }
  
  .hero .lead {
    font-size: 1rem !important;
  }
  
  /* Hero CTA buttons */
  .hero-cta .btn {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-cta {
    flex-direction: column !important;
    align-items: center;
  }
}

/* General section overflow prevention */
section {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.section,
.section-dark,
.section-light,
.section-gradient,
.section-gradient-dark {
  overflow-x: hidden !important;
}

/* Fix for background images causing overflow */
[style*="background"] {
  background-attachment: scroll !important;
}

@media (max-width: 768px) {
  [style*="background"] {
    background-size: cover !important;
    background-position: center !important;
  }
}

/* Fix for absolute positioned elements */
.position-absolute,
.position-fixed {
  max-width: 100vw;
  overflow: hidden;
}

/* Fix for any transform effects that might cause overflow */
@media (max-width: 768px) {
  .hover\\:transform,
  [class*="hover"]:hover {
    transform: none !important;
  }
  
  /* Disable problematic animations on mobile */
  .service-card:hover,
  .pricing-card-premium:hover,
  .service-card-premium:hover {
    transform: translateY(-2px) !important;
  }
}

/* Fix for text that might be too long */
.text-nowrap {
  white-space: normal !important;
}

@media (max-width: 576px) {
  .text-nowrap {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Force text to wrap */
  * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Specific fix for badges and small text elements */
  .badge,
  .small,
  small {
    font-size: 0.75rem !important;
    word-wrap: break-word;
  }
}

/* ===== CLIENT LOGOS SCROLLING ANIMATION ===== */
.clients-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.clients-marquee {
  display: flex;
  animation: scroll-logos 30s linear infinite;
  width: fit-content;
}

.clients-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-shrink: 0;
}

.client-card {
  width: 200px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-5px) scale(1.05);
}

.client-card .card {
  transition: all 0.3s ease;
  height: 100px;
}

.client-card:hover .card {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: var(--secondary-color);
}

.client-logo {
  max-width: 140px;
  max-height: 50px;
  width: auto;
  height: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.client-card:hover .client-logo {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.clients-marquee-container:hover .clients-marquee {
  animation-play-state: paused;
}

/* ===== TESTIMONIAL CAROUSEL ENHANCEMENTS ===== */
.carousel-indicators {
  gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  transform: scale(1.1);
}

.carousel-control-prev:hover div,
.carousel-control-next:hover div {
  background: rgba(255,255,255,0.3);
}

.testimonial-avatar {
  transition: all 0.3s ease;
}

.carousel-item.active .testimonial-avatar {
  animation: pulse-avatar 2s ease-in-out infinite;
}

@keyframes pulse-avatar {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clients-track {
    gap: 1rem;
  }
  
  .client-card {
    width: 160px;
  }
  
  .client-logo {
    max-width: 120px;
    max-height: 40px;
  }
  
  .carousel-control-prev {
    left: -30px;
  }
  
  .carousel-control-next {
    right: -30px;
  }
  
  .carousel-control-prev div,
  .carousel-control-next div {
    width: 40px;
    height: 40px;
  }
  
  .carousel-indicators {
    bottom: -40px;
  }
}

@media (max-width: 576px) {
  .clients-marquee {
    animation-duration: 20s;
  }
  
  .client-card {
    width: 140px;
  }
  
  .client-logo {
    max-width: 100px;
    max-height: 35px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  
  .testimonial-carousel .card-body {
    padding: 2rem !important;
  }
}

/* Performance optimizations */
.clients-marquee {
  will-change: transform;
}

.carousel-item {
  will-change: transform;
}

/* ===== BLOG STYLES ===== */
.blog-card {
  border-radius: 16px !important;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(53, 33, 41, 0.15);
}

.blog-image-wrapper {
  height: 200px;
  position: relative;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-overlay {
  background: rgba(53, 33, 41, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.blog-card:hover .blog-overlay {
  opacity: 1 !important;
}

.author-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bg-primary-light {
  background: rgba(53, 33, 41, 0.1) !important;
}

/* Blog detail page styles */
.blog-detail-hero {
  background: var(--gradient-mixed);
  padding: 100px 0 60px;
  position: relative;
}

.blog-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.blog-detail-hero .container {
  position: relative;
  z-index: 2;
}

.blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.blog-content h2 {
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding: 1rem 2rem;
  margin: 2rem 0;
  background: rgba(235, 50, 82, 0.05);
  font-style: italic;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-meta-info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.share-buttons .btn {
  margin: 0.25rem;
}

/* Related articles */
.related-article {
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(235, 50, 82, 0.1);
}

.related-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(53, 33, 41, 0.1);
  border-color: var(--secondary-color);
}

/* Responsive blog styles */
@media (max-width: 768px) {
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .blog-image-wrapper {
    height: 180px;
  }
  
  .blog-detail-hero {
    padding: 80px 0 40px;
  }
  
  .blog-content {
    font-size: 16px;
  }
  
  .blog-meta-info {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .blog-image-wrapper {
    height: 160px;
  }
  
  .blog-detail-hero {
    padding: 60px 0 30px;
  }
  
  .author-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  
  .blog-content {
    font-size: 15px;
  }
}

/* ===== CTA SECTION STYLES ===== */
.cta-icon-wrapper {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
  position: relative;
}

.cta-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-mixed);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.05); }
}

/* CTA Background Elements */
.cta-bg-elements {
  pointer-events: none;
}

.cta-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float-slow 6s ease-in-out infinite;
}

.cta-element-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  background: rgba(235, 50, 82, 0.1);
}

.cta-element-2 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 15%;
  animation-delay: 2s;
  background: rgba(255, 255, 255, 0.05);
}

.cta-element-3 {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 20%;
  animation-delay: 4s;
  background: rgba(235, 50, 82, 0.08);
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(120deg); }
  66% { transform: translate(-15px, 15px) rotate(240deg); }
}

/* CTA Button Enhancements */
.cta-buttons .btn {
  position: relative;
  transition: all 0.3s ease;
  border-width: 2px;
}

.cta-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  border-radius: inherit;
}

.cta-buttons .btn:hover::before {
  transform: translateX(100%);
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-buttons .btn-light:hover {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
  color: var(--white);
  backdrop-filter: blur(10px);
}

/* CTA Statistics Cards */
.cta-statistics .glass--dark {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-statistics .glass--dark:hover {
  transform: translateY(-5px);
  border-color: rgba(235, 50, 82, 0.3);
  box-shadow: 0 15px 35px rgba(235, 50, 82, 0.2);
}

/* Trust Indicators */
.trust-indicators {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-indicators .col-auto {
  position: relative;
}

.trust-indicators .col-auto:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive CTA Styles */
@media (max-width: 768px) {
  .cta-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .cta-icon-wrapper i {
    font-size: 2rem !important;
  }
  
  .cta-element-1 {
    width: 120px;
    height: 120px;
  }
  
  .cta-element-2 {
    width: 100px;
    height: 100px;
  }
  
  .cta-element-3 {
    width: 80px;
    height: 80px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .trust-indicators .col-auto:not(:last-child)::after {
    display: none;
  }
  
  .trust-indicators .row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .cta-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  
  .cta-icon-wrapper i {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
}

/* ===== NEWSLETTER SUBSCRIPTION STYLES ===== */
.newsletter-form {
  position: relative;
}

.newsletter-form input[type="email"] {
  transition: all 0.3s ease;
  border-radius: 8px !important;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 50, 82, 0.3);
  transform: translateY(-1px);
}

.newsletter-form button {
  transition: all 0.3s ease;
  border-radius: 8px !important;
  position: relative;
  overflow: hidden;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235, 50, 82, 0.4);
}

.newsletter-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.newsletter-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.newsletter-form button:hover::before {
  left: 100%;
}

/* Success/Error Message Styles */
#subscriptionMessage {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

#subscriptionMessage.text-success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745 !important;
}

#subscriptionMessage.text-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545 !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Social Links Enhancement */
.social-links a {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a:hover {
  transform: translateY(-2px);
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(235, 50, 82, 0.3);
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.social-links a:hover::before {
  left: 100%;
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Honeypot field (should never be visible) */
input[name="website"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Footer hover links */
.footer-links .hover-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  display: inline-block;
}

.footer-links .hover-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer-links .hover-link:hover::before {
  width: 100%;
}

.footer-links .hover-link:hover {
  color: var(--secondary-light) !important;
  transform: translateX(5px);
}

/* Contact info links */
.contact-info a {
  transition: all 0.3s ease;
  position: relative;
}

.contact-info a:hover {
  color: var(--secondary-light) !important;
  transform: translateX(3px);
}

/* Responsive newsletter form */
@media (max-width: 768px) {
  .newsletter-form .d-flex {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  
  .newsletter-form input[type="email"] {
    flex: none !important;
  }
  
  .newsletter-form button {
    flex: none !important;
    min-width: auto !important;
    padding: 0.75rem 1rem !important;
  }
  
  .social-links {
    justify-content: space-around !important;
  }
}

@media (max-width: 576px) {
  .glass.glass--dark {
    margin-top: 2rem;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .contact-info,
  .footer-links {
    text-align: center;
  }
}


/* ===== HERO VIDEO STYLES ===== */
.hero-video {
  z-index: 0;
}

.hero-video video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Fallback for older browsers */
.hero-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/brando-ai-for-marketing.webp') center/cover no-repeat;
  z-index: -1;
}

/* Ensure content stays above video */
.hero .container {
  position: relative;
  z-index: 10;
}

/* Video performance optimizations */
@media (max-width: 768px) {
  .hero-video video {
    /* Pause video on mobile to save bandwidth - optional */
    /* display: none; */
  }
  
  /* Show fallback image on mobile if needed */
  .hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/brando-ai-for-marketing.webp') center/cover no-repeat;
    z-index: 1;
    display: none; /* Remove this line to enable mobile fallback image */
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-video video {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}