/* 
   BORNEO GEOTEC - AUTHORITATIVE FRONTEND DESIGN SYSTEM
   Strictly following DESIGN.md | Forest Black & MongoDB Green
*/

:root {
    /* Primary Palette */
    --forest-black: #001e2b;
    --mongodb-green: #00ed64;
    --dark-green: #00684a;
    
    /* Interactive */
    --action-blue: #006cfa;
    --hover-blue: #3860be;
    --teal-active: #1eaedb;
    
    /* Neutrals */
    --deep-teal: #1c2d38;
    --teal-gray: #3d4f58;
    --silver-teal: #b8c4c2;
    --light-input: #e8edeb;
    --pure-white: #ffffff;
    --black: #000000;
    --cool-gray: #5c6c75;
    
    /* Shadows */
    --forest-shadow: 0 26px 44px rgba(0, 30, 43, 0.12), 0 7px 13px rgba(0, 0, 0, 0.13);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 300; /* Design Rule: Airy reading experience */
    color: var(--black);
    background-color: var(--pure-white);
    line-height: 1.6;
}

/* --- Typography Hierarchy --- */

h1, .display-serif {
    font-family: 'Lora', serif; /* Falling back to Lora for MongoDB Value Serif authority */
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: var(--forest-black);
    margin-top: 0;
}

.bge-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mongodb-green);
    margin-bottom: 16px;
    font-family: 'Source Code Pro', monospace;
}

.tech-label {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mongodb-green);
}

/* --- Navigation (White Mode Override) --- */
.bge-header {
    background-color: var(--pure-white);
    border-bottom: 1px solid var(--silver-teal);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bge-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.bge-brand img {
    height: 48px;
    width: auto;
}

.bge-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bge-menu a {
    color: var(--forest-black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.bge-menu a:hover {
    color: var(--action-blue);
    background: rgba(0, 30, 43, 0.03);
    border-radius: 4px;
}

.bge-menu a.active {
    background-color: var(--mongodb-green);
    color: var(--forest-black) !important;
    font-weight: 700;
    border-radius: 4px;
}

/* Mobile Toggle Logic */
.bge-menu-toggle {
    display: none; /* Hide the functional checkbox */
}

.bge-menu-button {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bge-menu-button span,
.bge-menu-button span::before,
.bge-menu-button span::after {
    display: block;
    background: var(--forest-black);
    height: 2px;
    width: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.bge-menu-button span::before { content: ""; top: 8px; }
.bge-menu-button span::after { content: ""; top: -10px; }

/* Responsive Mobile Menu */
@media (max-width: 991px) {
    .bge-menu-button {
        display: block;
    }

    .bge-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--pure-white);
        flex-direction: column;
        padding: 40px 20px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 0;
    }

    .bge-menu a {
        width: 100%;
        padding: 20px;
        border-bottom: 1px solid var(--silver-teal);
        font-size: 18px;
    }

    /* Show menu when checkbox checked */
    .bge-menu-toggle:checked ~ .bge-menu {
        left: 0;
    }

    /* Transform burger to X */
    .bge-menu-toggle:checked ~ .bge-menu-button span {
        background: transparent;
    }
    .bge-menu-toggle:checked ~ .bge-menu-button span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .bge-menu-toggle:checked ~ .bge-menu-button span::after {
        transform: rotate(-45deg);
        top: -2px;
    }
}

/* --- Hero Section (Forest Dark Mode) --- */
.bge-hero {
    background-color: var(--forest-black);
    padding: 120px 0;
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.bge-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.bge-hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem); /* 96px target */
    color: var(--pure-white);
    margin-bottom: 24px;
}

.bge-hero p {
    font-size: 22px;
    color: var(--light-input);
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 300;
    line-height: 1.5;
}

.bge-hero-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 360px;
}

.bge-hero-panel div {
    display: flex;
    flex-direction: column;
}

.bge-hero-panel strong {
    color: var(--mongodb-green);
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.bge-hero-panel span {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.4;
}

.bge-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 100px; /* Pill Radius */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    text-transform: capitalize;
}

.bge-button-primary {
    background-color: var(--mongodb-green);
    color: var(--forest-black);
    border: 1px solid var(--mongodb-green);
}

.bge-button-ghost {
    border: 1px solid var(--teal-gray);
    color: var(--pure-white);
}

.bge-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 237, 100, 0.2);
}

