/* =======================================================
   TABLE OF CONTENTS:
   1. GLOBAL / REUSABLE COMPONENTS & BUTTONS
   2. HERO SECTION
      2.1 Layout & Containers
      2.2 Media (Video / Slide Background)
      2.3 Overlay Branding & Headings (Badge, Title, Highlight)
      2.4 Bottom Area (Subtagline, Desc, CTA)
      2.5 Intro Text Fade Animations
   3. ABOUT SECTION
   4. PRODUCT & PORTFOLIO SECTION
   5. RECENT CLIENT SECTION (MARQUEE)
   6. CONTACT SECTION
   7. RESPONSIVE / MEDIA QUERIES (MOBILE)
   ======================================================= */


/* =======================================================
   1. GLOBAL / REUSABLE COMPONENTS & BUTTONS
   ======================================================= */

/* Primary Button (Standard) */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: var(--silhouette-border);
    box-shadow: var(--iron-shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--iron-shadow-md);
    transform: translateY(-2px);
}

/* Dark Mode: Primary Button */
[data-bs-theme="dark"] .btn-primary {
    color: #07090e !important;
    background: var(--primary-color);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

[data-bs-theme="dark"] .btn-primary:hover {
    background: #60a5fa;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Small Variant Buttons */
.btn-hero-sm,
.btn-sm-custom {
    display: inline-block;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff !important;
    background-color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    border: var(--silhouette-border);
    box-shadow: var(--iron-shadow-sm);
    transition: all 0.25s ease;
}

[data-bs-theme="dark"] .btn-hero-sm,
[data-bs-theme="dark"] .btn-sm-custom {
    color: #07090e !important;
    background-color: var(--primary-color);
}

.btn-hero-sm:hover,
.btn-sm-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--iron-shadow-md);
}

/* Button Container Wrappers */
.hero-btn-wrap,
.btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}


/* =======================================================
   2. HERO SECTION
   ======================================================= */

/* --- 2.1 Layout & Containers --- */
.hero-section,
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-media-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- 2.2 Media (Video / Slide Background) --- */
.door-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.door-wrapper video,
.door-wrapper .hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.door-wrapper .hero-slide-img {
    opacity: 0.85;
    transition: opacity 0.5s ease-in-out;
}

/* =======================================================
   2.3 OVERLAY BRANDING (LEFT-ALIGNED EXPERIENTIAL HERO)
   ======================================================= */

.hero-media-overlay.hero-align-left {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    max-width: 1140px;
    padding: 0 2rem;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Container Konten dengan Laser Line di Sisi Kiri */
.hero-brand-stage {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 820px;
}

/* Garis Laser Presisi Baja */
.brand-laser-line {
    width: 4px;
    background: linear-gradient(180deg, #38bdf8 0%, rgba(56, 189, 248, 0.4) 70%, transparent 100%);
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.8), 0 0 30px rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}

/* Alur Teks */
.brand-content-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 1. Kicker: manufacturing by */
.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.35rem;
}

.brand-kicker .pulse-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: beaconPulse 1.8s infinite ease-in-out;
}

.brand-kicker .connector-txt {
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #38bdf8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* 2. DECIMA: Menggunakan Font Serif Klasik Sesuai Karakter Logo Asli */
.brand-decima-title {
    margin: 0;
    line-height: 0.9;
    font-family: 'Playfair Display', 'Bodoni MT', 'Didot', 'Times New Roman', serif !important;
}

.text-steel-plasma {
    font-family: 'Playfair Display', 'Bodoni MT', 'Didot', 'Times New Roman', serif !important;
    font-size: clamp(4rem, 10.5vw, 7.5rem);
    font-weight: 900; /* Tebal maksimal agar serif kakinya muncul tegas */
    letter-spacing: 0.04em; /* Karakter logo serif butuh spasi sedikit renggang */
    text-transform: uppercase;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 70%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95))
            drop-shadow(0 0 35px rgba(56, 189, 248, 0.35));
    transition: filter 0.4s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: steelLuster 7s linear infinite;
    cursor: default;
}

.text-steel-plasma:hover {
    transform: translateX(6px);
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.95))
            drop-shadow(0 0 45px rgba(56, 189, 248, 0.7));
}

