* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f2f2f2;
    color: #333;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}


/* ================= NAVBAR ================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgb(0 43 106 / var(--tw-bg-opacity, 1));
    backdrop-filter: blur(10px);
    padding: 14px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* ================= LOGO ================= */

nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav .logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

nav .logo span {
    color: #ff7a18;
}


/* ================= MENU ================= */

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff9a44;
}


/* ================= LOGIN BUTTON ================= */

.btn-login {
    background-color: rgba(255, 255, 255, 0.186);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}


/* Hover – Halus dan Elegan */

.btn-login:hover {
    background-color: #ff7a18;
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}


/* ================= MEDIA QUERY ================= */

@media (max-width: 1024px) {
    nav {
        padding: 12px 30px;
    }
    nav .logo {
        font-size: 20px;
    }
    nav ul {
        gap: 18px;
    }
    .btn-login {
        padding: 7px 18px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 8px;
    }
    .btn-login {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}


/* ================= HERO ================= */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 90px;
    overflow: hidden;
    background: url("../bg3.jpeg") center center / cover no-repeat;
}


/* Overlay utama – senada dengan navbar */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, rgba(0, 43, 106, 0.55) 0%, rgba(0, 43, 106, 0.7) 50%, rgba(0, 43, 106, 0.85) 100%);
    z-index: 0;
}


/* Aksen halus oranye + biru tua */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient( ellipse at center, rgba(255, 154, 68, 0.08) 0%, rgba(0, 43, 106, 0.35) 45%, rgba(0, 43, 106, 0.6) 100%);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
    z-index: 0;
}


/* Hero content */

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* ================= HERO CONTENT ================= */

.hero-content {
    position: relative;
    max-width: 620px;
    margin-top: 70px;
    /* dari 60px → 30px */
    text-align: right;
    color: #ffffff;
    z-index: 2;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 30px;
    /* dari 55px → lebih ramping */
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(11, 60, 140, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.04);
    animation: waveFloat 6s ease-in-out infinite;
}


/* ================= JUDUL ================= */

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
    position: relative;
    animation: titleReveal 1.4s ease forwards;
}


/* AKSEN JUDUL (LEMBUT & FORMAL) */

.hero-content h1::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -12px;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #f0904c, rgba(255, 155, 68, 0.578));
    border-radius: 2px;
}


/* ANIMASI JUDUL */

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ================= AKSEN TEKS (ORANGE TANPA GARIS) ================= */

.hero-content .highlight {
    color: #ff9040;
    font-weight: 700;
    opacity: 0;
    animation: accentReveal 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes accentReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= PARAGRAF ================= */

.hero-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    animation: textSlide 1.3s ease forwards;
    animation-delay: 1.1s;
}

@keyframes textSlide {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ================= BUTTON CTA ================= */

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
    padding: 10px 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18, #ff9a44);
    background-size: 200% 100%;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.4px;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), inset 0 -2px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.6s ease;
}

.hero-btn::after {
    content: "›";
    font-size: 22px;
    transition: transform 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-4px);
    background-position: 100% 50%;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn:hover::after {
    transform: translateX(6px);
}


/* ================= FLOATING EFFECT ================= */

@keyframes waveFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
    100% {
        transform: translateY(0);
    }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .hero {
        justify-content: center;
        padding: 0 30px;
        background-position: center;
    }
    .hero-content {
        text-align: center;
        padding: 40px;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-content h1::after {
        right: 50%;
        transform: translateX(50%);
    }
}


/* ================= LAYANAN ================= */

.layanan {
    background: #f3f6fb;
}


/* ================= HEADER PORTAL ================= */

.card-layanan-header {
    background-color: rgb(0 43 106 / var(--tw-bg-opacity, 1));
    border-bottom: 5px solid #ff7a18;
    padding: 32px 40px 30px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 px 36px rgba(11, 60, 140, 0.25);
}

.header-text {
    max-width: 1000px;
    margin: -10px auto;
    text-align: center;
}

.card-layanan-header h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.1px;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 0px;
}

.header-subtitle {
    font-size: 14.5px;
    line-height: 1.6;
    color: #e1eaff;
    margin-bottom: -20px;
    min-height: 60px;
}

.typing::after {
    content: attr(data-text);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(225, 234, 255, 0.75);
    width: 0;
    animation: typing 6s steps(80, end) infinite, blink 0.8s step-end infinite;
}

