/* ========================================
   work.css — Styles specific to work.html
   ======================================== */

/* Section: Кызматтык мүнөздөмөлөр */
#job-duties {
    margin-top: 12px;
}

#job-duties .cards-section {
    margin-bottom: 50px;
}

#job-duties .section-title {
    color: #fca5a5;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.7);
    position: relative;
}

#job-duties .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #dc2626;
}

#job-duties .cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

#job-duties .card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-top: 5px solid #dc2626;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#job-duties .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.2);
}

#job-duties .card-header {
    background: rgba(15, 23, 42, 0.55);
    padding: 25px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#job-duties .card-title {
    color: #f87171;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

#job-duties .card-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: normal;
}

#job-duties .card-body {
    padding: 25px 20px;
    flex-grow: 1;
}

#job-duties .card-description {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

#job-duties .card-list {
    list-style-type: none;
    margin-bottom: 25px;
}

#job-duties .card-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #cbd5e1;
}

#job-duties .card-list li::before {
    content: '•';
    color: #ef4444;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 5px;
}

#job-duties .card-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

#job-duties .btn {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

#job-duties .btn:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 24px 0;
}

.modal-content {
    background: linear-gradient(145deg, #0f172a, #111827);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
    margin: 2% auto;
    width: 90%;
    max-width: 880px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: #b91c1c;
    color: white;
    padding: 25px 30px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.modal-body {
    padding: 30px;
    line-height: 1.7;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h3 {
    color: #f87171;
    margin: 25px 0 15px;
    font-size: 1.35rem;
    border-left: 4px solid #dc2626;
    padding-left: 10px;
}

.modal-body h4 {
    color: #e2e8f0;
    margin: 20px 0 10px;
    font-size: 1.15rem;
}

.modal-body p,
.modal-body li {
    color: #cbd5e1;
    font-size: 1.02rem;
}

.modal-body ul,
.modal-body ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.modal-footer {
    padding: 20px 30px;
    text-align: right;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.close-btn {
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #334155;
}

/* Card 3D — work-specific */
.card-3d:hover {
    transform: perspective(1000px) scale(1.02);
}

@media (max-width: 768px) {
    #job-duties .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #job-duties .section-title {
        font-size: 1.65rem;
    }

    .modal-content {
        width: 95%;
        margin: 8% auto;
        max-width: 95%;
    }

    .modal-body {
        max-height: 65vh;
        padding: 20px;
    }
}