/* --- Content Sections (Light Mode) --- */
.bge-section {
    padding: 100px 0;
}

.bge-section-light {
    background-color: var(--pure-white);
}

.bge-section-dark {
    background-color: var(--forest-black);
    color: var(--pure-white);
}

.bge-section-dark h2 {
    color: var(--pure-white);
}

.bge-section-dark .bge-feature-list span {
    color: var(--light-input);
}

.bge-section-dark .bge-split h2 {
    color: var(--pure-white);
}

.bge-section-head {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.bge-section-head h2 {
    font-size: 48px;
    font-family: 'Lora', serif;
    position: relative;
    margin: 0;
}

.bge-section-head h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--mongodb-green);
}

.bge-section-head a {
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.bge-section-head a:hover {
    color: var(--mongodb-green);
}

/* --- Feature Split --- */
.bge-split {
    display: flex;
    align-items: center;
    gap: 100px;
}

.bge-split > div {
    flex: 1;
}

.bge-split h2 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    font-family: 'Lora', serif;
}

.bge-feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bge-feature-list div {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 400;
    font-size: 18px;
}

.bge-feature-list i {
    width: 32px;
    height: 32px;
    background-color: var(--mongodb-green);
    color: var(--forest-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* --- Card Grids --- */
.bge-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.bge-card {
    background: var(--pure-white);
    border: 1px solid var(--silver-teal);
    border-radius: 24px;
    padding: 0;
    box-shadow: var(--forest-shadow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
}

.bge-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 30, 43, 0.18);
}

.bge-card-img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.bge-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.bge-card:hover img {
    transform: scale(1.1);
}

/* Floating Glass Title Overlay */
.bge-card-service h3 {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 30, 43, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 20px;
    color: var(--pure-white);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.bge-card-service:hover h3 {
    background: var(--mongodb-green);
    color: var(--forest-black);
    transform: translateY(-8px);
}

.bge-card-service h3::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 24px;
    width: 40px;
    height: 3px;
    background: var(--mongodb-green);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.bge-card-service:hover h3::after {
    background: var(--forest-black);
    width: 60px;
}

.bge-card p {
    font-weight: 300;
    color: var(--cool-gray);
    font-size: 16px;
    padding: 0 32px 32px;
}

/* Support for Database-driven HTML Content Refined */
.card-custom {
    background: var(--pure-white);
    border: 1px solid var(--silver-teal);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--forest-shadow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mongodb-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 30, 43, 0.12);
    border-color: var(--mongodb-green);
}

.card-custom:hover::before {
    opacity: 1;
}

.label-tech, .bge-body-content .label-tech {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mongodb-green);
    margin-bottom: 20px;
    display: block;
}

.section-title, .bge-body-content .section-title {
    font-family: 'Lora', serif;
    font-size: 48px; /* Increased for authority */
    font-weight: 500;
    margin-bottom: 60px;
    text-align: center;
    color: var(--forest-black);
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--mongodb-green);
    margin: 24px auto 0;
    border-radius: 100px;
}

.dark-section {
    background-color: var(--forest-black) !important;
    padding: 100px 0 !important;
}

.dark-section .section-title {
    color: var(--pure-white);
}

.body-light, .bge-body-content .body-light {
    font-weight: 300;
    color: var(--cool-gray);
    line-height: 1.8;
    font-size: 18px;
}

.dark-section .body-light {
    color: var(--light-input);
}

/* Database Hero Overrides */
.hero-section {
    background: var(--pure-white);
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-family: 'Lora', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--forest-black);
    margin-bottom: 24px;
}

.hero-section .lead {
    font-size: 24px;
    font-weight: 300;
    color: var(--cool-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Clean up database-driven containers */
.bge-body-content .container {
    max-width: 1200px;
}

/* Typography Support for Summernote Content */
.bge-body-content ul {
    list-style: none;
    padding-left: 0;
}

.bge-body-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-weight: 300;
}

.bge-body-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--mongodb-green);
    font-weight: 700;
}

.bge-body-content strong {
    font-weight: 600;
    color: var(--forest-black);
}

