/* common font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/*blog site logo font*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

/*create blog preveiw title font*/
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

html {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

:root {
    /* Legacy variables (DO NOT REMOVE until fully refactored) */
    --themec: #E67835;
    --lightgrey: #121212;
    --inputgrey: #e6e6e6;
    --dm-bg: #0d0d0d;
    --dm-text: #e0e0e0;
    --orangetambang: #E67835;

    /* --- NEW LIGHT MODE DESIGN SYSTEM --- */
    /* Brand Colors */
    --color-primary: #E67835; /* Oranye HMTA */
    --color-primary-dark: #cc6024;
    
    /* Vibe: Volcanic Ash Light */
    --color-bg-main: #F8F9FA; /* Sangat terang, abu-abu putih */
    --color-bg-surface: #FFFFFF; /* Untuk card / container */
    --color-bg-alt: #EAECEF; /* Abu vulkanik terang (sekunder) */
    
    /* Text Colors */
    --color-text-main: #1A1D20; /* Hitam pekat / Batubara */
    --color-text-muted: #5A5F68;
    
    /* Borders & Accents */
    --color-border: #D1D5DB;
    
    /* The 8px Grid System */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
    --spacing-6: 48px;
    --spacing-8: 64px;
    --spacing-10: 80px;

    /* Shapes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    /* Shadows for Light Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Global Container System --- */
.container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
}

.container-sm {
    width: 100%;
    /* max-width: 900px; */
    margin-left: auto;
    margin-right: auto;
    /* padding-left: var(--spacing-4);
    padding-right: var(--spacing-4); */
}

/* --- Breakpoints ---
   Mobile (Portrait): up to 480px
   Tablets: 481px - 768px
   Laptops/Desktops: 769px - 1279px
   Large screens: 1280px+
*/

/* Mobile (Portrait) */
@media (max-width: 480px) {
    .container, .container-sm {
        padding-left: var(--spacing-2);
        padding-right: var(--spacing-2);
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .container, .container-sm {
        padding-left: var(--spacing-3);
        padding-right: var(--spacing-3);
    }
}

/* Laptops/Desktops */
@media (min-width: 769px) and (max-width: 1279px) {
    .container, .container-sm {
        padding-left: var(--spacing-6);
        padding-right: var(--spacing-6);
    }
}

/* Large Screens */
@media (min-width: 1280px) {
    .container, .container-sm {
        padding-left: var(--spacing-8);
        padding-right: var(--spacing-8);
    }
}

/* --- Utility Classes --- */
.bg-pattern-a {
    background-color: var(--color-bg-main);
}

.bg-pattern-b {
    background-color: var(--color-bg-surface);
}

* {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Transition Effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dm-bg);
    color: var(--dm-text);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-transition.fade-out {
    opacity: 0;
    visibility: hidden;
}

.pulsing-logo {
    width: 120px;
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 15px #E67835);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Swup Transition Class */
.transition-fade {
    transition: opacity 0.4s ease;
    opacity: 1;
}
html.is-animating .transition-fade {
    opacity: 0;
}

/* PDF Modal Styles */
.pdf-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border-left: 4px solid #ff3b1d;
    transition: all 0.3s ease;
    /* font-weight: bold; */
}
.pdf-btn:hover {
    background: #2a2a2a;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 59, 29, 0.2);
}
.pdf-btn i {
    color: #ff3b1d;
    font-size: 1.2rem;
}

.modal-pdf {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}
.modal-pdf-content {
    background-color: #121212;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #333;
    width: 90%;
    max-width: 1000px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.close-pdf {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-pdf:hover, .close-pdf:focus {
    color: #ff3b1d;
    text-decoration: none;
}

.flexc {
    display: flex;
    justify-content: center;
    align-items: center;
}

.noscroll {
    overflow: hidden;
    transition: 0.2s;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    color-scheme: only light;
}