/* Global Styles */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #7c3aed;
  --secondary-hover: #6d28d9;
  --success-color: #10b981;
  --info-color: #06b6d4;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --light-color: #f9fafb;
  --dark-color: #111827;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hover-transform: translateY(-5px);
  --border-radius: 0.75rem;
  --gradient-primary: linear-gradient(90deg, #4f46e5, #7c3aed);
}

body {
  font-family: "Prompt", sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #f9fafb;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

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

.lead {
  font-weight: 400;
  line-height: 1.8;
  color: #4b5563;
}

/* Header Styles */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.navbar-brand img {
  max-height: 40px;
  transition: all var(--transition-speed);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Enhanced Navbar */
.navbar {
  padding: 0.75rem 0;
  transition: all var(--transition-speed);
}

.navbar-scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.7rem 1rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.navbar-nav .nav-link:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-speed);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
  width: 30px;
}

/* Footer Styles */
.site-footer {
  background-color: #343a40;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-heading-line {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #0256b8;
  margin-right: 0.5rem;
  transition: all var(--transition-speed);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Contact Info */
.contact-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 10px;
}

.contact-text {
  flex: 1;
}

/* Enhanced Card Styles */
.card {
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--box-shadow);
}

.card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-top {
  transition: transform 0.8s;
  height: 200px;
  object-fit: cover;
}

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

.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.card-text {
  color: #4b5563;
}

/* Enhanced Button Styles */
.btn {
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  transition: all var(--transition-speed);
  font-weight: 500;
  letter-spacing: 0.3px;
}

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

.btn-primary:hover {
  background: linear-gradient(90deg, var(--primary-hover), var(--secondary-hover));
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
}

.btn-outline-primary {
  border-width: 2px;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
}

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

/* Form Styles */
.form-control,
.form-select {
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid #dee2e6;
  transition: all var(--transition-speed);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  border-color: rgba(13, 110, 253, 0.5);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Feature Icon Enhancement */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  border-radius: 0.75rem;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  transition: all var(--transition-speed);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
}

.card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon.bg-primary {
  background: var(--gradient-primary) !important;
}

/* Feature Check */
.feature-check {
  transition: all var(--transition-speed);
}

.feature-check:hover {
  transform: translateX(5px);
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  font-size: 12px;
}

/* Dropdown Animation */
.dropdown-menu-animate {
  animation: dropdown-fade 0.2s ease-in-out;
  transform-origin: top;
  box-shadow: var(--box-shadow);
  border: none;
  border-radius: 0.5rem;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.hover-effect {
  transition: all var(--transition-speed);
}

.hover-effect:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Section Styles */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
}

.section-title.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Hero Section Enhancements */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  padding: 20px;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.1));
  border-radius: 50%;
  z-index: 1;
}

.hero-shape-2 {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, rgba(13, 202, 240, 0.1), rgba(13, 110, 253, 0.1));
  border-radius: 50%;
  z-index: 1;
}

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

/* Stats Section Enhancements */
.stats-container {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border-radius: var(--border-radius);
}

.stat-item {
  padding: 20px;
  transition: all var(--transition-speed);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-icon-container {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.stat-icon {
  font-size: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Article Styles */
.article-content {
  line-height: 1.8;
}

.article-content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: rgba(13, 110, 253, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Pricing Table Enhancement */
.pricing {
  transition: all var(--transition-speed);
  position: relative;
}

.pricing:hover {
  transform: var(--hover-transform);
}

.pricing .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
}

/* Testimonial Card Enhancement */
.testimonial-card {
  position: relative;
}

.testimonial-card:before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(13, 110, 253, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Scroll 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);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-nav .nav-link:before {
    display: none;
  }

  h1 {
    font-size: 1.8rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .hero-shape-1,
  .hero-shape-2 {
    width: 100px;
    height: 100px;
  }

  .stats-container {
    margin-top: 20px;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

  .card-img-top {
    height: 180px;
  }

  .social-share {
    margin-top: 10px;
  }

  .article-content img {
    height: auto !important;
  }

  .pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .footer-links {
    margin-bottom: 20px;
  }
}

/* Blog Specific Styles */
.blog-hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-articles-section .card {
  height: 100%;
}

.blog-articles-section .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Article Page Styles */
.article-header-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.article-content-section .card-img-top {
  height: 300px;
  object-fit: cover;
}

/* Search and Filter Section */
.search-filter-section {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 202, 240, 0.05));
}

/* Categories Section */
.categories-section .card {
  text-align: center;
  transition: all var(--transition-speed);
}

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

/* CTA Section */
.cta-section .card {
  border: none;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.cta-section .card:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(13, 110, 253, 0.03), rgba(13, 202, 240, 0.03), rgba(13, 110, 253, 0.03));
  transform: rotate(30deg);
  z-index: 0;
}

.cta-section .card-body {
  position: relative;
  z-index: 1;
}

/* Admin Dashboard Styles */
.dashboard-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

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

/* Footer Enhancements */
.footer {
  background: linear-gradient(135deg, #111827, #1f2937);
  position: relative;
}

.footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232d3748' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

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

.footer-heading {
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  color: #f9fafb;
}

.footer-heading-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.footer-links a {
  display: block;
  padding: 8px 0;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
  color: #d1d5db;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.newsletter-form {
  background-color: #54585cad;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
  border-radius: 9999px 0 0 9999px;
  border: 5px solid #e6e6e6;
  padding: 0.8rem 1.2rem;
  background-color: #f4f4f4;
  color: #333;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, background-color 0.3s;
}

.newsletter-form .form-control:focus {
  background-color: #ffffff;
  border-color: #007bff;
  outline: none;
}

.newsletter-form .form-control::placeholder {
  color: #888;
}

.newsletter-form .btn {
  border-radius: 0 9999px 9999px 0;
  background-color: #007bff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.newsletter-form .btn:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.newsletter-form .form-check-label {
  color: #666;
}

.newsletter-form .form-check-label a {
  color: #007bff;
  text-decoration: underline;
}

.newsletter-form .form-check-label a:hover {
  color: #0056b3;
}


/* Back to Top Button Enhancement */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.4);
  color: white;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