.bge-section-dark .bge-body-content strong {
    color: var(--mongodb-green);
}

.bge-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 24px 0;
}

/* --- Article Grid (Normal Style Refined) --- */
.bge-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.bge-article-item {
    display: flex;
    flex-direction: column;
    background: var(--pure-white);
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--silver-teal);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}

.bge-article-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--forest-shadow);
    border-color: var(--mongodb-green);
}

.bge-article-img {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    display: block;
    position: relative;
}

.bge-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bge-article-item:hover .bge-article-img img {
    transform: scale(1.08);
}

.bge-article-content {
    padding: 8px;
}

.bge-article-content .tech-label {
    background: var(--forest-black);
    color: var(--mongodb-green);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    margin-bottom: 20px;
}

.bge-article-content h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: 'Lora', serif; /* Editorial Authority */
}

.bge-article-content h3 a {
    color: var(--forest-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bge-article-item:hover .bge-article-content h3 a {
    color: var(--action-blue);
}

.bge-article-content p {
    font-weight: 300;
    color: var(--cool-gray);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
}

.bge-article-more {
    font-weight: 600;
    color: var(--dark-green);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.bge-article-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.bge-article-item:hover .bge-article-more {
    color: var(--action-blue);
}

.bge-article-item:hover .bge-article-more i {
    transform: translateX(5px);
}

/* --- Footer (Ultra Compact Executive) --- */
.bge-footer {
    background-color: var(--forest-black);
    padding: 30px 0 20px;
    color: var(--pure-white);
}

.bge-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.bge-footer-logo-container {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bge-footer-logo {
    height: 32px;
    width: auto;
    filter: none; /* Remove problematic filters */
    opacity: 1;
}

.bge-footer p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.4);
    max-width: 280px;
    margin: 0;
}

.bge-footer h4 {
    color: var(--mongodb-green);
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.bge-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.bge-footer a:hover {
    color: var(--mongodb-green);
}

.bge-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bge-footer-bottom p {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    margin: 0 !important;
}

.social-links a:hover {
    color: var(--mongodb-green);
}

@media (max-width: 991px) {
    .bge-hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .bge-hero h1 {
        font-size: 3rem;
    }
    .bge-hero p {
        margin: 0 auto 32px;
    }
    .bge-hero-panel {
        width: 100%;
        max-width: 400px;
        padding: 30px;
    }
    .bge-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .bge-section-head h2 {
        font-size: 32px;
    }
    .bge-split {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .bge-split h2 {
        font-size: 32px;
    }
    .bge-feature-list div {
        justify-content: center;
    }
    .bge-footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .bge-footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .bge-card-grid {
        grid-template-columns: 1fr;
    }
    .bge-hero {
        padding: 80px 0;
    }
    .bge-hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Floating Technical Hotline --- */
.float_wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--mongodb-green);
    color: var(--forest-black);
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 237, 100, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.float_wa i {
    font-size: 32px;
}

.float_wa:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #fff;
    color: #25d366;
}

.float_wa::after {
    content: 'Konsultasi Teknik';
    position: absolute;
    right: 70px;
    background: var(--forest-black);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 237, 100, 0.3);
}

.float_wa:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse Animation */
@keyframes bge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 237, 100, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 237, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 237, 100, 0); }
}

.float_wa {
    animation: bge-pulse 2s infinite;
}

#scrollTop {
    position: fixed;
    bottom: 105px;
    right: 38px;
    background-color: var(--forest-black);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex !important; /* Always flex */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 237, 100, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#scrollTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTop:hover {
    background-color: var(--mongodb-green);
    color: var(--forest-black);
    transform: translateY(-8px);
    border-color: var(--mongodb-green);
}

#scrollTop i {
    font-size: 22px;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .float_wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    #scrollTop {
        bottom: 85px;
        right: 20px;
    }
}

/* --- Content Page Adjustments --- */
.bge-body-content p {
    margin-bottom: 24px;
}

.bge-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.bge-section-content {
    flex: 1.5;
}

@media (max-width: 991px) {
    .bge-split {
        flex-direction: column;
        gap: 40px;
    }
    .bge-visual {
        justify-content: center;
    }
}
