/*
Theme Name: Automate My Life
Theme URI: https://automatemylife.ai
Author: Automate My Life
Author URI: https://automatemylife.ai
Description: A cutting-edge, ultra-modern WordPress theme for an AI-First Consulting Firm. Features glassmorphism, smooth animations, and a captivating video hero section.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: automate-my-life
*/

/* ========================================
   CSS VARIABLES - MODERN COLOR SCHEME
   ======================================== */
:root {
  /* Primary Brand Colors */
  --color-primary-pink: #E91E8C;
  --color-primary-purple: #8B3FE8;
  --color-primary-blue: #4A90E2;
  --color-primary-cyan: #5BC4BF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #E91E8C 0%, #8B3FE8 35%, #4A90E2 70%, #5BC4BF 100%);
  --gradient-secondary: linear-gradient(180deg, rgba(139,63,232,0.1) 0%, rgba(74,144,226,0.1) 100%);
  --gradient-lime-cyan: linear-gradient(135deg, #1EF398 0%, #5BC4BF 50%, #A5F5FB 100%);
  --gradient-purple-blue: linear-gradient(135deg, rgb(70,90,241) 0%, rgb(139,63,232) 50%, rgb(255,190,255) 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(233,30,140,0.15) 0, transparent 50%),
                   radial-gradient(at 100% 0%, rgba(139,63,232,0.15) 0, transparent 50%),
                   radial-gradient(at 100% 100%, rgba(74,144,226,0.15) 0, transparent 50%),
                   radial-gradient(at 0% 100%, rgba(91,196,191,0.15) 0, transparent 50%);

  /* Neutrals */
  --color-dark: #0F0F1E;
  --color-dark-alt: #1A1A2E;
  --color-medium-dark: #252540;
  --color-gray: #6B7280;
  --color-light-gray: #9CA3AF;
  --color-lighter-gray: #E5E7EB;
  --color-white: #FFFFFF;
  --color-off-white: #F9FAFB;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(139, 63, 232, 0.4);

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
  position: relative;
  padding-top: 0;
  margin: 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

p {
  margin-bottom: var(--space-6);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-gray);
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.8;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: var(--space-24) 0;
  position: relative;
  z-index: 10;
  background: var(--color-white);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: var(--color-light-gray);
}

/* ========================================
   HEADER - GLASSMORPHISM
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  padding: var(--space-2) 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-dark);
  transition: var(--transition-base);
}

.brand-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-brand-text:hover .brand-name {
  filter: brightness(1.2);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  transition: var(--transition-base);
  position: relative;
}

.main-navigation a:hover {
  color: var(--color-primary-purple);
}

.cta-button {
  background: var(--gradient-primary) !important;
  color: var(--color-white) !important;
  padding: var(--space-3) var(--space-6) !important;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

/* ========================================
   HERO SECTION - VIDEO JUMBOTRON
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
  z-index: 1;
}

.hero-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 15, 30, 0.92) 0%, rgba(139, 63, 232, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1100px;
  padding: var(--space-8);
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-10);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS - MODERN DESIGN
   ======================================== */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  color: var(--color-white);
  filter: brightness(110%);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: var(--color-white);
}

/* ========================================
   BENEFITS / FEATURES SECTION
   ======================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.benefit-card {
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: var(--space-10);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  margin: -2px;
  border-radius: 24px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  filter: brightness(105%);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
  margin-bottom: var(--space-4);
  color: var(--color-dark);
}

.benefit-card p {
  color: var(--color-gray);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-10);
  margin-top: var(--space-12);
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-lime-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
  text-shadow: 0 0 80px rgba(30, 243, 152, 0.5);
}

.stat-label {
  font-size: 1.125rem;
  color: var(--color-light-gray);
  font-weight: 500;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--gradient-mesh), var(--color-dark);
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

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

/* ========================================
   FOOTER - MINIMAL & CLEAN
   ======================================== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-light-gray);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-5);
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: var(--color-light-gray);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-section a:hover {
  color: var(--color-white);
  padding-left: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid var(--color-medium-dark);
  padding-top: var(--space-8);
  text-align: center;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--color-medium-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --space-24: 4rem;
    --space-32: 6rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .site-header {
    padding: var(--space-3) 0;
  }

  .site-logo img {
    height: 38px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: rgba(255, 255, 255, 0.98);
    transition: var(--transition-smooth);
    padding: var(--space-8);
    overflow-y: auto;
  }

  .main-navigation.active {
    left: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--space-2);
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    display: block;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-lighter-gray);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-section {
    min-height: 600px;
    height: 100vh;
  }

  .hero-content {
    padding: var(--space-6);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-4);
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .container {
    padding: 0 var(--space-5);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .benefit-card {
    padding: var(--space-6);
  }
}

/* ========================================
   BLUR EFFECTS & DEPTH
   ======================================== */
.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.blur-circle-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-lime-cyan);
  top: -200px;
  right: -200px;
}

.blur-circle-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-purple-blue);
  bottom: -150px;
  left: -150px;
}

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
  opacity: 0.7;
}

.trust-badge {
  font-size: 0.875rem;
  color: var(--color-light-gray);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

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

/* Staggered animation delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
