/* Urso Brand Variables */
:root {
    --urso-primary: #1F3B4D;
    --urso-accent: #6F4E37;
    --urso-background: #F5F7FA;
    --urso-accent-green: #88A095;
    --urso-white: #FFFFFF;
    --urso-light-gray: #E8ECF0;
    --urso-text-dark: #2C3E50;
    --urso-text-light: #374151;
    /* Forbedret kontrast for WCAG-kompatibilitet */
    --urso-text-medium: #1F2937;
    /* Mye mørkere for optimal kontrast */

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-soft: 0 2px 10px rgba(31, 59, 77, 0.1);
    --shadow-medium: 0 4px 20px rgba(31, 59, 77, 0.15);
    --shadow-strong: 0 8px 30px rgba(31, 59, 77, 0.2);

    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--urso-text-dark);
    background-color: var(--urso-background);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Layout Styles */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading Animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--urso-background);
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.urso-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bear-icon {
    width: 120px;
    height: 120px;
    background-color: var(--urso-accent);
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-medium);
    animation: pulse 1.5s infinite alternate;
    background-image: url('../icons/urso-favicon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80px 80px;
}

.bear-icon:before {
    content: "";
    position: absolute;
    background-color: var(--urso-accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    top: -15px;
}

.bear-icon:before {
    left: 15px;
}

.bear-icon:after {
    right: 15px;
}

.loading-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--urso-primary);
    animation: fadeInOut 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--urso-text-medium);
    /* Bedre kontrast for avsnittekst */
}

/* Sikre hvit tekst på mørke bakgrunner */
[class*="primary"],
.contact-section,
.hero-section.dark,
.cta-section {
    color: var(--urso-white);
}

[class*="primary"] p,
.contact-section p,
.hero-section.dark p,
.cta-section p {
    color: var(--urso-white) !important;
}

/* Forbedret kontrasthåndtering for alle mørke bakgrunner */
.contact-section p,
.page-hero p,
.cta-section p,
[style*="background: var(--urso-primary)"] p,
[style*="background-color: var(--urso-primary)"] p {
    color: var(--urso-white) !important;
}

/* Sikre at lead-paragrafer alltid har korrekt kontrast */
.lead {
    color: inherit;
}

.page-hero .lead,
.contact-section .lead,
.cta-section .lead {
    color: var(--urso-white) !important;
}

/* Forbedre kontrast for tekstklasser på mørke bakgrunner */
.contact-section .text-large,
.page-hero .text-large,
.cta-section .text-large {
    color: var(--urso-white) !important;
}

.contact-section .text-muted,
.page-hero .text-muted,
.cta-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-large {
    font-size: 1.125rem;
    color: var(--urso-text-medium);
}

.text-muted {
    color: var(--urso-text-light);
}

/* Header and Navigation */
.urso-header {
    background: var(--urso-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.urso-nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand .brand-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--urso-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--urso-text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--urso-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--urso-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta .btn {
    padding: 0.5rem 1.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--urso-background);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--urso-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.urso-main {
    flex: 1;
}

/* Page Hero */
.page-hero {
    background: var(--urso-primary);
    color: var(--urso-white);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--urso-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: var(--urso-white) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--urso-primary);
    color: var(--urso-white);
}

.btn-primary:hover {
    background: var(--urso-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--urso-primary);
    border: 2px solid var(--urso-primary);
}

.btn-secondary:hover {
    background: var(--urso-primary);
    color: var(--urso-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--urso-text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--urso-light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--urso-text-dark);
    background-color: var(--urso-white);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--urso-primary);
    box-shadow: 0 0 0 3px rgba(31, 59, 77, 0.1);
}

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

.form-actions {
    margin-top: 2rem;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--urso-text-medium);
    /* Forbedret kontrast for seksjonssbeskrivelser */
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.urso-footer {
    background: var(--urso-primary);
    color: var(--urso-white);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0;
}

.footer-brand .footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: var(--urso-white);
    font-size: 1.8rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--urso-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--urso-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Animation */
.urso-loader {
    text-align: center;
}

.bear-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--urso-primary);
    border-radius: 50%;
    position: relative;
    animation: bounce 1.4s infinite ease-in-out;
}

