:root {
    --primary-orange: #ed2e26;
    --primary-blue: #1a2b4c;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f2f4f7;
    --white: #ffffff;
    --container-max: 1200px;
    --section-padding: 1.5rem;
    --radius: 12px;
}

.modula-3d-wrapper {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modula-3d-wrapper img {
    width: 100%;
    /* max-height: 300px; */
    display: block;
}

.modula-container {
    max-width: var(--container-max);
    margin: 0 auto !important;
    padding: 0 48px;
    width: 100%;
    box-sizing: border-box;
}

.modula-section {
    padding: var(--section-padding) 0;
    width: 100%;
}

.modula-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000;
    line-height: 1.2;
    border: none !important;
}

.modula-btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white) !important;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
}

.modula-btn:hover {
    background-color: #ed2e26;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 69, 12, 0.2);
}

/* Hero Section */
.m3d-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://sobatbangun.com/wp-content/uploads/2026/02/Modula3D_Seapi-1_Aerial-View-1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    width: 100%;
}

.m3d-hero-content {
    max-width: 700px;
    width: 100%;
}

.m3d-hero h1 {
    font-size: clamp(32px, 1vw, 30px);
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--white);
}

.m3d-hero p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 550px;
}

/* Grid Layouts */
.m3d-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.m3d-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.m3d-grid-overview {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.m3d-overview-image img {
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 350px;
    width: 100%;
}

/* Services Grid */
.m3d-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.m3d-service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
}

.m3d-service-card {
    background-color: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.m3d-service-card:hover {
    background-color: #ebeef2;
    transform: translateY(-5px);
}

.m3d-service-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.m3d-service-card span {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}
.m3d-service-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark); /* Menggunakan warna gelap agar kontras */
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Deskripsi Singkat */
.m3d-service-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Projects */
/* Projects Grid */
.m3d-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card Styling Baru */
.m3d-project-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.m3d-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Image Wrapper */
.m3d-project-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px; /* Menyeragamkan tinggi gambar */
    overflow: hidden;
}

.m3d-project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.m3d-project-card:hover .m3d-project-image-wrapper img {
    transform: scale(1.05); /* Efek zoom halus saat di-hover */
}

/* Status Badges */
.m3d-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    backdrop-filter: blur(4px); /* Efek kaca halus jika didukung browser */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Project Content (Teks & Tag) */
.m3d-project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Mendorong tag ke bagian paling bawah walau tinggi judul berbeda */
}

.m3d-project-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px 0;
    line-height: 1.4;
    border: none !important;
}

/* Tags (Pill shape) */
.m3d-project-tags {
    display: flex;
    gap: 8px;
    margin-top: auto; /* Memastikan tag selalu ada di bawah */
}

.m3d-project-tags span {
    font-size: 12px;
    color: #333;
    padding: 4px 16px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    background-color: transparent;
}
/* Video Thumbnail Wrapper */
.m3d-video-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.m3d-video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.m3d-video-thumb img {
    width: 100%;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.m3d-video-link:hover .m3d-video-thumb img {
    opacity: 1;
}

.m3d-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.m3d-video-link:hover .m3d-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #ff5714;
}

/* Contact Section Styling */
.m3d-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.m3d-contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.m3d-contact-intro {
    color: var(--text-light);
    margin-bottom: 30px;
}

.m3d-contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.m3d-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.m3d-contact-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--primary-orange);
}

.m3d-contact-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.m3d-contact-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.m3d-contact-image-box {
    width: 100%;
    max-width: 500px;
    height: 300px !important;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    justify-self: center;
}

.m3d-contact-image-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Spotlight Section Styling */
.m3d-spotlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.m3d-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.m3d-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.m3d-tag {
    background-color: var(--primary-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.m3d-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.m3d-stat-val {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

.m3d-stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* CSS untuk Container Utama Jangkauan Layanan */
.m3d-service-areas {
    display: flex;
    align-items: center; 
    gap: 12px;
    margin-top: 24px;
    width: 100%; 
    overflow: hidden; 
}

.m3d-service-areas strong {
    font-size: 16px;
    color: #000;
    white-space: nowrap; 
    flex-shrink: 0; 
}

.m3d-area-tags {
    display: flex;
    flex-wrap: nowrap; 
    gap: 8px;
    overflow-x: auto; 
    padding-bottom: 4px; 

    scrollbar-width: none;
    -ms-overflow-style: none; 
    flex: 1; 
    min-width: 0; 
    -webkit-overflow-scrolling: touch;
}

.m3d-area-tags::-webkit-scrollbar {
    display: none; 
}

.m3d-area-tag {
    background-color: #EBF3FA;
    border: 1px solid #C4D6EB;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap; 

    
}

/* Responsive */
@media (max-width: 991px) {
    .m3d-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 1rem;
    }

    .modula-container {
        padding: 0 24px;
    }

    .modula-section {
        min-height: auto;
        text-align: center;
    }

    .m3d-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .m3d-grid-overview {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .m3d-overview-image {
        order: -1;
        width: 100%;
    }

    .m3d-overview-image img {
        max-height: none !important;
        height: auto !important;
        width: 100%;
        object-fit: contain;
    }

    .m3d-hero {
        text-align: center;
        justify-content: center;
    }

    .m3d-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .m3d-project-grid {
        grid-template-columns: 1fr;
    }

    .m3d-solutions-text {
        order: 1;
    }

    .m3d-contact-wrapper {
        grid-template-columns: 1fr !important;
    }

    .m3d-contact-item {
        text-align: left;
    }

    .m3d-contact-image-box {
        min-height: 200px;
        order: 1;
    }

    .m3d-contact-content {
        order: -1;
    }

    body .modula-3d-wrapper .m3d-spotlight-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .m3d-spotlight-video {
        order: -1; /* Video di atas teks pada mobile */
    }

    .m3d-stats-grid {
        justify-content: center;
    }
    .m3d-service-areas {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .m3d-area-tags {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .m3d-services-grid {
        grid-template-columns: 1fr;
    }

    .m3d-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 350px) {
    .m3d-hero h1 {
        font-size: 22px !important;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .m3d-hero p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 20px !important;
    }

    .modula-btn {
        padding: 10px 25px !important;
        font-size: 14px !important;
    }

    .modula-container {
        padding: 0 15px !important;
    }
}