.header-divider {
    width: 70px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto;
    border-radius: 3px;
}


/* ================= KEYFRAMES ================= */

@keyframes typing {
    0% {
        width: 0;
    }
    60% {
        width: 100%;
    }
    80% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes blink {
    0%,
    50% {
        border-color: rgba(225, 234, 255, 0.75);
    }
    51%,
    100% {
        border-color: transparent;
    }
}


/* ================= KATEGORI ================= */

.kategori-wrapper {
    display: flex;
    justify-content: center;
    margin: 22px 0px;
    margin-bottom: 15px;
}

.kategori-pill {
    display: flex;
    background: linear-gradient(135deg, #1e5aa8, #1b4f9c);
    padding: 6px;
    border-radius: 999px;
    gap: 6px;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.kategori-item {
    border: none;
    background: transparent;
    color: #eaf2ff;
    padding: 10px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.kategori-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}


/* ACTIVE */

.kategori-item.active {
    background: #ffffff;
    color: #0d47a1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}


/* ================= SEARCH ================= */

.search-box {
    max-width: 720px;
    margin: -42px auto 26px;
    position: relative;
    z-index: 6;
    margin-bottom: 15px;
}


/* Wrapper input */

.search-field {
    position: relative;
    background: #ffffff;
    border-radius: 999px;
    padding: 0px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Icon search */

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8b95a5;
    pointer-events: none;
}


/* Input */

.search-field input {
    width: 100%;
    height: 52px;
    font-size: 16px;
    padding: 0 26px 0 60px;
    color: #0b3c8c;
    border: 1px solid #d4dae3;
    border-radius: 30px;
    background: #ffffff;
    transition: border-color 0.15s ease;
}


/* Hover */

.search-field input:hover {
    border-color: #b9c0cc;
}

.search-field input:focus {
    outline: none;
    border-color: #0b3c8c;
}

.search-field input::placeholder {
    color: #9aa3b2;
}


/* ================= SLIDER WRAPPER ================= */

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom tetap */
    gap: 25px;
    margin: 20px 0;
    padding: 0px 36px 5px;
}

@media (max-width: 992px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-wrapper {
        grid-template-columns: 1fr;
    }
}


/* Styling card */

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.card .btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff7a18, #ff9a44);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    ransition: background 0.3s ease, transform 0.3s ease;
}

.card .btn:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
}

@media (max-width: 768px) {
    .card {
        min-width: 100%;
    }
}


/* ================= FOOTER ================= */

.footer {
    background-color: rgb(0 43 106 / var(--tw-bg-opacity, 1));
    color: #eaf0fa;
    padding: 55px 30px 30px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
}


/* ================= KIRI ================= */

.footer-left {
    display: flex;
    gap: 16px;
    max-width: 600px;
    flex: 1 1 300px;
    /* responsif */
    flex-direction: row;
    align-items: flex-start;
}

.footer-logo img {
    width: 56px;
    height: auto;
}

.footer-text h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    text-align: left;
}

.footer-text p {
    font-size: 13px;
    line-height: 1.6;
    color: #d6e2f5;
    text-align: left;
}


/* ================= KANAN ================= */

.footer-right {
    flex: 1 1 250px;
    /* responsif */
    max-width: 360px;
    text-align: right;
}

.footer-contact h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}


/* ================= SOSIAL ================= */

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-social a:hover {
    background: #ff7a18;
    border-color: #ff7a18;
}


/* ================= KONTAK ================= */

.footer-social-wrap p {
    font-size: 13px;
    line-height: 1.7;
    color: #d6e2f5;
}

.footer-social-wrap a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer-social-wrap a:hover {
    color: #ff9a44;
}


/* ================= HAK CIPTA ================= */

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    font-size: 12.5px;
    color: #c9d6ee;
}

.footer-copy strong {
    color: #ffffff;
}


/* ================= RESPONSIVE ================= */


/* Tablet & Layar Medium */

@media (max-width: 1024px) {
    .footer-container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-social-wrap {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        gap: 20px;
        padding: 40px 20px 20px;
    }
    .footer-logo img {
        width: 48px;
    }
    .footer-text h4 {
        font-size: 13px;
    }
    .footer-text p,
    .footer-social-wrap p {
        font-size: 12px;
    }
    .footer-social a {
        width: 30px;
        height: 30px;
    }
    .footer-bottom {
        font-size: 11.5px;
    }
}