/* ===== VARIABEL CSS ===== */
:root {
    --primary-color: #0ea5e9; /* Sky Blue */
    --primary-light: #38bdf8;
    --accent-color: #7dd3fc; /* Ice Blue */
    --bg-color: #f8fafc; /* Slate 50 */
    --text-main: #0f172a; /* Slate 900 */
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #06b6d4);
    --gradient-dark: linear-gradient(135deg, #03045e 0%, #0077b6 100%);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 1.05rem; /* Make text slightly larger globally */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-dark {
    background: var(--gradient-dark);
    color: white;
}

.bg-dark .text-main, .bg-dark p {
    color: #f1f5f9;
}

.bg-dark .section-header h2 {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-light);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.25);
}

.bg-dark .glass-card {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bg-dark .glass-card h3 {
    color: var(--primary-color);
}

.bg-dark .glass-card p {
    color: var(--text-light);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 95%; /* Dibuat lebih lebar agar logo dan menu menyebar ke sisi */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar.scrolled .logo, .navbar.scrolled .nav-link {
    color: var(--text-main);
}
.logo {
    color: white; /* Default on top of hero */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.navbar.scrolled .logo {
    text-shadow: none;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: white; /* Default on top of hero */
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.nav-link.active-link {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.navbar.scrolled .nav-link {
    text-shadow: none;
    color: var(--text-main);
}
.navbar.scrolled .nav-link.active-link {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.navbar.scrolled .menu-toggle .bar {
    background-color: var(--text-main);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero-bg.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-mini {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero-bg.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.hero-mini h1 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.85) 0%, rgba(0, 119, 182, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7, #0891b2);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SEJARAH ===== */
.main-card {
    max-width: 800px;
    margin: 0 auto;
}

.main-card p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.main-card .lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== SISTEM DISTRIBUSI ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ===== STRUKTUR USAHA ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    text-align: center;
    padding: 40px 20px;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.owner-avatar {
    background: linear-gradient(135deg, #0077b6, #023e8a);
}

.manager-avatar {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
}

.staff-avatar {
    background: linear-gradient(135deg, #90e0ef, #00b4d8);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-card .role {
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer {
    background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.footer-brand p {
    color: #90e0ef;
}

.footer-links p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    .logo img {
        height: 35px !important;
        width: 35px !important;
    }
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-main) !important; /* Force dark text in mobile menu */
        font-size: 1.5rem;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--text-main);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--text-main);
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }

    .section {
        padding: 60px 0;
    }
}

/* TAMBAHAN UNTUK FITUR MARKETING */

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating WA Button */
.float-wa {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.float-wa:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 2px 10px 20px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

.float-wa svg {
    width: 35px;
    height: 35px;
}

.float-wa::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: wa-ping 2s infinite ease-in-out;
}

@keyframes wa-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }
    
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .float-wa svg {
        width: 28px;
        height: 28px;
    }
}

