:root {
    --primary-color: #26a69a;
    --primary-light: #e0f7fa;
    --primary-dark: #004d40;
    --text-color: #004d40;
    --footer-bg: #26a69a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #b2dfdb;
    --shadow-light: rgba(38,166,154,0.07);
    --shadow-medium: rgba(38,166,154,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.header {
    background-color: var(--primary-light);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link img {
    height: 48px;
    width: auto;
    display: block;
}

.error-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.error-logo {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.error-logo img {
    height: 120px;
    width: auto;
    filter: grayscale(20%);
}

.error-404 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--shadow-light);
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 300;
}

.error-description {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.home-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.home-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

footer {
    background-color: #15524a;
    color: var(--white);
    padding: 2rem 0 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.footer-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--primary-light);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.home-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (min-width: 1200px) {
  .error-container {
    min-height: calc(100vh - 260px);
    padding: 4rem 2rem;
  }
  .error-404 {
    font-size: 8rem;
  }
  .error-message {
    font-size: 2.2rem;
  }
  .error-description {
    font-size: 1.2rem;
    max-width: 700px;
  }
  .home-button {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
  }
  .footer-content p {
    font-size: 1.1rem;
  }
}
@media (min-width: 1600px) {
  .error-container {
    min-height: calc(100vh - 320px);
    padding: 6rem 4rem;
  }
  .error-404 {
    font-size: 10rem;
  }
  .error-message {
    font-size: 2.6rem;
  }
  .error-description {
    font-size: 1.4rem;
    max-width: 900px;
  }
  .home-button {
    font-size: 1.3rem;
    padding: 1.5rem 3rem;
  }
  .footer-content p {
    font-size: 1.2rem;
  }
}