/* ==========================================================================
   Custom Style Overrides for PT. Enerzee Duta Robotindo (EDUROBOTINDO)
   ========================================================================== */

/* Scroll offset for sticky header */
section[id] {
    scroll-margin-top: 100px;
}

/* Odometer stacked numbers override */
.odometer {
    display: inline-block !important;
    direction: ltr !important;
}
.odometer .odometer-inside {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Text Logo Branding */
.brand-logo-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-decoration: none !important;
}
.logo-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
}
.logo-title span {
    color: #f5a526 !important; /* Gold brand color */
}
.logo-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 9px !important;
    color: #aeb4c2 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin-top: 2px !important;
}

/* Sticky header Text Logo Adjustment */
.stricky-fixed .brand-logo-text .logo-title {
    color: #ffffff !important;
}

/* Mobile Menu Text Logo */
.mobile-nav__content .brand-logo-text {
    margin-bottom: 30px;
}
.mobile-nav__content .brand-logo-text .logo-title {
    color: #ffffff !important;
}

/* Extra alignments for template header issues */
.main-menu-nine__logo {
    display: flex !important;
    align-items: center;
}

/* Mobile Logo Size Optimization to prevent overflow/cutoff */
@media (max-width: 767px) {
    .main-menu-nine__logo .logo-title {
        font-size: 18px !important;
    }
    .main-menu-nine__logo .logo-subtitle {
        font-size: 7px !important;
    }
}

/* ==========================================================================
   Portfolio Card & Grid Custom Layout Styles
   ========================================================================== */
.portfolio-section-nine {
    padding: 90px 0;
    background-color: #f7f8fa;
}
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.portfolio-card-wrapper {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.portfolio-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #f5a526;
}
.portfolio-img-container {
    position: relative;
    height: 200px;
    background-color: #171827;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 24, 39, 0.95), rgba(245, 165, 38, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}
.portfolio-placeholder i,
.portfolio-placeholder svg {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.9;
    color: #f5a526;
}
.portfolio-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(23, 24, 39, 0.8);
    backdrop-filter: blur(5px);
    color: #f5a526;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 4px;
    border: 1px solid rgba(245, 165, 38, 0.3);
}
.portfolio-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.portfolio-client {
    font-size: 0.8rem;
    color: #f5a526;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.portfolio-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #171827;
    font-weight: 700;
    line-height: 1.4;
}
.portfolio-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}
.portfolio-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f5a526;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.portfolio-btn i {
    transition: all 0.3s ease;
}
.portfolio-btn:hover {
    color: #171827;
}
.portfolio-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Modals (Project Details & FAQ Accordion)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(23, 24, 39, 0.85); /* fallback */
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex !important;
}
.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 165, 38, 0.2);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.modal.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: #f7f8fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    z-index: 10;
}
.modal-close:hover {
    background-color: #f5a526;
    color: #ffffff;
    border-color: #f5a526;
}
.modal-header {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(23, 24, 39, 0.05), rgba(245, 165, 38, 0.05));
}
.modal-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 165, 38, 0.1);
    color: #f5a526;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 4px;
    margin-bottom: 12px;
}
.modal-title {
    font-size: 1.6rem;
    color: #171827;
    margin-bottom: 8px;
    font-weight: 800;
}
.modal-client {
    font-size: 0.9rem;
    color: #f5a526;
    font-weight: 700;
    text-transform: uppercase;
}
.modal-body {
    padding: 30px;
}
.modal-features-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    margin: 20px 0 12px;
    color: #171827;
    border-left: 4px solid #f5a526;
    padding-left: 10px;
    font-weight: 700;
}
.modal-features-list {
    margin-left: 20px;
    list-style-type: square;
    margin-bottom: 20px;
}
.modal-features-list li {
    margin-bottom: 8px;
    color: #6c757d;
}

/* FAQ Accordion within FAQ Modal */
.faq-accordion-box {
    margin-top: 20px;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 16px 20px;
    font-weight: 700;
    color: #171827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.faq-question:hover,
.faq-question.active {
    background-color: rgba(245, 165, 38, 0.05);
    color: #f5a526;
}
.faq-question i {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.faq-answer {
    padding: 20px;
    line-height: 1.6;
    color: #6c757d;
    border-top: 1px solid #e2e8f0;
    display: none;
    background-color: #f8fafc;
}

/* ==========================================================================
   WhatsApp Floating Action Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px; /* bottom-left as per previous accomplishments */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
}
