/* Modern Bootstrap 5 Workshop Theme 2024 - Perfect Colors & Design */

:root {
--primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #0f0f23 0%, #2d1b69 50%, #ba51f5 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-lg: 0 25px 45px rgba(0,0,0,0.1);
  --shadow-xl: 0 35px 60px rgba(0,0,0,0.15);
}

body {
  background: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar Enhancements */
.modern-navbar {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.modern-navbar .navbar-brand {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
}

.dropdown-toggle {
  cursor: pointer !important;
}

.dropdown-menu {
  min-width: 140px;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1558618047-3c8c76bd3e91?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-section h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideInUp 1s ease;
}

.hero-section .lead {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: slideInUp 1s ease 0.2s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Service Cards */
.service-card, .card-pricing {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card:hover, .card-pricing:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: var(--shadow-xl);
}

.card-pricing {
  background: white;
}

.card-img-top {
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.price {
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--primary-gradient) border-box;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer Enhancements */
.modern-footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #f9fafb;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.footer-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-icon:hover {
  background: var(--success-gradient) !important;
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

.footer-col h5::after {
  background: var(--primary-gradient);
}

/* Category Buttons */
.category-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem 1rem 0;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn:hover, .category-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary-gradient);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Responsive - Fixed Mobile Header/Footer Devs */
@media (max-width: 991px) {
  .navbar-collapse:not(.show) {
    display: none !important;
  }
  .navbar-collapse.show {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    height: calc(100vh - 80px);
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    padding: 2rem;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 2.5rem; }
  .navbar-brand { font-size: 1.1rem; }
  .navbar-toggler { padding: 0.4rem; }
  .navbar-nav .nav-link { padding: 1rem 0; font-size: 1.1rem; }
  .dropdown-menu { position: static !important; }
  .modern-footer .row { text-align: center !important; }
  .modern-footer .col-md-4 { margin-bottom: 2rem; }
  .input-group { flex-direction: column; }
}

@media (max-width: 576px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .navbar-brand i { font-size: 1.2rem; }
}

/* RTL Fixes */
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .text-md-end { text-align: start !important; }
[dir="rtl"] .offcanvas-end { right: auto; left: 0; }

/* Loading Animation for perfection */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 4px;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-top-color: var(--primary-gradient);
}
@keyframes lds-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Feature Background Colors */
.bg-13c4a1 {
  background-color: #13c4a1;
}

.bg-6610f2 {
  background-color: #6610f2;
}

.bg-ffb700 {
  background-color: #ffb700;
}

.bg-fc3549 {
  background-color: #fc3549;
}

.bg-00d280 {
  background-color: #00d280;
}

.bg-ff612f {
  background-color: #ff612f;
}

.bg-9c27b0 {
  background-color: #9c27b0;
}

.bg-3f51b5 {
  background-color: #3f51b5;
}

.bg-e91e63 {
  background-color: #e91e63;
}
