/* ==========================================
   1. CSS VARIABLES & THEME CONFIGURATION
   ========================================== */
:root {
    --bg: #F8F9FA;          
    --ink: #111827;         
    --text: #374151;        
    --brass: #D92626;       
    --mist: #E5E7EB;        
    --card: #FFFFFF;        
    
    --serif: 'Manrope', system-ui, -apple-system, sans-serif;
    --sans: 'Manrope', system-ui, -apple-system, sans-serif;
    
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
}

/* ==========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}

a {
    color: inherit;
}

/* ==========================================
   3. LAYOUT & REUSABLE COMPONENTS
   ========================================== */
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

.lead {
    max-width: 60ch;
    color: #4B5563;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Tombol Komponen Modern (Tidak Kaku - Sesuai Referensi Konsultasi) */
.btn {
    display: inline-block;
    background: var(--ink);
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 8px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid var(--ink);
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn.alt {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn:hover {
    background: #1F2937;
    color: #FFFFFF;
    border-color: var(--brass);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 38, 38, 0.2);
}

/* ==========================================
   4. NAVIGATION BAR (MODERN GLASSMORPHISM)
   ========================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(16px);            
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    transition: all 0.3s ease;
}

nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo img {
    height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply; 
}

.logo:hover img {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 0;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--brass);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul a:hover {
    opacity: 1;
    color: var(--brass);
}

nav ul a:hover::after {
    width: 100%;
}

nav .btn {
    padding: 11px 24px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border-radius: 8px;     
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 38, 38, 0.25);
}

/* ==========================================
   5. HERO SECTION & BEFORE/AFTER SLIDER
   ========================================== */
.hero {
    padding: 72px 0 96px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--mist);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.hero p {
    max-width: 44ch;
    margin-bottom: 32px;
    color: #4B5563;
    font-size: 1.05rem;
}

.hero .ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ba {
    position: relative;
    aspect-ratio: 4 / 3.2;
    overflow: hidden;
    border-radius: 0px;
    background: #E5E7EB;
    border: 1px solid var(--mist);
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    /* TAMBAHKAN BARIS INI AGAR ANIMASI LICIN & TIDAK BERAT */
    transform: translateZ(0);
    will-change: transform;
}

.ba .L {
    position: absolute;
    inset: 0;
}

.before {
    background: 
        repeating-linear-gradient(0deg, transparent 0 23px, rgba(0, 0, 0, 0.04) 23px 24px),
        repeating-linear-gradient(90deg, transparent 0 23px, rgba(0, 0, 0, 0.04) 23px 24px),
        #D1D5DB;
}

.after {
    background: linear-gradient(180deg, #374151 0%, #D92626 38%, #1F2937 38%, #111827 100%);
    clip-path: inset(0 0 0 50%);
}

.house {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 12%;
    height: 52%;
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
}

.house::before {
    content: "";
    position: absolute;
    left: -4%;
    right: -4%;
    top: -14%;
    height: 14%;
    background: var(--brass);
}

.house i {
    position: absolute;
    top: 22%;
    width: 24%;
    height: 36%;
    background: #F3F4F6;
    border: 1px solid var(--mist);
}

.house i:nth-child(1) { left: 8%; }
.house i:nth-child(2) { right: 8%; }

.house b {
    position: absolute;
    bottom: 0;
    left: 42%;
    width: 16%;
    height: 46%;
    background: #111827;
}

.tag {
    position: absolute;
    top: 12px;
    padding: 6px 14px;
    background: rgba(17, 24, 39, 0.85);
    color: #FFFFFF;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.ba input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
    z-index: 10;
}

.bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--brass);
    pointer-events: none;
}

.bar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border: 3px solid var(--brass);
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ==========================================
   6. STATISTICS SECTION
   ========================================== */
.stats {
    background: #F3F4F6;
    border-bottom: 1px solid var(--mist);
    padding: 44px 0;
}

.stats .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.stats div {
    min-width: 140px;
}

.stats strong {
    font: 800 2.5rem var(--serif);
    color: var(--ink); 
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

/* ==========================================
   7. PROJECTS SECTION & GRID
   ========================================== */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filters button {
    padding: 10px 22px;
    border: 1px solid var(--mist);
    background: #FFFFFF;
    color: var(--ink);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.filters button[aria-pressed="true"] {
    background: var(--ink);
    color: #FFFFFF;
    border-color: var(--ink);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--mist);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: var(--brass);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.card .ov {
    overflow: hidden;
}

.card .img {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card:hover .img {
    transform: scale(1.04);
}

.card .body {
    padding: 24px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.meta {
    font-size: 0.8rem;
    color: #6B7280; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty {
    padding: 40px;
    border: 1px dashed var(--mist);
    text-align: center;
    color: #6B7280;
}

/* ==========================================
   8. VIDEO & PROCESS STEPS
   ========================================== */
.vid {
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--mist);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.vid iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    counter-reset: s;
}

.steps div {
    border-top: 3px solid var(--brass);
    padding-top: 20px;
    counter-increment: s;
}

.steps div::before {
    content: "0" counter(s);
    font: 800 1.8rem var(--serif);
    color: var(--brass);
    display: block;
    margin-bottom: 8px;
}

.steps h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* ==========================================
   9. CERTIFICATIONS & CONTACT FORM
   ========================================== */
.certs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.cert {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--mist);
    border-left: 4px solid var(--brass);
    border-radius: 8px;
}

.cert strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 4px;
}

form {
    display: grid;
    gap: 16px;
}

label {
    font-size: 0.85rem;
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 600;
}

input, select, textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--mist);
    background: #FFFFFF;
    color: var(--ink);
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brass);
}

