/* ============================================
   FLAMEUP - MAIN STYLESHEET
   Primary Color: OrangeRed (#FF4500)
   Theme: Fire & Energy
   ============================================ */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Modern Professional Color Palette */
  --color-primary: #2563eb;        /* Vibrant Blue - for CTAs and key actions */
  --color-primary-dark: #1d4ed8;   /* Darker Blue */
  --color-primary-darker: #1e40af; /* Even Darker Blue */
  --color-primary-light: #3b82f6;  /* Lighter Blue */
  --color-primary-05: rgba(37, 99, 235, 0.05);
  --color-primary-10: rgba(37, 99, 235, 0.10);
  --color-primary-15: rgba(37, 99, 235, 0.15);
  --color-primary-20: rgba(37, 99, 235, 0.20);
  --color-primary-30: rgba(37, 99, 235, 0.30);
  --color-primary-40: rgba(37, 99, 235, 0.40);

  /* Secondary Accent Colors */
  --color-accent: #8b5cf6;         /* Purple accent */
  --color-accent-light: #a78bfa;
  --color-accent-05: rgba(139, 92, 246, 0.05);
  --color-accent-10: rgba(139, 92, 246, 0.10);

  /* Neutral Colors - Professional Grays */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Dark Navy for Headers/Text */
  --color-navy: #0f172a;
  --color-navy-light: #1e293b;

  /* Color Gradients - Modern & Subtle */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  --subtle-gradient: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Shadows - Softer & More Professional */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 10px 30px -5px rgba(37, 99, 235, 0.25);
  --shadow-primary-lg: 0 20px 40px -5px rgba(37, 99, 235, 0.35);

  /* Transitions */
  --transition-fast: all 0.15s ease-out;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-800);
  overflow-x: hidden;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Glassmorphism Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Fire Flicker */
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Glow Pulse */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 69, 0, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 69, 0, 0.8); }
}

/* Gradient Shift */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Slide In Animations */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scale Animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Spin */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-slide-in-up { animation: slideInUp 0.8s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 0.8s ease-out forwards; }
.animate-fade-in-scale { animation: fadeInScale 0.6s ease-out forwards; }
.fire-flicker { animation: flicker 2s ease-in-out infinite; }
.gradient-animate { 
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* ============================================
   INTERACTION EFFECTS
   ============================================ */

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: var(--transition);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
}

/* Smooth Transitions */
a, button {
  transition: var(--transition);
}

/* ============================================
   TYPOGRAPHY & TEXT EFFECTS
   ============================================ */

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

.text-gradient-fire {
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradient-shift 4s ease infinite;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: 8px;
  margin: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    var(--color-gray-300) 0%,
    var(--color-gray-400) 50%,
    var(--color-gray-300) 100%);
  border-radius: 8px;
  border: 1px solid var(--color-gray-200);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
    var(--color-gray-400) 0%,
    var(--color-gray-500) 50%,
    var(--color-gray-400) 100%);
  border-color: var(--color-gray-300);
}

::-webkit-scrollbar-thumb:active {
  background: var(--color-gray-500);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg,
    var(--color-primary-05) 0%,
    var(--color-primary-10) 50%,
    var(--color-primary-05) 100%);
  position: relative;
  overflow: hidden;
}

/* Automation Background Pattern */
.automation-bg {
  background-image:
    repeating-linear-gradient(45deg, var(--color-primary-05) 0px, var(--color-primary-05) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, var(--color-primary-05) 0px, var(--color-primary-05) 1px, transparent 1px, transparent 20px);
}

/* Central Accent */
.central-accent {
  background: radial-gradient(circle, var(--color-primary-05) 0%, transparent 70%);
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 69, 0, 0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* ============================================
   CUSTOM SELECTION & FOCUS
   ============================================ */
::selection {
  background: var(--color-primary-20);
  color: inherit;
}

::-moz-selection {
  background: var(--color-primary-20);
  color: inherit;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  p {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.125rem;
  }
}


/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow-primary {
  box-shadow: var(--shadow-primary);
}

.glow-primary-lg {
  box-shadow: var(--shadow-primary-lg);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  background: var(--primary-gradient);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

