/* ============================================
   About Page – Purple theme & animations
   ============================================ */

.about-page {
    --about-primary: #667eea;
    --about-primary-dark: #764ba2;
    --about-accent: #9f7aea;
    --about-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --about-duration: 0.5s;
}

/* ----- Page header (purple gradient) ----- */
.about-page .page-header {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}
.about-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}
.about-page .page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.about-page .page-subtitle {
    font-size: 1rem;
    margin-top: 0.75rem;
    opacity: 0.95;
}

/* ----- Scroll reveal ----- */
.about-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--about-duration) var(--about-ease),
                transform var(--about-duration) var(--about-ease);
}
.about-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
.about-reveal-left {
    transform: translateX(-28px);
}
.about-reveal-left.about-reveal-visible {
    transform: translateX(0);
}
.about-reveal-right {
    transform: translateX(28px);
}
.about-reveal-right.about-reveal-visible {
    transform: translateX(0);
}

/* ----- Sections ----- */
.about-section {
    padding: 4rem 0;
    position: relative;
}

.about-section.section-1 {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-section.section-2,
.about-section.section-4 {
    background: #ffffff;
}

.about-section.section-5 {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* ----- Content ----- */
.about-content {
    padding: 1.25rem 0;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.25rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: #1e293b;
    font-weight: 600;
}

.about-content em {
    color: var(--about-primary);
    font-style: italic;
    font-weight: 500;
}

/* ----- Image & video ----- */
.about-image,
.about-video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform var(--about-duration) var(--about-ease),
                box-shadow var(--about-duration) var(--about-ease);
}

.about-image:hover,
.about-video:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.18);
}

.about-image img,
.about-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s var(--about-ease);
}

.about-image:hover img,
.about-video:hover video {
    transform: scale(1.04);
}

.about-video {
    margin-bottom: 1.25rem;
}

.about-video em {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin: 1rem 0;
    text-align: center;
}

/* ----- Buttons (purple) ----- */
.btn-about,
.about-section .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform var(--about-duration) var(--about-ease),
                box-shadow var(--about-duration) var(--about-ease);
    letter-spacing: 0.03em;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-about::before,
.about-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-about:hover::before,
.about-section .btn-primary:hover::before {
    width: 360px;
    height: 360px;
}

.btn-about:hover,
.about-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: #fff !important;
}

.btn-about:active,
.about-section .btn-primary:active {
    transform: translateY(-1px);
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .about-section {
        padding: 3rem 0;
    }
    .about-content {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .about-page .page-header {
        padding: 3.5rem 0 3rem;
    }
    .about-section {
        padding: 2.5rem 0;
    }
    .about-content h2 {
        margin-bottom: 1rem;
    }
    .about-content p {
        font-size: 0.9375rem;
    }
    .btn-about,
    .about-section .btn-primary {
        width: 100%;
        max-width: 100%;
    }
    .about-reveal-left { transform: translateY(20px); }
    .about-reveal-right { transform: translateY(20px); }
    .about-reveal-left.about-reveal-visible,
    .about-reveal-right.about-reveal-visible { transform: translateY(0); }
}

@media (max-width: 576px) {
    .about-page .page-header {
        padding: 2.5rem 0 2rem;
    }
}
