/* ================================== */
/* GAYA UNTUK HALAMAN TENTANG KAMI    */
/* ================================== */

/* CATATAN: Aturan .page-banner sudah dipindahkan ke style.css */


/* DESKRIPSI YAYASAN DENGAN ANIMASI AWWWARDS-STYLE */
#foundation-desc {
    padding: 100px 0;
    background-color: #fff;
}

.desc-container {
    max-width: 850px; /* Sedikit lebih sempit untuk fokus pada teks */
}

.desc-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2em;
    color: #444;
}

.desc-text p.highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Kunci Animasi: Membungkus setiap baris */
.desc-text .line {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Awalnya tersembunyi */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Kondisi saat section terlihat */
#foundation-desc.visible .line {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Teks muncul */
    opacity: 1;
    transform: translateY(0);
}

/* Membuat efek stagger/berurutan untuk setiap baris */
#foundation-desc.visible .line:nth-child(2) { transition-delay: 0.1s; }
#foundation-desc.visible .line:nth-child(3) { transition-delay: 0.2s; }
#foundation-desc.visible .line:nth-child(4) { transition-delay: 0.3s; }
#foundation-desc.visible .line:nth-child(5) { transition-delay: 0.4s; }

/* 2. SEJARAH (TIMELINE) */
.history-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.history-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: #e0e6f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--accent-color);
    top: 0;
    left: 50%;
    margin-left: -1.5px;
    box-shadow: 0 0 10px var(--accent-color);
    height: var(--line-height, 0);
    transition: height 0.3s ease-out;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.visible .timeline-dot {
    background-color: var(--accent-color);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0,123,255,0.5);
    transition: background-color 0.4s ease 0.2s;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    opacity: 0; /* Awalnya transparan */
    transform: translateY(30px) scale(0.95); /* Awalnya sedikit ke bawah & kecil */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Animasi pop-up */
}

.timeline-item.visible .timeline-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

@media(max-width: 768px) {
    .timeline::before, .timeline::after {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 1px;
    }
}

/* 3. NILAI-NILAI INTI (CORE VALUES) */
.core-values {
    padding: 80px 0;
}

.core-values h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px); /* Efek Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(0, 51, 102, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.value-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}


/* 4. TIM KAMI */
.team-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.team-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: scale(1.05);
}

.team-card img {
    width: 100%;
    aspect-ratio: 1080 / 1350; 
    object-fit: cover;         
    display: block;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 21, 41, 0.9), transparent);
    color: white;
    padding: 40px 20px 20px 20px;
}

.team-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.team-info span {
    font-weight: 300;
    opacity: 0.9;
}

/* Penyesuaian untuk mobile */
@media(max-width: 768px) {
    .timeline::before, .timeline::after {
        left: 10px; /* Pindahkan garis ke kiri */
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 1px;
    }
}