/* =========================================================
   PROFIL DESA
========================================================= */

/* =========================================================
   GLOBAL
========================================================= */

.profile-hero,
.profile-about,
.profile-highlight,
.history-section,
.vision-section,
.government-section,
.territory-section,
.profile-cta {
    width: 100%;
}

/* =========================================================
   REVEAL
========================================================= */

.reveal-profile {
    opacity: 0;

    transform: translateY(45px);

    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-profile.profile-visible {
    opacity: 1;

    transform: translateY(0);
}

/* =========================================================
   HERO
========================================================= */

.profile-hero {
    position: relative;

    min-height: 510px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: #064e3b;
}

.profile-hero-bg {
    position: absolute;

    inset: 0;

    background-image: url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=2200&q=85");

    background-size: cover;

    background-position: center;

    transform: scale(1.04);

    animation: profileHeroZoom 12s ease-in-out infinite alternate;
}

@keyframes profileHeroZoom {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.08);
    }
}

.profile-hero-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(2, 44, 34, 0.94),
        rgba(2, 44, 34, 0.7),
        rgba(2, 44, 34, 0.25)
    );
}

.profile-hero .container {
    position: relative;

    z-index: 2;
}

.profile-hero-content {
    max-width: 750px;

    padding: 80px 0;
}

.profile-badge {
    display: inline-block;

    padding: 8px 14px;

    margin-bottom: 18px;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    color: #d1fae5;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.3px;
}

.profile-hero h1 {
    margin: 0 0 20px;

    color: white;

    font-size: clamp(40px, 5.5vw, 65px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.profile-hero h1 span {
    display: block;

    color: #6ee7b7;
}

.profile-hero p {
    max-width: 600px;

    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 16px;

    line-height: 1.8;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 30px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
}

.breadcrumb a {
    color: #a7f3d0;

    text-decoration: none;
}

.breadcrumb strong {
    color: white;
}

/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #16a34a;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

/* =========================================================
   ABOUT
========================================================= */

.profile-about {
    padding: 110px 0;

    background: white;
}

.profile-about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 90px;
}

.profile-about-content h2 {
    margin: 5px 0 22px;

    color: #0f172a;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.15;
}

.profile-about-content h2 span {
    display: block;

    color: #16a34a;
}

.profile-about-content p {
    max-width: 600px;

    margin-bottom: 15px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.9;
}

/* =========================================================
   PROFILE LINK
========================================================= */

.profile-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 15px;

    color: #15803d;

    font-size: 14px;

    font-weight: 750;

    text-decoration: none;

    transition: gap 0.25s ease;
}

.profile-link:hover {
    gap: 15px;
}

/* =========================================================
   ABOUT VISUAL
========================================================= */

.profile-about-visual {
    position: relative;

    padding: 15px;
}

.about-main-image {
    position: relative;

    z-index: 2;

    overflow: hidden;

    border-radius: 25px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.13);
}

.about-main-image img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 4.3;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.profile-about-visual:hover .about-main-image img {
    transform: scale(1.05);
}

.about-decoration {
    position: absolute;

    right: -5px;

    bottom: -5px;

    width: 170px;

    height: 170px;

    border: 5px solid #bbf7d0;

    border-radius: 25px;

    z-index: 1;
}

.about-floating-card {
    position: absolute;

    z-index: 3;

    left: -25px;

    bottom: 50px;

    padding: 18px 22px;

    border-radius: 15px;

    background: white;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
}

.about-floating-card strong {
    display: block;

    color: #0f172a;

    font-size: 15px;
}

.about-floating-card span {
    display: block;

    margin-top: 4px;

    color: #64748b;

    font-size: 12px;
}

/* =========================================================
   HIGHLIGHT
========================================================= */

.profile-highlight {
    padding: 70px 0;

    background: #f8fafc;
}

.highlight-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.highlight-item {
    display: flex;

    gap: 17px;

    padding: 28px;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    background: white;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-6px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.highlight-icon {
    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #ecfdf5;

    font-size: 22px;
}

.highlight-item strong {
    display: block;

    margin-bottom: 7px;

    color: #0f172a;

    font-size: 15px;
}

.highlight-item p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}

/* =========================================================
   CENTER HEADING
========================================================= */

.center-heading {
    max-width: 650px;

    margin: 0 auto 60px;

    text-align: center;
}

.center-heading h2 {
    margin: 5px 0 15px;

    color: #0f172a;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;
}

.center-heading h2 span {
    color: #16a34a;
}

.center-heading p {
    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.8;
}

/* =========================================================
   HISTORY
========================================================= */

.history-section {
    padding: 110px 0;

    background: white;
}

.timeline {
    position: relative;

    max-width: 900px;

    margin: auto;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 0;

    bottom: 0;

    left: 50%;

    width: 2px;

    background: #dcfce7;

    transform: translateX(-50%);
}

