/*
jobs.css
Modernized UI - Glassmorphism & Consistency Sync
*/

:root {
    --brand-blue: #133880;
    --accent-blue: #0050ff;
    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #2d3748;
}

.jobs-section {
    position: relative;
    width: 100%;
    padding: 100px 2rem;
    background: #f0f4f8; /* Soft neutral background */
    /* Subtle background pattern to match the tech/modern feel */
    background-image: radial-gradient(#d1d9e6 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Prevent horizontal overflow from transforms or large children */
.jobs-section {
    box-sizing: border-box;
    overflow-x: hidden;
}

.jobs-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 3rem;
    z-index: 10;
}

/* --- Left Text Column --- */

.jobs-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 80, 255, 0.1);
}

.jobs-text h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.jobs-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--brand-blue);
    letter-spacing: -0.02em;
}

.jobs-text p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-main);
    margin: 0;
}

/* --- Right Image Column --- */

.jobs-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    /* Matching the subtle tilt from the Intro section */
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.jobs-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.jobs-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* --- Modern Button --- */

.view-jobs-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #0050ff, #002f9c);
    border: none;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 80, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-jobs-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 80, 255, 0.4);
    filter: brightness(1.1);
}

/* --- Mobile Fixes --- */

@media (max-width: 1024px) {
    .jobs-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .jobs-text {
        align-items: center;
        padding: 2.5rem;
        order: 2; /* Text goes under image on mobile */
    }

    .jobs-image {
        max-width: 500px;
        margin: 0 auto;
        order: 1;
        transform: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    .view-jobs-btn {
        align-self: center;
    }
}

@media (max-width: 600px) {
    .jobs-section {
        padding: 50px 1rem;
    }

    .jobs-text {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .jobs-text h1 {
        font-size: 1.8rem;
    }
}