/* New Index Page Styles */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Hero Section */
.new-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 50%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px 0;
}

.new-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(40, 167, 69, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(40, 167, 69, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(40, 167, 69, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

/* Floating background elements */
.hero-bg-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg-element:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-bg-element:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 70%;
  right: 15%;
  animation-delay: 2s;
}

.hero-bg-element:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2d465e;
  margin-bottom: 2rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .highlight {
  color: #28a745;
  position: relative;
}

/* Remove the underline effect
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #34ce57);
  border-radius: 2px;
  opacity: 0.3;
}
*/

.hero-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Search Section */
.hero-search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.search-section {
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

.search-section:hover {
  transform: translateY(-5px);
}

.search-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #2d465e;
  line-height: 1.2;
}

.search-title .keyword {
  color: #28a745;
  position: relative;
}

/* Remove the underline effect
.search-title .keyword::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #34ce57);
  border-radius: 2px;
  opacity: 0.4;
}
*/

.search-form {
  position: relative;
}

.search-input-group {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 18px 20px 18px 55px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
  background: #fafafa;
}

.search-input:focus {
  outline: none;
  border-color: #28a745;
  background: white;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.search-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.search-btn {
  width: 100%;
  max-width: 280px;
  padding: 20px 40px;
  background: linear-gradient(135deg, #28a745, #34ce57);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.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 ease;
}

.search-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

.search-btn:hover::before {
  left: 100%;
}

.search-btn:active {
  transform: translateY(0);
}

/* Separator between sections */
.hero-search::after {
  content: 'OR';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-radius: 30px;
  border: 2px solid rgba(40, 167, 69, 0.2);
  font-weight: 700;
  color: #28a745;
  font-size: 1rem;
  z-index: 20;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.hero-stats {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-search {
    gap: 6rem;
  }
  
  .search-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .new-hero {
    padding: 120px 0 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .search-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-search {
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 500px;
  }
  
  .hero-search::after {
    display: none;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .new-hero {
    padding: 100px 0 40px 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .search-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .search-btn {
    padding: 18px 35px;
    font-size: 1rem;
  }
  
  .hero-stats {
    margin-top: 3rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }
  
  .search-btn {
    padding: 16px 30px;
    font-size: 0.95rem;
    max-width: 240px;
  }
  
  .hero-bg-element {
    opacity: 0.5;
  }
  
  .hero-search {
    gap: 3rem;
  }
}

/* Animation delays for staggered loading */
.search-section:first-child {
  animation: slideInLeft 0.8s ease 0.2s both;
}

.search-section:last-child {
  animation: slideInRight 0.8s ease 0.4s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  animation: fadeInUp 1s ease 0s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
  animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.search-input:focus,
.search-btn:focus {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

/* Loading state for search buttons */
.search-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.search-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}