/* ==================== ABOUT PAGE ==================== */

/* Parallax BG */
.about-bg-parallax {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            160deg,
            rgba(245, 238, 220, 0.97) 0%,
            rgba(255, 252, 245, 0.93) 50%,
            rgba(240, 230, 210, 0.97) 100%
        ),
        url("../img/des-5.png")
            center/cover no-repeat;
    will-change: transform;
}

/* Hero */
.about-hero {
    padding: 7rem 1.5rem 3rem;
    text-align: center;
}
.about-hero__inner {
    max-width: 640px;
    margin: 0 auto;
}
.about-hero__tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--gold-dark, #b8860b);
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
}
.about-hero__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--brown-dark, #3d2b1f);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.about-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted, #7a6a5a);
}

/* Content wrapper */
.about-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

/* Section */
.about-section {
    background: rgba(255, 252, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(61, 43, 31, 0.06);
}
.about-section__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.about-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brown-dark, #3d2b1f);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(184, 134, 11, 0.2);
}
.about-section__text {
    font-size: 1rem;
    line-height: 2;
    color: var(--text, #3d2b1f);
    margin-bottom: 1rem;
}
.about-section__text:last-child {
    margin-bottom: 0;
}

/* Values grid */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.about-value-card {
    background: rgba(184, 134, 11, 0.06);
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.about-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}
.about-value-card__icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}
.about-value-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark, #3d2b1f);
    margin-bottom: 0.4rem;
}
.about-value-card__text {
    font-size: 0.85rem;
    color: var(--text-muted, #7a6a5a);
    line-height: 1.7;
}

/* Gallery grid */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
}
.about-gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--border, #e8ddd0);
}
.about-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.about-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(61, 43, 31, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.about-gallery__overlay span {
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.5);
    transition:
        opacity 0.3s,
        transform 0.3s;
}
.about-gallery__item:hover img {
    transform: scale(1.08);
}
.about-gallery__item:hover .about-gallery__overlay {
    background: rgba(61, 43, 31, 0.45);
}
.about-gallery__item:hover .about-gallery__overlay span {
    opacity: 1;
    transform: scale(1);
}

/* Dev card */
.about-dev-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.25rem;
}
.about-dev-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--gold, #c9a84c),
        var(--brown, #6b4423)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}
.about-dev-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brown-dark, #3d2b1f);
    margin-bottom: 0.2rem;
}
.about-dev-card__role {
    font-size: 0.85rem;
    color: var(--gold-dark, #b8860b);
    margin-bottom: 0.75rem;
}
.about-dev-card__bio {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text, #3d2b1f);
    margin-bottom: 1rem;
}
.about-dev-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold-dark, #b8860b);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(184, 134, 11, 0.35);
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    transition:
        background 0.2s,
        color 0.2s;
}
.about-dev-card__link:hover {
    background: var(--gold, #c9a84c);
    color: white;
    border-color: var(--gold, #c9a84c);
}

/* ==================== GALLERY MODAL ==================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.gallery-modal.is-open {
    opacity: 1;
    pointer-events: all;
}
.gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 6, 0.92);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.gallery-modal__container {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 960px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.gallery-modal__img-wrap {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}
.gallery-modal__img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.gallery-modal__caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
}
.gallery-modal__counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}
.gallery-modal__close {
    position: absolute;
    top: -3rem;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.gallery-modal__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}
.gallery-modal__nav--prev {
    right: calc(100% + 0.75rem);
}
.gallery-modal__nav--next {
    left: calc(100% + 0.75rem);
}

/* Responsive */
@media (max-width: 640px) {
    .about-hero {
        padding: 5rem 1rem 2rem;
    }
    .about-section {
        padding: 1.75rem 1.25rem;
    }
    .about-dev-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-dev-card__avatar {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-modal__nav--prev {
        right: auto;
        left: 0.5rem;
    }
    .gallery-modal__nav--next {
        left: auto;
        right: 0.5rem;
    }
    .gallery-modal__nav {
        top: auto;
        bottom: -3.5rem;
        transform: none;
    }
}
