/* ── About Modal (aboutModal) ── */

.about-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;

}

.about-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.about-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(200, 217, 230, 0.45), transparent 42%),
        radial-gradient(circle at 80% 80%, rgba(86, 124, 141, 0.25), transparent 38%),
        rgba(47, 65, 86, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px 1fr;
    width: min(920px, 100%);

    /* BU SƏTRİ DƏYİŞİRİK */
    height: 90vh;
    max-height: 760px;

    background:
        linear-gradient(rgba(17, 16, 15, 0.018) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(47, 65, 86, 0.08), transparent 34%),
        #f8f5ef;
    background-size: 100% 6px, auto, auto;
    border: 2px solid var(--p-navy, #2f4156);
    box-shadow: 0 24px 60px rgba(47, 65, 86, 0.28), 8px 8px 0 rgba(47, 65, 86, 0.12);
    overflow: hidden;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-modal__body {
    flex: 1;
    overflow-y: auto !important;
    padding: 20px 32px 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--p-teal, #567c8d) transparent;
}

.about-modal.is-open .about-modal__dialog {
    transform: translateY(0) scale(1);
}

.about-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 2px solid var(--p-navy, #2f4156);
    border-radius: 50%;
    background: var(--p-white, #fff);
    color: var(--p-navy, #2f4156);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.25s ease, color 0.2s ease;
}

.about-modal__close:hover {
    background: var(--p-navy, #2f4156);
    color: var(--p-white, #fff);
    transform: rotate(90deg);
}

/* Sidebar */
.about-modal__sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px 28px;
    background:
        linear-gradient(180deg, rgba(200, 217, 230, 0.55) 0%, rgba(245, 239, 235, 0.9) 100%);
    border-right: 2px solid var(--p-navy, #2f4156);
}

.about-modal__avatar-wrap {
    width: 120px;
    height: 120px;
    border: 2px solid var(--p-navy, #2f4156);
    border-radius: 50%;
    overflow: hidden;
    background: var(--p-white, #fff);
    box-shadow: 4px 4px 0 rgba(47, 65, 86, 0.14);
    margin-bottom: 18px;
}

.about-modal__avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-modal__name {
    margin: 0 0 6px;
    font-family: "Sansita Swashed", system-ui;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--p-navy, #2f4156);
    line-height: 1.35;
}

.about-modal__role {
    margin: 0 0 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--p-teal, #567c8d);
    line-height: 1.4;
}

.about-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-modal__tags li {
    border: 1px solid rgba(47, 65, 86, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--p-navy, #2f4156);
    border-radius: 999px;
    padding: 5px 11px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.about-modal__divider {
    width: 48px;
    height: 2px;
    background: var(--p-navy, #2f4156);
    margin: 22px auto 0;
    opacity: 0.35;
}

/* Content */
.about-modal__content-head {
    padding: 28px 32px 0;
    flex-shrink: 0;
}

.about-modal__greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--p-navy, #2f4156);
}

.about-modal__greeting span {
    font-size: 1.5rem;
}

.about-modal__lead {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--p-teal, #567c8d);
    line-height: 1.5;
}

.about-modal__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    /* Vacibdir */
}

.about-modal__body {
    flex: 1;
    overflow-y: auto !important;
    /* Mətnin scroll olması üçün */
    padding: 20px 32px 28px;
}

.about-modal__body::-webkit-scrollbar {
    width: 6px;
}

.about-modal__body::-webkit-scrollbar-thumb {
    background: rgba(86, 124, 141, 0.55);
    border-radius: 999px;
}

.about-modal__block {
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 3px solid rgba(200, 217, 230, 0.95);
}

.about-modal__block:last-child {
    margin-bottom: 0;
}

.about-modal__block p {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #3d4f63;
}

.about-modal__block p+p {
    margin-top: 10px;
}

.about-modal__block strong {
    color: var(--p-navy, #2f4156);
    font-weight: 700;
}

.about-modal__highlight {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px dashed rgba(47, 65, 86, 0.28);
    border-radius: 10px;
    background: rgba(245, 239, 235, 0.75);
}

.about-modal__highlight p {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #3d4f63;
}

.about-modal__footer-note {
    flex-shrink: 0;
    padding: 14px 32px 22px;
    border-top: 1px solid rgba(47, 65, 86, 0.1);
    background: rgba(200, 217, 230, 0.18);
}

.about-modal__footer-note p {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--p-teal, #567c8d);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .about-modal {
        padding: 0;
        align-items: flex-end;
    }

    .about-modal__dialog {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }

    .about-modal__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px;
        padding: 20px 56px 16px 20px;
        text-align: left;
        border-right: none;
        border-bottom: 2px solid var(--p-navy, #2f4156);
    }

    .about-modal__avatar-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .about-modal__name {
        flex: 1;
        min-width: 140px;
        font-family: "Sansita Swashed", system-ui;
        font-size: 1rem;
        margin-bottom: 0;
    }

    .about-modal__role {
        width: 100%;
        margin-bottom: 0;
        font-size: 0.92rem;
    }

    .about-modal__tags {
        width: 100%;
        justify-content: flex-start;
    }

    .about-modal__divider {
        display: none;
    }

    .about-modal__content-head {
        padding: 18px 20px 0;
    }

    .about-modal__body {
        padding: 16px 20px 20px;
    }

    .about-modal__footer-note {
        padding: 12px 20px 18px;
    }
}

@media (max-width: 480px) {
    .about-modal__greeting {
        font-size: 1.15rem;
    }

    .about-modal__block p {
        font-size: 0.96rem;
    }
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Sansita Swashed", system-ui;
    color: var(--p-navy);
    font-weight: 700;
}

.tab-btn.active {
    border-bottom: 2px solid var(--p-teal);
}

.tab-content {
    display: none;
    /* JavaScript idarə edəcək */
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.diploma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.diploma-card {
    position: relative;
    display: flex;
    min-height: 238px;
    flex-direction: column;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(17, 16, 15, 0.42);
    border-radius: 0;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 5px 5px 0 rgba(17, 16, 15, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.diploma-card:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 16, 15, 0.78);
    box-shadow: 7px 7px 0 rgba(17, 16, 15, 0.14);
}

.diploma-card img {
    width: 100%;
    height: 158px;
    object-fit: contain;
    background:
        linear-gradient(rgba(17, 16, 15, 0.018) 1px, transparent 1px),
        #fffdf8;
    background-size: 100% 6px, auto;
    border: 1px solid rgba(17, 16, 15, 0.34);
    padding: 8px;
}

.diploma-card p {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(17, 16, 15, 0.18);
    color: var(--p-navy, #2f4156);
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

#tecrube .about-modal__block h4 {
    margin: 0 0 6px;
    color: var(--p-navy);
    font-size: 1rem;
}

#tecrube .about-modal__block p {
    margin: 2px 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.experience-column {
    min-width: 0;
}

.experience-column h3 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17, 16, 15, 0.28);
    color: var(--p-navy, #2f4156);
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.experience-column .about-modal__block {
    background: rgba(255, 253, 248, 0.58);
    border: 1px solid rgba(17, 16, 15, 0.16);
    padding: 12px 14px;
}

@media (max-width: 720px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}
