/* ===== CSS VARIABLES ===== */
:root {
  --primary-blue: #3B2CFF;
  --primary-purple: #7A2CFD;
  --dark-blue: #2A1B8F;
  --light-purple: #E8E2FF;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #F7F7F7;
  --white: #FFFFFF;
  --black: #000000;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

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

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(59, 44, 255, 0.3);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 44, 255, 0.4);
}

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

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 44, 255, 0.3);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

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

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-gray) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
  background: rgba(59, 44, 255, 0.05);
}

.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
  background: rgba(59, 44, 255, 0.1);
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(135deg, rgba(59, 44, 255, 0.05) 0%, rgba(122, 44, 253, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 44, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-slim {
  background: linear-gradient(135deg, rgba(122, 44, 253, 0.08) 0%, rgba(59, 44, 255, 0.08) 100%);
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-purple);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(122, 44, 253, 0.2);
}

.service-card .card-body {
  padding: 2rem;
}

.service-card .card-title {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card img {
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-image-container {
  position: relative;
  overflow: hidden;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 44, 255, 0.9), rgba(122, 44, 253, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-image-container:hover .portfolio-overlay {
  opacity: 1;
}

/* ===== TEAM CARDS ===== */
.team-card {
  transition: all 0.3s ease;
}

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

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 2.5rem;
}

/* ===== CLIENT LOGOS ===== */
.client-logo {
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-3px);
}

/* ===== FILTER BUTTONS ===== */
.btn-group .btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary-purple);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== SECTIONS ===== */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  color: var(--white);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(59, 44, 255, 0.05) 0%, rgba(122, 44, 253, 0.05) 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer-custom {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  color: var(--white);
  margin-top: auto;
}

/* Footer contact section mobile centering */
@media (max-width: 767px) {
  .footer-custom .col-lg-4 {
    text-align: center;
  }
  
  .footer-custom .d-flex.align-items-center {
    justify-content: center;
  }
  
  .footer-custom .d-grid {
    justify-content: center;
  }
  
  .footer-custom .btn {
    margin: 0 auto;
  }
  
  /* Footer logo section mobile fixes */
  .footer-custom .col-lg-4:first-child {
    text-align: center;
  }
  
  .footer-custom .col-lg-4:first-child .d-flex.align-items-center {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-custom .col-lg-4:first-child .d-flex.gap-3 {
    justify-content: center;
  }
  
  .footer-custom .col-lg-4:first-child p {
    text-align: center;
  }
}

.footer-custom h6 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== FORMS ===== */
.form-control {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(59, 44, 255, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: var(--medium-gray);
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-error, .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.alert-info {
  background: rgba(23, 162, 184, 0.1);
  color: var(--info);
  border-left: 4px solid var(--info);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
  border-left: 4px solid var(--warning);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 120px 0;
  }
  
  .hero-slim {
    padding: 100px 0;
  }
  
  .section-padding {
    padding: 100px 0;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  .display-4 {
    font-size: 3.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-slim {
    padding: 80px 0;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2.8rem;
  }
  
  .stat-number {
    font-size: 2.8rem;
  }
  
  .navbar-nav {
    gap: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-slim {
    padding: 60px 0;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .display-4 {
    font-size: 2.2rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .portfolio-card {
    margin-bottom: 2rem;
  }
  
  .testimonial-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section p {
    font-size: 1.1rem;
  }
  
  .footer-custom {
    text-align: center;
  }
  
  .footer-custom .col-lg-4,
  .footer-custom .col-lg-2 {
    margin-bottom: 2rem;
  }
  
  /* Footer contact info centering on mobile */
  .footer-custom .d-flex.align-items-center {
    justify-content: center;
    text-align: center;
  }
  
  .footer-custom .d-grid {
    justify-content: center;
  }
  
  .footer-custom .btn {
    margin: 0 auto;
  }
  
  .social-link {
    margin: 0 0.5rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  /* Footer specific mobile fixes */
  .footer-custom .col-lg-4 {
    text-align: center !important;
  }
  
  .footer-custom .d-flex.align-items-center {
    justify-content: center !important;
    text-align: center !important;
  }
  
  .footer-custom .d-flex.align-items-center .text-light,
  .footer-custom .d-flex.align-items-center .footer-link {
    text-align: center !important;
  }
  
  .footer-custom .d-grid {
    justify-content: center !important;
  }
  
  .footer-custom .btn {
    margin: 0 auto !important;
    display: block !important;
  }
  
  /* Footer logo section extra small device fixes */
  .footer-custom .col-lg-4:first-child .d-flex.align-items-center {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .footer-custom .col-lg-4:first-child .d-flex.align-items-center img {
    margin-bottom: 0.5rem !important;
    margin-right: 0 !important;
  }
  
  .footer-custom .col-lg-4:first-child .d-flex.align-items-center span {
    text-align: center !important;
    width: 100% !important;
  }
  
  .footer-custom .col-lg-4:first-child p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  .hero-section {
    padding: 50px 0;
  }
  
  .hero-slim {
    padding: 50px 0;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .display-4 {
    font-size: 1.8rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-brand img {
    height: 25px;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .portfolio-card {
    margin-bottom: 1.5rem;
  }
  
  .testimonial-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
  }
  
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .cta-section {
    padding: 40px 0;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  .footer-custom {
    padding: 40px 0 20px;
  }
  
  .footer-custom .col-lg-4,
  .footer-custom .col-lg-2 {
    margin-bottom: 1.5rem;
  }
  
  .social-link {
    margin: 0 0.25rem;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .stats-section {
    padding: 3rem 0;
  }
  
  .stat-item {
    padding: 1.5rem 0.5rem;
  }
  
  /* Form responsiveness */
  .form-control {
    font-size: 0.9rem;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
  
  /* Hero content adjustments */
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* Service detail page adjustments */
  .service-detail-hero {
    text-align: center;
  }
  
  .service-detail-hero .col-lg-8 {
    margin-bottom: 2rem;
  }
  
  /* Service detail sidebar mobile fixes */
  .col-lg-4 .card {
    margin-bottom: 2rem;
  }
  
  .col-lg-4 .card-body {
    padding: 1.5rem !important;
  }
  
  .col-lg-4 .d-grid.gap-2 {
    gap: 0.75rem !important;
  }
  
  .col-lg-4 .btn {
    width: 100%;
  }
  
  /* Booking form mobile fixes */
  .booking-form .row.g-3 {
    margin-bottom: 1.5rem;
  }
  
  .booking-form .form-control {
    font-size: 0.9rem;
  }
  
  .booking-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  /* Service detail page mobile fixes */
  .hero-slim .row.align-items-center {
    text-align: center;
  }
  
  .hero-slim .col-lg-4 {
    margin-top: 2rem;
  }
  
  .hero-slim .bg-gradient-primary.rounded-custom {
    margin: 0 auto;
    max-width: 200px;
  }
  
  .hero-slim .bi {
    font-size: 3rem !important;
  }
  
  /* Service detail content mobile fixes */
  .service-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .card-body.p-5 {
    padding: 1.5rem !important;
  }
  
  /* Features section mobile fixes */
  .d-flex.align-items-start {
    margin-bottom: 1.5rem;
  }
  
  .d-flex.align-items-start .bg-gradient-primary {
    flex-shrink: 0;
  }
  
  /* About page specific mobile fixes */
  .hero-slim .position-relative {
    margin-top: 2rem;
  }
  
  .hero-slim .bg-gradient-primary.rounded-custom.p-5 {
    padding: 2rem !important;
  }
  
  .hero-slim .display-1 {
    font-size: 3rem !important;
  }
  
  /* Our Mission section specific mobile fixes */
  .hero-slim .col-lg-6.text-center .position-relative,
  .hero-slim .col-md-12.text-center .position-relative {
    margin-top: 2rem;
  }
  
  .hero-slim .col-lg-6.text-center .bg-gradient-primary.rounded-custom,
  .hero-slim .col-md-12.text-center .bg-gradient-primary.rounded-custom {
    padding: 1.5rem !important;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .hero-slim .col-lg-6.text-center .bi-people,
  .hero-slim .col-md-12.text-center .bi-people {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-slim .col-lg-6.text-center h3,
  .hero-slim .col-md-12.text-center h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-slim .col-lg-6.text-center p,
  .hero-slim .col-md-12.text-center p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  /* Company story section mobile fixes */
  .row.align-items-center .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  .row.align-items-center .col-lg-6:last-child {
    margin-top: 2rem;
  }
  
  /* Stats grid mobile fixes */
  .row.g-3 .col-6 {
    margin-bottom: 1rem;
  }
  
  .row.g-3 .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
  }
  
  .row.g-3 .d-flex.align-items-center .bg-gradient-primary {
    margin-bottom: 0.5rem;
  }
  
  /* Services grid mobile fixes */
  .bg-light.rounded-custom .row.g-3 .col-6 {
    margin-bottom: 1rem;
  }
  
  .bg-light.rounded-custom .text-center.p-3 {
    padding: 1rem !important;
  }
  
  .bg-light.rounded-custom .bi {
    font-size: 1.5rem !important;
  }
  
  /* Portfolio filter buttons */
  .filter-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .filter-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Testimonial cards */
  .testimonial-card .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-card .testimonial-avatar {
    margin: 0 auto 1rem;
  }
  
  /* Team cards */
  .team-card .text-center {
    text-align: center !important;
  }
  
  /* Contact page adjustments */
  .contact-info .d-flex {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-info .bg-gradient-primary {
    margin: 0 auto 1rem;
  }
  
  /* Quick actions buttons */
  .d-grid.gap-2 {
    gap: 0.75rem !important;
  }
  
  /* FAQ section */
  .faq-section .card {
    margin-bottom: 1rem;
  }
  
  /* Thank you page adjustments */
  .hero-slim .bg-gradient-primary {
    width: 80px !important;
    height: 80px !important;
  }
  
  .hero-slim .bi-check-circle {
    font-size: 2.5rem !important;
  }
  
  /* Navigation adjustments */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Button group responsiveness */
  .d-flex.flex-wrap {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .d-flex.flex-wrap .btn {
    width: 100%;
  }
  
  /* Card grid adjustments */
  .row.g-4 > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  /* Image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Table responsiveness */
  .table-responsive {
    font-size: 0.9rem;
  }
  
  /* Alert responsiveness */
  .alert {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  /* Modal responsiveness */
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  /* Breadcrumb responsiveness */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }
  
  /* Badge responsiveness */
  .badge {
    font-size: 0.7rem;
  }
  
  /* Service detail and About page extra small device fixes */
  .hero-slim .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  
  .hero-slim .d-flex.flex-wrap.gap-3 .btn {
    width: 100%;
  }
  
  .hero-slim .bg-gradient-primary.rounded-custom {
    padding: 1.5rem !important;
  }
  
  .hero-slim .bi {
    font-size: 2.5rem !important;
  }
  
  /* Our Mission section extra small device fixes */
  .hero-slim .col-lg-6.text-center .bg-gradient-primary.rounded-custom,
  .hero-slim .col-md-12.text-center .bg-gradient-primary.rounded-custom {
    padding: 1rem !important;
  }
  
  .hero-slim .col-lg-6.text-center .bi-people,
  .hero-slim .col-md-12.text-center .bi-people {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero-slim .col-lg-6.text-center h3,
  .hero-slim .col-md-12.text-center h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero-slim .col-lg-6.text-center p,
  .hero-slim .col-md-12.text-center p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  
  /* Mission card specific mobile classes */
  .mission-card {
    transition: all 0.3s ease;
  }
  
  .mission-icon {
    transition: all 0.3s ease;
  }
  
  .mission-title {
    transition: all 0.3s ease;
  }
  
  .mission-text {
    transition: all 0.3s ease;
  }
  
  /* Blog Styles */
  .blog-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 44, 255, 0.15) !important;
  }
  
  .blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
  }
  
  .blog-content .bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
  }
  
  .blog-content .bg-light strong {
    font-weight: 600;
  }
  
  .blog-content h1, .blog-content h2, .blog-content h3, 
  .blog-content h4, .blog-content h5, .blog-content h6 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .blog-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
  }
  
  .blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
  }
  
  .blog-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  .blog-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .blog-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .blog-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
  }
  
  .blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
  }
  
  .blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }
  
  .blog-content strong {
    font-weight: 600;
    color: var(--dark-gray);
  }
  
  .blog-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--light-gray);
    border-radius: 0 10px 10px 0;
    position: relative;
  }
  
  .blog-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
  }
  
  .blog-content code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
  }
  
  .blog-content pre {
    background: var(--dark-gray);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .sidebar .card {
    border-radius: 15px;
    transition: all 0.3s ease;
  }
  
  .sidebar .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 44, 255, 0.1) !important;
  }
  
  .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
  }
  
  .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
  }
  
  .breadcrumb-item a:hover {
    color: white !important;
  }
  
  .breadcrumb-item.active {
    color: white !important;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(0, 0, 0, 0.4);
  }
  
  /* Blog Hero Section */
  .blog-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark-gray);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
  }
  
  .blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 44, 255, 0.05) 0%, rgba(122, 44, 253, 0.05) 100%);
    pointer-events: none;
  }
  
  .blog-hero .container {
    position: relative;
    z-index: 2;
  }
  
  .blog-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
  }
  
  .blog-hero .breadcrumb-item a {
    color: var(--primary-blue) !important;
    text-decoration: none;
    font-weight: 500;
  }
  
  .blog-hero .breadcrumb-item a:hover {
    color: var(--primary-purple) !important;
  }
  
  .blog-hero .breadcrumb-item.active {
    color: var(--dark-gray) !important;
  }
  
  /* Blog Detail Spacing */
  .section-padding.pt-0 {
    padding-top: 0;
  }
  
  .blog-content .bg-light {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  /* Blog Responsive Styles */
  @media (max-width: 767px) {
    .blog-card {
      margin-bottom: 2rem;
    }
    
    .blog-content {
      font-size: 1rem;
      line-height: 1.6;
    }
    
    .blog-content h1 {
      font-size: 1.75rem;
      margin-top: 1.5rem;
      margin-bottom: 1rem;
    }
    
    .blog-content h2 {
      font-size: 1.5rem;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
    }
    
    .blog-content h3 {
      font-size: 1.25rem;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
    }
    
    .blog-content h4, .blog-content h5, .blog-content h6 {
      font-size: 1.1rem;
      margin-top: 1.25rem;
      margin-bottom: 0.75rem;
    }
    
    .sidebar {
      margin-top: 2rem;
    }
    
    .sidebar .card {
      margin-bottom: 1.5rem;
    }
    
    .breadcrumb {
      font-size: 0.9rem;
    }
    
    .hero-slim .col-lg-8,
    .blog-hero .col-lg-8 {
      margin-bottom: 2rem;
    }
    
    .hero-slim .col-lg-4,
    .blog-hero .col-lg-4 {
      text-align: center;
    }
    
    .blog-content blockquote {
      padding: 1rem;
      margin: 1.5rem 0;
    }
    
    .blog-content blockquote::before {
      font-size: 3rem;
      top: -5px;
      left: 5px;
    }
    
    .blog-content pre {
      padding: 1rem;
      font-size: 0.8rem;
    }
  }
  
  @media (max-width: 575px) {
    .blog-content {
      font-size: 0.95rem;
    }
    
    .blog-content h1 {
      font-size: 1.5rem;
    }
    
    .blog-content h2 {
      font-size: 1.25rem;
    }
    
    .blog-content h3 {
      font-size: 1.1rem;
    }
    
    .blog-content h4, .blog-content h5, .blog-content h6 {
      font-size: 1rem;
    }
    
    .blog-content blockquote {
      padding: 0.75rem;
      margin: 1rem 0;
    }
    
    .blog-content blockquote::before {
      font-size: 2.5rem;
      top: -3px;
      left: 3px;
    }
    
    .blog-content pre {
      padding: 0.75rem;
      font-size: 0.75rem;
    }
    
    .sidebar .card-body {
      padding: 1rem;
    }
    
    .hero-slim .display-4,
    .blog-hero .display-4 {
      font-size: 2rem;
    }
    
    .hero-slim .lead,
    .blog-hero .lead {
      font-size: 1rem;
    }
  }
  
  /* Ensure mission section shows on all devices */
  @media (max-width: 991px) {
    .hero-slim .col-lg-6.col-md-12 {
      margin-bottom: 2rem;
    }
    
    .hero-slim .col-lg-6.col-md-12.text-center {
      margin-top: 2rem;
    }
    
    .mission-card {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }
  
  /* Card content mobile optimization */
  .card-body h2 {
    font-size: 1.5rem;
  }
  
  .card-body h6 {
    font-size: 1rem;
  }
  
  .card-body p {
    font-size: 0.9rem;
  }
  
  /* Breadcrumb mobile fixes */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    font-size: 0.8rem;
  }
  
  /* Process steps mobile fixes */
  .process-step {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .process-step .bg-gradient-primary {
    margin: 0 auto 1rem;
  }
  
  /* Team section mobile fixes */
  .team-member {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .team-member .team-avatar {
    margin: 0 auto 1rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive utilities */
@media (max-width: 767px) {
  .d-none-mobile {
    display: none !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .justify-content-center-mobile {
    justify-content: center !important;
  }
  
  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
  
  .mt-mobile-3 {
    margin-top: 1rem !important;
  }
}

@media (min-width: 768px) {
  .d-none-desktop {
    display: none !important;
  }
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) 1;
}

.shadow-custom {
  box-shadow: 0 10px 40px rgba(59, 44, 255, 0.15);
}

.rounded-custom {
  border-radius: 16px;
}

/* ===== LOADING ANIMATION ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== ADDITIONAL RESPONSIVE IMPROVEMENTS ===== */

/* Ensure proper touch targets on mobile */
@media (max-width: 767px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve form usability on mobile */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better spacing for mobile */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Improve card layouts on mobile */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Better button spacing */
  .btn-group .btn {
    margin-bottom: 0.5rem;
  }
  
  /* Improve navigation on mobile */
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 720px;
  }
  
  .hero-section {
    padding: 70px 0;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .card-body {
    padding: 1.75rem;
  }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 120px 0;
  }
  
  .section-padding {
    padding: 100px 0;
  }
  
  .card-body {
    padding: 2.5rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer-custom,
  .btn,
  .cta-section {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .section-padding {
    padding: 20px 0 !important;
  }
}