/* ============================================
   MAIN STYLESHEET - OPTIMIZED FOR NEXT.JS
   ============================================ */

/* CSS Variables for easy customization */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8f9fa;
    --navbar-height: 80px;
    --transition-default: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: #1f2937;
    line-height: 1.6;
}

/* ============================================
   NAVBAR - WHITE CLEAN PROFESSIONAL
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ===== BASE ===== */
.navbar {
    background: #ffffff;
    border-bottom: 1.5px solid #e8edf5;
    padding: 0.75rem 0;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 2px 20px rgba(15, 52, 120, 0.07);
    border-bottom-color: #dde4f0;
}

/* ===== BRAND ===== */
.navbar-brand {
    padding: 0;
    margin: 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-frame {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f1e3c;
    letter-spacing: -0.3px;
}

.brand-slogan {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    color: #1a56db;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ===== NAV LINKS ===== */
.navbar-nav {
    gap: 0.15rem;
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5a7a;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.05px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    right: 50%;
    height: 2px;
    border-radius: 2px;
    background: #1a56db;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.navbar-nav .nav-link:hover {
    color: #1a56db;
    background: #f0f5ff;
}

.navbar-nav .nav-link:hover::before {
    left: 22%;
    right: 22%;
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: #1a56db;
    font-weight: 600;
    background: #eff4ff;
}

.navbar-nav .nav-link.active::before {
    left: 22%;
    right: 22%;
    opacity: 1;
}

/* ===== KONTAK — sama seperti nav-link biasa ===== */
.navbar-nav .nav-link.nav-cta {
    background: transparent;
    color: #4b5a7a !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    border: none;
    box-shadow: none;
    margin-left: 0;
}

.navbar-nav .nav-link.nav-cta:hover {
    background: #f0f5ff !important;
    color: #1a56db !important;
    transform: none;
    box-shadow: none;
}

.navbar-nav .nav-link.nav-cta:hover::before {
    left: 22%;
    right: 22%;
    opacity: 1;
}

/* ===== TOGGLER ===== */
.navbar-toggler {
    border: 1.5px solid #dde4f0;
    background: transparent;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
    outline: none;
}

.navbar-toggler:hover {
    background: #f0f5ff;
    border-color: #b8c8f0;
}

.toggler-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #4b5a7a;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #ffffff;
        border-radius: 12px;
        border: 1.5px solid #e8edf5;
        box-shadow: 0 8px 30px rgba(15, 52, 120, 0.1);
    }

    .navbar-nav {
        gap: 0.15rem;
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-link.nav-cta {
        text-align: left;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .brand-logo { height: 44px; }
    .brand-name { font-size: 1.05rem; }
    .brand-slogan { font-size: 0.58rem; }
}

@media (max-width: 576px) {
    .brand-logo { height: 38px; }
    .brand-name { font-size: 0.92rem; }
    .brand-slogan { font-size: 0.52rem; letter-spacing: 0.5px; }
    .brand-wrapper { gap: 9px; }
}

/* ============================================
   HERO SLIDER STYLES - OPTIMASI & MODERN
   ============================================ */

.hero-slider {
    position: relative;
    height: 70vh;         /* DIUBAH: lebih pendek */
    min-height: 500px;    /* DIUBAH */
    max-height: 650px;    /* DIUBAH: batasi tinggi maksimal */
    overflow: hidden;
    margin-top: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* TIDAK ADA GRADIENT HITAM */
.slide-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

/* TAMBAHAN: container tidak mentok */
.slide-content .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;  /* TAMBAHAN: padding kiri-kanan */
}

.slide-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.slide-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.slide-buttons {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.btn-slide {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.btn-primary-slide {
    background: #0d6efd;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary-slide:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-outline-slide {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-slide:hover {
    background: white;
    color: #0d6efd;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Navigation - Modern */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #0d6efd;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #0d6efd;
    opacity: 1;
    width: 28px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1200px) {
    .slide-content .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .slide-title {
        font-size: 2.5rem;
    }
    .slide-subtitle {
        font-size: 1rem;
    }
    .btn-slide {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .slide-content .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 400px;
        max-height: 500px;
    }
    .slide-title {
        font-size: 1.8rem;
    }
    .slide-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    .btn-slide {
        padding: 8px 20px;
        margin: 5px;
        font-size: 0.85rem;
    }
    .slide-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 0.8rem;
    }
    .slide-content .container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 1.4rem;
    }
    .slide-subtitle {
        font-size: 0.8rem;
    }
    .slide-content .container {
        padding: 0 15px;
    }
}

/* ============================================
   HERO SLIDER - MOBILE BUTTON FIX
   ============================================ */

/* Perbaikan untuk mobile (max-width: 768px) */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 450px;
        max-height: 550px;
    }
    
    .slide-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        padding: 0 15px;
    }
    
    /* Perbaikan button di mobile */
    .slide-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .btn-slide {
        display: block;
        width: 80%;
        max-width: 220px;
        margin: 0 auto;
        padding: 10px 16px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .btn-primary-slide,
    .btn-outline-slide {
        width: 100%;
        text-align: center;
    }
    
    /* Navigation buttons lebih kecil */
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 0.75rem;
    }
    
    /* Pagination bullets */
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* Untuk layar sangat kecil (max-width: 480px) */
@media (max-width: 480px) {
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-subtitle {
        font-size: 0.75rem;
    }
    
    .btn-slide {
        width: 90%;
        max-width: 200px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .slide-buttons {
        gap: 10px;
    }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: linear-gradient(160deg, #f5f8ff 0%, #eef3fd 50%, #f8faff 100%);
    padding: 5.5rem 0;
}

/* ===== IMAGE SIDE ===== */
.about-img-wrapper {
    position: relative;
    padding: 14px 0 30px 14px;
}

.about-img-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.1), rgba(26,86,219,0.03));
    border: 2px dashed rgba(26, 86, 219, 0.2);
    z-index: 0;
}

