/* ApexERP Custom Stylesheet - Complete Version with Local Image Slideshow */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-500: #3b82f6;
    --sky-400: #38bdf8;
    --indigo-600: #4f46e5;
    --indigo-800: #3730a3;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --border-color: #dbeafe;
    --shadow-soft: 0 10px 25px -5px rgba(59, 130, 246, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 50%, #f8fafc 100%);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--sky-400));
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1e3a8a, var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-600);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-secondary {
    padding: 0.6rem 1.25rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: var(--primary-600);
}

.btn-primary {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(90deg, var(--primary-600), var(--sky-400));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: #eff6ff;
    border: 1px solid var(--border-color);
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-500);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto 1.25rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-600), var(--indigo-600), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 2rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ========================================== */
/* SLIDESHOW GAMBAR (MEDIUM SIZE: 850x380 px) */
/* ========================================== */
.slideshow-container {
    max-width: 850px;
    margin: 0 auto 3rem auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.15);
    border: 1px solid var(--border-color);
    background: #0f172a;
}

.slide {
    display: none;
    position: relative;
    height: 380px;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: white;
    text-align: left;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.slide-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    max-width: 650px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0.5; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Slideshow Controls (Dots & Arrows) */
.slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 1rem;
    width: 100%;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 5px;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.prev-slide:hover, .next-slide:hover {
    background: var(--primary-600);
    color: white;
}

.prev-slide { left: 1.25rem; }
.next-slide { right: 1.25rem; }

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-600);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ROI Calculator Box */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.08);
}

.slider-group {
    margin-bottom: 1.75rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.slider-value {
    color: var(--primary-600);
    font-weight: 700;
}

.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    accent-color: var(--primary-600);
    cursor: pointer;
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-item p {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.result-item h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 0.25rem;
}

.text-green { color: #059669; }
.text-blue { color: var(--primary-600); }

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-600);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hero-title { font-size: 2.25rem; }
    .slideshow-container { height: 320px; }
    .slide { height: 320px; }
    .slide-title { font-size: 1.2rem; }
    .slide-desc { font-size: 0.85rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .result-box { grid-template-columns: 1fr; }
}

/* Styling Kotak-Kotak Modul ERP */
.erp-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.erp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.erp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.12);
}

.erp-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #e2e8f0; /* Warna cadangan jika gambar belum ada */
    display: block;
}

.erp-card-body {
    padding: 1.5rem;
}

.erp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.erp-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.erp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
}

.erp-card-link:hover {
    text-decoration: underline;
}

