/* CxI - Customer Experience Intelligence Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors - Deep Teal Theme (Matching provided image) */
  --primary-red: #006666;
  --primary-red-dark: #004d4d;
  --primary-red-darker: #003333;
  --primary-red-light: #008080;
  --primary-red-lighter: #1aa3a3;

  /* Secondary Colors - Complementary */
  --secondary-teal: #14b8a6;
  --secondary-cyan: #06b6d4;
  --secondary-orange: #f97316;
  --secondary-amber: #f59e0b;

  /* Accent Colors */
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-rose: #f43f5e;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-50: #fef2f2;
  --red-600: #dc2626;
  --red-800: #991b1b;
  --green-100: #d1fae5;
  --green-800: #065f46;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #edf7f7 0%, #d4eaea 50%, #b7d9d9 100%);
  min-height: 100vh;
  color: var(--gray-900);
  line-height: 1.6;
}

/* Navigation Styles */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
}

.logo img {
  width: 200px;
  height: auto;
  max-height: 60px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #9c1303;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9c1303;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, #a32a0d 0%, #9c1303 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Dropdown styling */
ul {
  list-style: none;
}

li {
  position: relative;
}

li a {
  display: block;
  color: var(--gray-900);
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  margin-top: 5px;
  min-width: 320px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 10px;
}

.dropdown-content a {
  padding: 12px 16px;
  display: block;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

li:hover .dropdown-content {
  display: block;
}

.dropdown-content i {
  margin-right: 8px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-900);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-900);
  background: none;
  border: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links > a,
.mobile-nav-links > div {
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: auto !important;
}

.mobile-nav-links > a:hover,
.mobile-nav-links > div:hover {
  color: #9c1303;
  padding-left: 1rem;
}

/* Solutions Toggle Button */
#solutionsToggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
}

#solutionsToggle i {
  transition: transform 0.3s ease;
}

#solutionsToggle.active i {
  transform: rotate(180deg);
}

/* Mobile Solutions Dropdown */
.mobile-solutions-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8fafc;
  margin-left: 1rem;
  border-radius: 8px;
}

.mobile-solutions-dropdown.show {
  max-height: 400px;
  padding: 0.5rem 0;
}

.mobile-solutions-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: none !important;
}

.mobile-solutions-dropdown a:hover {
  background: #e2e8f0;
  color: #9c1303;
  padding-left: 1.5rem !important;
}

.mobile-solutions-dropdown i {
  margin-right: 8px;
  width: 16px;
}

.mobile-nav-links > div:not(.mobile-solutions-dropdown) {
  position: relative;
}

.mobile-cta {
  margin-top: auto;
  padding-top: 1rem;
}

.mobile-cta .btn-primary {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #a32a0d 0%, #9c1303 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

/* Hero Section */
.hero-section {
  max-width: 1280px;
  margin: 6rem auto 3rem;
  padding: 0 2rem;
}

.hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E36B7A;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-dark)
  );
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--gray-900) 0%,
    var(--primary-red) 50%,
    var(--primary-red-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--gray-900) 0%,
    var(--primary-red) 50%,
    var(--primary-red-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 3rem 0 1rem;
  line-height: 1.2;
}

.search-info {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-weight: 500;
}

.search-info span {
  color: var(--primary-red);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.benefits-section {
  padding: 4rem 0;
  margin: 2rem 0;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-dark)
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Transform CTA Section */
.transform-section {
  padding: 4rem 0;
}

.transform-cta {
  background: #9c1303;
  color: white;
  padding: 4rem 2rem;
  border-radius: 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.transform-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white; /* Ensure it stays white, overriding general section-title if needed */
}

.transform-cta p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.transform-cta .cta-btn {
  display: inline-block;
  background: white;
  color: #9c1303;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transform-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .transform-cta h2 {
    font-size: 2rem;
  }

  .transform-cta {
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    margin: 0 1rem;
  }
}

/* Search Section */
.search-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(229, 231, 235, 0.5);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-section:hover {
  box-shadow: var(--shadow-2xl);
}

.search-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: linear-gradient(
    to bottom left,
    rgba(232, 91, 94, 0.1),
    transparent
  );
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.search-form {
  position: relative;
  z-index: 1;
}

.search-form label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B2332;
  margin-bottom: 0.5rem;
  text-align: center;
}

.label-note {
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.search-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.input-wrapper:focus-within svg {
  color: var(--primary-red);
}

input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 1rem 0 3rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(232, 91, 94, 0.1);
}

input[type="text"]::placeholder {
  color: var(--gray-400);
}

.btn {
  height: 52px;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-dark)
  );
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-red-dark),
    var(--primary-red-darker)
  );
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.btn span {
  pointer-events: none;
}

.error-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(254, 242, 242, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--red-600);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-message svg {
  width: 20px;
  height: 20px;
  color: var(--red-600);
  flex-shrink: 0;
}

.error-message p {
  color: var(--red-800);
  font-weight: 500;
}

/* Results Section */
.results-section {
  margin: 3rem 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  margin-bottom: 2rem;
}

.results-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.results-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-dark)
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.results-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.results-count {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-600);
  margin-left: 0.5rem;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--gray-600);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.pagination-info .current {
  font-weight: 600;
  color: var(--gray-900);
}

/* Result Cards */
.results-grid {
  display: grid;
  gap: 1.5rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 231, 235, 0.8);
  overflow: hidden;
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: var(--shadow-2xl);
  border-color: rgba(232, 91, 94, 0.5);
  transform: translateY(-4px);
}

.result-url {
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    rgba(232, 91, 94, 0.05) 100%
  );
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.result-url a {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  word-break: break-all;
}

.result-url a:hover {
  color: var(--primary-red-dark);
  text-decoration: underline;
}

.result-url svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.result-content {
  padding: 1.5rem;
}

.result-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(232, 91, 94, 0.05),
    rgba(255, 255, 255, 0.5)
  );
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 0.75rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-dark)
  );
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-red-dark),
    var(--primary-red-darker)
  );
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination button:hover:not(:disabled) {
  background: var(--gray-50);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.active {
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-dark)
  );
  color: var(--white);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-numbers button {
  width: 40px;
  height: 40px;
  padding: 0;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.925rem;
  line-height: 1.6;
}

.footer-section a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
  font-size: 0.925rem;
}

.footer-section a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    rgba(232, 91, 94, 0.05) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gray-900) 0%,
    var(--primary-red) 50%,
    var(--primary-red-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gray-200);
  transform: scale(1.1);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--gray-600);
}

.modal-body {
  padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links,
  .cta-button {
    display: none;
  }

  .mobile-nav {
    width: 100%;
    right: -100%;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-section {
    margin-top: 5rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .result-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo img {
    width: 150px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}
