/**
 * Nice Guy IT Theme - Main Stylesheet
 *
 * Table of Contents:
 * 1. CSS Variables
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layout & Grid
 * 5. Components
 * 6. Utilities
 */

/* ============================================
   1. CSS Variables - Light Mode Color Scheme
   ============================================ */

:root {
  /* Color Palette - Light Mode */
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-accent: #10b981;
  --color-accent-dark: #059669;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-background: #ffffff;
  --color-surface: #f9fafb;
  --color-border: #e5e7eb;
  --color-error: #ef4444;
  --color-success: #10b981;

  /* Spacing System */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: var(--spacing-md);

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-monospace: 'Courier New', monospace;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ============================================
   2. Reset & Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fira Sans", sans-serif;
}

html {
  font-size: 16px; /* Base font size */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  h2 {
    font-size: var(--font-size-3xl);
  }
}

p {
  margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   4. Layout & Grid
   ============================================ */

.section-container,
.header-container,
.footer-container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.services-grid,
.differentiators {
  display: grid;
  gap: var(--spacing-lg);
}

/* Desktop: 3 columns for services */
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Desktop: 3 columns for differentiators */
.differentiators {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   5. Components
   ============================================ */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  font-family: "Fira Sans", sans-serif;
}

/* Background image with blur */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-image: url('../images/servers.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;

  z-index: 0;
}

/* Overlay for better text readability */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 7, 26, 0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--spacing-lg);
}

