/* Magna Industry - Custom Design System */

:root {
    --primary-orange: var(--magna-gold, #D89A1D);
    --dark-bg: #0B3472;
    --steel-grey: #1f1f1f;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.3s ease;
}


/* Force standard width for all sections even if they use container-fluid */

.section .container,
.section .container-fluid {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}


/* SECTION HEADINGS */

.section-heading h2 {
    color: #fff !important;
    font-size: var(--magna-fs-h2) !important;
    text-transform: uppercase;
    font-weight: var(--magna-fw-extrabold) !important;
    text-align: center;
    margin-bottom: 20px !important;
}

.section-heading h2:after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
    display: block;
    margin: 20px auto;
}


/* CARD HOVER EFFECT - REQUESTED BY USER */

.features-post,
.work-item,
.industry-item,
.process-item {
    border: 1px solid transparent;
    /* Prepare for hover */
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.features-post:hover,
.work-item:hover,
.industry-item:hover,
.process-item:hover {
    border: 1px solid var(--primary-orange) !important;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgb(245 166 35 / 21%) !important;
}


/* Work Item Clean Up */

.work-item {
    position: relative;
    box-shadow: var(--card-shadow);
    height: 250px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Industry Item Clean Up */

.industry-item {
    background: #fff !important;
    min-height: 280px;
    margin-bottom: 20px;
}


/* Features Post Clean Up */

.features-post {
    background: var(--steel-grey) !important;
    height: 100%;
    padding: 0;
}


/* Owl Carousel Item Height Fix */

.owl-carousel .item {
    height: 100%;
    padding: 10px;
}


/* MOBILE FIX */

@media (max-width: 768px) {
    .section {
        padding: 60px 20px !important;
    }
}


/* HEADER SCROLL STYLES */

.main-header {
    transition: all 0.3s ease !important;
}

.main-header.header-scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100px;
    /* Slightly smaller on scroll */
}

.main-header.header-scrolled .main-menu li {
    line-height: 69px;
    /* Adjust line-height to match new height */
}

.main-header.header-scrolled .logo {
    line-height: 70px;
}

.main-header.header-scrolled .main-menu li a {
    color: rgba(23, 34, 56, 0.95) !important;
}

.main-header.header-scrolled .main-menu li a:hover {
    color: var(--primary-orange) !important;
}

.main-header.header-scrolled .menu-link i {
    color: rgba(23, 34, 56, 0.95) !important;
}

.main-header.header-scrolled .main-menu li.header-cta a {
    color: #111 !important;
    /* Keep CTA button text dark */
    background: var(--primary-orange) !important;
}


/* GLOBAL FORM STYLES - PERFECTED */

.form-control-modern {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #00163c;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-modern::placeholder {
    color: #00163c !important;
    opacity: 0.7;
    /* Balanced visibility */
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

.submit-btn-modern {
    width: 100%;
    padding: 18px;
    background: var(--primary-orange);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn-modern:hover {
    background: #e09010;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(245, 166, 35, 0.3);
}

.submit-btn-modern:active {
    transform: translateY(-1px);
}


/* File Upload Perfection */

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
}

.file-upload-btn {
    display: block;
    width: 100%;
    padding: 22px;
    background: #fff8ee;
    border: 2px dashed var(--primary-orange);
    border-radius: 12px;
    color: #d48a10;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.file-upload-btn:hover {
    background: #fef1dd;
    border-style: solid;
}


/* FLOATING WHATSAPP CHAT BUBBLE */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9990;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s ease-out infinite;
    z-index: -1;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.whatsapp-float svg {
    display: block;
    color: #ffffff !important;
    fill: #ffffff !important;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}


/* ========== HOME STATS STRIP (hero ke niche) ========== */

.magna-home-stats {
    padding: 0px 0 0px 0px;
    background: #ffffff;
}

.magna-home-stats.trust-bar {
    background: #ffffff !important;
    border: none !important;
    overflow: visible;
}

.magna-home-stats-bar {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, rgb(11, 52, 114) 0%, #0B3472 55%, #0d3d8f 100%);
    /* border-radius: 14px; */
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(1, 25, 68, 0.18);
}

.magna-home-stats-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.magna-home-stats-item:last-child {
    border-right: none;
}

.magna-home-stats-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 10px;
}

.magna-home-stats-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.magna-home-stats-icon i {
    font-size: 24px;
    line-height: 1;
    color: #0B3472;
}

.magna-home-stats-icon-gold i {
    color: #D89A1D;
}

.magna-home-stats-icon-navy i {
    color: #0B3472;
}

.magna-home-stats-text {
    text-align: left;
    min-width: 0;
}

.magna-home-stats-text strong {
    display: block;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #D89A1D !important;
    line-height: 1.35;
    margin-bottom: 2px;
}

.magna-home-stats-text span {
    display: block;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .magna-home-stats-bar {
        flex-wrap: wrap;
    }

    .magna-home-stats-item {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 18px 16px;
    }

    .magna-home-stats-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .magna-home-stats-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .magna-home-stats-item {
        flex: 1 1 100%;
        border-right: none !important;
    }

    .magna-home-stats-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}
