/* Custom styles for Quick Fix Electronics */

/* Modern Color Scheme & Variables */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

h1, h2, h3, h4, h5 {
  letter-spacing: 0.02em;
  font-weight: 700;
}

.navbar-brand {
  letter-spacing: 0.05em;
}

/* Enhanced Hero Section */
.hero-section {
  background: var(--gradient-primary);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::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 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Enhanced Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
}

.btn-outline-light {
  border-width: 2px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Enhanced Service Cards */
.service-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  border: none;
  background: white;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-body {
  padding: 2rem;
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Enhanced Testimonials */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.testimonial-rating {
  margin-bottom: 1.5rem;
}

.testimonial-rating .fa-star {
  color: #fbbf24;
  margin: 0 2px;
}

/* Statistics Section */
.stats-section {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

.stat-item {
  position: relative;
  z-index: 2;
}

.stat-item h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced CTA Section */
.cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

/* Brand Logos */
.brand-logo {
  transition: all 0.3s ease;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.brand-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.brand-logo img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.brand-logo:hover img {
  filter: grayscale(0%);
}

/* Enhanced Footer */
.footer-section {
  background: var(--dark-color);
  color: #e5e7eb;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    text-align: center;
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .testimonial-card {
    margin-bottom: 2rem;
  }

  .stat-item h2 {
    font-size: 2.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Brand Logos */
.brand-logo {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.brand-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.brand-logo img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.brand-logo:hover img {
  filter: grayscale(0%);
}

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #374151 100%);
  position: relative;
  overflow: hidden;
}

footer::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="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
}

footer * {
  position: relative;
  z-index: 1;
}

footer h5, footer h6 {
  color: var(--accent-color);
  font-weight: 600;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color) !important;
}

footer .input-group .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

footer .input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

footer .input-group .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  color: white;
}

footer .fab {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

footer .fab:hover {
  transform: translateY(-2px);
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Trust Badges */
.trust-badge {
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-badge h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* Video Testimonials */
.video-testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-testimonial iframe {
  border-radius: 10px;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border: none;
  background: white;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.pricing-badge {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--primary-color);
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  background: white;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats Cards */
.stats-card {
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Gallery Cards */
.gallery-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-card img {
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.filter-buttons .btn {
  margin: 0 2px;
  border-radius: 20px !important;
}

.filter-buttons .btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Print styles */
@media print {
  .hero-section,
  .stats-section,
  .cta-section {
    background: white !important;
    color: black !important;
  }
}

/* Team Cards */
.team-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-img {
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.card-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}
