/* ============================================
   PT POWERINDO BIRU LESTARI - CUSTOM STYLES
   Bootstrap 5 + Custom CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --color-primary:    #1A3A5C;
    --color-accent:     #2196F3;
    --color-bg:         #FFFFFF;
    --color-foreground: #0D2B4E;
    --color-muted:      #F8FAFC;
    --color-border:     #E2E8F0;
    --hairline-border:  0.5px;
    --hydraulic-ease:   cubic-bezier(0.19, 1, 0.22, 1);

    /* Bootstrap overrides */
    --bs-primary:       #1A3A5C;
    --bs-link-color:    #2196F3;
    --bs-font-sans-serif: 'Inter', sans-serif;
}

/* ---- BASE ---- */
*, *::before, *::after {
    scrollbar-width: thin;
    scrollbar-color: #bfc5ce transparent;
    box-sizing: border-box;
}
*::-webkit-scrollbar       { width: 6px; }
*::-webkit-scrollbar-thumb { background-color: #bfc5ce; border-radius: 9999px; }
*::-webkit-scrollbar-track { background-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-foreground);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-headline, .font-heading {
    font-family: 'Outfit', sans-serif;
    text-wrap: balance;
}

/* ---- TYPOGRAPHY ---- */
.hero-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
}

.section-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

/* ---- NAVIGATION ---- */
#mainNav {
    background: rgba(255,255,255,0.90) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--hairline-border) solid var(--color-border);
    height: 80px;
    transition: box-shadow 0.3s ease;
}

#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(26,58,92,0.08);
}

#mainNav .navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

#mainNav .navbar-brand span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: #1A3A5C !important;
}

.nav-link-custom {
    position: relative;
    color: var(--color-foreground) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.25rem 0 !important;
    transition: color 0.3s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after { width: 100%; }

.nav-link-custom:hover { color: var(--color-primary) !important; }

/* ---- BUTTONS ---- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: white !important;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(33,150,243,0.39);
    transition: all 0.3s var(--hydraulic-ease);
    text-decoration: none;
}

.btn-cta:hover {
    box-shadow: 0 6px 20px 0 rgba(33,150,243,0.45);
    transform: translateY(-2px);
    background: #1565C0;
    color: white !important;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: white !important;
    font-weight: 600;
    border-radius: 0.375rem;
    background: transparent;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.10);
    color: white !important;
}

/* ---- HERO SECTION ---- */
#hero {
    min-height: 100vh;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.60);
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slow-zoom 20s infinite alternate linear;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-eyebrow {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(33,150,243,0.20);
    border: 1px solid rgba(33,150,243,0.30);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.5;
    animation: bounce 1.8s infinite;
}

/* ---- WORD REVEAL ANIMATION ---- */
.word-reveal-parent {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    padding-bottom: 0.15em;
    margin-right: 0.3em;
}

.animate-word-enter {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s var(--hydraulic-ease);
}

.hero-headline.is-visible .animate-word-enter {
    transform: translateY(0);
}

/* ---- SCROLL REVEAL ---- */
.animate-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--hydraulic-ease), transform 0.8s var(--hydraulic-ease);
}

.animate-enter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- REVEAL CONTAINER (Image wipe) ---- */
.reveal-container {
    position: relative;
    overflow: hidden;
}

.reveal-mask {
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    z-index: 10;
    transition: transform 1s var(--hydraulic-ease);
}

.reveal-container.is-visible .reveal-mask {
    transform: translateX(101%);
}

.reveal-container img {
    transform: scale(1.1);
    transition: transform 1.2s var(--hydraulic-ease);
}

.reveal-container.is-visible img {
    transform: scale(1);
}

/* ---- INDUSTRIAL CARD ---- */
.industrial-card {
    background: var(--color-muted);
    border: var(--hairline-border) solid var(--color-border);
    box-shadow: 0 10px 30px -10px rgba(26,58,92,0.10);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--hydraulic-ease);
}

.industrial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/brushed-alum.png');
    opacity: 0.03;
    pointer-events: none;
}

.industrial-card:hover {
    box-shadow: 0 20px 40px -15px rgba(26,58,92,0.15);
    transform: translateY(-4px);
}

/* ---- HAIRLINE DIVIDER ---- */
.hairline-divider {
    height: var(--hairline-border);
    background: var(--color-border);
    width: 100%;
    display: block;
}

/* ---- SECTION ACCENT LINE ---- */
.section-accent-line {
    width: 3rem;
    height: 4px;
    background: var(--color-accent);
    display: block;
    margin-bottom: 2rem;
}

/* ---- ABOUT SECTION ---- */
#about {
    padding: 7rem 0;
    background: white;
    color: #0f172a;
}

