/* ==========================================================================
   Krishiv Solutions - Home Page Specific Styles (index.css)
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--white);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--light-bg);
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--light-border);
}

.hero-title {
  font-size: 4.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Removed Trust Elements in Hero */

/* Hero Illustration */
.hero-illustration {
  width: 100%;
  max-width: 650px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: floatIllustration 6s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

@keyframes floatIllustration {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   Why Choose Krishiv Section
   ========================================================================== */

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.choose-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.choose-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-5px);
  border-color: transparent;
}

.choose-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,107,0,0.1);
  color: var(--primary-orange);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.choose-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.choose-card p {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.premium-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #ff914d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--light-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.premium-card:hover .card-icon {
  background: var(--primary-orange-glow);
}

.feature-list {
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.step {
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 80px;
  width: calc(100% - 70px);
  height: 1px;
  border-top: 2px dashed var(--primary-orange);
  opacity: 0.3;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--white);
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--gray-muted);
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-item {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--gray-dark);
  transition: var(--transition-smooth);
}

.tech-item:hover {
  background: var(--primary-orange);
  color: var(--white);
  border-color: var(--primary-orange);
  box-shadow: 0 5px 15px var(--primary-orange-glow);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  padding: 0 0 6rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--dark-bg), #1a1a24);
  border-radius: 24px;
  padding: 5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-box p {
  font-size: 1.25rem;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries for index
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-title { font-size: 3.5rem; }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 4rem; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { margin-top: 3rem; }
  
  .solutions-grid { grid-template-columns: 1fr; }
  
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .step::after { display: none; }
  
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero-cta-group { flex-direction: column; }
  .cta-box { padding: 3rem 1.5rem; }
  .cta-box h2 { font-size: 2rem; }
  .cta-buttons { flex-direction: column; }
  
  .why-choose-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .process-steps { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
}
