
/* Custom CSS for Digital Leaders Website */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #334155;
}

/* Custom Bootstrap Variables */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: #64748b;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding-top: 120px;
}

.hero-image .hero-badge {
  bottom: -30px;
  left: -30px;
  animation: float 3s ease-in-out infinite;
}

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

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--primary-color);
}

.service-card .card-header {
  border-bottom: none;
  padding: 2rem 1rem 1rem;
}

/* Project Cards */
.project-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.project-card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Client Logos */
.client-logo {
  transition: all 0.3s ease;
  opacity: 0.7;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control,
.form-select {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* Contact Section Form */
#contact .form-control,
#contact .form-select {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

#contact .form-control::placeholder {
  color: #94a3b8;
}

#contact .form-control:focus,
#contact .form-select:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  color: #334155;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Spacing */
section {
  scroll-margin-top: 100px;
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: #0f172a !important;
}

/* Stars Rating */
.bi-star-fill {
  font-size: 1rem;
}

/* Badge Styling */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

/* List Group Styling */
.list-group-item {
  background-color: transparent;
  padding: 0.75rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-image .hero-badge {
    bottom: -20px;
    left: -20px;
    padding: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1rem;
    padding: 0.25rem 0;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .project-card:hover {
    transform: none;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* 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: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Success Message */
.alert-success {
  background-color: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Scroll to top button */
.btn-scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  transition: all 0.3s ease;
}

.btn-scroll-top:hover {
  transform: translateY(-3px);
}
