/* Professional Responsive CSS for Error Section */
/* Self-contained grid system & styling - no external dependencies */

.error-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafd 0%, #ffffff 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Box-sizing reset for all elements inside error section */
.error-section *,
.error-section *::before,
.error-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Container */
.error-section .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Flexbox Row with gutters & vertical centering */
.error-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
    align-items: center;
}

/* Column base styles */
.error-section .col-lg-6 {
    position: relative;
    width: 100%;
    padding: 0 20px;
}

/* Large devices (992px and up) - two columns side by side */
@media (min-width: 992px) {
    .error-section .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Not found image (404 illustration) */
.error-section .not-found {
    text-align: center;
    margin-bottom: 30px;
}

.error-section .not-found img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    animation: subtleFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

/* Oops image (small decorative) */
.error-section .oops {
    margin-bottom: 24px;
}

.error-section .oops img {
    max-width: 140px;
    height: auto;
    display: inline-block;
}

/* Error text styling */
.error-section .error-txt {
    padding: 20px 0;
}

.error-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.error-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 32px;
    max-width: 480px;
}

/* Back Home Button */
.error-section .go-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 32px;
    border-radius: 50px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: none;
    cursor: pointer;
    gap: 8px;
    letter-spacing: 0.3px;
}

.error-section .go-home-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.error-section .go-home-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px -2px rgba(79, 70, 229, 0.3);
}

.error-section .go-home-btn:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
    border-radius: 50px;
}

/* Animation for floating effect on 404 image */
@keyframes subtleFloat {
    0% {
        transform: translateY(0px);
    }

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

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

/* Tablet & medium screens (768px to 991px) */
@media (max-width: 991px) {
    .error-section {
        padding: 60px 0;
        min-height: auto;
    }

    .error-section .error-txt {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .error-section p {
        max-width: 100%;
    }

    .error-section h2 {
        font-size: 2.5rem;
    }

    .error-section .oops img {
        max-width: 120px;
    }

    .error-section .not-found {
        margin-bottom: 20px;
    }
}

/* Mobile landscape & small tablets (max-width: 767px) */
@media (max-width: 767px) {
    .error-section {
        padding: 48px 0;
    }

    .error-section .container {
        padding: 0 20px;
    }

    .error-section h2 {
        font-size: 2rem;
    }

    .error-section p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .error-section .go-home-btn {
        padding: 10px 28px;
        font-size: 0.95rem;
    }

    .error-section .oops img {
        max-width: 100px;
    }

    .error-section .row {
        margin: 0 -12px;
    }

    .error-section .col-lg-6 {
        padding: 0 12px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .error-section {
        padding: 32px 0;
    }

    .error-section h2 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .error-section p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .error-section .go-home-btn {
        display: flex;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 10px 20px;
    }

    .error-section .error-txt {
        width: 100%;
    }

    .error-section .oops img {
        max-width: 85px;
    }

    .error-section .not-found img {
        max-width: 85%;
    }
}

/* Extra small devices (max-width: 360px) */
@media (max-width: 360px) {
    .error-section h2 {
        font-size: 1.5rem;
    }

    .error-section .go-home-btn {
        font-size: 0.875rem;
        padding: 8px 16px;
    }
}

/* Support for high-resolution screens & retina */
@media (min-width: 1600px) {
    .error-section .container {
        max-width: 1440px;
    }

    .error-section h2 {
        font-size: 3.5rem;
    }

    .error-section p {
        font-size: 1.25rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .error-section .not-found img {
        animation: none;
    }

    .error-section .go-home-btn {
        transition: none;
    }

    .error-section .go-home-btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .error-section {
        background: white;
        padding: 20px;
        min-height: auto;
    }

    .error-section .go-home-btn {
        background: #eee;
        color: #000;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}