/**
 * Home Page Styles
 * Styles specific to the home/landing page
 */

/* === Home Page Layout === */
.home-page {
  padding: 0;
  max-width: none;
}

/* === Hero Section === */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-4xl) var(--spacing-xl);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}

/* Page Brand Logo (top-left corner) */
.page-brand {
  position: fixed;
  top: 20px; /* Match admin dashboard logo position */
  left: 20px; /* Match admin dashboard logo position */
  z-index: 100000; /* Match admin dashboard logo z-index */
  animation: fadeInDown 0.6s ease-out;
  /* Explicitly no background, border, or backdrop */
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  /* Explicitly no background or effects */
  background: transparent !important;
  border: none !important;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* Match admin dashboard - no filters or shadows */
}

.brand-logo-video {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: none !important;
  background-color: transparent !important;
}

.brand-logo-fallback {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600; /* Match admin dashboard font-weight: 600 */
  color: #00d4ff !important; /* Match admin dashboard cyan color - force override */
  letter-spacing: -0.02em;
  text-shadow: none !important;
  /* Match admin dashboard - no text shadows */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments for brand */
@media (max-width: 768px) {
  .page-brand {
    top: 1rem;
    left: 1rem;
  }
  
  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-logo-video,
  .brand-logo-fallback {
    width: 32px;
    height: 32px;
  }
  
  .brand-name {
    font-size: 1.25rem;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, var(--color-primary-alpha-10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width-xl);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 100%;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

.hero-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard-mockup {
  width: 100%;
  max-width: 500px;
  background-color: var(--surface-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid var(--border-secondary);
}

.mockup-header {
  background-color: var(--surface-4);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  border-bottom: 1px solid var(--border-tertiary);
}

.mockup-dots {
  display: flex;
  gap: var(--spacing-sm);
}

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

.dot-red { background-color: #ff5f57; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #28ca42; }

.mockup-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.mockup-content {
  padding: var(--spacing-xl);
}

.mockup-chart {
  margin-bottom: var(--spacing-xl);
}

.chart-bars {
  display: flex;
  align-items: flex-end; /* Crucial: align to bottom */
  gap: var(--spacing-sm);
  height: 120px;
  padding: var(--spacing-lg);
  background-color: var(--surface-2);
  border-radius: var(--radius-md);
  position: relative;
}

/* Add visible baseline */
.chart-bars::after {
  content: '';
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  height: 2px;
  background: rgba(99, 102, 241, 0.3);
  pointer-events: none;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--color-primary), var(--color-info));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  animation: breathe 4s ease-in-out infinite;
  will-change: height;
  transform: translateZ(0); /* Force GPU acceleration */
}

.bar-1 { 
  height: 40%;
  animation-delay: 0s;
  animation-duration: 4.2s;
  --base-height: 40%;
  --peak-height: 46%;
}
.bar-2 { 
  height: 70%;
  animation-delay: 0.8s;
  animation-duration: 3.8s;
  --base-height: 70%;
  --peak-height: 80.5%;
}
.bar-3 { 
  height: 90%;
  animation-delay: 1.6s;
  animation-duration: 4.5s;
  --base-height: 90%;
  --peak-height: 103.5%;
}
.bar-4 { 
  height: 60%;
  animation-delay: 2.4s;
  animation-duration: 4s;
  --base-height: 60%;
  --peak-height: 69%;
}
.bar-5 { 
  height: 80%;
  animation-delay: 3.2s;
  animation-duration: 3.9s;
  --base-height: 80%;
  --peak-height: 92%;
}

@keyframes breathe {
  0%, 100% {
    height: var(--base-height);
  }
  50% {
    height: var(--peak-height);
  }
}

.mockup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.metric {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--surface-2);
  border-radius: var(--radius-md);
}

.metric-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.metric-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* === Section Styles === */
.features-section,
.solutions-section {
  padding: var(--spacing-4xl) var(--spacing-xl);
  max-width: var(--max-width-xl);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.feature-card {
  padding: var(--spacing-2xl);
  background-color: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tertiary);
  transition: var(--transition-normal);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-alpha-30);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  border-radius: var(--radius-xl);
  color: white;
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* === Solutions Grid === */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.solution-card {
  padding: var(--spacing-xl);
  background-color: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tertiary);
  transition: var(--transition-normal);
}

.solution-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.solution-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-tertiary);
}

.solution-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.solution-subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-features li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--spacing-xl);
}

.solution-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

/* === Call to Action Section === */
.cta-section {
  padding: var(--spacing-4xl) var(--spacing-xl);
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%);
  text-align: center;
  margin-top: var(--spacing-4xl);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.cta-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
  flex-wrap: wrap;
}

.cta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-3xl);
  border-top: 1px solid var(--border-tertiary);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-dashboard-mockup {
    max-width: 400px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: var(--spacing-3xl) var(--spacing-lg);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-section,
  .solutions-section,
  .cta-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .mockup-content {
    padding: var(--spacing-lg);
  }
  
  .chart-bars {
    height: 80px;
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .mockup-metrics {
    grid-template-columns: 1fr;
  }
}

/* === Contact Form Styles === */
.contact-section {
  background: var(--bg-secondary);
  padding: var(--spacing-4xl) var(--spacing-xl);
}

.contact-card {
  background: rgba(45, 55, 72, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: rgba(26, 32, 44, 0.5);
  color: var(--text-primary);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-alpha-20);
}

#contact-submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  transition: all 0.2s ease;
}

#contact-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

#contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Contact Form Responsive */
@media (max-width: 768px) {
  .contact-card form > div:first-child {
    grid-template-columns: 1fr !important;
  }
  
  .contact-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
}
