/* --- Global Styles & AI Theme Variables --- */
:root {
    --bg-color: #1a202c; /* Very dark blue, almost black */
    --card-color: rgba(57, 73, 94, 0.228); /* Dark gray-blue for cards */
    --accent-glow: #63e2b7; /* Bright Neon Cyan/Green */
    --accent-primary: #805AD5; /* Vibrant Purple */
    --text-light: #feffff; /* Light gray for main text */
    --text-strong: #FFFFFF; /* Pure white for highlights */
    --border-color: rgba(99, 226, 183, 0.3); /* Neon border */
    --shadow-color: rgba(99, 226, 175, 0.806); /* Neon shadow */
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-color); /* Added background color */
    margin: 0;
}

/* --- Main Content Wrapper --- */
.content-wrapper {
    padding: 5rem 1.5rem; /* Default padding */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

h1 {
    /* New Gradient for Title */
    background: linear-gradient(90deg, var(--accent-glow),var );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 2.5rem; /* Increased margin */
    font-weight: 900;
    font-size: 2.5rem; /* Added font size */
}

/* --- Job List Container --- */
.job-list {
    list-style: none;
    padding:0 ;
    margin: 7 auto; /* Centered */
    max-width: 900px;
}

/* --- Individual Job Item --- */
.job-list li {
    background-color: var(--card-color);
    margin-bottom: 1rem; /* Increased margin */
    border-radius: 8px;
    position: relative; /* Crucial for positioning the pop-up */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--accent-glow);
    display: flex;
    align-items: center;
    font-size: 1.07rem;
    font-weight: 700; /* Adjusted from 900 for better readability */
    backdrop-filter: blur(5px); /* Added glassmorphism effect */
    -webkit-backdrop-filter: blur(5px);
    margin-left: 9%;
}

.job-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 0 20px var(--shadow-color), 0 0 30px var(--shadow-color);
}

.job-list li a {
    color: var(--text-light); /* Changed color */
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    width: 100%;
    transition: color 0.3s ease;
}

.job-list li:hover a {
    color: var(--accent-glow);
}

/* --- Details Popup (Hidden by default) --- */
.details-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 102%; /* Positioned to the right of the list item */
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-color); /* Updated background */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    z-index: 10;
    width: max-content;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.job-list li:hover .details-popup {
    visibility: visible;
    opacity: 1;
}

.details-popup p {
    margin: 5px 0;
    color: var(--text-light); /* Updated color */
    font-size: 0.95em;
    white-space: nowrap;
}

.details-popup p strong {
    color: var(--accent-glow); /* Updated color */
}
.job-list li {
    overflow: visible !important;
}



/* --- Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- =================== --- */
/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */
/* --- =================== --- */

/* For Tablets (e.g., iPads) */
@media (max-width: 992px) {
    .details-popup {
        /* On tablets, popups can be awkward. Hide them to prevent screen overflow. */
        display: none;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 7rem 0.95rem; /* Reduce padding on mobile */
    }
    
    h1 {
        font-size: 2rem; /* Reduce heading size */
    }

    .job-list li {
        font-size: 1rem; /* Adjust font size for smaller screens */
        flex-direction: column; /* Stack content if needed, though current setup is fine */
        align-items: flex-start;
    }

    .job-list li:hover {
        transform: translateX(5px); /* Reduce hover effect */
    }
    
    .job-list li a {
        padding: 15px; /* Adjust padding */
    }
}