.about-img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(26, 86, 219, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.about-img-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-frame:hover img {
    transform: scale(1.03);
}

.about-img-badge {
    position: absolute;
    bottom: 0;
    right: -12px;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 28px rgba(26, 86, 219, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0eaff;
    z-index: 2;
}

.about-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.about-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.about-badge-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f1e3c;
}

.about-badge-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: #6b7aaa;
    font-weight: 500;
}

/* ===== TEXT SIDE ===== */
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #1a56db;
    background: #eff4ff;
    border: 1px solid #c7d9ff;
    border-radius: 20px;
    padding: 0.32rem 0.9rem;
    margin-bottom: 1.25rem;
}

.about-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a56db;
    flex-shrink: 0;
}

.about-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f1e3c;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.about-title span {
    color: #1a56db;
}

.about-lead {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #4b5a7a;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.about-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #6b7aaa;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ===== FEATURE CARDS ===== */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-feat {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e4edff;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.25s ease;
}

.about-feat:hover {
    border-color: #b8ceff;
    box-shadow: 0 4px 18px rgba(26, 86, 219, 0.09);
    transform: translateY(-2px);
}

.about-feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.about-feat-icon.blue   { background: #eff4ff; color: #1a56db; }
.about-feat-icon.teal   { background: #e6faf4; color: #0f766e; }
.about-feat-icon.violet { background: #f0eeff; color: #6d4ed7; }
.about-feat-icon.amber  { background: #fff8ec; color: #b45309; }

.about-feat-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f1e3c;
    margin-bottom: 2px;
}

.about-feat-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #8a97bb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .about-section {
        padding: 4rem 0;
    }

    .about-img-badge {
        right: 0;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 1.65rem;
    }

    .about-img-frame img {
        height: 300px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-img-badge {
        position: static;
        margin-top: 1rem;
        display: inline-flex;
        border-radius: 12px;
    }

    .about-img-wrapper {
        padding: 10px 0 0 10px;
    }
}

/* ============================================
   PROJECTS SECTION - LIGHT BLUE OCEAN
   ============================================ */
#projects {
    background: #f0f7ff;
    position: relative;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

#projects .section-title {
    color: #0c2461;
}

#projects .section-title span {
    color: #2563eb;
}

