/**
 * AiPay Company About Page - View7
 * Matches login page visual language (purple gradient theme)
 */

.about-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
}

.about-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Top bar */
.about-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 20px;
}

.about-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-brand-icon {
    width: 200px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-brand-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.about-lang-switcher {
    position: relative;
}

.about-lang-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-lang-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.03);
}

.about-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    overflow: hidden;
    z-index: 100;
}

.about-lang-switcher:hover .about-lang-dropdown,
.about-lang-switcher.open .about-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.about-lang-option {
    display: block;
    padding: 12px 18px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.about-lang-option:last-child {
    border-bottom: none;
}

.about-lang-option:hover,
.about-lang-option.active {
    background: #f8f9ff;
    color: #667eea;
}

/* Hero */
.about-hero {
    text-align: center;
    padding: 36px 0 48px;
    animation: aboutFadeUp 0.7s ease-out;
}

.about-hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.about-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.about-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(15px, 2.2vw, 18px);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.75;
}

/* Cards */
.about-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 36px 32px;
    margin-bottom: 28px;
    animation: aboutFadeUp 0.7s ease-out backwards;
}

.about-card:nth-child(2) { animation-delay: 0.08s; }
.about-card:nth-child(3) { animation-delay: 0.16s; }
.about-card:nth-child(4) { animation-delay: 0.24s; }

.about-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #667eea;
    margin-bottom: 10px;
}

.about-section-heading {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 16px;
}

.about-section-text {
    color: #5a6578;
    font-size: 15px;
    line-height: 1.85;
}

/* Features grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.about-feature {
    background: linear-gradient(145deg, #f8f9ff 0%, #fff 100%);
    border: 1px solid #eef0ff;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.15);
}

.about-feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.about-feature h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.about-feature p {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
}

/* Countries */
.about-countries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.about-country {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
    transition: transform 0.25s ease;
}

.about-country-code {
    flex-shrink: 0;
    min-width: 44px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
}

.about-country-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.about-country:hover {
    transform: scale(1.03);
}

/* Contact */
.about-contact-box {
    margin-top: 8px;
    padding: 28px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.about-contact-box p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    font-weight: 500;
}

.about-contact-highlight {
    color: #667eea;
    font-weight: 700;
}

/* Footer */
.about-footer {
    text-align: center;
    padding: 32px 0 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-countries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-container {
        padding: 0 16px 36px;
    }

    .about-topbar {
        padding: 20px 0 12px;
    }

    .about-brand-name {
        font-size: 24px;
    }

    .about-hero {
        padding: 24px 0 32px;
    }

    .about-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-countries {
        grid-template-columns: 1fr;
    }

    .about-contact-box {
        padding: 20px;
    }
}
