:root {
    --theme-color: #0E5AF2;
    --title-color: #1A1A1A;
    --body-color: #55595d;
    --white-color: #ffffff;
    --dark-color: #071a3e;
    --icon-size: 80px;
    --title-font: "Exo", sans-serif;
    --body-font: "Fira Sans", sans-serif;
}

.service-card-container {
    width: 100%;
    padding: 15px;
    float: left;
}

.service-card {
    position: relative;
    padding-top: 16px;
    transition: all 0.5s ease;
    overflow: hidden;
}

.service-icon {
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 2;
    min-width: var(--icon-size);
    min-height: var(--icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-color);
    border-radius: 10px 0 10px 10px;
}

.service-icon::before {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 0 16px;
    border-color: transparent transparent transparent var(--theme-color);
    top: 0;
    right: -16px;
}

.service-image {
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 400px; /* Set the height of the image to 400px */
    border-radius: 10px;
    transform: scale(1);
    transition: 0.5s ease;
    object-fit: cover;
}

.service-card:hover .service-image img {
    transform: scale(1.2);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 10px;
    padding: 10px;
    z-index: 1;
}

.service-content::before,
.service-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
    border-radius: 0 0 10px 10px;
    transition: 0.5s ease;
}

.service-content::before {
    background-color: var(--theme-color);
}

.service-content::after {
    background-color: var(--white-color);
    z-index: -2;
    bottom: 5px;
}

.service-card:hover .service-content::before,
.service-card:hover .service-content::after {
    background-color: var(--dark-color);
}

.content-body {
    margin-bottom: -45px;
    transition: 0.5s ease;
}

.service-card:hover .content-body {
    margin-bottom: 0;
}

.service-title {
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.service-title .title-link {
    color: var(--white-color);
    text-decoration: none;
    transition: 0.4s ease;
}

.service-description {
    color: var(--white-color);
    margin: 0 0 13px 0;
    line-height: 1.63;
}

.read-more {
    color: var(--white-color);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--title-font);
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.service-card:hover .read-more {
    opacity: 1;
    visibility: visible;
}

/* Badge */
.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FF4A17;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Rating */
.service-rating {
    margin: 10px 0;
    color: var(--white-color);
}

.service-rating .star {
    color: #FFD700;
    font-size: 18px;
    margin-right: 2px;
}

.service-rating .star.empty {
    opacity: 0.5;
}

.service-rating .star.half {
    position: relative;
    display: inline-block;
}

.service-rating .star.half:after {
    content: "☆";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    opacity: 0.5;
}

/* Statistics */
.service-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 15px 0;
}

.service-stats .stats-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white-color);
}

.service-stats .stats-label {
    font-size: 16px;
    color: var(--white-color);
    opacity: 0.9;
}

/* Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--white-color);
}

.service-features .feature-icon {
    margin-right: 10px;
    color: var(--theme-color);
    font-weight: bold;
}

/* Layout Variations */

/* Horizontal Layout */
.layout-horizontal .service-card-horizontal {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
}

.layout-horizontal .service-card-left {
    width: 40%;
    position: relative;
}

.layout-horizontal .service-card-right {
    width: 60%;
    padding: 30px;
    background-color: var(--dark-color);
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.layout-horizontal .service-icon {
    top: -16px;
    left: 20px;
}

.layout-horizontal .service-image {
    height: 100%;
    border-radius: 10px 0 0 10px;
}

.layout-horizontal .service-image img {
    height: 100%;
    border-radius: 10px 0 0 10px;
}

.layout-horizontal .service-content {
    position: relative;
    margin: 0;
    padding: 0;
    background: transparent;
}

.layout-horizontal .service-content::before,
.layout-horizontal .service-content::after {
    display: none;
}

.layout-horizontal .content-body {
    margin-bottom: 0;
}

.layout-horizontal .read-more {
    opacity: 1;
    visibility: visible;
    margin-top: 20px;
}

/* Icon Top Layout */
.layout-icon_top .service-card-icon-top {
    text-align: center;
    padding-top: 0;
}

.layout-icon_top .service-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: translateY(-50%);
    margin: 0 auto;
    z-index: 3;
    border-radius: 10px;
}

.layout-icon_top .service-icon::before {
    display: none;
}

.layout-icon_top .service-content {
    position: relative;
    margin: -60px 20px 20px;
    width: auto;
}

.layout-icon_top .service-content::before,
.layout-icon_top .service-content::after {
    clip-path: none;
    border-radius: 10px;
}

.layout-icon_top .content-body {
    padding: 70px 20px 20px;
    margin-bottom: 0;
}

.layout-icon_top .read-more {
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    justify-content: center;
}

/* Flip Card Layout */
.layout-flip .service-card-flip {
    perspective: 1000px;
    height: 400px;
    padding-top: 0;
}

.layout-flip .service-card-front,
.layout-flip .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s ease;
    border-radius: 10px;
    overflow: hidden;
}

.layout-flip .service-card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.layout-flip .service-card-back {
    transform: rotateY(180deg);
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.layout-flip .service-card-flip:hover .service-card-front {
    transform: rotateY(180deg);
}

.layout-flip .service-card-flip:hover .service-card-back {
    transform: rotateY(0deg);
}

.layout-flip .back-content {
    text-align: center;
}

.layout-flip .service-card-back .service-title,
.layout-flip .service-card-back .service-description {
    color: var(--white-color);
}

.layout-flip .service-card-back .read-more {
    opacity: 1;
    visibility: visible;
    margin-top: 20px;
    justify-content: center;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animated.fade {
    animation-name: fadeIn;
}

.animated.slide-up {
    animation-name: slideUp;
}

.animated.slide-down {
    animation-name: slideDown;
}

.animated.slide-left {
    animation-name: slideLeft;
}

.animated.slide-right {
    animation-name: slideRight;
}

.animated.zoom-in {
    animation-name: zoomIn;
}

.animated.zoom-out {
    animation-name: zoomOut;
}

/* Hover Effect Classes */
.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-rotate:hover {
    transform: rotate(3deg);
}

.hover-blur .service-image img:hover {
    filter: blur(2px);
}

.hover-grayscale .service-image img:hover {
    filter: grayscale(100%);
}

.hover-shine .service-image {
    position: relative;
    overflow: hidden;
}

.hover-shine .service-image::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
    opacity: 0;
    transition: all 0.6s ease;
}

.hover-shine .service-image:hover::before {
    animation: shine 1s;
    opacity: 1;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .service-card-container {
        width: 100%;
    }
    
    .layout-horizontal .service-card-left,
    .layout-horizontal .service-card-right {
        width: 100%;
    }
    
    .layout-horizontal .service-card-right {
        border-radius: 0 0 10px 10px;
    }
    
    .layout-horizontal .service-image,
    .layout-horizontal .service-image img {
        border-radius: 10px 10px 0 0;
    }
}

@media (max-width: 767px) {
    .service-card-container {
        width: 100%;
    }
    
    .service-icon {
        left: 20px;
        min-width: calc(var(--icon-size) * 0.8);
        min-height: calc(var(--icon-size) * 0.8);
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .service-stats .stats-number {
        font-size: 28px;
    }
    
    .service-stats .stats-label {
        font-size: 14px;
    }
    
    .layout-flip .service-card-flip {
        height: 350px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --title-color: #f0f0f0;
        --body-color: #d0d0d0;
    }
    
    .service-content::after {
        background-color: #222;
    }
    
    .service-badge {
        background-color: var(--theme-color);
    }
    
    .layout-horizontal .service-card-right {
        background-color: #1a1a1a;
    }
}