/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ============================================= */
/* GLOBAL SCALE - 90% Zoom Effect */
/* ============================================= */
html {
  font-size: 90%; /* Scale everything down to 90% (equivalent to browser zoom) */
}

/* ============================================= */
/* FIGMA DESIGN SYSTEM - GARIBAICH */
/* ============================================= */

/* Typography System from Figma */
:root {
  /* Colors */
  --primary-black: #231f20;
  --primary-white: #ffffff;
  --primary-red: #de1b22;
  --gray-light: #f5f5f5;
  --gray-medium: rgba(60, 60, 60, 0.6);
  --overlay-dark: rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-card: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0px 5px 20px 0px rgba(0, 0, 0, 0.15);
  --shadow-card-active: 0px 5px 10px 0px rgba(222, 27, 34, 0.3);
  --shadow-category: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-card: 16px;
  --radius-button: 10px;
  --radius-pill: 100px;
  --radius-category: 8px;
}

/* Base Typography - Global Font Family */
* {
  font-family: var(--font-family);
}

body {
  font-family: var(--font-family);
  color: var(--primary-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure all headings use Inter */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
}

/* Ensure all inputs and buttons use Inter */
input, button, textarea, select {
  font-family: var(--font-family);
}

/* Figma Typography Classes */
.text-hero {
  font-size: 34px;
  line-height: 48px;
  font-weight: 600;
}

.text-section {
  font-size: 20px;
  line-height: 40px;
  font-weight: 600;
}

.text-card-title {
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
}

.text-body-lg {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.text-body {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.text-small {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

/* Custom utilities for the car marketplace */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth animations */
* {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Enhanced focus states */
.btn:focus,
.input:focus,
.select:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Figma Card Styles */
.car-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--primary-white);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.car-card.active,
.car-card.selected {
  box-shadow: var(--shadow-card-active);
  border-color: var(--primary-red);
}

/* Category Card Styles from Figma */
.category-card {
  border-radius: var(--radius-category);
  box-shadow: var(--shadow-category);
  transition: all 0.3s ease;
  background: var(--primary-white);
  border: 0.5px solid rgba(35, 31, 32, 0.5);
}

.category-card:hover {
  box-shadow: var(--shadow-card-active);
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.category-card.active {
  border: 0.5px solid var(--primary-red);
  box-shadow: var(--shadow-card-active);
}

/* Button Styles from Figma */
.btn-primary {
  background: var(--primary-red);
  color: var(--primary-white);
  border-radius: var(--radius-button);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #c51820;
  box-shadow: 0 4px 12px rgba(222, 27, 34, 0.3);
  transform: translateY(-1px);
}

/* Filter Button Styles from Figma */
.filter-btn {
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  border: 0.5px solid var(--gray-medium);
  background: var(--primary-white);
  color: var(--gray-medium);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--primary-black);
  color: var(--primary-black);
}

.filter-btn.active {
  background: var(--primary-black);
  color: var(--primary-white);
  border-color: var(--primary-black);
}

/* Badge Styles from Figma */
.badge-overlay {
  background: var(--overlay-dark);
  color: var(--primary-white);
  border-radius: 16777200px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

/* Image loading state */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced prose styling */
.prose {
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Kaminari Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  color: #374151;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  min-width: 2.5rem;
  height: 2.5rem;
}

.pagination a:hover {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  transform: translateY(-1px);
}

.pagination .current {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  font-weight: 600;
}

.pagination .gap {
  border: none;
  background: none;
  color: #9ca3af;
  cursor: default;
}

.pagination .gap:hover {
  background: none;
  color: #9ca3af;
  transform: none;
}

.pagination .first,
.pagination .prev,
.pagination .next,
.pagination .last {
  font-weight: 600;
}

.pagination .first a,
.pagination .prev a,
.pagination .next a,
.pagination .last a {
  padding: 0.5rem 1rem;
}

.pagination .prev a::before {
  content: "← ";
}

.pagination .next a::after {
  content: " →";
}

.pagination .first a::before {
  content: "«« ";
}

.pagination .last a::after {
  content: " »»";
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
  @apply bg-gray-300 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply bg-gray-400;
}

/* ============================================= */
/* MODERN HEADER STYLES */
/* ============================================= */

/* Sticky Top Bar with Logo */
.header-modern {
  backdrop-filter: blur(8px);
  background: rgba(59, 130, 246, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-modern.scrolled {
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Compact Logo Animation */
.logo-compact {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact Info Animation */
.sliding-info {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Navigation (Non-sticky) */
.main-nav {
  position: relative;
  z-index: 40;
  margin-top: 0;
}

/* Ensure proper spacing after sticky header */
body {
  padding-top: 0;
}

/* Top Info Bar */
.top-info-bar {
  position: relative;
  overflow: hidden;
  background: inherit;
}

.top-info-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.info-item {
  white-space: nowrap;
}

.social-bubble {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Logo */
.logo-modern {
  text-decoration: none;
}

.logo-icon-container {
  position: relative;
}

.logo-modern:hover h1 {
  background: linear-gradient(45deg, #8b5cf6, #3b82f6, #06b6d4, #8b5cf6);
  background-size: 300% 300%;
  animation: gradientShift 2s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Enhanced Search Bar */
.search-section {
  position: relative;
}

.search-wrapper {
  position: relative;
}

.search-wrapper.focused {
  transform: scale(1.02);
}

.search-wrapper.focused .search-input {
  color: #1f2937;
}

.search-input {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  box-shadow: none;
  outline: none;
}

.search-btn {
  border: none;
  position: relative;
  overflow: hidden;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.search-btn:hover::before {
  left: 100%;
}

/* Navigation Links */
.nav-links {
  gap: 1rem;
}

.nav-link-modern {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.3s ease;
}

.nav-link-modern:hover::before {
  left: 100%;
}

.nav-icon-bg {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: transparent;
}

.nav-link-modern:hover {
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
}

/* Dropdown Menu */
.dropdown-menu {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

/* User Actions */
.user-actions {
  gap: 1rem;
}

.user-avatar-btn {
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.user-avatar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.user-avatar-btn:hover::before {
  left: 100%;
}

.avatar-container {
  position: relative;
}

.user-dropdown-modern {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown-modern::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.dropdown-item-modern {
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.3s ease;
}

.dropdown-item-modern:hover::before {
  left: 100%;
}

/* Action Buttons */
.sell-btn-modern,
.signup-btn-modern {
  text-decoration: none;
  position: relative;
  border: none;
  cursor: pointer;
}

.auth-link-modern {
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.auth-link-modern:hover {
  background: rgba(59, 130, 246, 0.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.hamburger {
  width: 20px;
  height: 14px;
  position: relative;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: #374151;
  border-radius: 1px;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 6px;
}

.hamburger-line:nth-child(3) {
  top: 12px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  top: 6px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 6px;
}

/* Mobile Menu */
.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

.mobile-nav-item-modern {
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.3s ease;
}

.mobile-nav-item-modern:hover::before {
  left: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .search-section {
    max-width: 24rem;
    margin: 0 1rem;
  }
}

@media (max-width: 768px) {
  .logo-modern h1 {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .user-actions {
    gap: 0.75rem;
  }
  
  .top-info-bar {
    display: none;
  }
}

@media (max-width: 640px) {
  .user-avatar-btn .hidden {
    display: none !important;
  }
  
  .logo-modern h1 {
    font-size: 1.75rem;
  }
  
  .search-section {
    margin: 0 1rem;
  }
}

/* ============================================= */
/* LEGACY HEADER STYLES (PRESERVED) */
/* ============================================= */

/* Global focus styles */
* {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

input:focus, textarea:focus, button:focus, select:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Header logo glow effect */
.header-logo-glow {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* Header search bar styling */
.header-search-bar {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-search-bar:focus-within {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header navigation links */
.header-nav-link {
  position: relative;
  padding: 0.5rem 1rem;
}

.header-nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: width 0.3s ease;
}

.header-nav-link:hover::before {
  width: 100%;
}

/* User dropdown styling */
.user-dropdown {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.95);
}

/* Mobile menu animations */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

#mobileMenu.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

#mobileMenu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  animation: slideDown 0.3s ease-out;
}

/* Button gradient effects */
.btn-gradient,
input.btn-gradient[type="submit"],
button.btn-gradient {
  background: linear-gradient(135deg, #de1b22, #c51820) !important;
  background-color: #de1b22 !important;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient-green {
  background: linear-gradient(135deg, #059669, #10b981);
  position: relative;
  overflow: hidden;
}

.btn-gradient-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-gradient-green:hover::before {
  left: 100%;
}

/* Professional Form Field Styling */
select.appearance-none {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.appearance-none:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  cursor: not-allowed;
}

/* Form input focus states */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(222, 27, 34, 0.1);
}

/* Social icons */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

/* Search container effects */
.search-container {
  position: relative;
}

.search-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-container:focus-within::before {
  opacity: 1;
}

/* Logo container effects */
.logo-container {
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-icon {
  transition: all 0.3s ease;
}

.logo-container:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Navigation item effects */
.nav-item {
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  transform: translateY(-1px);
}

.nav-item i {
  transition: all 0.3s ease;
}

.nav-item:hover i {
  transform: scale(1.1);
}

/* Mobile navigation items */
.mobile-nav-item {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.mobile-nav-item:hover {
  background-color: rgba(37, 99, 235, 0.05);
  transform: translateX(4px);
}

/* Pagination styling */
.pagination {
  margin: 2rem 0;
}

.pagination a, .pagination span {
  transition: all 0.2s ease;
}

.pagination a {
  text-decoration: none;
}

.pagination .current {
  font-weight: 600;
}

.pagination .gap {
  cursor: default;
}

.pagination .disabled {
  opacity: 0.5;
}

/* Car card styling */
.car-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image gallery styling */
.image-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.image-gallery-main img {
  transition: transform 0.3s ease;
}

.image-gallery-main:hover img {
  transform: scale(1.05);
}

.image-thumbnail {
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-thumbnail.active {
  border: 2px solid #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .header-logo h1 {
    font-size: 1.5rem;
  }

  .header-logo p {
    font-size: 0.625rem;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Backdrop blur for header */
.backdrop-blur-header {
  backdrop-filter: blur(10px);
}

/* Glass effect utility */
.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body and layout */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Header sticky behavior */
.header-sticky {
  transition: all 0.3s ease;
}

.header-sticky.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Footer enhancements */
.footer-stat {
  transition: all 0.3s ease;
}

.footer-stat:hover {
  transform: translateY(-2px);
}

.footer-stat:hover .text-3xl,
.footer-stat:hover .text-4xl {
  transform: scale(1.1);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer social icons */
.footer-social-icon {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer-social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.footer-social-icon:hover::before {
  left: 100%;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer links */
.footer-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.3s ease;
}

.footer-link:hover::before {
  left: 100%;
}

.footer-link:hover {
  transform: translateX(4px);
}

.footer-link:hover i {
  transform: scale(1.1);
}

/* Newsletter section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer styling */
footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  animation: footerGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes footerGlow {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Footer pattern */
.footer-pattern {
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

/* Footer headings */
footer h4 {
  position: relative;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .footer-stat {
    text-align: center;
  }

  .footer-social-icon {
    padding: 0.5rem;
  }

  footer h4 {
    font-size: 1rem;
  }
}

/* Footer input focus states */
footer input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

/* Modern form element styling for filters */
.modern-form-element {
  transition: all 0.2s ease-in-out;
  position: relative;
}

.modern-form-element:hover {
  transform: translateY(-1px);
}

.modern-form-element:focus-within {
  transform: translateY(-1px);
}

/* Custom select styling */
select.appearance-none {
  background-image: none;
}

select::-ms-expand {
  display: none;
}

/* Modern dropdown arrow */
.modern-dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
  font-size: 12px;
  transition: color 0.2s ease;
}

.modern-form-element:focus-within .modern-dropdown-arrow {
  color: #3b82f6;
}

/* Enhanced gradient backgrounds */
.form-gradient-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.form-gradient-bg:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
}

.form-gradient-bg:focus {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Enhanced shadow effects for form elements */
.form-shadow {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-shadow:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-shadow:focus {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Ring effect for form elements */
.form-ring-focus:focus {
  ring-width: 4px;
  ring-color: rgba(59, 130, 246, 0.2);
  ring-offset-width: 0px;
}

/* Enhanced Top Info Bar Styles */
.top-info-bar-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e2a5e 100%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.top-info-bar-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmerSweep 4s infinite;
}

@keyframes shimmerSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.info-item-enhanced {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.info-item-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.3s ease;
}

.info-item-enhanced:hover::before {
  left: 100%;
}

.info-item-enhanced:hover {
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.icon-container {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.icon-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.3s ease;
}

.group:hover .icon-container::before {
  left: 100%;
}

.social-icon-enhanced {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.social-icon-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.3s ease;
}

.social-icon-enhanced:hover::before {
  left: 100%;
}

.social-icon-enhanced:hover {
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section div {
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-section div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.3s ease;
}

.cta-section div:hover::before {
  left: 100%;
}

.cta-section div:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Responsive adjustments for enhanced top bar */
@media (max-width: 768px) {
  .contact-info {
    gap: 1rem;
  }
  
  .info-item-enhanced {
    padding: 0.5rem 0.75rem;
  }
  
  .info-item-enhanced div:last-child {
    display: none;
  }
  
  .top-info-bar-enhanced {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .social-links-enhanced {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .top-info-bar-enhanced {
    text-align: left;
  }
  
  .info-item-enhanced {
    padding: 0.5rem 1rem;
    width: 100%;
  }
  
  .cta-section {
    display: none !important;
  }
}
