/* ============================= */
/* Global Reset */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

body {
    background: #0b1114;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================= */
/* Animated Center Glow */
/* ============================= */

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, #223938 0%, rgba(34,57,56,0.6) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(120px);
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================= */
/* Header */
/* ============================= */

header {
    text-align: center;
    padding: 80px 20px 40px;
}

header img {
    width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(34,57,56,0.6));
}

header h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ffffff, #a8d5d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================= */
/* Container */
/* ============================= */

.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 60px 40px 120px;
}

/* ============================= */
/* Job Cards (Bigger & Premium) */
/* ============================= */

.card {
    width: 420px;
    min-height: 260px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(20, 25, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Glow border effect */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, #223938, transparent, #223938);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(34,57,56,0.6);
}

/* Title */
.card h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Description */
.card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

/* ============================= */
/* Status Badge */
/* ============================= */

.status {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
}

.open {
    background: linear-gradient(90deg, #1f8b4c, #29c66f);
    box-shadow: 0 0 15px rgba(41,198,111,0.5);
}

.closed {
    background: linear-gradient(90deg, #8b1f1f, #d94141);
    box-shadow: 0 0 15px rgba(217,65,65,0.5);
}

/* ============================= */
/* Modal */
/* ============================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 500px;
    max-width: 95%;
    background: rgba(18,22,26,0.95);
    border-radius: 24px;
    padding: 50px;
    animation: fadeIn 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

/* Inputs */
input, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    background: #0f1418;
    color: #fff;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border: 1px solid #223938;
    box-shadow: 0 0 10px rgba(34,57,56,0.6);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Button */
button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, #223938, #2f5554);
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34,57,56,0.6);
}

/* Close */
.close {
    text-align: right;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.close:hover {
    opacity: 1;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}