/* PowerEra Website - Main Stylesheet */
/* Inspired by Apple's minimalist design philosophy */

:root {
  /* Color Palette - Dark Theme Professional (Softtek-inspired) */
  --primary-color: #00D9FF;
  --primary-dark: #00B8D4;
  --primary-light: #33E0FF;
  --secondary-color: #7C4DFF;
  --accent-color: #FF4081;
  --dark: #0A0E27;
  --dark-light: #151B3D;
  --dark-card: #1A2038;
  --gray: #B0B8D4;
  --gray-light: #2D3548;
  --gray-lighter: #1E2333;
  --white: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B8D4;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Container & Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 39, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--dark-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  padding-top: calc(72px + var(--space-4xl));
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--white);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.39);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: rgba(26, 32, 56, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.stat-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.section-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Product Cards - Apple Style */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.product-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  box-shadow: none;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.85;
  z-index: 0;
  transition: opacity var(--transition-base);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.product-card:hover::before {
  opacity: 0.8;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: scale(1.02);
}

/* Product Card Backgrounds - Gradient Blurs */
.product-card.ai-development::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-card.ai-bots::before {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-card.actif::before {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-card.waykee::before {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.product-card.helppo::before {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.product-card.featured {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
}

.product-card h3,
.product-card p {
  color: var(--white);
}

.product-card.featured h3,
.product-card.featured p {
  color: var(--white);
}

.product-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.product-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.product-description {
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.product-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.product-features li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
}

.product-card.featured .product-features li::before {
  color: var(--secondary-color);
}

.product-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.125rem;
}

.product-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.product-card.featured .product-cta {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.product-card.featured .product-cta:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.benefit-card {
  text-align: center;
  padding: var(--space-xl);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  border-radius: var(--radius-xl);
  margin: var(--space-4xl) var(--space-lg);
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background: var(--gray-lighter);
  color: var(--primary-dark);
}

.cta-section .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.cta-section .btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--dark-light);
  color: var(--text-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --space-4xl: 6rem;
    --space-3xl: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark-card);
    padding: var(--space-lg);
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    min-height: 80vh;
    padding-top: calc(72px + var(--space-xl));
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }
}

/* Smooth Scroll Enhancements */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Form Styles */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--white);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B0B8D4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-xl);
}

.form-select option {
  background: var(--dark-card);
  color: var(--white);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-lg);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.contact-info-item {
  text-align: center;
  padding: var(--space-lg);
}

.contact-info-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.contact-info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-value {
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
}

.contact-info-value a {
  color: var(--primary-color);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}