/* 3. CV. CIPTA SARANA PRIMA: Tegas & Berkarakter */
.brand-vendor-block {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.brand-vendor-block .vendor-txt {
    font-size: clamp(1.3rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f8fafc;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
}

/* 4. Subtagline Konstruksi */
.brand-sub-catch {
    font-size: clamp(0.92rem, 1.8vw, 1.12rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    margin: 0.75rem 0 0;
    max-width: 580px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Keyframes Experiential */
@keyframes steelLuster {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes beaconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.4; }
}

/* --- 2.4 Bottom Area (Subtagline, Description & CTA) --- */
.hero-bottom-area {
    position: relative;
    z-index: 2;
    background: var(--bg-main);
    width: 100%;
    padding: 1.5rem 1rem 2.5rem;
    text-align: center;
    border-top: var(--silhouette-border);
}

.hero-subtagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 auto 0.6rem;
    max-width: 650px;
}

.hero-bottom-area .hero-desc {
    max-width: 620px;
    margin: 0 auto 1.2rem;
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- 2.5 Intro Text Fade Animations --- */
.hero-text {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-company { transition-delay: 0s; }
.delay-title   { transition-delay: 0.15s; }
.delay-desc    { transition-delay: 0.3s; }
.delay-btn     { transition-delay: 0.45s; }


/* =======================================================
   3. ABOUT SECTION
   ======================================================= */
#about {
    padding: 4.5rem 0;
    background-color: var(--bg-alt) !important;
}


/* =======================================================
   4. PRODUCT & PORTOFOLIO SECTION
   ======================================================= */
#product {
    padding: 4.5rem 0;
    background-color: var(--bg-main) !important;
}

#portofolio {
    padding: 4.5rem 0;
    background-color: var(--bg-alt) !important;
}

/* Card Portfolio Grid & Carousel */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.portfolio-card,
#portfolioNewsCarousel {
    background-color: var(--card-bg) !important;
    border: var(--silhouette-border) !important;
    border-radius: 8px;
    box-shadow: var(--iron-shadow-sm) !important;
    color: var(--text-main) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-card {
    padding: 1.5rem;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--iron-shadow-md) !important;
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .portfolio-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(56, 189, 248, 0.25) !important;
}

.portfolio-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.portfolio-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* =======================================================
   5. RECENT CLIENT SECTION (MARQUEE)
   ======================================================= */
#client {
    padding: 4.5rem 0;
    background-color: var(--bg-main) !important;
}

.client-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2.5rem 0;
}

.client-marquee-track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    animation: clientScroll 30s linear infinite;
}

.client-marquee-wrapper:hover .client-marquee-track {
    animation-play-state: paused;
}

.client-logo-item img {
    height: 90px;
    max-width: 230px;
    width: auto;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.25s ease;
}

.client-logo-item img:hover {
    transform: scale(1.12);
}

@keyframes clientScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* =======================================================
   6. CONTACT SECTION
   ======================================================= */
#contact {
    padding: 4.5rem 0;
    background-color: var(--bg-alt) !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 620px;
    margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
    padding: 0.85rem 1.1rem;
    background-color: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    width: 100%;
    outline: none;
    box-shadow: var(--iron-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-bs-theme="dark"] .contact-form input:focus,
[data-bs-theme="dark"] .contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.contact-form button[type="submit"] {
    width: 100%;
}


/* =======================================================
   7. RESPONSIVE / MEDIA QUERIES (MOBILE)
   ======================================================= */
@media (max-width: 768px) {

    /* --- Hero Layout Responsive --- */
    .hero-section,
    #hero {
        min-height: calc(100vh - 75px);
    }

    .hero-media-container {
        min-height: 55vh;
        align-items: flex-end; /* Di HP teks turun ke bawah agar video pintu di tengah tetap leluasa */
        padding-bottom: 2rem;
    }

    .hero-media-overlay.hero-align-left {
        padding: 0 1.25rem;
        width: 100%;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .hero-brand-stage {
        gap: 0.9rem;
    }

    .brand-laser-line {
        width: 3px;
    }

    .text-steel-plasma {
        font-family: 'Playfair Display', 'Bodoni MT', 'Didot', 'Times New Roman', serif !important;
        font-size: 3.2rem;
        letter-spacing: 0.02em;
    }

   .brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    }
    .brand-vendor-block .vendor-txt {
        font-size: 1.15rem;
        letter-spacing: 0.08em;
    }

    .brand-sub-catch {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-top: 0.4rem;
    }

    /* --- Hero Bottom Area --- */
    .hero-bottom-area {
        padding: 1rem 1rem 1.8rem;
    }

    .hero-subtagline {
        font-size: 0.9rem;
    }
    
    /* --- General Sections Padding --- */
    #about,
    #product,
    #portofolio,
    #client,
    #contact {
        padding: 3rem 0;
    }

    /* --- Client Logo Track (Grid Mode Mobile) --- */
    .client-marquee-wrapper {
        overflow: visible !important;
        padding: 1rem 0;
    }

    .client-marquee-track {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.25rem 0.75rem !important;
        width: 100% !important;
        animation: none !important;
    }

    .desktop-dup {
        display: none !important;
    }

    .client-logo-item {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
    }

    .client-logo-item img {
        height: 42px !important;
        max-width: 100% !important;
        object-fit: contain;
    }
}