.timeline-item {
    position: relative;

    display: grid;

    grid-template-columns: 1fr 70px 1fr;

    align-items: start;

    min-height: 180px;
}

.timeline-year {
    padding-top: 4px;

    color: #16a34a;

    font-size: 24px;

    font-weight: 800;

    text-align: right;

    padding-right: 30px;
}

.timeline-dot {
    position: relative;

    z-index: 2;

    width: 16px;

    height: 16px;

    margin: 5px auto 0;

    border: 4px solid white;

    border-radius: 50%;

    background: #16a34a;

    box-shadow: 0 0 0 5px #dcfce7;
}

.timeline-content {
    padding-left: 30px;
}

.timeline-content span {
    color: #94a3b8;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.timeline-content h3 {
    margin: 6px 0 10px;

    color: #0f172a;

    font-size: 20px;
}

.timeline-content p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.8;
}

/* =========================================================
   VISION
========================================================= */

.vision-section {
    padding: 110px 0;

    background: #f8fafc;
}

.vision-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 20px;
}

.vision-card,
.mission-card {
    padding: 40px;

    border-radius: 22px;
}

.vision-main {
    position: relative;

    overflow: hidden;

    background: #064e3b;

    color: white;
}

.vision-number {
    position: absolute;

    top: 25px;

    right: 30px;

    color: rgba(255, 255, 255, 0.12);

    font-size: 70px;

    font-weight: 800;
}

.vision-icon {
    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 25px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.1);

    font-size: 23px;
}

.vision-main > span,
.mission-header span {
    color: #6ee7b7;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}

.vision-main h3 {
    margin: 15px 0;

    max-width: 500px;

    color: white;

    font-size: 27px;

    line-height: 1.45;
}

.vision-main p {
    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;

    line-height: 1.8;
}

/* =========================================================
   MISSION
========================================================= */

.mission-card {
    background: white;

    border: 1px solid #e2e8f0;
}

.mission-header {
    display: flex;

    gap: 18px;

    align-items: center;

    padding-bottom: 25px;

    border-bottom: 1px solid #e2e8f0;
}

.mission-header .vision-icon {
    flex-shrink: 0;

    margin: 0;

    background: #ecfdf5;
}

.mission-header h3 {
    margin: 4px 0 0;

    color: #0f172a;

    font-size: 21px;
}

.mission-list {
    display: flex;

    flex-direction: column;

    margin-top: 8px;
}

.mission-item {
    display: grid;

    grid-template-columns: 40px 1fr;

    gap: 10px;

    padding: 16px 0;

    border-bottom: 1px solid #f1f5f9;
}

.mission-item:last-child {
    border-bottom: 0;
}

.mission-item > span {
    color: #16a34a;

    font-size: 11px;

    font-weight: 800;
}

.mission-item p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}

/* =========================================================
   GOVERNMENT
========================================================= */

.government-section {
    padding: 110px 0;

    background: white;
}

/* =========================================================
   LEADER
========================================================= */

.leader-profile {
    display: grid;

    grid-template-columns: 260px 1fr;

    max-width: 850px;

    margin: 0 auto 35px;

    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 22px;

    background: #f8fafc;
}

.leader-photo {
    height: 310px;

    overflow: hidden;
}

.leader-photo img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.leader-profile:hover .leader-photo img {
    transform: scale(1.05);
}

.leader-info {
    padding: 40px;
}

.leader-info > span {
    color: #16a34a;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.leader-info h3 {
    margin: 8px 0 15px;

    color: #0f172a;

    font-size: 29px;
}

.leader-info p {
    max-width: 550px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.8;
}

.leader-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;
}

.leader-meta span {
    padding: 8px 12px;

    border-radius: 8px;

    background: white;

    color: #64748b;

    font-size: 11px;
}

/* =========================================================
   OFFICIALS
========================================================= */

.official-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.official-card {
    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    background: white;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.official-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.official-photo {
    height: 230px;

    overflow: hidden;

    background: #f1f5f9;
}

.official-photo img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.official-card:hover .official-photo img {
    transform: scale(1.06);
}

.official-info {
    padding: 18px;
}

.official-info span {
    display: block;

    margin-bottom: 5px;

    color: #16a34a;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.official-info strong {
    color: #0f172a;

    font-size: 14px;
}

/* =========================================================
   TERRITORY
========================================================= */

.territory-section {
    padding: 110px 0;

    background: #f8fafc;
}

.territory-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: center;
}

.territory-content h2 {
    margin: 5px 0 20px;

    color: #0f172a;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;
}

.territory-content h2 span {
    display: block;

    color: #16a34a;
}

.territory-content > p {
    max-width: 520px;

    color: #64748b;

    line-height: 1.8;
}

.territory-list {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}

.territory-list > div {
    min-width: 90px;

    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: white;

    text-align: center;
}