.contact {
    background: #111827;
    color: #E5E7EB;
}

.contact h2, .contact h3 {
    color: #FFFFFF;
}

.contact .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.contact dl {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.contact dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9CA3AF; 
    font-weight: 700;
}

.contact label {
    color: #FFFFFF;
}

.contact input, 
.contact select, 
.contact textarea {
    border: 1px solid #374151;
    background: #1F2937;
    color: #FFFFFF;
}

/* ==========================================
   10. FOOTER
   ========================================== */
footer {
    padding: 32px 0;
    font-size: 0.85rem;
    background: #090D16;
    color: #9CA3AF;
    border-top: 1px solid #1F2937;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer a {
    color: #9CA3AF; 
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #FFFFFF; 
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 99;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-left: 4px solid var(--brass);
}

/* ==========================================
   11. FLOATING WHATSAPP BUTTON
   ========================================== */
.float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366; 
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 999; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.float-wa:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
    color: #FFFFFF;
}

/* ==========================================
   12. MOBILE MENU HAMBURGER (NAV BUKA TUTUP)
   ========================================== */
.menu-toggle {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    margin: 0 auto;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   13. SHOW/HIDE PASSWORD (FITUR INTIP PASSWORD)
   ========================================== */
.pw-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.pw-wrap input {
    width: 100% !important;
    padding-right: 48px !important; 
}

#togglePw, #toggleNewPw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6B7280;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease;
}

#togglePw:hover, #toggleNewPw:hover {
    color: var(--brass);
}

/* ==========================================
   14. ADMIN DASHBOARD & SIDEBAR LAYOUT
   ========================================== */
