/* Filename: style/profil.css
   Description: Styling khusus Halaman Profil Perusahaan (Responsive: Desktop, Tablet, Mobile)
   Version: 1.0.2 Final
*/

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.profil-hero {
    position: relative;
    /* Tinggi dinamis: Minimal 400px, ideal 70% tinggi layar */
    height: 70vh; 
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ganti URL dibawah dengan gambar kantor/tim asli Anda */
    background-image: url('https://placehold.co/1920x1080/111827/333?text=Office+Activity');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efek Parallax di Desktop */
    color: var(--surau-white);
    margin-top: 0; /* Reset jika header transparan, sesuaikan jika fixed */
    padding-top: var(--header-height); /* Kompensasi Fixed Header */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient Overlay agar teks lebih terbaca */
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.6) 50%, rgba(17, 24, 39, 0.9) 100%);
    z-index: 1;
}

.profil-hero .surau-container {
    position: relative; z-index: 10;
    text-align: center;
    max-width: 900px;
}

.profil-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.profil-hero-subtitle {
    font-size: 1.25rem;
    color: #E5E7EB;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   2. GLOBAL SECTION UTILS
   ========================================================================== */
.surau-section { 
    padding: 100px 0; 
    position: relative;
}

.bg-gray { 
    background-color: #F9FAFB; 
}

.section-badge {
    color: var(--surau-red);
    background: rgba(230, 0, 2, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1.2px;
    font-size: 0.8rem; 
    display: inline-block; 
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--surau-black); 
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* --- Layout Grid Utama (Desktop) --- */
.profil-grid-2 {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center;
}

/* ==========================================================================
   3. ABOUT SECTION
   ========================================================================== */
.about-content p {
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: #4B5563; 
    margin-bottom: 20px;
    text-align: justify;
}

.stats-row { 
    display: flex; 
    gap: 60px; 
    margin-top: 40px; 
    border-top: 1px solid #E5E7EB; 
    padding-top: 30px; 
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num { 
    font-size: 3rem; 
    font-weight: 900; 
    color: var(--surau-red); 
    line-height: 1; 
    margin-bottom: 5px;
}

.stat-label { 
    font-size: 0.9rem; 
    color: #9CA3AF; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.image-frame-elegant {
    position: relative; 
    border-radius: 24px; 
    overflow: hidden;
    /* Efek shadow aesthetic */
    box-shadow: -30px 30px 0 #F3F4F6, 0 20px 50px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.image-frame-elegant:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-frame-elegant img {
    width: 100%; height: auto; display: block;
}

/* ==========================================================================
   4. VISI MISI CARDS
   ========================================================================== */
.visimisi-grid {
    display: grid; 
    grid-template-columns: 1fr 1.5fr; /* Visi lebih kecil, Misi lebih lebar */
    gap: 40px;
    align-items: start;
}

.vm-card {
    background: white; 
    padding: 50px 40px; 
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid transparent;
    height: 100%; /* Equal Height */
}

.vm-card:hover { 
    transform: translateY(-10px); 
    border-top-color: var(--surau-red); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.vm-icon {
    width: 70px; height: 70px; 
    background: rgba(230,0,2,0.08); 
    color: var(--surau-red);
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; 
    margin-bottom: 25px;
    transition: 0.3s;
}

.vm-card:hover .vm-icon {
    background: var(--surau-red);
    color: white;
}

.vm-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--surau-black);
}

.vm-card p {
    color: #6B7280;
    line-height: 1.7;
}

.surau-checklist { margin-top: 15px; }
.surau-checklist li {
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    color: #4B5563; 
    align-items: start;
    font-size: 0.95rem;
}
.surau-checklist i { 
    color: var(--surau-red); 
    margin-top: 4px; 
    flex-shrink: 0;
}

/* ==========================================================================
   5. TEAM & VALUES SECTION
   ========================================================================== */
/* Gallery Masonry-like Grid */
.gallery-grid {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

.gallery-card {
    display: block; 
    position: relative; 
    border-radius: 16px; 
    overflow: hidden;
    aspect-ratio: 1/1; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-card.full-width { 
    grid-column: span 2; 
    aspect-ratio: 2.1/1; 
}

.gallery-card img {
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease;
}

.gallery-card:hover img { 
    transform: scale(1.1); 
}

.gallery-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px 20px; 
    opacity: 0; 
    transition: 0.3s ease;
    display: flex; align-items: flex-end;
}

.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { 
    color: white; 
    font-weight: 700; 
    font-size: 1rem; 
    transform: translateY(10px); 
    transition: 0.3s;
}
.gallery-card:hover .gallery-overlay span { transform: translateY(0); }

/* Values List */
.values-list { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
    margin-top: 35px; 
}

.val-item { 
    display: flex; 
    gap: 20px; 
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
    transition: 0.3s;
}

.val-item:hover {
    border-color: rgba(230,0,2,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.val-item .val-icon {
    flex-shrink: 0; 
    width: 50px; height: 50px; 
    background: #FFF5F5; 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--surau-red); 
    font-size: 1.25rem;
}

.val-item h4 {
    font-size: 1.1rem; 
    font-weight: 700; 
    margin: 0 0 5px; 
    color: var(--surau-black);
}

.val-item p {
    font-size: 0.9rem; 
    margin: 0; 
    color: #6B7280;
}

/* ==========================================================================
   6. ANIMATION CLASSES (JS Triggered)
   ========================================================================== */
.fade-in-up, .fade-in-left, .fade-in-right { 
    opacity: 0; 
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}
.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.in-view { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */

/* --- TABLET (Portrait / Small Laptop) : max-width 1024px --- */
@media (max-width: 1024px) {
    .profil-hero-title { font-size: 2.8rem; }
    
    .surau-section { padding: 80px 0; }
    
    .profil-grid-2 { 
        gap: 40px; 
    }
    
    .stats-row { gap: 30px; }
    .stat-num { font-size: 2.5rem; }
    
    .image-frame-elegant {
        transform: none; /* Hilangkan efek 3D agar rapi di tablet */
        box-shadow: -15px 15px 0 #F3F4F6;
    }
    .image-frame-elegant:hover { transform: none; }
    
    .visimisi-grid {
        grid-template-columns: 1fr; /* Stack Visi Misi */
        gap: 30px;
    }
    
    .vm-card { height: auto; }
}

/* --- MOBILE (Smartphone) : max-width 768px --- */
@media (max-width: 768px) {
    
    /* Hero */
    .profil-hero {
        background-attachment: scroll; /* Fix jitter on mobile */
        height: auto;
        min-height: 500px;
        padding: 120px 20px 60px; /* Tambah padding atas */
    }
    .profil-hero-title { font-size: 2.2rem; margin-bottom: 15px; }
    .profil-hero-subtitle { font-size: 1rem; }

    /* General Layout */
    .surau-section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    
    .profil-grid-2 { 
        grid-template-columns: 1fr; /* Stack kolom jadi 1 baris */
        gap: 50px;
    }
    
    /* Reverse logic: Di mobile, gambar tim ingin dibawah teks atau diatas? */
    .reverse-mobile { 
        display: flex; 
        flex-direction: column-reverse; /* Teks dulu, baru galeri foto */
    }

    /* About Section */
    .about-content p { text-align: left; } /* Jangan justify di mobile, susah dibaca */
    
    .stats-row { 
        flex-wrap: wrap; 
        gap: 30px; 
        justify-content: flex-start;
    }
    
    .image-frame-elegant {
        margin: 0 10px; /* Beri sedikit margin agar shadow tidak terpotong */
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Shadow biasa */
    }

    /* Visi Misi */
    .vm-card { padding: 30px 20px; }
    .vm-icon { width: 60px; height: 60px; font-size: 1.5rem; }

    /* Values & Gallery */
    .gallery-grid {
        gap: 10px;
    }
    .gallery-overlay { opacity: 1; padding: 15px; } /* Selalu tampilkan teks overlay di mobile */
    .gallery-overlay span { font-size: 0.8rem; transform: translateY(0); }
    
    .val-item {
        flex-direction: row; /* Tetap icon disamping */
        padding: 15px;
    }
    .val-item .val-icon {
        width: 40px; height: 40px; font-size: 1rem;
    }
}