/* hero.css - Premium Apple/Stripe-inspired Hero Section styling */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
  padding-bottom: 6rem;
  background-color: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

/* Background gradient nodes specifically for Hero */
.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

/* Hero Content Grid layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

/* Text and details side */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  position: relative;
}

.hero-badge-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #111827 0%, #1e3a8a 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: inline-block;
  color: var(--color-accent);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* Typing / Rotating text effect container */
.typewrite-container {
  min-height: 38px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  display: inline-block;
}

/* Right Side Visual showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.dashboard-showcase {
  width: 100%;
  max-width: 540px;
  position: relative;
  perspective: 1200px;
}

/* Main Dashboard Laptop Mockup */
.mockup-laptop {
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-backdrop-blur);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-smooth);
}

.mockup-header {
  height: 32px;
  background-color: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.dot-red { background-color: #EF4444; }
.mockup-dot.dot-yellow { background-color: #F59E0B; }
.mockup-dot.dot-green { background-color: #10B981; }

.mockup-body {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-chart-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mockup-mini-card {
  background: #FFFFFF;
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-mini-card span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mockup-mini-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.mockup-main-chart {
  background: #FFFFFF;
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.chart-legend {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chart-legend span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-blue::before { background-color: var(--color-accent); }
.legend-cyan::before { background-color: var(--color-highlight); }

/* SVG Chart lines representing active dashboard values */
.chart-svg-container {
  width: 100%;
  height: 100px;
  position: relative;
}

.chart-svg-container svg {
  width: 100%;
  height: 100%;
}

/* Floating Glass Cards */
.floating-glass-card {
  position: absolute;
  z-index: 3;
  padding: 1rem 1.25rem;
  border-radius: var(--glass-radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.floating-glass-card:hover {
  transform: translateY(-5px) scale(1.05);
}

.float-card-1 {
  top: -15px;
  right: -30px;
  background: rgba(255, 255, 255, 0.7);
  border: var(--glass-border);
  animation: floatAnim1 6s infinite ease-in-out alternate;
}

.float-card-2 {
  bottom: -20px;
  left: -40px;
  background: rgba(255, 255, 255, 0.75);
  border: var(--glass-border);
  animation: floatAnim2 8s infinite ease-in-out alternate;
}

.floating-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-details {
  display: flex;
  flex-direction: column;
}

.floating-details span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.floating-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Mockup Phone Frame overlay */
.mockup-phone {
  width: 160px;
  height: 310px;
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-backdrop-blur);
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  position: absolute;
  bottom: -30px;
  right: -50px;
  z-index: 4;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
  animation: floatAnim3 7s infinite ease-in-out alternate;
}

.phone-screen {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-header {
  height: 12px;
  width: 50px;
  background-color: #000;
  border-radius: 99px;
  margin: 0 auto 8px auto;
}

.phone-card {
  background: #FFFFFF;
  border: 1px solid rgba(59, 130, 246, 0.06);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-card h6 {
  font-size: 0.7rem;
  font-weight: 700;
}

.phone-card span {
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

.phone-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  margin-top: 10px;
  padding: 0 4px;
}

.phone-bar {
  width: 6px;
  background: var(--color-accent-light);
  border-radius: 99px;
  transition: height 1s ease;
}

.phone-bar:nth-child(even) {
  background: var(--color-highlight);
}

/* Float Keyframes */
@keyframes floatAnim1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatAnim2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(14px) rotate(-1deg); }
}

@keyframes floatAnim3 {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.02); }
}

/* Responsive configurations for Hero */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 2rem;
  }
  .float-card-1 { right: 0; }
  .float-card-2 { left: 0; }
  .mockup-phone { right: -20px; }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    text-align: center;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badge, .hero-actions {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .mockup-phone {
    display: none; /* Hide phone mockup on smaller tablets & mobile */
  }

  .float-card-1, .float-card-2 {
    position: static;
    margin: 1rem 0;
    width: 100%;
  }
}
