/* ============================================ */
/* PROFILE PAGE STYLING */
/* ============================================ */

/* Active Navigation */
.nav-menu a.nav-link {
    position: relative;
    display: inline-block;
}

.nav-menu a.nav-link.active {
    color: var(--primary-color);
}

.nav-menu a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* ============================================ */
/* SECTION TENTANG KAMI */
/* ============================================ */
#tentang-kami {
    position: relative;
    overflow: hidden;
}

.tentang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tentang-text .intro-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tentang-text p {
    color: var(--grey-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.feature-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(59, 124, 202, 0.3);
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 124, 202, 0.4);
}

.badge-item i {
    font-size: 1.5rem;
}

.badge-item span {
    font-weight: 600;
    font-size: 1rem;
}

/* Image Section */
.tentang-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.image-wrapper .main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 124, 202, 0.7), rgba(243, 156, 18, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 5rem;
    color: #fff;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================ */
/* SECTION VISI MISI */
/* ============================================ */
#visi-misi {
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
}

.visi-misi-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.visi-card,
.misi-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visi-card:hover,
.misi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(59, 124, 202, 0.3);
}

.card-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.visi-card h3,
.misi-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.card-content p {
    color: var(--grey-color);
    line-height: 1.8;
    text-align: justify;
}

/* Misi Items */
.misi-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.misi-item:last-child {
    margin-bottom: 0;
}

.misi-number {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #f5b041);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.misi-item p {
    flex: 1;
    margin: 0;
    padding-top: 0.5rem;
}

/* Card Decoration */
.card-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 10rem;
    color: var(--secondary-color);
    opacity: 0.05;
    z-index: 0;
}

.visi-card .card-content,
.misi-card .card-content {
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* SECTION LEGALITAS */
/* ============================================ */
#legalitas {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-color) 100%);
}

.legalitas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.legalitas-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.legalitas-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.icon-wrapper i {
    font-size: 3rem;
    color: #fff;
}

.card-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.card-body p {
    color: var(--grey-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.doc-image-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.doc-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.doc-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-footer {
    padding: 0 2rem 2rem 2rem;
    text-align: center;
}

.btn-download-doc {
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(59, 124, 202, 0.3);
}

.btn-download-doc:hover {
    background: linear-gradient(135deg, var(--secondary-color), #f5b041);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-download-doc i {
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}

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

.legalitas-note {
    background: linear-gradient(135deg, #e8f4fd, #fff5e6);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--primary-color);
}

.legalitas-note i {
    font-size: 2rem;
    color: var(--primary-color);
}

.legalitas-note p {
    margin: 0;
    color: var(--grey-color);
    line-height: 1.6;
}

/* ============================================ */
/* SECTION KOMITMEN KUALITAS */
/* ============================================ */
#komitmen-kualitas {
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
}

.komitmen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.komitmen-card {
    background: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.komitmen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.komitmen-card:hover::before {
    transform: scaleX(1);
}

.komitmen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.komitmen-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 25px rgba(59, 124, 202, 0.3);
    transition: all 0.3s ease;
}

.komitmen-card:hover .komitmen-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f5b041);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
    transform: rotateY(360deg);
}

.komitmen-icon i {
    font-size: 2.2rem;
    color: #fff;
}

.komitmen-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.komitmen-card p {
    color: var(--grey-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.komitmen-cta {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(59, 124, 202, 0.05), rgba(243, 156, 18, 0.05));
    border-radius: 20px;
    border: 2px dashed var(--primary-color);
}

.komitmen-cta p {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.komitmen-cta .btn {
    box-shadow: 0 5px 20px rgba(59, 124, 202, 0.3);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */
@media (max-width: 992px) {
    .tentang-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tentang-image {
        order: -1;
    }

    .visi-misi-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legalitas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-badges {
        justify-content: center;
    }

    .komitmen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tentang-text .intro-text {
        font-size: 1rem;
    }

    .badge-item {
        padding: 0.8rem 1.2rem;
    }

    .badge-item i {
        font-size: 1.2rem;
    }

    .badge-item span {
        font-size: 0.9rem;
    }

    .visi-card,
    .misi-card {
        padding: 2rem 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 2rem;
    }

    .misi-number {
        min-width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .card-decoration {
        font-size: 7rem;
    }

    .legalitas-note {
        flex-direction: column;
        text-align: center;
    }

    .komitmen-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .feature-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .badge-item {
        width: 100%;
        justify-content: center;
    }

    .visi-card h3,
    .misi-card h3 {
        font-size: 1.5rem;
    }

    .misi-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .misi-number {
        margin: 0 auto;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .icon-wrapper i {
        font-size: 2.5rem;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .komitmen-card {
        padding: 2rem 1.5rem;
    }

    .komitmen-icon {
        width: 70px;
        height: 70px;
    }

    .komitmen-icon i {
        font-size: 2rem;
    }

    .komitmen-card h3 {
        font-size: 1.1rem;
    }

    .komitmen-cta p {
        font-size: 1.1rem;
    }
}