/* =========================================================
=======================  ABOUT SECTION  ====================
============================================================
Styles for About section including layout, photo area,
floating elements, and information detail cards.

Table of Content (About):
1. Base Layout
2. Layout Wrapper
3. Photo Area
4. Floating Circles
5. Content Area
6. Detail Cards
    6.1 Card Structure
    6.2 Hover Effects
    6.3 Label & Value Styles
========================================================= */


/* =========================================================
1. BASE LAYOUT
========================================================= */
.about {
    position: relative;
}


/* =========================================================
2. LAYOUT WRAPPER
========================================================= */
.about__wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .about__wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}


/* =========================================================
3. PHOTO AREA
========================================================= */
.about__photo {
    position: relative;
    width: 260px;
    height: 260px;
}

.about__photo-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: rotate(6deg);
    transition: transform var(--transition-normal);
}

/* Hover effect */
.about__photo-frame:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.4);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
4. FLOATING CIRCLES
========================================================= */
.about__circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float var(--transition-fast) infinite alternate;
}

/* --- Circle variations --- */
.about__circle--1 {
    width: 80px;
    height: 80px;
    background: var(--color-tertiary);
    top: -15px;
    right: -25px;
    animation-duration: 4s;
}

.about__circle--2 {
    width: 55px;
    height: 55px;
    background: var(--color-secondary);
    bottom: -25px;
    left: 10px;
    animation-duration: 5s;
}

.about__circle--3 {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    top: 110%;
    left: 70%;
    animation-duration: 6s;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-12px) scale(1.08);
    }
}


/* =========================================================
5. CONTENT AREA
========================================================= */
.about__content {
    max-width: 600px;
}

.about__title {
    font-size: var(--font-size-xxl);
    color: var(--color-text-inverse);
    margin-bottom: var(--spacing-sm);
}

.about__title.title::after {
    left: 13%;
}
html[dir="rtl"] .about__title.title::after {
    display: none;
}

.about__text {
    font-size: var(--font-size-lg);
    color: #e6e6e6;
    max-width: 650px;
    margin: 0 auto var(--spacing-xxl);
}


/* =========================================================
6. DETAIL CARDS
========================================================= */

/* 6.1 Card Structure */
.about__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.about__detail {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

/* Inner card content */
.about__detail>* {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
}


/* 6.2 Hover Effects */
.about__detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 22px rgba(0, 170, 255, 0.35);
}

.about__detail:hover .detail__label,
.about__detail:hover .detail__value {
    transform: translateY(-2px);
    transition: transform 0.25s ease;
}


/* 6.3 Label & Value Styles */
.detail__label {
    font-size: var(--font-size-sm);
    color: var(--color-tertiary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail__value {
    font-size: var(--font-size-md);
    color: var(--color-text-inverse);
    font-weight: var(--font-weight-medium);
    margin-top: var(--spacing-xxs);
}