/* Base Styles and Variables */
:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-dark: #334155;
  --gray-light: #cbd5e1;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --radius: 8px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--gray-dark);
  background-color: var(--light);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--secondary);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 40px;
  height: 40px;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.site-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.site-title span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--gray-dark);
  position: relative;
  font-weight: 500;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta a {
  background: var(--gradient);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.nav-cta a::after {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gray-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: white;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search-box {
  flex: 1;
}

.search-box h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.search-box p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

.search-form {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-form input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
  transition: border 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-position: 100%;
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.popular-tags span {
  background-color: rgba(6, 182, 212, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary);
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-graphic {
  position: relative;
  width: 300px;
  height: 300px;
}

.search-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
}

.search-rays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 150px;
  background: linear-gradient(to top, transparent, var(--primary), transparent);
  transform-origin: bottom center;
}

.ray:nth-child(1) {
  transform: translate(-50%, -100%) rotate(0deg);
}

.ray:nth-child(2) {
  transform: translate(-50%, -100%) rotate(72deg);
}

.ray:nth-child(3) {
  transform: translate(-50%, -100%) rotate(144deg);
}

.ray:nth-child(4) {
  transform: translate(-50%, -100%) rotate(216deg);
}

.ray:nth-child(5) {
  transform: translate(-50%, -100%) rotate(288deg);
}

/* Categories Section */
.categories {
  padding: 5rem 0;
  background-color: #f1f5f9;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background-color: white;
}

.steps-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  flex: 1;
  background-color: #f8fafc;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

.primary-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(6, 182, 212, 0.4);
}

.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #f1f5f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  font-size: 2rem;
  margin-right: 1.5rem;
}

.feature-text h3 {
  margin-bottom: 0.5rem;
}

.feature-text p {
  margin-bottom: 0;
  color: var(--gray);
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: var(--gradient);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Final CTA */
.final-cta {
  padding: 5rem 0;
  background-color: white;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--gray);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-svg {
  width: 40px;
  height: 40px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-nav h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-nav h4:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: var(--gray-light);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Responsive Designs */
@media (max-width: 992px) {
  h2 {
    font-size: 2.2rem;
  }
  
  .search-box h2 {
    font-size: 2.5rem;
  }
  
  .steps-container {
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .search-box, .hero-visual {
    width: 100%;
  }
  
  .search-box h2 {
    font-size: 2rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.8rem;
  }
  
  .search-box h2 {
    font-size: 1.8rem;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-form input {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  
  .search-button {
    width: 100%;
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }
}