/* ---- VISION/MISSION SECTION ---- */
#vision {
    padding: 7rem 0;
    background: var(--color-muted);
    border-top: var(--hairline-border) solid var(--color-border);
    border-bottom: var(--hairline-border) solid var(--color-border);
}

.vision-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26,58,92,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: background 0.5s ease, color 0.5s ease;
}

.industrial-card:hover .vision-icon-wrap {
    background: var(--color-accent);
    color: white;
}

.industrial-card:hover .vision-icon-wrap svg {
    stroke: white;
}

/* ---- LEADERSHIP SECTION ---- */
#leadership {
    padding: 7rem 0;
    background: white;
    color: #0f172a;
}

.leader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

@media (max-width: 768px) {
    .leader-grid { grid-template-columns: 1fr; }
}

.leader-card {
    background: white;
    padding: 3rem;
}

.leader-avatar {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.leader-role {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

/* ---- GOVERNANCE SECTION ---- */
#governance {
    margin-top: 7rem;
}

.governance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

@media (max-width: 992px) { .governance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .governance-grid { grid-template-columns: 1fr; } }

.governance-item {
    background: white;
    padding: 2.5rem;
}

.governance-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    display: inline-block;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ---- ORG CHART SECTION ---- */
.section-orgchart {
    padding: 7rem 0;
    background: var(--color-muted);
    border-top: 1px solid var(--color-border);
}

.info-callout {
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    background: white;
    box-shadow: 0 2px 8px rgba(26,58,92,0.06);
}

/* ---- CONTACT FORM SECTION ---- */
.section-form {
    padding: 7rem 0;
    background: white;
}

.form-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

@media (max-width: 992px) { .form-card { grid-template-columns: 1fr; } }

.form-card-left {
    background: var(--color-primary);
    color: white;
    padding: 4rem 5rem;
}

.form-card-right {
    padding: 4rem 5rem;
    background: var(--color-muted);
}

@media (max-width: 576px) {
    .form-card-left,
    .form-card-right { padding: 2.5rem 1.5rem; }
}

.step-badge {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.form-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

.form-field-input {
    width: 100%;
    background: var(--color-muted);
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--color-foreground);
    transition: border-color 0.3s ease;
    outline: none;
}

.form-field-input:focus {
    border-bottom-color: var(--color-accent);
    background: #f0f6ff;
}

.form-card-right .form-field-input {
    background: white;
}

.hover-zoom-img {
    transition: transform 0.5s ease;
}
.hover-zoom-img:hover {
    transform: scale(1.1); /* Gambar membesar 10% */
}

/* ---- CTA / CONTACT SECTION ---- */
#contact {
    padding: 8rem 0;
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image: linear-gradient(#ffffff 1px, transparent 1px),
                      linear-gradient(90deg, #ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.contact-email-link {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-accent);
    word-break: break-all;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email-link:hover { color: white; }

.contact-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.qr-card {
    background: white;
    padding: 1.5rem;
    max-width: 280px;
    box-shadow: 0 10px 30px -10px rgba(26,58,92,0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--hydraulic-ease);
}

.qr-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/brushed-alum.png');
    opacity: 0.03;
    pointer-events: none;
}

.qr-card:hover .qr-image { filter: grayscale(0) !important; }

.qr-image {
    width: 100%;
    filter: grayscale(1);
    transition: filter 0.7s ease;
}

.qr-label-top {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: center;
    display: block;
    margin-bottom: 1rem;
}

.qr-label-bottom {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    text-align: center;
    display: block;
    margin-top: 1rem;
}

/* ---- FOOTER ---- */
footer {
    padding: 5rem 0;
    background: var(--color-primary);
    color: white;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.footer-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.footer-text { color: rgba(255,255,255,0.60); font-size: 0.875rem; line-height: 1.75; }
.footer-link { color: rgba(255,255,255,0.40); font-size: 0.75rem; text-decoration: none; transition: color 0.3s ease; }
.footer-link:hover { color: white; }
.footer-divider { border-color: rgba(255,255,255,0.10) !important; }
.footer-copyright { color: rgba(255,255,255,0.40); font-size: 0.75rem; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.60);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-contact-item svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

/* ---- HAMBURGER MOBILE ---- */
.navbar-toggler {
    border: 1px solid rgba(26,58,92,0.25) !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 4px !important;
}

.navbar-toggler:focus { box-shadow: none !important; }

/* ---- ALERT / FLASH MESSAGES ---- */
.alert-flash {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    z-index: 9999;
    max-width: 360px;
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ---- KEYFRAMES ---- */
@keyframes slow-zoom {
    from { transform: scale(1);   }
    to   { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);    }
    50%       { transform: translateX(-50%) translateY(-10px); }
}
/* Mencegah scroll snapping otomatis di seluruh halaman */
html, body {
    scroll-snap-type: none !important;
}

* {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}