/* portfolio-cards.css */

/* Global Dependencies (Requires Poppins Font and Font Awesome to be loaded separately) */

/* Custom Variables and Base Styles for this section only */
:root {
  --normal-font-size: 0.938rem;
  /* Include other global variables here if you want to use them */
}
@media screen and (min-width: 968px) {
  :root {
    --normal-font-size: 1rem;
  }
}
/* IMPORTANT: Resetting these selectors can affect your entire page.
   If you have issues, remove the following three lines and rely on your theme's reset. */
*, *:after, *:before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
    /*min-height: 100vh;*/
    display: grid;
    place-items: center;
}

/*==================== SERVICE CARD ====================*/
.card__container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    margin: auto;
    /*padding: 60px 0;*/
}
.card__bx {
    --dark-color: #2e2e2e;
    --dark-alt-color: #D6D6D6;
    --white-color: #ffffff;
    --transition: 0.5s ease-in-out;

    font-family: var(--body-font, "Poppins", sans-serif);
    height: 350px;
    width: 330px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark-color);
    transition: var(--transition);
}
.card__bx::before, .card__bx::after {
    content: "";
    position: absolute;
    z-index: -1;
    transition: var(--transition);
}
.card__bx::before {
    inset: -10px 50px;
    border-top: 4px solid var(--clr);
    transform: skewY(15deg);
    border-bottom: 4px solid var(--clr);
}
.card__bx:hover::before {
    inset: -10px 40px;
    transform: skewY(0deg);
}
.card__bx::after {
    inset: 60px -10px;
    border-left: 4px solid var(--clr);
    transform: skew(15deg);
    border-right: 4px solid var(--clr);
}
.card__bx:hover::after {
    inset: 40px -10px;
    transform: skew(0deg);
}
.card__bx .card__data {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 0 20px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.card__bx .card__data .card__icon {
    height: 80px;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--white-color);
    background-color: var(--dark-color);
    transition: var(--transition);
}
.card__bx .card__data .card__icon {
    color: var(--clr);
    box-shadow: 0 0 0 4px var(--dark-color), 0 0 0 6px var(--clr);
}
.card__bx:hover .card__data .card__icon {
    color: var(--dark-color);
    background-color: var(--clr);
    box-shadow: 0 0 0 4px var(--dark-color), 0 0 0 300px var(--clr);
}
.card__bx .card__data .card__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.card__bx .card__data h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white-color);
    transition: var(--transition);
}
.card__bx:hover .card__data h3 {
    color: var(--dark-color);
    transition: var(--transition);
}
.card__bx .card__data p {
    font-size: 0.9rem;
    color: var(--dark-alt-color);
    transition: var(--transition);
}
.card__bx:hover .card__data p {
    color: var(--dark-color);
    transition: var(--transition);
}
.card__bx .card__data a {
    position: relative;
    display: inline-flex;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    border: 2px solid var(--clr);
    color: var(--dark-color);
    background-color: var(--clr);
    transition: var(--transition);
}
.card__bx:hover .card__data a {
    color: var(--clr);
    background-color: var(--dark-color);
}
.card__bx:hover .card__data a:hover {
    border-color: var(--dark-color);
    color: var(--dark-color);
    background-color: var(--clr);
}