.hero-heading {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);

  /* Brighter gradient for hero section - lighter blue to lighter green */
  background: linear-gradient(135deg, #93c5fd, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Shadow effect for depth - uses drop-shadow since text is transparent */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: #ffffff;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero section CTA button with contrasting color */
.hero-section .cta-button {
  background-color: #ff6b35;
  color: #ffffff;
}

.hero-section .cta-button:hover {
  background-color: #e85a28;
  color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-heading {
    font-size: var(--font-size-4xl);
  }

  .hero-tagline {
    font-size: var(--font-size-xl);
  }
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  /* background-color: var(--color-accent); */
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px; 
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  /* background-color: var(--color-accent-dark); */
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Ensure minimum touch target size on mobile */
@media (max-width: 768px) {
  .cta-button {
    min-height: 44px;
    min-width: 44px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* Services Section */
.services-section {
  background-color: var(--color-background);
}

.section-heading {
  text-align: center;
  font-size: var(--font-size-4xl);
  color: var(--color-text);
  margin-bottom: var(--spacing-xl);
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.service-description {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  text-align: center;
}

/* Why Choose Us Section */
.why-section {
  position: relative;
  background-color: var(--color-surface);
  background-image: url('../images/layeredwaves.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

/* Keep heading white on background */
.why-section .section-heading {
  color: #ffffff;
}

.why-section > * {
  position: relative;
  z-index: 2;
}

.differentiator {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.differentiator:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.differentiator-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.differentiator-heading {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.differentiator-description {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

/* Contact Section */
.contact-section {
  background-color: var(--color-background);
}

.section-subheading {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form validation and error states */
.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-error);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-error);
  margin-top: var(--spacing-xs);
  min-height: 1.25rem;
}

.error-message:empty {
  display: none;
}

/* Submit button */
.submit-button {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:focus {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.submit-button:disabled {
  background-color: var(--color-text-light);
  cursor: not-allowed;
  transform: none;
}

/* Form feedback messages */
.form-feedback {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: 4px;
  font-size: var(--font-size-base);
  text-align: center;
}

.form-feedback:empty {
  display: none;
}

.form-feedback.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form-feedback.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

/* Ensure minimum touch target size on mobile */
@media (max-width: 768px) {
  .submit-button {
    min-height: 44px;
  }
}

/* Character counter for textarea */
.character-counter {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-align: right;
  margin-top: var(--spacing-xs);
}

.character-counter.warning {
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

/* Header and Navigation */
.site-header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  min-height: 60px;
}

.site-logo {
  margin: -0.5rem 0;
}

.site-logo a {
  height: 100%;
  width: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
  /* padding: var(--spacing-md) var(--spacing-lg); */
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}



.site-logo a:hover::before {
  opacity: 1;
}



.site-logo .logo-image {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.site-logo a:hover .logo-image {
  transform: scale(1.05);
}

.site-logo .logo-text {
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.nav-link {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.375rem var(--spacing-sm);
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.05);
}

.nav-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  z-index: 101;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .site-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-background);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }

  .site-navigation.is-open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-2xl) var(--spacing-lg);
    align-items: stretch;
  }

  .nav-link {
    padding: var(--spacing-sm);
    display: block;
  }

  /* Hamburger animation when menu is open */
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-content {
  text-align: center;
}

.business-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.business-location {
  font-size: var(--font-size-base);
  font-style: normal;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* Blog/Post Styles */
.post-header {
  margin-bottom: var(--spacing-xl);
}

.post-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.post-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
}

.post-date,
.post-author {
  display: inline-block;
}

.post-content {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--spacing-2xl);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.post-content p {
  margin-bottom: var(--spacing-md);
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--color-primary-dark);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.post-tags .tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.post-tags .tag:hover {
  background-color: rgba(37, 99, 235, 0.2);
}

/* Responsive Image Styles */
.responsive-image-wrapper {
  margin: var(--spacing-xl) 0;
  max-width: 100%;
}

.responsive-image-wrapper picture {
  display: block;
  width: 100%;
}

.responsive-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-image {
  margin: var(--spacing-2xl) 0;
}

.post-image img {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-caption {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-align: center;
  font-style: italic;
}

/* Ensure images don't break layout on small screens */
@media (max-width: 768px) {
  .responsive-image-wrapper {
    margin: var(--spacing-lg) 0;
  }

  .post-image {
    margin: var(--spacing-xl) 0;
  }
}

/* ============================================
   6. Utilities
   ============================================ */

/* Screen reader only - hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link for keyboard navigation */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
  z-index: 1000;
}

.skip-to-main:focus {
  top: 0;
}

/* ============================================
   7. Koenig Editor Styles
   ============================================ */

/* Ghost Editor - Wide images */
.kg-width-wide {
  width: 100%;
  max-width: 1400px;
  margin-left: calc(50% - 700px);
}

/* Ghost Editor - Full width images */
.kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

/* Ensure Koenig cards are responsive */
.kg-card {
  max-width: 100%;
}

.kg-image-card,
.kg-gallery-card {
  margin: var(--spacing-xl) 0;
}

.kg-image {
  width: 100%;
  height: auto;
}

/* Koenig gallery */
.kg-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.kg-gallery-image {
  flex: 1 1 300px;
  max-width: 100%;
  height: auto;
}

/* Koenig bookmark card */
.kg-bookmark-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin: var(--spacing-xl) 0;
  transition: box-shadow 0.2s ease;
}

.kg-bookmark-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--color-text);
}

.kg-bookmark-content {
  flex: 1;
  padding: var(--spacing-md);
}

.kg-bookmark-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.kg-bookmark-description {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.kg-bookmark-thumbnail {
  flex-shrink: 0;
  width: 200px;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .kg-width-wide,
  .kg-width-full {
    width: 100%;
    margin-left: 0;
  }

  .kg-bookmark-container {
    flex-direction: column;
  }

  .kg-bookmark-thumbnail {
    width: 100%;
    height: 200px;
  }
}

/* ============================================
   8. Error Page Styles
   ============================================ */

.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
}

.error-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

/* Decorative floating circles */
.error-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.error-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.error-circle-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: -100px;
  left: -100px;
  animation: float 6s ease-in-out infinite;
}

.error-circle-2 {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  bottom: -50px;
  right: -50px;
  animation: float 8s ease-in-out infinite reverse;
}

.error-circle-3 {
  width: 150px;
  height: 150px;
  background: var(--color-primary);
  top: 50%;
  right: -75px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.error-content {
  position: relative;
  z-index: 1;
  background: var(--color-background);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}

/* Large error code display */
.error-code-wrapper {
  margin-bottom: var(--spacing-lg);
}

.error-code {
  font-size: 8rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: -0.02em;
}

.error-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.error-page .error-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* Action buttons */
.error-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.error-cta-primary {
  width: 100%;
  max-width: 280px;
}

.error-cta-secondary {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  background-color: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.error-cta-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Quick links section */
.error-links {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.error-links-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.error-quick-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.error-quick-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.error-quick-link:hover {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-primary-dark);
}

/* Tablet responsive */
@media (min-width: 768px) {
  .error-actions {
    flex-direction: row;
    justify-content: center;
  }

  .error-cta-primary,
  .error-cta-secondary {
    width: auto;
    max-width: none;
  }
}

/* Mobile responsive */
@media (max-width: 767px) {
  .error-page {
    padding: var(--spacing-lg) var(--spacing-sm);
    min-height: calc(100vh - 150px);
  }

  .error-content {
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: 12px;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-title {
    font-size: var(--font-size-2xl);
  }

  .error-page .error-description {
    font-size: var(--font-size-base);
  }

  .error-circle-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    left: -80px;
  }

  .error-circle-2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: -40px;
  }

  .error-circle-3 {
    width: 100px;
    height: 100px;
    right: -50px;
  }

  .error-quick-links {
    gap: var(--spacing-sm);
  }
}