.bear-icon::before {
    content: '🐻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.loading-text {
    color: var(--urso-primary);
    font-weight: 500;
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -20px, 0);
    }

    70% {
        transform: translate3d(0, -10px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

#blazor-error-ui {
    background: rgba(220, 53, 69, 0.9);
    bottom: 0;
    box-shadow: var(--shadow-strong);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.error-content h3 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.error-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.reload {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
}

.dismiss {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 1rem;
}

.dismiss:hover {
    opacity: 1;
}

/* Enhanced Animations and Utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Image lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--urso-primary), var(--urso-accent));
    z-index: 1000;
    transition: width 0.2s ease-out;
}

/* Focus States for Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--urso-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support - Förbättrad version */
@media (prefers-contrast: high) {
    :root {
        --urso-primary: #000000;
        --urso-accent: #0066CC;
        --urso-background: #FFFFFF;
        --urso-text-dark: #000000;
        --urso-text-light: #333333;
        --urso-text-medium: #1a1a1a;
    }

    p,
    .text-large,
    .section-header p {
        color: #000000 !important;
    }
}

/* Accessibility och High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --urso-text-light: #000000;
        --urso-text-medium: #000000;
        --urso-text-dark: #000000;
    }

    p,
    .text-large,
    .section-header p {
        color: #000000 !important;
    }
}

/* Fallbacks för äldre browsers */
@supports not (color: var(--urso-text-medium)) {
    p {
        color: #1F2937;
        /* Fallback utan CSS variabler */
    }

    .section-header p {
        color: #1F2937;
    }

    .text-large {
        color: #1F2937;
    }
}

/* Accessibility and Enhanced Contrast */
.enhanced-contrast {
    --urso-text-light: #4A5568;
    --urso-text-medium: #2D3748;
}

/* Fallback för äldre webbläsare som inte stöder CSS-variabler */
@supports not (color: var(--urso-primary)) {
    body {
        color: #2C3E50;
    }

    p {
        color: #4A5568;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #1F3B4D;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background-color: var(--urso-primary);
    color: var(--urso-white);
    bottom: 0;
    box-shadow: var(--shadow-strong);
    display: none;
    left: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 10000;
}

#blazor-error-ui .error-content {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#blazor-error-ui h3 {
    color: var(--urso-white);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

#blazor-error-ui p {
    color: var(--urso-white);
    margin-bottom: 1rem;
}

#blazor-error-ui .reload {
    background-color: var(--urso-accent);
    border: none;
    border-radius: var(--border-radius);
    color: var(--urso-white);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    transition: var(--transition);
}

#blazor-error-ui .reload:hover {
    background-color: #8a6349;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    color: var(--urso-white);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: var(--transition);
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

/* 404 Not Found Page Styles */
.not-found-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--urso-background) 0%, #E8F4F8 100%);
    overflow: hidden;
}

.not-found-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Visual Section */
.not-found-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    color: var(--urso-primary);
    line-height: 1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(31, 59, 77, 0.1);
    position: relative;
}

.error-code::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(31, 59, 77, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Bear Illustration */
.bear-illustration {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bear-head {
    width: 120px;
    height: 120px;
    background: var(--urso-accent);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: var(--shadow-medium);
}

.bear-ears {
    position: absolute;
    top: -20px;
    width: 100%;
}

.ear {
    width: 35px;
    height: 35px;
    background: var(--urso-accent);
    border-radius: 50% 50% 20% 50%;
    position: absolute;
}

.ear.left {
    left: 10px;
    transform: rotate(-30deg);
}

.ear.right {
    right: 10px;
    transform: rotate(30deg);
}

.ear::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: #5A3E2A;
    border-radius: 50%;
}

.bear-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.eyes {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.eye {
    width: 12px;
    height: 12px;
    background: #2C1810;
    border-radius: 50%;
    position: relative;
}

.pupil {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.snout {
    display: flex;
    justify-content: center;
}

.nose {
    width: 8px;
    height: 6px;
    background: #2C1810;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Code Brackets */
.code-brackets {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 140px;
    font-size: 2rem;
    color: var(--urso-accent-green);
    font-weight: bold;
    opacity: 0.7;
}

.bracket {
    animation: pulse 2s ease-in-out infinite;
}

.bracket.right {
    animation-delay: 1s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 404 Text Section */
.not-found-text {
    text-align: left;
}

.not-found-text h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--urso-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.not-found-text .lead {
    font-size: 1.2rem;
    color: var(--urso-text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.not-found-text p {
    color: var(--urso-text-medium);
    margin-bottom: 2rem;
}

/* 404 Action Buttons */
.not-found-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.not-found-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.not-found-actions .btn-primary {
    background: var(--urso-primary);
    color: var(--urso-white);
    box-shadow: var(--shadow-soft);
}

.not-found-actions .btn-primary:hover {
    background: #2A4D63;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.not-found-actions .btn-secondary {
    background: var(--urso-white);
    color: var(--urso-primary);
    border: 2px solid var(--urso-primary);
}

.not-found-actions .btn-secondary:hover {
    background: var(--urso-primary);
    color: var(--urso-white);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Helpful Links */
.helpful-links {
    border-top: 1px solid var(--urso-light-gray);
    padding-top: 2rem;
}

.helpful-links h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--urso-primary);
    margin-bottom: 1rem;
}

.helpful-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.helpful-links li {
    margin-bottom: 0.5rem;
}

.helpful-links a {
    color: var(--urso-accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.helpful-links a:hover {
    color: var(--urso-primary);
    padding-left: 0.5rem;
}

.helpful-links a::before {
    content: '→';
    margin-right: 0.5rem;
    transition: var(--transition);
}

/* Background Pattern */
.tech-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.pattern-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--urso-accent-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

.pattern-dot:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pattern-dot:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.pattern-dot:nth-child(3) {
    bottom: 30%;
    left: 80%;
    animation-delay: 2s;
}

.pattern-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--urso-accent-green), transparent);
    opacity: 0.2;
    animation: slide 4s ease-in-out infinite;
}

.pattern-line:nth-child(4) {
    top: 25%;
    left: 0;
    right: 0;
    animation-delay: 0s;
}

.pattern-line:nth-child(5) {
    bottom: 35%;
    left: 0;
    right: 0;
    animation-delay: 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 404 Responsive Design */
@media (max-width: 768px) {
    .not-found-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem;
    }

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

    .not-found-text h1 {
        font-size: 2rem;
    }

    .not-found-actions {
        justify-content: center;
    }

    .not-found-actions .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .bear-head {
        width: 100px;
        height: 100px;
    }

    .code-brackets {
        gap: 120px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .not-found-actions {
        flex-direction: column;
        align-items: center;
    }

    .not-found-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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