/* CSS Reset & Variabel Warna */
:root {
    --bg-color: #FDF3E3;
    --text-dark: #064E50;
    --accent-yellow: #FFB800;
    --accent-red: #F24E4E;
    --accent-purple: #9FA8F5;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    background-image: url('../petcare/svg-background-vet-clinic-rudhiz.svg');
    background-size: cover; /* Atau ganti 'auto' jika ingin pattern berulang */
    /* Jika menggunakan pattern yang berulang, gunakan: background-repeat: repeat; */
}

/* Navigasi */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i { 
    font-size: 2rem; 
}

.logo-tagline {
    font-size: 0.5rem;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { 
    color: var(--accent-red); 
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--text-dark);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icons a:hover { 
    transform: translateY(-3px); 
}

/* Bagian Hero */
.hero {
    display: flex;
    align-items: center; /* DIUBAH: Mengembalikan ke center agar tidak stretch ke bawah */
    justify-content: space-between;
    padding: 0 5%;
    min-height: calc(100vh - 100px); 
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
    align-self: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #04383a;
    transform: scale(1.05);
}

/* Gambar Hero & Dekorasi */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center; /* DIUBAH: Dari flex-end menjadi center agar tidak menempel ke bawah */
}

/* Ini adalah Grup Komposisi Baru */
.cat-composition {
    position: relative;
    display: flex;
    align-items: center; /* DIUBAH: Dari flex-end menjadi center */
}

.main-cat {
    height: 75vh;
    max-height: 750px;
    min-height: 450px;
    width: auto;
    z-index: 2;
    object-fit: cover;
}

/* Bentuk Dekoratif (Absolute Positioning) */
.shape { 
    position: absolute; 
    z-index: 1; 
}

.circle-yellow {
    width: 250px; 
    height: 250px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    top: 20%; 
    left: -120px; 
}

.circle-red {
    width: 100px; 
    height: 100px;
    background-color: var(--accent-red);
    border-radius: 50%;
    top: 30%; 
    right: -50px;
}

.blob-purple {
    width: 300px; 
    height: 250px;
    background-color: var(--accent-purple);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    bottom: -10px; 
    right: -120px;
}

.icon-float {
    position: absolute;
    color: var(--text-dark);
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.paw-1 { bottom: 10%; left: -20px; font-size: 1.5rem; animation-delay: 0s; }
.paw-2 { bottom: 20%; left: 30px; font-size: 2rem; animation-delay: 1s; }
.bone { top: 20%; left: -60px; color: #B08953; transform: rotate(15deg); }

/* Animasi Mengambang (Floating) */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Desain Responsif (Tablet & Smartphone) */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    .hero-content h1 { 
        font-size: 3rem; 
    }
    .nav-links, .social-icons { 
        display: none; 
    } 
    .hero-image { 
        width: 100%; 
        height: 400px; 
    }
    .circle-yellow { 
        width: 150px; 
        height: 150px; 
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.5rem; }
}

/* Sembunyikan toggle secara default di Desktop */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block; 
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; 
        background-color: var(--bg-color);
        width: 70%;
        height: 100vh;
        padding-top: 5rem;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        text-align: center;
    }

    .social-icons {
        display: none; 
    }
}

/* Mengunci scroll vertikal khusus untuk Desktop */
@media (min-width: 992px) {
    body {
        overflow-y: hidden;
    }
}