#projects .section-title::after {
    background: #2563eb;
}

.project-card {
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 18px 18px 0 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.12);
    border-color: #bfdbfe;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card-num {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.project-icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.1rem 0;
    transition: transform 0.22s ease;
}

.project-icon i {
    font-size: 1.5rem;
    color: #2563eb;
}

.project-card:hover .project-icon {
    transform: scale(1.08);
}

.project-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.45rem;
}

.project-card p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 1.1rem;
}

.project-card small.text-primary {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.project-card:hover small.text-primary {
    gap: 7px;
}

/* Stats bar di bawah grid */
.projects-stats-bar {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    overflow: hidden;
    max-width: 560px;
    margin: 3rem auto 0;
}

.projects-stat-item {
    flex: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    border-right: 1px solid #e2eaf5;
}

.projects-stat-item:last-child {
    border-right: none;
}

.projects-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.projects-stat-label {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* ============================================
   PRODUCT CARDS - Larger Images
   ============================================ */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-default);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}


/* ============================================
   FOOTER - MOBILE FIRST (RAPI DI HP)
   ============================================ */

.footer { 
    background: #7986a8; 
    color: #e8ecf4; 
    font-family: 'Inter', sans-serif; 
}

.footer .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* ===== MOBILE (Default / HP) ===== */
.footer-main { 
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Logo - Tengah di HP (dengan geseran kecil agar tidak berantakan) */
.footer-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-only {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.footer-logo-only img {
    width: 270%;
    height: 270%;
    object-fit: contain;
    position: relative;
    top: -50px;
    left: -30px;          /* ← kecil untuk HP (tidak berantakan) */
}

.footer-company-col {
    text-align: center;
    position: relative;
    top: 0px;
    left: -20px;          /* ← kecil untuk HP (tidak berantakan) */
}

.footer-company-name { 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 0.3rem; 
}

.footer-company-tag { 
    font-size: 0.7rem; 
    color: rgba(255,255,255,0.6); 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 0.8rem;
}

.footer-company-desc { 
    font-size: 0.8rem; 
    color: rgba(255,255,255,0.7); 
    line-height: 1.5; 
    margin: 0 auto;
    max-width: 100%;
}

/* Kolom Title - Tengah */
.footer-col-title { 
    font-size: 1rem; 
    font-weight: 700; 
    color: #fff; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 40px; 
    height: 2px; 
    background: rgba(255,255,255,0.5); 
    border-radius: 2px; 
}

/* Navigasi Links - Tengah */
.footer-nav-links { 
    list-style: none; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; 
}

.footer-nav-links li a { 
    font-size: 0.8rem; 
    color: rgba(255,255,255,0.75); 
    text-decoration: none; 
    display: inline-block;
}

.footer-nav-links li a:hover { 
    color: #fff; 
}

/* Kontak - Tengah */
.footer-contact-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.7rem; 
    align-items: center;
}

.footer-contact-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact-item i {
    width: 18px;
    color: #fff;
}

.footer-contact-item span,
.footer-contact-item a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: #fff;
}

/* Form Kirim Pesan */
.footer-form-desc { 
    font-size: 0.8rem; 
    color: rgba(255,255,255,0.65); 
    margin-bottom: 0.8rem; 
    text-align: center;
}

.footer-form { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}

.footer-form input, 
.footer-form textarea { 
    width: 100%; 
    padding: 0.6rem 0.8rem; 
    background: rgba(255,255,255,0.12); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 8px; 
    color: #fff; 
    font-size: 0.8rem; 
    outline: none; 
}

