/* === MODERN STYLE.CSS | 2025 Design System === */

:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #0078d4;
  --accent-secondary: #22c55e;
  --accent-hover: #005a9e;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 3px rgba(0, 120, 212, 0.1);

  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-accent: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-secondary: #10b981;
  --accent-hover: #2563eb;
  --border-light: #334155;
  --border-medium: #475569;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: transparent; /* THIS IS THE KEY CHANGE for the body */
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* NEW: Style for the site wrapper */
.site-wrapper {
  background: var(--bg-primary); /* THIS APPLIES YOUR THEME BACKGROUND */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1; /* Ensures it sits above the animated background canvas */
  transition: background-color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-lg);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.site-header {
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-lg);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-nav a {
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent-primary);
  background: var(--bg-accent);
  text-decoration: none;
}

.dark-toggle {
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.dark-toggle:hover {
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.button::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;
}

.button:hover::before {
  left: 100%;
}

.button.primary {
  background: white;
  color: var(--accent-primary);
  box-shadow: var(--shadow-medium);
}

.button.primary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  text-decoration: none;
}

.button.secondary {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.button.secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  text-decoration: none;
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section.alt-bg {
  background: var(--bg-secondary);
}

.section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section h2::after {
  position: absolute;
  bottom: -var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.blog-post-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.blog-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-post-card:hover::before {
  transform: scaleX(1);
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--accent-primary);
}

.blog-post-card h3 {
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.blog-post-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-post-card h3 a:hover {
  color: var(--accent-primary);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.read-more {
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.read-more:hover {
  gap: var(--space-sm);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-accent);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.pagination-link {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.pagination-disabled {
  padding: var(--space-md) var(--space-lg);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Utility Classes */
.text-center { text-align: center; }
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.animate-in { opacity: 1; transform: translateY(0); }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Mobile Navigation */
@media (max-width: 640px) {
  .site-nav a {
    padding: var(--space-sm);
    font-size: 0.9rem;
  }

  .container {
    padding: 0 var(--space-md);
  }
}





/* --- SCOPED CSS FOR THE-SYSTEM.HTML ONLY (Using your design system variables) --- */

#the-system-landing-page-content {
font-family: var(--font-sans);
line-height: var(--space-lg);
color: var(--text-primary);
max-width: 1200px; /* RE-ADDED: To control the page width */
margin: var(--space-xl) auto;
padding: 0 var(--space-lg);
box-sizing: border-box;
}

#the-system-landing-page-content .hero-section {
background-color: var(--bg-secondary);
padding: var(--space-2xl);
border-radius: var(--radius-md);
text-align: center;
margin-bottom: var(--space-2xl);
}

#the-system-landing-page-content .hero-section h1 {
color: var(--text-primary);
font-size: clamp(2rem, 5vw, 3.5rem);
margin-bottom: var(--space-md);
}

#the-system-landing-page-content .hero-section p {
font-size: 1.1em;
color: var(--text-secondary);
}

#the-system-landing-page-content .highlight-callout {
background-color: var(--bg-accent);
border-left: 5px solid var(--accent-primary);
padding: var(--space-md);
margin-top: var(--space-xl);
font-weight: bold;
color: var(--text-primary);
}

#the-system-landing-page-content .section {
margin-bottom: var(--space-3xl);
padding: var(--space-lg);
border-bottom: 1px solid var(--border-light);
}

#the-system-landing-page-content .section:last-child {
border-bottom: none;
}

#the-system-landing-page-content h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-sm);
    text-align: center; /* Set all H2s in this section to center */
    position: relative;
    padding-left: 0;
}

/* Remove the conflicting text-align: left for .section h2 */
/* #the-system-landing-page-content .section h2 {
text-align: left;
} */

/* This rule will hide the line under H2s in this specific section */
#the-system-landing-page-content h2::after {
    display: none;
}


