/* ========================================
   About Page Styles
   ======================================== */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes borderPulse {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: var(--secondary-color); }
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-blue-light) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1), transparent 70%);
    animation: floatAnimation 8s ease-in-out infinite;
}

.page-header h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    background-size: 200% 200%;
}

.page-header p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Memorial Section */
.memorial-section {
    padding: 80px 0;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.memorial-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.memorial-image-wrapper {
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.memorial-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary-color);
    animation: borderPulse 4s ease-in-out infinite, floatAnimation 6s ease-in-out infinite;
}

.memorial-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    z-index: -1;
    animation: floatAnimation 6s ease-in-out infinite reverse;
}

.memorial-text {
    text-align: right;
    opacity: 0;
    animation: fadeInRight 1s ease 0.3s forwards;
}

.memorial-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.memorial-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-right: 20px;
    border-right: 3px solid var(--primary-color);
    animation: borderPulse 4s ease-in-out infinite;
}

.memorial-text p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.memorial-text p:last-child {
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-gray);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Vision Section */
.vision-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.vision-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    overflow: hidden;
}

.vision-card:nth-child(1) { animation-delay: 0.1s; }
.vision-card:nth-child(2) { animation-delay: 0.3s; }

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.05), transparent);
    animation: sweepEffect 4s ease-in-out infinite;
}

@keyframes sweepEffect {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.vision-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.vision-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 200, 83, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.4s ease;
    animation: floatAnimation 4s ease-in-out infinite;
}

.vision-card:nth-child(1) .vision-icon { animation-delay: 0s; }
.vision-card:nth-child(2) .vision-icon { animation-delay: 0.5s; }

.vision-card:hover .vision-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 200, 83, 0.2));
}

.vision-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.vision-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Why Us Section */
.why-us-section {
    padding: 100px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    overflow: hidden;
}

.why-us-item:nth-child(1) { animation-delay: 0.1s; }
.why-us-item:nth-child(2) { animation-delay: 0.2s; }
.why-us-item:nth-child(3) { animation-delay: 0.3s; }
.why-us-item:nth-child(4) { animation-delay: 0.4s; }
.why-us-item:nth-child(5) { animation-delay: 0.5s; }
.why-us-item:nth-child(6) { animation-delay: 0.6s; }

.why-us-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-item:hover::after {
    opacity: 1;
}

.why-us-item:hover {
    border-color: transparent;
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.why-us-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 102, 255, 0.1);
    line-height: 1;
    transition: all 0.3s ease;
}

.why-us-item:hover .why-us-number {
    color: rgba(0, 102, 255, 0.2);
    transform: scale(1.1);
}

.why-us-item h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.why-us-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Partners About */
.about-partners {
    padding: 100px 0;
    background: var(--bg-gray);
}

.partners-content {
    max-width: 800px;
    margin: 0 auto;
}

.partner-logo-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partner-logo-large img {
    height: 80px;
    filter: grayscale(0%) brightness(1);
}

/* Fix for white Orim logo */
.partner-logo-large img[src*="logo-orim"] {
    filter: invert(1) brightness(0.3) sepia(1) saturate(5) hue-rotate(190deg);
}

.partner-logo-large span {
    font-size: 16px;
    color: var(--text-gray);
}

/* Numbers Section */
.numbers-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 200, 83, 0.08));
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.number-item .number {
    display: block;
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.number-item .number-label {
    font-size: 18px;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .memorial-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .memorial-image-wrapper {
        max-width: 250px;
        margin: 0 auto;
    }

    .memorial-text {
        text-align: center;
    }

    .memorial-quote {
        border-right: none;
        padding-right: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .memorial-title {
        font-size: 26px;
    }

    .memorial-quote {
        font-size: 18px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .partners-logos {
        flex-direction: column;
        gap: 40px;
    }
}

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

    .number-item .number {
        font-size: 48px;
    }
}
