/* ============================================
   EVERGREEN — Home Page Styles
   ============================================ */

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero .bg-glow {
  top: -200px;
  right: -200px;
}

.hero .bg-glow:nth-child(2) {
  bottom: -200px;
  left: -200px;
  top: auto;
  right: auto;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fade-in-up 0.8s ease-out;
}

@media (max-width: 768px) {
  .hero-badge {
    margin-top: 30px;
  }
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 40px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  animation: fade-in-up 0.8s ease-out 0.5s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Animated grid background for hero */
.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* --- Animated Glowing Orb Divider --- */
.orb-container {
  width: 100vw;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: 20px;
  z-index: 10;
}

.orb-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), transparent);
  box-shadow: 0 0 20px rgba(0,255,136,0.3);
}

.glowing-orb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent-secondary);
  animation: float-pulse 4s ease-in-out infinite alternate;
}

.glowing-orb.delay {
  width: 12px; height: 12px;
  background: var(--accent-secondary);
  animation-duration: 5s;
  animation-delay: 1s;
}

@keyframes float-pulse {
  0% { transform: translateY(-15px) scale(0.8); opacity: 0.6; }
  100% { transform: translateY(15px) scale(1.4); opacity: 1; filter: hue-rotate(45deg); }
}

/* --- Services Section --- */
.services {
  background: var(--bg-secondary);
  position: relative;
  padding-top: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  padding: 40px 32px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: transform var(--transition-spring);
}

.service-card h3, .value-card h3 {
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  color: var(--text-primary);
  opacity: 1;
}

.service-card p, .value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
  opacity: 1;
}

/* --- Aurora Swirly Glass Effect --- */
.glass-card {
  /* Basic Glass Background (Translucent) */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px) saturate(250%);
  -webkit-backdrop-filter: blur(40px) saturate(250%);
  
  /* Constant Pop (No Glow) */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  padding: 40px !important;
  
  /* Explicitly remove all interactions */
  cursor: default;
  pointer-events: none; /* Disables all hover/click triggers */
  
  /* Animation Defaults (Overridden by .visible and reveal classes) */
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* GPU Stability - Fixes glitching when the transition ends */
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Beautiful Swipe Entry Animations */
.glass-card.reveal-left { transform: translateX(-80px) translateY(20px) rotate(-2deg); }
.glass-card.reveal-right { transform: translateX(80px) translateY(20px) rotate(2deg); }
.glass-card.reveal { transform: translateY(60px); }

.glass-card.visible {
  opacity: 1;
  transform: translateX(0) translateY(-8px) rotate(0) !important;
}

/* Ensure nothing changes on hover from global .card styles */
.glass-card:hover,
.glass-card:active,
.glass-card:focus {
  transform: translateY(-8px) !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 1 !important;
  display: block !important;
}

/* Swirly Aurora Layer (The Colors) */
.glass-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(
    from 180deg at 50% 50%, 
    transparent 0deg, 
    rgba(16, 185, 129, 0.45) 90deg, 
    transparent 180deg, 
    rgba(6, 182, 212, 0.45) 270deg, 
    transparent 360deg
  );
  animation: swirl 24s linear infinite; /* Slowed down 100% */
  pointer-events: none;
  z-index: 0;
  filter: blur(35px);
  opacity: 1 !important;
}

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

.reveal-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(1.1);
  width: 200px;
  height: 200px;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  filter: blur(0px) contrast(1.1);
  animation: float-emoji 20s ease-in-out infinite; /* Slowed down 100% */
  
  /* GPU Stability - Fixes the glitching when the parent animation ends */
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes float-emoji {
  0%, 100% { transform: translate3d(-50%, -53%, 0) rotate(-3deg) scale(1.1); }
  50% { transform: translate3d(-50%, -47%, 0) rotate(3deg) scale(1.1); }
}

/* --- Why Us Section --- */
.why-us {
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-content h2 {
  margin-bottom: 20px;
}

.why-content > p {
  margin-bottom: 40px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-top: 2px;
}

.why-item h4 {
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.92rem;
}

.why-visual {
  position: relative;
}

.why-visual .floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.why-visual .floating-card:nth-child(2) {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 260px;
  animation: float 4s ease-in-out infinite;
}

.metrics-row {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.metric {
  text-align: center;
}

.metric .value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.metric .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- AI Section --- */
.ai-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-content h2 {
  margin-bottom: 20px;
}

.ai-content > p {
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.ai-feature .check {
  color: var(--accent);
  font-weight: 700;
}

.ai-demo {
  position: relative;
}

.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.chat-header .status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.chat-messages {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fade-in-up 0.5s ease-out both;
}

.chat-msg.user {
  background: var(--accent-dim);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg:nth-child(2) { animation-delay: 0.3s; }
.chat-msg:nth-child(3) { animation-delay: 0.6s; }
.chat-msg:nth-child(4) { animation-delay: 0.9s; }

.chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  outline: none;
}

.chat-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: #0a0a0a;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.chat-input button:hover {
  transform: scale(1.1);
}

/* --- Responsive Overrides --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .why-grid,
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .hero-stat .number {
    font-size: 2rem;
  }
}
