/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Custom Properties - Glassmorphism Theme */
:root {
  /* Gradient Background Colors */
  --gradient-start: #667eea;
  --gradient-mid-1: #764ba2;
  --gradient-mid-2: #f093fb;
  --gradient-end: #4facfe;

  /* Glass Effect Colors */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.15);

  /* Text Colors */
  --text-light: #ffffff;
  --text-light-secondary: rgba(255, 255, 255, 0.9);
  --text-light-tertiary: rgba(255, 255, 255, 0.7);

  /* Accent Colors */
  --accent-pink: #f093fb;
  --accent-blue: #4facfe;
  --accent-purple: #667eea;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max-width: 1000px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Body Styles */
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Animated Gradient Background */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid-1) 25%,
    var(--gradient-mid-2) 50%,
    var(--gradient-end) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-light-secondary);
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
  padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
  position: relative;
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  padding: var(--spacing-xl);
  box-shadow: 0 8px 32px var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
}

/* Article Sections */
.article-intro {
  margin-bottom: var(--spacing-xl);
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-intro p {
  margin-bottom: var(--spacing-md);
}

.article-intro p:first-child {
  font-size: 1.2rem;
  font-weight: 500;
}

.article-section {
  margin-bottom: var(--spacing-xl);
}

.article-section:last-child {
  margin-bottom: 0;
}

/* Typography - Headings */
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
  line-height: 1.4;
}

/* Paragraphs */
p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Blockquotes */
blockquote {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent-pink);
  border-radius: 12px;
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-style: italic;
}

blockquote p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* Use Case Cards */
.use-case {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.use-case:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.use-case h3 {
  color: var(--accent-pink);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.use-case p {
  margin: 0;
}

/* Framework Items */
.framework-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.framework-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.framework-item h3 {
  color: var(--accent-blue);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.framework-item p {
  margin: 0;
}

/* Call to Action Section */
.cta-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.cta-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  padding: var(--spacing-xl);
  box-shadow: 0 8px 32px var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.cta-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent-purple),
    var(--accent-pink),
    var(--accent-blue));
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-lg);
}

.cta-image-wrapper {
  position: relative;
}

.cta-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              0 0 0 8px rgba(255, 255, 255, 0.1);
  object-fit: cover;
  transition: all 0.3s ease;
}

.cta-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3),
              0 0 0 12px rgba(255, 255, 255, 0.15);
}

.cta-text {
  max-width: 700px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  line-height: 1.2;
}

.cta-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light-secondary);
  margin-bottom: var(--spacing-md);
}

.cta-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light-tertiary);
  margin-bottom: var(--spacing-lg);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: var(--text-light);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button span,
.cta-button .button-icon {
  position: relative;
  z-index: 1;
}

.button-icon {
  transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
  transform: translateX(4px);
}

/* Footer */
.footer {
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  text-align: center;
  position: relative;
}

.footer p {
  color: var(--text-light-tertiary);
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive Design - Tablets */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .glass-card {
    padding: var(--spacing-xxl);
  }

  .cta-glass-card {
    padding: var(--spacing-xxl);
  }

  .cta-content {
    flex-direction: row;
    text-align: left;
    gap: var(--spacing-xl);
  }

  .cta-image {
    width: 200px;
    height: 200px;
  }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
  .hero {
    padding: calc(var(--spacing-xxl) * 1.5) 0 var(--spacing-xxl) 0;
  }

  .use-case,
  .framework-item {
    padding: var(--spacing-lg) var(--spacing-xl);
  }

  .cta-image {
    width: 220px;
    height: 220px;
  }
}

/* Print Styles */
@media print {
  .background-gradient {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .glass-card,
  .cta-glass-card,
  .use-case,
  .framework-item,
  blockquote {
    background: #fff;
    border: 1px solid #ddd;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .hero-title,
  .hero-subtitle,
  h2,
  h3,
  p,
  .cta-title,
  .cta-description,
  .cta-tagline,
  blockquote p {
    color: #000;
    text-shadow: none;
  }

  .cta-button {
    background: #667eea;
    box-shadow: none;
  }

  .footer p {
    color: #666;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .background-gradient {
    animation: none;
  }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-pink);
  outline-offset: 4px;
}

/* Selection Styling */
::selection {
  background: var(--accent-pink);
  color: var(--text-light);
}

::-moz-selection {
  background: var(--accent-pink);
  color: var(--text-light);
}
