/* Main Styles for GetExpert Website */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #198754;
  --danger-color: #dc3545;
  --transition: all 0.3s ease;
  --focus-outline: 3px solid #0d6efd;
}

/* Fix for Bootstrap components with white backgrounds */
.card, .modal-content, .dropdown-menu, .list-group, .toast {
  background-color: #111 !important;
  color: #f8f9fa !important;
}

.dropdown-item:hover, .list-group-item:hover {
  background-color: #222 !important;
  color: #fff !important;
}

.modal-header, .modal-footer {
  border-color: #333 !important;
}

.table {
  color: #f8f9fa !important;
}

.bg-light, .bg-white {
  background-color: #111 !important;
  color: #f8f9fa !important;
}

/* Fix for buttons and links */
.btn-light, .btn-outline-light {
  background-color: #333 !important;
  color: #fff !important;
  border-color: #444 !important;
}

.btn-light:hover, .btn-outline-light:hover {
  background-color: #444 !important;
  color: #fff !important;
}

.btn-dark, .btn-outline-dark {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #333 !important;
}

.btn-dark:hover, .btn-outline-dark:hover {
  background-color: #222 !important;
  color: #fff !important;
}

/* Fix for links */
a {
  color: #4d94ff !important;
}

a:hover {
  color: #80b3ff !important;
}

/* Fix for text colors */
.text-dark {
  color: #f8f9fa !important;
}

.text-muted {
  color: #adb5bd !important;
}

/* Fix for list groups and other components */
.list-group-item {
  background-color: #111 !important;
  color: #f8f9fa !important;
  border-color: #333 !important;
}

/* Fix for alerts */
.alert {
  background-color: #222 !important;
  color: #f8f9fa !important;
  border-color: #333 !important;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #000;
}

/* Utility Classes */
.bg-darker {
  background-color: #111;
}

/* Navigation */
.navbar-dark.bg-dark {
  background-color: #000 !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: var(--transition);
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-outline);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/dubai-skyline.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.service-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background-color: #111;
  color: #f8f9fa;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Why Choose Us Section */
.feature-box {
  padding: 2rem;
  border-radius: 10px;
  background-color: #111;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
  color: #f8f9fa;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.portfolio-item img {
  transition: transform 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 110, 253, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Pricing Tables */
.pricing-table {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background-color: #111;
  color: #f8f9fa;
}

.pricing-table:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-header {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

.pricing-features {
  padding: 2rem;
  background-color: #111;
  color: #f8f9fa;
}

.pricing-features ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Contact Form */
.contact-form {
  background-color: #111;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
  color: #f8f9fa;
}

.form-control, .form-select, .input-group-text {
  background-color: #222 !important;
  border: 1px solid #333 !important;
  color: #f8f9fa !important;
}

.form-control:focus, .form-select:focus {
  background-color: #333 !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

::placeholder {
  color: #adb5bd !important;
  opacity: 0.7 !important;
}

.form-check-input {
  background-color: #222 !important;
  border-color: #444 !important;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: 10px;
}

.contact-info i {
  margin-right: 10px;
}

/* Testimonials */
.testimonial {
  background-color: #111;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  color: #f8f9fa;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

/* Blog */
.blog-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  background-color: #111;
  color: #f8f9fa;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-img {
  height: 200px;
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .feature-box, .service-card, .pricing-table {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .pricing-table, .service-card {
    margin-bottom: 30px;
  }
  
  .portfolio-item {
    margin-bottom: 20px;
  }
  
  .testimonial-img {
    margin-right: 1rem;
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 20px;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
}

/* Animation Effects */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accessibility Improvements */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .navbar, .footer, .cta-section, .hero {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
}