@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0077b6;
    --primary-dark: #03045e;
    --secondary: #00b4d8;
    --accent: #90e0ef;
    --bg-light: #f0f8ff;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Typography Base */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    bottom: -8px;
    left: 20%;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
}

/* ------------------- NAVBAR ------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s;
}

.navbar.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--secondary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ------------------- HERO ------------------- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.8) 0%, rgba(0, 119, 182, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    color: var(--accent);
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ------------------- PROFIL ------------------- */
.profil-wrap {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.profil-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    max-height: 400px;
}

.profil-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    column-count: 2;
    column-gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .profil-text {
        column-count: 1;
    }
}

.profil-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pro-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 119, 182, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pro-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.pro-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.pro-card ul {
    list-style: none;
}

.pro-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 25px;
}

.pro-card ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* ------------------- EKOSISTEM ------------------- */
.ecosystem-section {
    background: linear-gradient(to bottom, #ffffff 0%, var(--bg-light) 100%);
}

.eco-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.eco-item:nth-child(even) {
    direction: rtl;
}

.eco-item:nth-child(even)>* {
    direction: ltr;
}

.eco-img {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.eco-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.eco-item:hover .eco-img img {
    transform: scale(1.05);
}

.eco-content h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.eco-content h4 {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.eco-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .eco-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .eco-item:nth-child(even) {
        direction: ltr;
    }
}

/* ------------------- ATURAN & LARANGAN ------------------- */
.rules-section {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.rules-section .section-title,
.rules-section .section-subtitle,
.rules-section h2 {
    color: var(--white);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.rule-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}

.rule-card h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.rule-card p {
    color: var(--accent);
    font-size: 0.95rem;
    margin: 0;
}

/* ------------------- SATWA DILINDUNGI & BAHAYA ------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.animal-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.animal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.animal-img {
    height: 220px;
    overflow: hidden;
}

.animal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.animal-card:hover .animal-img img {
    transform: scale(1.1);
}

.animal-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.animal-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-warning {
    background: #ffebee;
    color: #c62828;
}

.badge-danger {
    background: #fce4ec;
    color: #ad1457;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-alert {
    background: #fff8e1;
    color: #f57f17;
}

.badge-toxic {
    background: #e8f5e9;
    color: #2e7d32;
}

.danger-box {
    background: #fff3e0;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #f57c00;
    margin-top: auto;
}

.danger-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #e65100;
}

.alert-message {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 3rem;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

/* ------------------- PNBP (BIAYA MASUK) ------------------- */
.pnbp-section {
    background: #ffffff;
}

.pricings {
    max-width: 900px;
    margin: 0 auto;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    text-align: left;
}

.pricing-table th,
.pricing-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #eeeeee;
}

.pricing-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.pricing-table tr:hover td {
    background: var(--bg-light);
}

.pricing-table td {
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-table td:first-child {
    color: var(--primary-dark);
    font-weight: 600;
}

.additional-fees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.fee-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    border-top: 4px solid var(--secondary);
}

.fee-card h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.fee-list {
    list-style: none;
}

.fee-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fee-list li span {
    font-weight: 600;
    color: var(--primary);
}

/* ------------------- GALERI ------------------- */
.wrapper-gallery {
    overflow: hidden;
    padding: 2rem 0;
    background: var(--primary-dark);
}

.gallery-track {
    display: flex;
    width: calc(320px * 12);
    animation: scroll 35s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 6));
    }
}

.gallery-photo {
    width: 300px;
    height: 250px;
    margin: 0 10px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-photo::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 182, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-photo:hover img {
    transform: scale(1.1);
}

.gallery-photo:hover::after {
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--secondary);
}

.modal-prev {
    left: -70px;
}

.modal-next {
    right: -70px;
}

@media (max-width: 768px) {
    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

/* ------------------- FOOTER ------------------- */
.footer {
    background: #010b14;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: #a0aec0;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    color: #a0aec0;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-info a {
    color: #a0aec0;
    text-decoration: none;
}

.highlight-btn {
    display: inline-block;
    margin-top: 10px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    font-weight: 600;
}

.highlight-btn:hover {
    background: var(--secondary);
    color: var(--white) !important;
    padding-left: 20px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .profil-wrap {
        padding: 1.5rem;
        margin-top: -30px;
    }

    .profil-img {
        margin-bottom: 1.5rem;
    }

    .pro-card {
        padding: 1.5rem;
    }

    .eco-item {
        margin-bottom: 3rem;
    }

    .rule-card {
        padding: 1.5rem;
    }

    .cards-grid,
    .rules-grid {
        gap: 1.5rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: 0.4s ease-in-out;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}