/* DataPipeline Colorful Design System
   Based on DESIGN.md specifications
   Version 2.0 */

/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
  /* Corporate Brand Colors */
  --brand-orange: #eda624;    /* Primary brand orange */
  --brand-blue: #0289ca;      /* Primary brand blue */
  --brand-orange-light: #f1b84a;  /* Light orange - hover states */
  --brand-orange-dark: #d4941f;   /* Dark orange - emphasis */
  --brand-blue-light: #4ca8d8;    /* Light blue - hover states */
  --brand-blue-dark: #026fa3;     /* Dark blue - emphasis */

  /* Legacy Variables for Compatibility */
  --primary: #0289ca;         /* Brand blue as primary */
  --primary-light: #4ca8d8;   /* Light blue */
  --primary-dark: #026fa3;    /* Dark blue */
  --accent: #eda624;          /* Brand orange as accent */
  --accent-light: #f1b84a;    /* Light orange */

  /* Secondary Colors - Brand Complementary */
  --success: #00C853;         /* Green - success states */
  --warning: #eda624;         /* Brand orange for warnings/highlights */
  --danger: #E91E63;          /* Pink - alerts/CTAs */
  --info: #0289ca;            /* Brand blue - information */

  /* Background Colors */
  --bg-primary: #FAFAFA;      /* Light background */
  --bg-secondary: #F5F5F5;    /* Section backgrounds */
  --bg-gradient-start: #E8EAF6;  /* Gradient start */
  --bg-gradient-end: #E0F2F1;    /* Gradient end */

  /* Text Colors */
  --text-primary: #263238;    /* Dark blue-gray text */
  --text-secondary: #546E7A;  /* Medium blue-gray text */
  --text-light: #90A4AE;      /* Light text for captions */
  --text-on-primary: #FFFFFF; /* Text on primary color */

  /* UI Elements */
  --border-light: #E0E0E0;    /* Light borders */
  --shadow-color: rgba(57, 73, 171, 0.15);  /* Colored shadows */
  --overlay: rgba(25, 118, 210, 0.08);      /* Blue overlay */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ===================================
   Base Styles & Typography
   =================================== */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem; /* Much larger: 28px */
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: 5rem; }    /* Much larger: 80px */
h2 { font-size: 3.5rem; }  /* Much larger: 56px */
h3 { font-size: 2.5rem; }  /* Much larger: 40px */
h4 { font-size: 2rem; }    /* Much larger: 32px */

p {
  font-size: 1.75rem; /* Much larger paragraph text: 28px */
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ===================================
   Navigation Enhancement
   =================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all var(--transition-base);
}

.navbar-custom.top-nav-expanded {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.navbar-custom.top-nav-expanded .navbar-brand,
.navbar-custom.top-nav-expanded .nav li a {
  color: var(--text-on-primary);
}

.navbar-custom .nav li a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem; /* Increased from 0.875rem */
  letter-spacing: 1px;
  transition: all var(--transition-base);
  position: relative;
}

.navbar-custom .nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--brand-orange);
  transition: width var(--transition-base);
}

.navbar-custom .nav li a:hover::after,
.navbar-custom .nav li.active a::after {
  width: 100%;
}

/* ===================================
   Hero Section - Clean & Simple
   =================================== */
.intro-header {
  background: white;
  position: relative;
  padding: 4rem 0;
}

.intro-header.big-img {
  background: white;
}

/* Remove all decorative elements */
.intro-header::before {
  display: none;
}

@keyframes floatAnimation {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.intro-header .page-heading h1,
.intro-header .page-heading .page-subheading {
  color: #333;
  text-shadow: none;
}

.intro-header .btn-cta {
  background: var(--brand-orange);
  color: var(--text-on-primary);
  padding: 1.5rem 3rem;
  font-size: 1.75rem; /* Much larger button text */
  font-weight: 600;
  border-radius: 50px;
  display: inline-block;
  margin-top: var(--space-md);
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(237, 166, 36, 0.3);
}

.intro-header .btn-cta:hover {
  background: var(--brand-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 166, 36, 0.4);
  text-decoration: none;
}

/* ===================================
   Content Cards
   =================================== */
.post-preview {
  background: white;
  border-radius: 12px;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all var(--transition-base);
  border-top: 4px solid var(--brand-orange);
}

.post-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
  background: white;
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 50%, #FFE66D 100%);
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonial-section {
  background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
  padding: var(--space-xl) 0;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: 0 4px 20px var(--shadow-color);
  border-left: 4px solid var(--accent);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.testimonial-header img {
  max-height: 60px;
  filter: none;
  transition: all var(--transition-base);
}

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

.rating {
  color: var(--warning);
  font-size: 1.25rem;
}

/* ===================================
   Call-to-Action Sections
   =================================== */
.cta-section {
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  color: var(--text-on-primary);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  animation: rotateAnimation 30s linear infinite;
}

@keyframes rotateAnimation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section h2 {
  color: var(--text-on-primary);
  margin-bottom: var(--space-md);
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--text-on-primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.25rem; /* Increased size */
  display: inline-block;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(237, 166, 36, 0.3);
  border: none;
}

.btn-primary:hover {
  background: var(--brand-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 166, 36, 0.4);
  color: var(--text-on-primary);
}

/* ===================================
   Footer Enhancement
   =================================== */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: var(--text-on-primary);
  padding: var(--space-xl) 0 var(--space-md);
}

footer a {
  color: var(--accent-light);
}

footer a:hover {
  color: var(--accent);
}

.footer-links li a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-links li a:hover {
  background: #4ECDC4;
  transform: translateY(-4px);
}

/* ===================================
   Form Styling
   =================================== */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-base);
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* ===================================
   Animations & Micro-interactions
   =================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add staggered animations */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ===================================
   Data Visualization Enhancements
   =================================== */
.chart-container {
  background: white;
  border-radius: 12px;
  padding: var(--space-md);
  box-shadow: 0 4px 20px var(--shadow-color);
  margin: var(--space-md) 0;
}

/* ===================================
   Utility Classes
   =================================== */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-bg {
  background: var(--accent);
  color: var(--text-on-primary);
}

.primary-bg {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  body { font-size: 1.5rem; } /* Much larger mobile text */
  p { font-size: 1.5rem; }
  h1 { font-size: 3rem; } /* Larger mobile headings */
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
  
  .intro-header .btn-cta {
    font-size: 1.5rem; /* Larger mobile button */
    padding: 1.25rem 2rem;
  }
  
  .service-card {
    margin-bottom: var(--space-md);
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .navbar,
  footer,
  .cta-section {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
}