/* Trustex Insurance Website Styles */

/* CSS Variables */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --black: #000000;
  --font-family: "Roboto", sans-serif;
  --heading-font: "Poppins", sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--dark-color);
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  font-weight: 500;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #0056b3);
  border: none;
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Section Styles */
.section-subtitle {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.section-description {
  font-size: 16px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

/* Header Styles */
.top-bar {
  background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
  border-bottom: 2px solid var(--warning-color);
  font-size: 14px;
}

.top-bar a {
  color: var(--white);
}

.top-bar a:hover {
  color: var(--primary-color);
}

.top-bar-item {
  margin-right: 1.5rem;
}

.top-bar-item a:hover {
  color: var(--warning-color) !important;
}

.top-bar-features .badge {
  font-size: 11px;
  padding: 4px 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin: 0 2px;
}

.social-links a:hover {
  background: var(--warning-color);
  color: var(--dark-color) !important;
  transform: translateY(-2px);
}

.language-selector {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.language-selector:hover {
  background: rgba(255, 255, 255, 0.2);
}

.flag-icon {
  border-radius: 2px;
}

/* Enhanced Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

.navbar-brand .logo-container {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.navbar-nav .nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: rgba(var(--primary-color), 0.1);
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
  background: var(--primary-color);
  color: white !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 1rem 0;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    rgba(0, 123, 255, 0.1)
  );
  color: white;
  padding-left: 2rem;
}

.quick-actions .btn {
  font-size: 12px;
  padding: 6px 12px;
}

.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  min-width: 250px;
  display: none;
  z-index: 1000;
}

.cart-icon:hover .cart-dropdown {
  display: block;
}

/* Enhanced Footer Styles */
.footer {
  position: relative;
  background: linear-gradient(135deg, #2c3e50, #3498db);
}

.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='footerPattern' width='20' height='20' patternUnits='userSpaceOnUse'><circle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.05)'/></pattern></defs><rect width='100' height='100' fill='url(%23footerPattern)'/></svg>");
}

.footer-main {
  position: relative;
  z-index: 2;
}

.footer-title {
  color: var(--warning-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--warning-color);
}

.footer-brand .logo-container {
  animation: pulse 2s infinite;
}

.company-features .feature-item {
  transition: all 0.3s ease;
}

.company-features .feature-item:hover {
  transform: scale(1.05);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  padding: 5px 0;
  display: block;
}

.footer-links a:hover {
  color: var(--warning-color);
  padding-left: 10px;
  text-decoration: none !important;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(5px);
}

.bg-rgba-light {
  background: rgba(255, 255, 255, 0.05) !important;
}

.newsletter-section {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--success-color)
  ) !important;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .input-group-lg .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 1rem 1.5rem;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3) !important;
  position: relative;
  z-index: 2;
}

.bg-darker {
  background: rgba(0, 0, 0, 0.5) !important;
}

.payment-methods i {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.payment-methods i:hover {
  transform: scale(1.2);
}

.additional-info .badge {
  padding: 8px 15px;
  font-size: 12px;
  margin: 0 5px;
}

/* Back to Top Button Enhancement */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--success-color)
  );
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: linear-gradient(
    45deg,
    var(--success-color),
    var(--primary-color)
  );
  transform: translateY(-3px);
}

.back-to-top.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Emergency Contact Float */
.emergency-contact-float .btn {
  animation: emergency-pulse 2s infinite;
}

@keyframes emergency-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
}

/* Search Modal Enhancement */
.modal-content {
  border-radius: 15px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(45deg, var(--primary-color), var(--info-color));
  color: white;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-item {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-features {
    margin-bottom: 30px;
  }

  .navbar-right {
    margin-top: 20px;
    text-align: center;
  }

  .footer-widget {
    margin-bottom: 40px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .quote-form {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-color);
}
