@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --warna: #00BBA7 ;
    --font: white;
    --antifont: black;
    --section : #CBFBF1;
}

*{
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    
}

html {
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}



/* fallback: kalau nav punya class block (Flowbite menambah class 'block') */


.nav-active {
  color: var(--warna) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}



#navbar-default.block a.nav-active {
  color: var(--warna) !important; /* teal */
}

#catalogue {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10%;
}

.card {
    position: relative;
    width: 600px;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: 0.5s;
    flex-grow: 1;
}

.card .circle  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card .circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warna);
    clip-path: circle(120px at center);
    transition: 0.5s;
}

.card:hover .circle::before {
    clip-path: circle(400px at center);
    background: var(--font);
    border: 2px solid var(--warna);
}

.card img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 300px;
    pointer-events: none;
    transition: 0.5s;
}

.card:hover img {
    left: 82%;
    height: 500px;
}



.card .content {
    position: relative;
    width: 50%;
    left: 20%;
    padding: 20px 20px 20px 40px;
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
}

.card:hover .content {
    left: 0;
    opacity:1;
    visibility: visible;
}

.card .content h2 {
    color: var(--warna);
    text-transform: uppercase;
    font-size: 2em;
    line-height: 1em;
    margin-bottom: 5px;
}

.card .content h3 {
    color: var(--warna);
}

.card .content h3 {
    text-align: right;
    font-size: larger;
}

.card .content h4,
.card .content li {
    list-style-type: disc;
    color: var(--antifont);
    line-height: 1.5em;
    font-weight: 300;
    
}

.card .content a {
    position: relative;
    color: var(--font);
    padding: 10px;
    border-radius: 10px;
    background: var(--warna);
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
}

.card .content .button {
    display: flex;
    width: 100%;
    gap: 5%;
}




footer { 
  padding: 0.5rem; 
  width: 100%; 
  background-color:var(--section); 
  bottom: 0; 
  right: 0; 
  text-align: center; 
  border: 1px solid #b0c8c3; 
  font-size: 1rem;
} 

footer small {

    white-space: nowrap; 
    display: block; 
    text-align: center; 
    margin: 10px 0;
}

footer a { 
    display: inline-block; 
    color: black; 
    text-decoration: none; 
    font-size: 1.4rem;
}

footer a:hover { 
  color: white; 
} 

@media (max-width: 991px) {
    
.card {
    width: auto;
    max-width: 350px;
    align-items: flex-start;
    margin: 10px;
}

.card:hover  {
    height: 600px;
}

.card .content {
    width: 100%;
    left: 0;
    padding: 40px;
}


.card:hover img {
    top: 75%;
    left: 50%;
    height: 320px;
}

.card .content h4,
.card .content li {
    font-size: small;
    
}

}

@media (max-width: 991px) {

.card .content {
    padding: 20px;
}

.card:hover img {
    top: 82%;

}
}