.footer-form input::placeholder, 
.footer-form textarea::placeholder { 
    color: rgba(255,255,255,0.4); 
}

.footer-form textarea { 
    resize: none; 
}

.footer-form button { 
    background: rgba(255,255,255,0.2); 
    border: 1px solid rgba(255,255,255,0.3); 
    padding: 0.6rem; 
    border-radius: 8px; 
    color: #fff; 
    font-weight: 600; 
    font-size: 0.8rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    width: 100%;
}

.footer-form button:hover { 
    background: rgba(255,255,255,0.3); 
}

.footer-security { 
    display: flex; 
    gap: 1rem; 
    margin-top: 0.8rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.footer-security span { 
    font-size: 0.7rem; 
    color: rgba(255,255,255,0.55); 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

/* Footer Bottom */
.footer-bottom-full {
    background: #5a6a90;
    width: 100%;
    margin-top: 1rem;
}

.footer-bottom-inner {
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.footer-copy { 
    font-size: 0.7rem; 
    color: rgba(255,255,255,0.7); 
    text-align: center;
}

.footer-copy span { 
    color: #fff; 
    font-weight: 600; 
}

.footer-cert-badges { 
    display: flex; 
    gap: 8px; 
    justify-content: center;
    flex-wrap: wrap;
}

.footer-cert { 
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.25); 
    border-radius: 6px; 
    padding: 3px 8px; 
    font-size: 0.6rem; 
    font-weight: 600; 
    color: #fff; 
}

.footer-bottom-links { 
    display: flex; 
    gap: 1rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom-links a { 
    font-size: 0.7rem; 
    color: rgba(255,255,255,0.6); 
    text-decoration: none; 
}

.footer-bottom-links a:hover { 
    color: #fff; 
}

/* ===== TABLET ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .footer-logo-col {
        grid-column: span 2;
    }
    .footer-company-col {
        grid-column: span 2;
    }
}

/* ===== DESKTOP (min-width: 992px) - 5 KOLOM ===== */
@media (min-width: 992px) {
    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-main { 
        display: grid; 
        grid-template-columns: auto 1fr 0.8fr 1fr 1.1fr; 
        gap: 1.5rem; 
        padding: 2.5rem 0;
        align-items: start;
    }
    
    /* Logo - Kiri (dengan geseran BESAR untuk desktop) */
    .footer-logo-col {
        justify-content: flex-start;
    }
    
    .footer-logo-only {
        width: 100px;
        height: 100px;
        margin: 0;
    }
    
    .footer-logo-only img {
        left: -150px;      /* ← besar untuk desktop */
        top: -50px;
    }
    
    /* Perusahaan - Kiri (dengan geseran BESAR untuk desktop) */
    .footer-company-col {
        text-align: left;
        margin-left: -20px;
        left: -60px;       /* ← besar untuk desktop */
    }
    
    .footer-company-desc {
        max-width: 250px;
    }
    
    /* Title - Kiri */
    .footer-col-title {
        text-align: left;
    }
    
    .footer-col-title::after {
        left: 0;
        transform: none;
    }
    
    /* Navigasi - Kiri */
    .footer-nav-links {
        align-items: flex-start;
    }
    
    /* Kontak - Kiri */
    .footer-contact-list {
        align-items: flex-start;
    }
    
    .footer-contact-item {
        justify-content: flex-start;
    }
    
    /* Form */
    .footer-security {
        justify-content: flex-start;
    }
    
    /* Bottom */
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   FIX DESKTOP LAYOUT - PERBAIKAN 5 KOLOM
   ============================================ */

@media (min-width: 1024px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1.2fr 1.5fr 1.2fr 1.8fr 2fr;
        gap: 2rem;
        align-items: start;
        text-align: left;
    }

    /* Reset semua gaya yang dibuat untuk mobile */
    .footer-logo-col,
    .footer-company-col,
    .footer-nav-col,
    .footer-contact-col,
    .footer-form-col {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
        display: block;
    }

    /* Logo desktop */
    .footer-logo-only {
        width: 90px;
        height: 90px;
        margin: 0;
    }

    /* Perusahaan desktop */
    .footer-company-col {
        margin-left: 0;
    }
    .footer-company-desc {
        max-width: 100%;
        margin: 0;
        text-align: left;
    }

    /* Judul kolom */
    .footer-col-title {
        text-align: left;
        padding-bottom: 0.5rem;
    }
    .footer-col-title::after {
        left: 0;
        transform: none;
        margin-left: 0;
    }

    /* Navigasi */
    .footer-nav-links {
        align-items: flex-start;
        gap: 0.6rem;
    }
    .footer-nav-links li a {
        display: inline-block;
    }

    /* Kontak */
    .footer-contact-list {
        align-items: flex-start;
        gap: 0.7rem;
    }
    .footer-contact-item {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    /* Form kirim pesan */
    .footer-form-desc {
        text-align: left;
    }
    .footer-form {
        width: 100%;
    }
    .footer-security {
        justify-content: flex-start;
    }

    /* Bottom bar desktop */
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* Tambahan fix untuk layar 992px - 1023px (transisi) */
@media (min-width: 992px) and (max-width: 1023px) {
    .footer-main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    .footer-logo-col {
        grid-column: span 2;
        text-align: center;
    }
    .footer-company-col {
        grid-column: span 2;
        text-align: center;
    }
    .footer-col-title {
        text-align: center;
    }
    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-nav-links,
    .footer-contact-list {
        align-items: center;
    }
    .footer-contact-item {
        justify-content: center;
    }
    .footer-form-desc {
        text-align: center;
    }
    .footer-security {
        justify-content: center;
    }
}

/* ============================================
   ATUR POSISI KHUSUS HP (TIDAK PENGARUH DESKTOP)
   ============================================ */

@media (max-width: 767px) {
    /* Atur posisi logo di HP */
    .footer-logo-only img {
        left: -60px;     /* ← ubah nilai ini: minus = ke kiri, plus = ke kanan */
        top: -50px;      /* ← ubah nilai ini: minus = naik, plus = turun */
    }
    
    /* Atur posisi perusahaan di HP */
    .footer-company-col {
        left: 1px;     /* ← ubah nilai ini: minus = ke kiri, plus = ke kanan */
        top: 0px;        /* ← ubah nilai ini: minus = naik, plus = turun */
    }
}


/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    padding: 12px 15px;
    color: white;
    border-bottom: none;
}

.toast-body {
    padding: 15px;
    color: #374151;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .navbar {
        --logo-width: 60px;
        --logo-height: 60px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    .navbar {
        --logo-width: 50px;
        --logo-height: 50px;
    }
    
    .logo-wrapper span {
        font-size: 1rem;
    }
    
    .hero-slider {
        min-height: 500px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
    }
    
    .project-icon i {
        font-size: 1.75rem;
    }
    
    .footer {
        --footer-logo-width: 50px;
        --footer-logo-height: 50px;
        text-align: center;
    }
    
    .footer-logo-wrapper {
        justify-content: center;
    }
    
    .toast-notification {
        min-width: 280px;
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 180px;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}



/* ============================================
   NEXT.JS OPTIMIZATION CLASSES
   ============================================ */
.next-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.next-image-container span {
    position: unset !important;
}

.next-image-container img {
    object-fit: cover !important;
    position: relative !important;
    height: auto !important;
}

/* Lazy loading blur effect */
.image-blur {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

.image-loaded {
    filter: blur(0);
}

/* Print styles */
@media print {
    .navbar,
    .hero-slider,
    .footer-form,
    .social-links {
        display: none;
    }
    
    body {
        color: black;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