body.admin-body {
    background: #090D16;
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    font-family: var(--sans);
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.admin-body.auth-ready {
    opacity: 1;
}

aside {
    width: var(--sidebar-width);
    background: #111827;
    border-right: 1px solid #1F2937;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

aside.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1F2937;
}

.sidebar-brand h2 {
    font-size: 1.1rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

aside.collapsed .sidebar-brand h2 {
    opacity: 0;
    pointer-events: none;
}

.toggle-sidebar {
    background: #1F2937;
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin: 0;
}

.sidebar-menu button {
    width: 100%;
    background: transparent;
    border: none;
    color: #9CA3AF;
    padding: 12px 16px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidebar-menu button:hover, 
.sidebar-menu button.active {
    background: #1F2937;
    color: #FFFFFF;
}

aside.collapsed .sidebar-menu span {
    display: none;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #1F2937;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - var(--sidebar-width));
}

aside.collapsed ~ main-content {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
}

.admin-panel {
    background: #F8F9FA;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.preview-panel {
    background: #111827;
    border-left: 1px solid #1F2937;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.preview-header {
    padding: 16px 24px;
    background: #1F2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-panel iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #FFFFFF;
}

.admin-section {
    background: #FFFFFF;
    border: 1px solid var(--mist);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: none;
}

.admin-section.active-tab {
    display: block;
}

.admin-section h3 {
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mist);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mist);
    align-items: center;
}

.row small {
    color: #6B7280;
}

.x {
    background: #F3F4F6;
    border: none;
    padding: 8px 16px;
    border-radius: 8px; 
    cursor: pointer;
    color: var(--text);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.x:hover {
    background: var(--brass);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.mobile-header {
    display: none;
    background: #111827;
    color: #FFFFFF;
    padding: 16px 20px;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    border-bottom: 1px solid #1F2937;
}

.mobile-toggle-btn {
    background: #1F2937;
    border: none;
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================
   15. MOBILE RESPONSIVENESS TWEAKS
   ========================================== */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
    }
    aside {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }
    aside.mobile-open {
        transform: translateX(0);
    }
    aside.collapsed .sidebar-menu span {
        display: inline;
    }
    main-content {
        margin-left: 0 !important;
        width: 100% !important;
        grid-template-columns: 1fr;
        padding-top: 64px;
        height: auto;
    }
    .admin-panel {
        height: auto;
        padding: 20px;
    }
    .preview-panel {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .wrap {
        padding: 0 20px; 
    }

    nav .wrap {
        height: 64px;
        gap: 12px;
    }
    
    .logo {
        flex-shrink: 1; 
        min-width: 0;
    }

    .logo img {
        height: 34px; 
        max-width: 100%; 
        object-fit: contain;
        object-position: left center;
    }

    nav .btn {
        flex-shrink: 0; 
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .menu-toggle {
        display: flex; 
    }

    nav ul {
        position: absolute;
        top: 64px; 
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 16px 32px 32px; 
        gap: 0; 
        box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
        border-bottom: 1px solid var(--mist);
        
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
        display: flex !important; 
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(17, 24, 39, 0.06); 
    }
    
    nav ul li:last-child {
        border-bottom: none; 
    }

    nav ul a {
        font-size: 1.15rem;
        font-weight: 800;
        width: 100%;
        display: flex;
        justify-content: space-between; 
        align-items: center;
        padding: 18px 0;
        transition: all 0.3s ease;
        text-align: left;
    }

    nav ul a:hover, nav ul a:active {
        color: var(--brass);
        padding-left: 8px; 
    }

    nav ul a::after {
        content: '→';
        position: static;
        width: auto;
        height: auto;
        background: none;
        font-size: 1.2rem;
        opacity: 0; 
        transform: translateX(-10px);
        transition: all 0.3s ease;
        color: var(--brass);
    }

    nav ul a:hover::after, nav ul a:active::after {
        opacity: 1;
        transform: translateX(0);
    }

    .hero {
        padding: 32px 0 56px;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        word-wrap: break-word;
    }

    .hero .ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero .ctas .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    h2 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .lead {
        font-size: 0.95rem;
        max-width: 100%;
    }

    section {
        padding: 56px 0;
    }

    .hero .wrap,
    .stats .wrap,
    .grid,
    .steps,
    .certs,
    .contact .wrap,
    .two {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .card .img {
        aspect-ratio: 16 / 9; 
    }
    
    .card .body {
        padding: 20px;
    }

    footer {
        padding: 32px 0 96px; 
    }

    footer .wrap {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 16px;
    }
}

/* ==========================================
   ANIMASI HERO SECTION (FUTURISTIK & ELEGAN)
   ========================================== */

/* Membuat kunci animasi pergerakan */
@keyframes fadeUpReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. Animasi untuk Judul Utama */
.hero h1 {
    opacity: 0; 
    animation: fadeUpReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

/* 2. Animasi untuk Deskripsi */
.hero p {
    opacity: 0;
    animation: fadeUpReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

/* 3. Animasi untuk Tombol Aksi (CTA) */
.hero .ctas {
    opacity: 0;
    animation: fadeUpReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* 4. Animasi untuk Gambar Slider Before/After di sebelah kanan */
.hero .ba {
    opacity: 0;
    animation: fadeUpReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    /* Tambahan agar render browser sangat ringan */
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Opsional: Efek mengambang (hover) halus saat gambar slider disentuh mouse */
.hero .ba {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero .ba:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}