/* .container-sejarah {
    width: 100%;
    display: grid;
}

.sejarah-card {
    width: 250px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.4);
} */

/* IMPROVED SEJARAH GAIN STYLES - REVISED */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.about-us {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Image Section */
.image-section {
    position: relative;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 1rem;
    filter: blur(20px);
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-wrapper:hover .image-glow {
    opacity: 0.3;
}

.image-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge {
    display: inline-block;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1f2937;
    margin: 0;
}

.gradient-text {
    display: block;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.paragraph {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    text-align: justify;
}

.highlight-year {
    font-weight: 600;
    color: #3b82f6;
}

.commitment-box {
    background: linear-gradient(45deg, #eff6ff, #f3e8ff);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #3b82f6;
    margin: 1rem 0;
}

.commitment-text {
    font-weight: 500;
    color: #1f2937;
    margin: 0;
    font-size: 1.125rem;
}

.commitment-label {
    color: #3b82f6;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-number.blue {
    color: #3b82f6;
}

.stat-number.purple {
    color: #8b5cf6;
}

.stat-number.green {
    color: #10b981;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-us {
        padding: 2rem 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .paragraph {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .image-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .about-us {
        padding: 1.5rem 0.75rem;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .commitment-box {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Animation untuk loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section > * {
    animation: fadeInUp 0.6s ease forwards;
}

.content-section > *:nth-child(1) {
    animation-delay: 0.1s;
}

.content-section > *:nth-child(2) {
    animation-delay: 0.2s;
}

.content-section > *:nth-child(3) {
    animation-delay: 0.3s;
}

.image-section {
    animation: fadeInUp 0.6s ease forwards;
}

/* PERJALANAN PERUSAHAAAN KAMI */
.timeline-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.timeline-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-wrapper {
    position: relative;
    padding: 10rem 0;
}

/* Enhanced timeline line with gradient */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 250px;
    opacity: 0;
    transform: translateY(
        50px
    ); /* dari bawah ke atas, bisa ganti jadi translateX(-50px) untuk dari kiri */
    transition: all 0.8s ease;
}

/* CLASS AKTIF YANG DITAMBAHKAN VIA JS */
.timeline-item.show {
    opacity: 1;
    transform: translateY(0); /* atau translateX(0) */
}

/* DELAY BERURUTAN SUPAYA MUNCULNYA BERTAHAP */
.timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}
.timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}
.timeline-item:nth-child(3) {
    transition-delay: 0.3s;
}
.timeline-item:nth-child(4) {
    transition-delay: 0.4s;
}
.timeline-item:nth-child(5) {
    transition-delay: 0.5s;
}

/* Enhanced text boxes - removed pseudo elements that caused lines */
.text-box {
    width: 220px;
    min-height: 170px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    /* Remove any pseudo elements that might create lines */
}

.text-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.text-box span {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Fixed positioning for text boxes */
.text-box-top {
    position: absolute;
    top: -210px;
}

.text-box-bottom {
    position: absolute;
    bottom: -210px;
}

/* Enhanced year labels with better positioning */
.year-label {
    font-size: 22px;
    color: #2d3748;
    font-weight: 700;
    position: absolute;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

/* Better positioning to avoid overlap */
.year-label-top {
    top: -70px;
}

.year-label-bottom {
    bottom: -70px;
}

/* Enhanced circular nodes */
.timeline-node {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #667eea;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-node:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.timeline-node img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Add subtle connecting dots instead of lines */
.timeline-item::after {
    content: "";
    position: absolute;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.timeline-item:nth-child(odd)::after {
    top: -100px;
}

.timeline-item:nth-child(even)::after {
    bottom: -100px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .timeline-items {
        flex-wrap: wrap;
        gap: 4rem;
    }

    .timeline-item {
        max-width: 300px;
    }

    .text-box {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        margin: 1rem;
        padding: 2rem 1rem;
    }

    .timeline-title {
        font-size: 2rem;
    }

    .timeline-wrapper {
        padding: 4rem 0;
    }

    .timeline-items {
        flex-direction: column;
        gap: 5rem;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
        background: linear-gradient(180deg, #667eea, #764ba2, #667eea);
    }

    .timeline-item {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        align-items: center;
        max-width: none;
        gap: 1.5rem;
    }

    /* Remove pseudo elements on mobile */
    .timeline-item::after {
        display: none;
    }

    .text-box-top,
    .text-box-bottom {
        position: static;
        margin: 0;
        order: 2;
    }

    .year-label-top,
    .year-label-bottom {
        position: static;
        margin: 0;
        order: 1;
        font-size: 18px;
        background-color: transparent;
        box-shadow: none;
        padding: 0.25rem 0.5rem;
    }

    .timeline-node {
        order: 3;
    }

    .text-box {
        width: 220px;
        min-height: 100px;
        padding: 1rem;
    }

    .timeline-node {
        width: 60px;
        height: 60px;
    }

    .timeline-node img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding: 1.5rem 1rem;
    }

    .timeline-title {
        font-size: 1.8rem;
    }

    .timeline-items {
        gap: 4rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .text-box {
        width: 200px;
        padding: 1rem;
        order: 2;
    }

    .year-label-top,
    .year-label-bottom {
        order: 1;
        margin-bottom: 0.5rem;
    }

    .timeline-node {
        order: 3;
        margin-top: 0.5rem;
    }

    .text-box span {
        font-size: 13px;
    }

    .timeline-node {
        width: 50px;
        height: 50px;
    }

    .timeline-node img {
        width: 30px;
        height: 30px;
    }

    .year-label {
        font-size: 16px;
    }
}
