/* ==========================================================================
   1. ROOT VARIABLES & TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #059A87; 
    --secondary: #F4B700; 
    --purple-dark: #2B185A; 
    --text-dark: #1A1A1A;
    --white: #ffffff;
    
    /* Typography */
    --font-poppins: 'Poppins', sans-serif;
    
    /* Animation Timing Functions */
    --bezier: cubic-bezier(0.25, 1, 0.5, 1);
    --smooth-bezier: cubic-bezier(0.65, 0, 0.35, 1); 
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-poppins);
    background-color: var(--primary);
    color: var(--text-dark);
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Optimasi rendering text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. NAVIGATION BAR (HEADER)
   ========================================================================== */
.navbar {
    background-color: var(--white);
    padding: 20px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); 
    transition: padding 0.4s var(--smooth-bezier);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 50px; 
    width: auto;
    display: block;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s var(--smooth-bezier);
}

/* Hover Effect & Focus Accessibility */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.4s var(--smooth-bezier);
}

.nav-links a:hover::after, 
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:focus-visible {
    outline: 2px dashed var(--secondary);
    outline-offset: 4px;
}

/* Nav Actions & Mobile Menu Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-catalog {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.4s var(--smooth-bezier);
}

.btn-catalog:hover,
.btn-catalog:focus-visible {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(5, 154, 135, 0.15);
    outline: none;
}

.btn-primary {
    position: relative;
    background-color: var(--secondary);
    color: var(--white);
    padding: 16px 42px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--secondary);
    overflow: hidden; 
    transition: all 0.4s var(--smooth-bezier);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: transparent; 
    color: var(--white);
    border-color: var(--white);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    cursor: pointer;
    outline: none;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    height: calc(100vh - 82px);
    background-color: var(--primary);
    background-image: url('latar.webp'); /* Pastikan path disesuaikan jika CSS ada di folder css/ */
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    display: flex;
    justify-content: flex-end; 
}

.hero-content {
    width: 45%;
    color: var(--white);
    margin-right: 5%; 
    opacity: 0;
    /* Hardware Acceleration hint untuk animasi lancar 60fps */
    will-change: transform, opacity;
    animation: smoothReveal 1.2s var(--smooth-bezier) forwards;
}

/* Mengganti styling H1 lama */
.hero-content h1 {
    margin-bottom: 24px;
    line-height: 1.1;
}

/* Styling khusus nama brand */
.brand-name {
    display: block;
    font-size: clamp(32px, 4vw, 52px); /* Ukuran disesuaikan agar tidak mudah patah */
    font-weight: 700;
    letter-spacing: -1px;
}

/* Styling khusus tagline SEO */
.seo-tagline {
    display: block;
    font-size: clamp(10px, 2.5vw, 24px);
    font-weight: 500;
    color: #fff; /* Diberi aksen warna kuning agar lebih hidup dan membedakan hierarki */
    margin-top: 5px;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}


@keyframes smoothReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   7. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content { 
        width: 60%; 
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        opacity: 0;
        z-index: -1;
        /* Hardware Acceleration untuk menu mobile */
        will-change: transform, opacity;
        transition: all 0.4s var(--smooth-bezier);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .btn-catalog {
        padding: 8px 16px;
        font-size: 14px;
    }

    .hero {
        background-image: none;
        background-color: var(--primary);
    }
    
    .hero-container { 
        justify-content: center; 
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
        background: rgba(2, 79, 69, 0.95); 
        padding: 40px 25px;
        border-radius: 24px;
        margin-right: 0; /* Reset margin untuk mobile */
    }
}