#the-system-landing-page-content .use-case {
background-color: var(--bg-primary);
border: 1px solid var(--border-medium);
border-radius: var(--radius-md);
padding: var(--space-xl);
margin-bottom: var(--space-xl);
box-shadow: var(--shadow-light);
}

#the-system-landing-page-content .use-case h3 {
color: var(--accent-primary);
margin-top: 0;
font-size: clamp(1.25rem, 3vw, 1.75rem);
}

#the-system-landing-page-content .use-case p {
color: var(--text-secondary);
}

#the-system-landing-page-content .testimonial {
font-style: italic;
border-left: 3px solid var(--accent-secondary);
padding-left: var(--space-md);
margin-top: var(--space-lg);
color: var(--text-muted);
}

#the-system-landing-page-content .button {
display: inline-block;
background-color: var(--accent-primary);
color: white;
padding: var(--space-md) var(--space-xl);
border-radius: var(--radius-lg);
text-decoration: none;
font-weight: 600;
margin-top: var(--space-xl);
transition: all 0.3s ease;
border: none;
}

#the-system-landing-page-content .button:hover {
background-color: var(--accent-hover);
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}

#the-system-landing-page-content .contact-section p a {
color: var(--accent-primary);
text-decoration: none;
font-weight: bold;
}

#the-system-landing-page-content .contact-section p a:hover {
text-decoration: underline;
color: var(--accent-hover);
}

#the-system-landing-page-content .tagline {
font-style: italic;
text-align: center;
margin-top: var(--space-2xl);
color: var(--text-muted);
}

/* Ensure images within this section don't break layout */
#the-system-landing-page-content img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}

/* Mobile Responsiveness (adapt to your existing media queries) */
@media (max-width: 768px) {
#the-system-landing-page-content {
padding: 0 var(--space-md);
margin: var(--space-xl) auto;
}

#the-system-landing-page-content .hero-section {
padding: var(--space-xl);
margin-bottom: var(--space-xl);
}

#the-system-landing-page-content .section {
margin-bottom: var(--space-2xl);
padding: var(--space-md);
}

#the-system-landing-page-content .hero-section h1 {
font-size: clamp(1.8rem, 8vw, 2.5rem);
}

#the-system-landing-page-content h2 {
font-size: clamp(1.4rem, 6vw, 2rem);
}

#the-system-landing-page-content .use-case {
padding: var(--space-md);
}


/* CSS for individual Case Study blocks */
/* Add these rules to your main MODERN STYLE.CSS file */
/* --- Case Study Block Styles (for site-wide use) --- */

.use-case {
    background-color: var(--bg-primary); /* Primary background */
    border: 1px solid var(--border-medium); /* Your medium border color */
    border-radius: var(--radius-md); /* Your site's border radius */
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl); /* Consistent spacing between sections */
    box-shadow: var(--shadow-light); /* Your site's shadow */
    transition: all 0.2s ease; /* Smooth hover effects */
}

.use-case:hover {
    box-shadow: var(--shadow-medium); /* Slightly more pronounced shadow on hover */
    transform: translateY(-3px); /* Gentle lift on hover */
}

.use-case h3 {
    color: var(--accent-primary); /* Primary accent for sub-headings (blue) */
    margin-top: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem); /* Uses your H3 sizing */
    margin-bottom: var(--space-sm);
}

.use-case h4 { /* For the sub-title like 'Securing Sensitive Client Data' */
    color: var(--text-secondary); /* Secondary text color */
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.use-case p {
    color: var(--text-secondary); /* Secondary text for readability */
    margin-bottom: var(--space-md);
}

.use-case p strong {
    color: var(--text-primary); /* Primary text for emphasis within paragraphs */
}

.testimonial {
    font-style: italic;
    border-left: 3px solid var(--accent-secondary); /* Your secondary accent color (green) */
    padding-left: var(--space-md);
    margin-top: var(--space-lg);
    color: var(--text-muted); /* Muted text for quotes */
}
