:root {
    --color-origin-red: #A60321;
    --color-origin-maroon: #40010D;
    --color-origin-soft-gray: #f8f9fa;
    --color-origin-soft-red: #b33951;
    --color-origin-ultra-light-red: rgba(179, 57, 81, 0.08);
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

/* Navbar Custom */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
}

.navbar-brand, .nav-link {
    color: var(--color-origin-maroon) !important;
    font-weight: 600;
    position: relative; 
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-origin-red);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%); 
}

.nav-link:hover {
    color: var(--color-origin-red) !important;
}
.nav-link:hover::after {
    width: 80%; 
}

.nav-link.active {
    color: var(--color-origin-red) !important;
}
.nav-link.active::after {
    width: 80%; 
}

.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-origin-maroon);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Efek saat menu dibuka */
.navbar-toggler[aria-expanded="true"] .line-1 { transform: translateY(8px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .line-2 { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .line-3 { transform: translateY(-8px) rotate(-45deg); }

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    background: radial-gradient(circle at top right, rgba(166, 3, 33, 0.04), transparent), radial-gradient(circle at bottom left, rgba(64, 1, 13, 0.02), transparent);
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}
.hero-image-container {
    position: relative;
    z-index: 1;
}
.hero-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(64, 1, 13, 0.06);
    border: 1px solid rgba(179, 57, 81, 0.1);
}
.hero-img-backdrop {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--color-origin-ultra-light-red);
    border-radius: 30px;
    z-index: -1;
}
.hero-decoration-1, .hero-decoration-2 {
    width: min(50vmax, 500px);
    height: min(50vmax, 500px);
    left: 0;
    right: auto;
    transform: translateX(-25%);
}
.hero-decoration-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(166, 3, 33, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    border-radius: 50%;
    z-index: 0;
}
.hero-decoration-2 {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 2, 20, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.btn-origin-primary {
    background-color: var(--color-origin-red);
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-origin-primary:hover {
    background-color: var(--color-origin-maroon);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 3, 33, 0.15);
}
.btn-outline-origin {
    border: 2px solid var(--color-origin-red);
    color: var(--color-origin-red);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-outline-origin:hover {
    background-color: var(--color-origin-red);
    color: white;
    transform: translateY(-2px);
}

/* Section Title Styling */
.section-title {
    color: var(--color-origin-maroon);
    font-weight: 700;
    position: relative;
    text-align: center;
    width: fit-content;
    margin: 0 auto 10px;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--color-origin-red);
    margin: 10px auto 0;
}

/* Modern Grid History Timeline */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .history-grid { grid-template-columns: repeat(2, 1fr); }
    .history-card-span { grid-column: span 2; }
}
@media (min-width: 1200px) {
    .history-grid { grid-template-columns: repeat(3, 1fr); }
    .history-card-span { grid-column: span 3; }
}
.history-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 24px;
    padding: 32px;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(64, 1, 13, 0.04);
    border-color: rgba(179, 57, 81, 0.15);
}
.history-number {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 7.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-origin-ultra-light-red);
    user-select: none;
    z-index: 0;
    font-feature-settings: "tnum";
}
.history-card-body {
    position: relative;
    z-index: 1;
}
.phase-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-origin-soft-red);
    background: var(--color-origin-ultra-light-red);
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
}
.history-date-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-origin-maroon);
    border-left: 3px solid var(--color-origin-soft-red);
    padding-left: 10px;
    margin-bottom: 12px;
}

/* Visi Misi */
.vision-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-origin-ultra-light-red) 100%);
    border: 1px solid rgba(179, 57, 81, 0.1) !important;
    border-radius: 24px;
}
.mission-grid-card {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
}
.mission-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(64, 1, 13, 0.04);
    border-color: rgba(179, 57, 81, 0.15);
}
.mission-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--color-origin-ultra-light-red);
    color: var(--color-origin-soft-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Struktur Organisasi */
.member-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
}
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(166, 3, 33, 0.08);
    border-color: rgba(166, 3, 33, 0.1);
}
.member-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
    transition: 0.4s;
}
.member-card:hover .member-img-wrapper {
    border-color: var(--color-origin-red);
}
.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    transition: 0.4s;
}
.member-card:hover img {
    filter: grayscale(0%);
}
.member-name {
    color: var(--color-origin-maroon);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.member-role {
    color: var(--color-origin-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lazy-member-img {
    opacity: 0.35;
    transform: scale(1.03);
    filter: blur(6px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        filter 0.5s ease;
}

.lazy-member-img.loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.member-name-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.member-name-link:hover {
    opacity: 0.7;
}

/* Social Media Icons Style */
.member-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}
.social-link {
    color: #aaa;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-link:hover {
    color: var(--color-origin-soft-red);
    transform: translateY(-2px);
}

/* Conference Section Styling */
.conf-section {
    background: linear-gradient(to bottom, #ffffff, #fff9fa);
    position: relative;
}
.conf-card {
    border: none;
    border-radius: 25px;
    background: white;
    box-shadow: 0 15px 50px rgba(64, 1, 13, 0.05);
    overflow: hidden;
}
.conf-header {
    background-color: var(--color-origin-maroon);
    color: white;
    padding: 40px;
    position: relative;
}

/* Timeline Minimalis */
.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 20px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f0f0f0;
    z-index: 0;
}
.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: white;
    padding: 0 10px;
}
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--color-origin-soft-red);
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.timeline-year {
    display: block;
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}
.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-origin-maroon);
}
.timeline-label {
    font-size: 0.75rem;
    color: #666;
}
@media (max-width: 768px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
}