/* PT. BATAM SAMUDERA PASE - GLOBAL STYLES
    Main Colors: Industrial Blue (#013d58) & Safety Yellow (#ffb800)
    Updated: Mobile Friendly & Optimized for Hero Background
*/

/* 1. VARIABLE & ROOT */
:root {
    --primary: #013d58;    /* Biru Navy Industrial */
    --secondary: #026da6;  /* Biru Steel */
    --accent: #ffb800;      /* Kuning Emas / Safety */
    --dark: #0a1118;       /* Hitam Arang */
    --light: #f8fafc;      /* Abu-abu Sangat Muda */
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 2. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* 3. REUSABLE COMPONENTS */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

.section-tag {
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 25px;
}

.section-title span {
    color: var(--accent);
}

/* 4. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--primary); }

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 184, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* 5. HELPER CLASSES */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-dark { background-color: var(--dark); }
.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--light); }

/* 6. HERO OVERRIDE & FIXES */
.hero-section {
    /* Menggunakan gambar Barelang langsung jika gambar lokal tidak muncul */
    background-image: url('https://images.unsplash.com/photo-1627137356230-0a71646274e1?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main-hero-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    object-fit: cover;
    min-height: 300px;
    background: rgba(255,255,255,0.1); /* Fallback warna */
}

/* 7. SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* 8. NAVBAR BEHAVIOR */
header.scrolled {
    background: rgba(1, 61, 88, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 9. RESPONSIVE MEDIA QUERIES (Mobile Friendly) */
@media (max-width: 992px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-section {
        background-attachment: scroll; /* Matikan parallax di mobile untuk performa */
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%; /* Tombol lebar penuh di mobile agar mudah ditekan */
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    /* Memperbaiki tampilan grid di mobile jika belum diatur di komponen */
    .services-grid, .metal-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .section-tag {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* 10. ANIMATION GLOABL */
[data-aos] {
    pointer-events: none;
}