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

/* CSS Custom Properties */
:root {
  /* Glassmorphism Colors */
  --gradient-start: #667eea;
  --gradient-mid: #764ba2;
  --gradient-end: #f093fb;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(31, 38, 135, 0.37);

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

  /* Accent Colors */
  --accent-glow: rgba(240, 147, 251, 0.5);
  --accent-bright: #f093fb;
  --code-bg: rgba(0, 0, 0, 0.3);
  --code-text: #e0a1ff;

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

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 900px;
  --border-radius: 20px;
}

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

/* Body Styles */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: #1a1a2e;
  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) 50%,
    var(--gradient-end) 100%
  );
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

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

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xxl) var(--spacing-md);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px var(--accent-glow);
  line-height: 1.2;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

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

/* Article Content */
.article-content {
  padding: var(--spacing-xl);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h2 {
  font-size: 2.2rem;
  margin-top: var(--spacing-xl);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

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

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

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Code Styles */
code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

pre {
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: var(--spacing-md);
  overflow-x: auto;
  margin-bottom: var(--spacing-md);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0a1ff;
  display: block;
}

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
  color: var(--text-secondary);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Call-to-Action Section */
.cta-section {
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl);
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow), 0 0 60px var(--accent-glow);
}

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

.cta-image-wrapper {
  flex-shrink: 0;
}

.cta-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--accent-glow);
  object-fit: cover;
}

.cta-text {
  flex: 1;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.cta-tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--gradient-mid) 0%, var(--accent-bright) 100%);
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  border-color: var(--accent-bright);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
  padding: var(--spacing-xl) var(--spacing-md);
  margin-top: var(--spacing-xxl);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-lg);
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-xs);
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
    text-align: left;
    gap: var(--spacing-xl);
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  body {
    font-size: 16px;
  }

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

  .article-content {
    padding: var(--spacing-md);
  }

  .cta-section {
    padding: var(--spacing-md);
  }

  .cta-heading {
    font-size: 2rem;
  }

  pre {
    font-size: 0.85rem;
    padding: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-heading {
    font-size: 1.6rem;
  }

  .cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }
}

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

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .hero-title,
  .cta-heading,
  h2 {
    color: black;
    -webkit-text-fill-color: black;
  }

  p, strong, code {
    color: black;
  }

  .cta-button {
    background: #667eea;
    color: white;
    border: 2px solid #667eea;
  }

  a {
    text-decoration: underline;
  }

  pre {
    background: #f5f5f5;
    border: 1px solid #ddd;
  }

  pre code {
    color: black;
  }
}