/* 404 Page Styles - Adapted from Contact Page Hero */

.not-found-hero-section {
    position: relative;
    min-height: 800px;
    /* Increased height to match typical hero sections */
    background-image: url("img/technology/bg5.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top like Contact page */
}

.not-found-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Added padding for safety */
    position: relative;
    z-index: 5;
}

.not-found-hero-title {
    font-size: 48px;
    font-weight: 500;
    margin: 0 0 32px 0;
    padding-top: 260px;
    /* Keep this to push text down */
    color: rgba(51, 51, 51, 1);
    /* Ensure text color is visible */
}

.not-found-hero-subtitle {
    font-size: 28px;
    margin: 0 0 40px 0;
    color: rgba(51, 51, 51, 1);
}

.not-found-hero-description {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: rgba(51, 51, 51, 1);
}

/* Button styles */
.home-btn-404 {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 50px;
    border-radius: 38px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: rgba(51, 51, 51, 1);
    gap: 10px;
    background-color: rgba(231, 231, 231, 1);
}

.home-btn-404:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .not-found-hero-section {
        min-height: 600px;
    }

    .not-found-hero-title {
        font-size: 32px;
        padding-top: 150px;
        /* Reduced padding for mobile */
    }

    .not-found-hero-subtitle {
        font-size: 22px;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 480px) {
    .not-found-hero-title {
        font-size: 28px;
    }

    .not-found-hero-subtitle {
        font-size: 20px;
    }
}