.territory-list strong {
    display: block;

    color: #15803d;

    font-size: 25px;
}

.territory-list span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 11px;
}

/* =========================================================
   MAP
========================================================= */

.map-placeholder {
    position: relative;

    height: 400px;

    overflow: hidden;

    border: 1px solid #dbeafe;

    border-radius: 25px;

    background: #e2f3e9;
}

.map-grid {
    position: absolute;

    inset: 0;

    opacity: 0.45;

    background-image: linear-gradient(
            45deg,
            rgba(22, 163, 74, 0.08) 25%,
            transparent 25%
        ),
        linear-gradient(-45deg, rgba(22, 163, 74, 0.06) 25%, transparent 25%);

    background-size: 55px 55px;
}

.map-center {
    position: absolute;

    left: 50%;

    top: 50%;

    padding: 17px 22px;

    border: 1px solid #bbf7d0;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);

    text-align: center;

    transform: translate(-50%, -50%);
}

.map-center strong {
    display: block;

    color: #0f172a;

    font-size: 14px;
}

.map-center span {
    display: block;

    margin-top: 4px;

    color: #64748b;

    font-size: 11px;
}

.map-pin {
    position: absolute;

    z-index: 2;

    font-size: 25px;

    animation: pinFloat 2.5s ease-in-out infinite;
}

.pin-1 {
    top: 25%;

    left: 25%;
}

.pin-2 {
    top: 30%;

    right: 25%;

    animation-delay: 0.5s;
}

.pin-3 {
    bottom: 22%;

    left: 42%;

    animation-delay: 1s;
}

@keyframes pinFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* =========================================================
   CTA
========================================================= */

.profile-cta {
    padding: 100px 0;

    background: linear-gradient(135deg, #065f46, #047857);

    text-align: center;
}

.profile-cta-content {
    max-width: 700px;

    margin: auto;
}

.profile-cta-content > span {
    color: #86efac;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}

.profile-cta h2 {
    margin: 8px 0 18px;

    color: white;

    font-size: clamp(32px, 5vw, 50px);

    line-height: 1.2;
}

.profile-cta p {
    color: rgba(255, 255, 255, 0.7);

    font-size: 14px;

    line-height: 1.8;
}

.cta-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}

.profile-btn-white,
.profile-btn-outline {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 750;

    text-decoration: none;

    transition: transform 0.25s ease, background 0.25s ease;
}

.profile-btn-white {
    color: #065f46;

    background: white;
}

.profile-btn-white:hover {
    transform: translateY(-3px);

    background: #ecfdf5;
}

.profile-btn-outline {
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.08);
}

.profile-btn-outline:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
    .profile-about-grid,
    .territory-grid {
        gap: 45px;
    }

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

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

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {
    .profile-hero {
        min-height: 550px;
    }

    .profile-hero-content {
        padding: 70px 0;
    }

    .profile-about {
        padding: 75px 0;
    }

    .profile-about-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .profile-about-visual {
        max-width: 550px;

        margin: auto;
    }

    .profile-highlight {
        padding: 60px 0;
    }

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

    .history-section,
    .vision-section,
    .government-section,
    .territory-section {
        padding: 75px 0;
    }

    /* timeline */

    .timeline::before {
        left: 8px;

        transform: none;
    }

    .timeline-item {
        display: grid;

        grid-template-columns: 30px 1fr;

        min-height: auto;

        padding-bottom: 40px;
    }

    .timeline-year {
        grid-column: 2;

        grid-row: 1;

        padding: 0 0 5px;

        text-align: left;

        font-size: 20px;
    }

    .timeline-dot {
        grid-column: 1;

        grid-row: 1 / span 2;

        margin: 4px 0 0;

        transform: translateX(0);
    }

    .timeline-content {
        grid-column: 2;

        padding: 0;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    /* government */

    .leader-profile {
        grid-template-columns: 1fr;
    }

    .leader-photo {
        height: 350px;
    }

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

    /* territory */

    .territory-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .map-placeholder {
        height: 330px;
    }

    /* CTA */

    .cta-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .profile-btn-white,
    .profile-btn-outline {
        width: 100%;
    }
}

/* =========================================================
   MOBILE SMALL
========================================================= */

@media (max-width: 500px) {
    .profile-hero {
        min-height: 570px;
    }

    .profile-hero h1 {
        font-size: 39px;
    }

    .profile-hero p {
        font-size: 14px;
    }

    .about-floating-card {
        left: 5px;

        bottom: 25px;
    }

    .about-decoration {
        width: 100px;

        height: 100px;
    }

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

    .official-photo {
        height: 280px;
    }

    .territory-list {
        gap: 7px;
    }

    .territory-list > div {
        min-width: 0;

        flex: 1;

        padding: 13px 7px;
    }

    .vision-card,
    .mission-card {
        padding: 28px 22px;
    }
}
