/* Modern Payment Gateway Theme - Fresh Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Modern Theme */
:root {
  /* Primary Colors - Fresh Teal/Cyan Theme */
  --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --secondary-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  --accent-gradient: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  --success-gradient: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  --warning-gradient: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  --danger-gradient: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
  
  /* Solid Colors */
  --primary-color: #00d4ff;
  --secondary-color: #ff6b35;
  --accent-color: #00e676;
  --success-color: #00e676;
  --warning-color: #ff9800;
  --danger-color: #ff5252;
  
  /* Neutral Colors - Sophisticated Dark Theme */
  --dark-bg: #0a0e1a;
  --darker-bg: #050812;
  --card-bg: #1a1f2e;
  --card-hover: #252a3a;
  --border-color: #2a2f3e;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #7a8ba3;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 212, 255, 0.15);
  --shadow-lg: 0 10px 32px rgba(0, 212, 255, 0.2);
  --shadow-xl: 0 20px 48px rgba(0, 212, 255, 0.25);
  --glow-primary: 0 0 30px rgba(0, 212, 255, 0.4);
  --glow-secondary: 0 0 30px rgba(255, 107, 53, 0.4);
  --glow-accent: 0 0 30px rgba(0, 230, 118, 0.4);
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Modern Button Styles */
.btn-modern {
  position: relative;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.01em;
}

.btn-modern::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 var(--transition-slow);
  z-index: -1;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

/* Modern Card Styles */
.card-modern {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-modern:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.card-modern:hover::before {
  transform: scaleX(1);
}

.card-modern:hover::after {
  opacity: 1;
}

/* Modern Navigation */
.navbar-modern {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar-modern.scrolled {
  background: rgba(10, 14, 26, 0.98);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
}

.nav-logo img {
  max-height: 40px;
  transition: all var(--transition-normal);
}

.navbar-modern.scrolled .nav-logo img {
  max-height: 35px;
}

.nav-link-modern {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav-link-modern::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.1);
}

.nav-link-modern:hover::before,
.nav-link-modern.active::before {
  width: 80%;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link-modern {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.mobile-menu .btn-modern {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

/* Hero Section */
.hero-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Features Section */
.features-modern {
  padding: 6rem 0;
  background: var(--darker-bg);
  position: relative;
}

.features-modern .row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .features-modern .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .features-modern .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-primary);
}

@media (max-width: 991.98px) {
  .feature-card {
    padding: 2rem;
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .feature-card {
    padding: 1.25rem;
    min-height: 180px;
  }
}

/* Testimonials Section */
.testimonials-modern {
  padding: 6rem 0;
  background: var(--dark-bg);
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Stats Section */
.stats-modern {
  padding: 4rem 0;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.stats-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Accordion Styles */
.accordion {
  background: transparent;
  border: none;
}

.accordion-item {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,212,255,0.07);
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.accordion-item:hover,
.accordion-item:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(0,212,255,0.13), var(--glow-primary);
}

.accordion-button {
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.75rem 2rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.3s, color 0.3s;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(0,212,255,0.10) 0%, rgba(0,153,204,0.10) 100%);
  color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color), 0 8px 32px rgba(0,212,255,0.13);
  border-bottom: 1.5px solid var(--primary-color);
}

.accordion-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.accordion-body {
  background: rgba(10, 14, 26, 0.92);
  color: var(--text-secondary);
  padding: 1.5rem 2rem 2rem 2rem;
  font-size: 1.05rem;
  border-top: 1px solid var(--border-color);
  transition: background 0.3s;
}

@media (max-width: 600px) {
  .accordion-button, .accordion-body {
    padding: 1.1rem 1rem;
    font-size: 1rem;
  }
}

/* Footer */
.footer-modern {
  background: var(--darker-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-modern h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-modern a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: block;
  padding: 0.5rem 0;
}

.footer-modern a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-modern ul {
  list-style: none;
  padding: 0;
}

.footer-modern li {
  margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-muted {
  color: var(--text-muted) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-white {
  color: white !important;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Spacing Utilities */
.me-2 { margin-right: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Flexbox Utilities */
.g-4 { gap: 1.5rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }
.text-md-end { text-align: right !important; }

/* Display Utilities */
.rounded-circle { border-radius: 50% !important; }
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .card-modern {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-modern {
    padding: 6rem 0 3rem;
  }
  
  .navbar-modern {
    padding: 1rem 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Bootstrap Grid System */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.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 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col { flex: 1 0 0%; }
.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

@media (min-width: 576px) {
  .container { max-width: 540px; }
  .col-sm { flex: 1 0 0%; }
  .col-sm-1 { flex: 0 0 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  .col-md { flex: 1 0 0%; }
  .col-md-1 { flex: 0 0 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; }
  .col-md-3 { flex: 0 0 25%; }
  .col-md-4 { flex: 0 0 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; }
  .col-md-6 { flex: 0 0 50%; }
  .col-md-7 { flex: 0 0 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; }
  .col-md-9 { flex: 0 0 75%; }
  .col-md-10 { flex: 0 0 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; }
  .col-md-12 { flex: 0 0 100%; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  .col-lg { flex: 1 0 0%; }
  .col-lg-1 { flex: 0 0 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
  .col-xl { flex: 1 0 0%; }
  .col-xl-1 { flex: 0 0 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; }
}

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
}

@media (max-width: 991.98px) {
  .d-lg-none { display: block !important; }
  .d-lg-flex { display: none !important; }
}

/* Flex utilities */
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }

/* Alignment utilities */
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }

/* Text utilities */
.text-center { text-align: center !important; }
.text-md-end { text-align: right !important; }

@media (min-width: 768px) {
  .text-md-end { text-align: right !important; }
}

/* Margin utilities */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

/* Padding utilities */
.p-0 { padding: 0 !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Gap utilities */
.g-4 { gap: 1.5rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Border utilities */
.rounded-circle { border-radius: 50% !important; }

/* Image utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* --- Center last row of feature cards if not full (desktop) --- */
@media (min-width: 992px) {
  .features-modern .row {
    justify-items: center;
    align-items: stretch;
  }
  .feature-card {
    width: 100%;
    max-width: 370px;
  }
}

/* --- FAQ Accordion: Mobile Friendly Fixes --- */
@media (max-width: 600px) {
  #faq .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .accordion-item {
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,212,255,0.08);
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .accordion-button {
    font-size: 1rem;
    padding: 1rem 0.75rem;
    border-radius: 0;
  }
  .accordion-body {
    font-size: 0.98rem;
    padding: 1rem 0.75rem 1.25rem 0.75rem;
  }
}

/* --- Global Mobile Friendly Fixes --- */
@media (max-width: 600px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .row {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .feature-card, .card-modern, .testimonial-card, .stat-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  img, .img-fluid {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

html, body {
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* --- Mobile Hero & Navbar Layout Fixes --- */
@media (max-width: 600px) {
  .navbar-modern {
    padding: 0.5rem 0 !important;
    min-height: unset !important;
  }
  .navbar-modern .container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
  }
  .navbar-modern .d-flex {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  .nav-logo {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
  }
  .nav-logo img {
    max-width: 110px !important;
    max-height: 32px !important;
    height: 32px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
  }
  .btn-modern.btn-outline.d-lg-none {
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 2;
    height: 40px !important;
    width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .hero-modern {
    margin-top: 1.5rem !important;
  }
}

/* --- Mobile Text Alignment Fixes --- */
@media (max-width: 600px) {
  .hero-modern .hero-title,
  .hero-modern .hero-subtitle,
  .feature-card h3,
  .feature-card p,
  .testimonial-card,
  .stat-item,
  .section-title,
  .section-subtitle {
    text-align: center !important;
  }
  
  .hero-modern .hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .feature-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .feature-icon {
    margin: 0 auto 1.5rem !important;
  }
}

/* === Comprehensive Mobile Fixes === */
@media (max-width: 600px) {
  /* Global Text Alignment */
  h1, h2, h3, h4, h5, h6, p, 
  .hero-modern .hero-title,
  .hero-modern .hero-subtitle,
  .feature-card h3,
  .feature-card p,
  .testimonial-card,
  .stat-item,
  .section-title,
  .section-subtitle {
    text-align: center !important;
  }

  /* Typography Scale */
  h1, .hero-title { font-size: 2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.5rem !important; }
  h4 { font-size: 1.25rem !important; }
  p { font-size: 1rem !important; line-height: 1.6 !important; }

  /* Container & Spacing */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Section Spacing */
  section,
  .section,
  .hero-modern,
  .features-modern,
  .testimonials-modern,
  .stats-modern {
    padding: 3rem 0 !important;
  }

  /* Card Layouts */
  .feature-card,
  .testimonial-card,
  .card-modern {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
  }

  .feature-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0.5rem 0 !important;
  }

  /* Feature Icons */
  .feature-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 1rem !important;
    font-size: 1.5rem !important;
  }

  /* Buttons */
  .btn-modern {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    margin: 0.5rem 0 !important;
    text-align: center !important;
  }

  /* Grid System */
  .row {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
  }

  [class*="col-"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  /* Navigation */
  .navbar-modern {
    padding: 0.75rem 0 !important;
  }

  .nav-logo img {
    height: 32px !important;
  }

  .mobile-menu {
    padding: 1rem !important;
  }

  /* Hero Section */
  .hero-modern {
    text-align: center !important;
    padding-top: 5rem !important;
  }

  .hero-modern .hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  /* Stats Section */
  .stat-item {
    margin-bottom: 2rem !important;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  /* Images */
  .img-fluid {
    margin: 1rem auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Spacing Utilities */
  .mb-5 { margin-bottom: 2rem !important; }
  .mt-5 { margin-top: 2rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  /* Fix Horizontal Scroll */
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Fix Feature Cards Grid */
  .features-modern .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 1rem !important;
  }

  /* Testimonial Cards */
  .testimonial-card {
    margin: 0.5rem 0 !important;
  }

  /* Footer */
  .footer-modern {
    text-align: center !important;
    padding: 2rem 0 1rem !important;
  }

  .footer-modern h5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .footer-modern ul {
    margin-bottom: 1.5rem !important;
  }

  /* Fix any flex containers */
  .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  /* Accordion fixes */
  .accordion-button {
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .accordion-body {
    padding: 1rem !important;
  }
} 