/* ========== FONT GLOBAL OPTIMIZATION ========== */
/* Import Google Fonts untuk font yang lebih baik */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Font smoothing untuk readability yang lebih baik */
body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1e2a3e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* Optimalisasi heading untuk readability */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Optimalisasi paragraf untuk enak dibaca */
p, li, .blog-content, .about-content p, .service-card p, .project-info p {
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.003em;
}

/* Optimalisasi teks kecil dan meta */
small, .blog-date, .footer-bottom, .blog-meta, .logo p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.002em;
}

/* Optimalisasi link dan button untuk readability */
a, button, .btn-primary, .btn-secondary, .nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.003em;
}

/* Optimalisasi form elements */
input, textarea, select, .contact-form input, .contact-form textarea {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.002em;
}

/* Optimalisasi code blocks jika ada */
code, pre, .code-block {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9em;
}

/* Optimalisasi font size untuk mobile responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Optimalisasi untuk print media */
@media print {
    body {
        font-family: 'Georgia', 'Times New Roman', serif;
        line-height: 1.5;
    }
}

/* Optimalisasi untuk screen readers */
@media speech {
    body {
        font-family: 'Arial', sans-serif;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: #0a2b3e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: hidden;
}

.nav-flex {
    display: flex!important;
    justify-content: space-between!important;
    align-items: center!important;
     padding: 1rem 0!important; 
    flex-wrap: wrap!important;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo h1 {
    color: #f9b81b;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.logo p {
    color: #cddce9;
    font-size: 0.7rem;
    margin: 0;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: #f0f4f8;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
    display: inline-block;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: #f9b81b;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #f9b81b;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    flex-shrink: 0;
}

/* ========== SLIDER ========== */
.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: #0a2b3e;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
}

.slide-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.slide-content p {
    font-size: 1.1rem;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: 0.3s;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-prev:hover, .slider-next:hover {
    background: #f9b81b;
    color: #0a2b3e;
}

/* ========== SECTION UMUM ========== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #0a2b3e;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #f9b81b;
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

.bg-gray {
    background: #f8fafd;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1px 1px;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a2b3e;
}

.about-content p {
    margin-bottom: 1rem;
    color: #4a627a;
}

.about-points div {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-points i {
    color: #f9b81b;
}

.about-image {
    background: linear-gradient(135deg, #0a2b3e, #1a4a6e);
    border-radius: 32px;
    padding: 1rem;
    text-align: center;
}

.about-image i {
    font-size: 8rem;
    color: #f9b81b;
}

/* ========== SERVICE CARDS ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1px));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eef2f8;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: #f9b81b;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* ========== PROJECT GRID ========== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1px));
    gap: 2rem;
}

.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-img {
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-img-placeholder {
    height: 220px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #4a627a;
    margin: 0.5rem 0;
}

/* ========== BLOG GRID ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1px));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    padding: 1.5rem;
    border-left: 4px solid #f9b81b;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    color: #f9b81b;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.blog-link {
    color: #f9b81b;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, #0a2b3e, #1a4a6e);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ========== DETAIL BLOG ========== */
.detail-blog-wrapper {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.detail-blog-image {
    margin-bottom: 2rem;
}

.detail-blog-image img {
    width: 100%;
    border-radius: 16px;
}

.detail-blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.detail-blog-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f8;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========== KONTAK ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1px 1px;
    gap: 3rem;
    background: #f8fafd;
    padding: 2rem;
    border-radius: 32px;
}

.contact-info i {
    width: 30px;
    color: #f9b81b;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #f9b81b;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* ========== PARTNER SECTION ========== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1px));
    gap: 2rem;
    text-align: center;
}

.partner-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

.partner-item i {
    transition: transform 0.3s ease;
}

.partner-item:hover i {
    transform: scale(1.05);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: #f9b81b;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    color: #0a2b3e;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e5a810;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #f9b81b;
    padding: 10px 26px;
    border-radius: 40px;
    font-weight: 600;
    color: #0a2b3e;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* ========== FOOTER ========== */
footer {
    background: #0a2b3e;
    color: #cddce9;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1px));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: #f9b81b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-col a {
    color: #cddce9;
    text-decoration: none;
}

.footer-col a:hover {
    color: #f9b81b;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1a4a6e;
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 880px) {
    .nav-flex {
        gap: -1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    .logo p {
        font-size: 0.6rem;
        white-space: nowrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0a2b3e;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        white-space: normal;
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Perbaikan tambahan untuk layar yang lebih kecil */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-flex {
        padding: 0.75rem 0!important;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo p {
        font-size: 0.5rem;
    }
    
    .menu-toggle {
        font-size: 1.5rem;
        padding: 0.25rem;
    }
}

@media (min-width: 881px) {
    .nav-links {
        display: flex !important;
    }
}