/* Exclusive Premium Service Card Design */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.premium-card {
    position: relative;
    height: 100%;
    perspective: 1500px;
    cursor: pointer;
}

.premium-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.premium-card:hover .premium-card-inner {
    transform: rotateY(10deg);
}

.premium-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.premium-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 86, 193, 0.05) 0%, rgba(37, 86, 193, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-card:hover .premium-card-front::before {
    opacity: 1;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.5;
}

.card-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(37, 86, 193, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 86, 193, 0.05) 0%, transparent 50%);
    animation: rotateBackground 30s linear infinite;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.card-header {
    position: relative;
    padding: 25px 25px;
    z-index: 2;
    display: flex;
    align-items: center;
    background: #2556c1;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    min-height: 100px;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.premium-card:hover .card-header::after {
    transform: translateY(0);
}

.card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.premium-card:hover .card-icon {
    transform: translateY(-5px) rotateY(20deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-icon i {
    font-size: 28px;
    color: #2556c1;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.premium-card:hover .card-icon::before {
    transform: translateY(0);
}

.card-title {
    flex: 1;
}

.card-title h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.premium-card:hover .card-title h3 {
    transform: translateX(5px);
}

.card-body {
    position: relative;
    padding: 25px;
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.card-description {
    flex: 1;
    margin-bottom: 25px;
    position: relative;
}

.card-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #2556c1 #f1f1f1;
}

.card-description ul::-webkit-scrollbar {
    width: 5px;
}

.card-description ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-description ul::-webkit-scrollbar-thumb {
    background: #2556c1;
    border-radius: 10px;
}

.card-description li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #4a5568;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card-description li:last-child {
    margin-bottom: 0;
}

.card-description li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2556c1;
    box-shadow: 0 0 0 2px rgba(37, 86, 193, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover .card-description li:before {
    background: #1a3c7d;
    box-shadow: 0 0 0 3px rgba(37, 86, 193, 0.3);
}

.premium-card:hover .card-description li {
    color: #2c3e50;
    transform: translateX(3px);
}

.card-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.premium-card:hover .card-description p {
    color: #2c3e50;
}

.card-action {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.premium-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2556c1 0%, #1a3c7d 100%);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(37, 86, 193, 0.3);
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #1a3c7d 0%, #2556c1 100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.premium-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.premium-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 86, 193, 0.4);
    color: #ffffff;
}

.premium-btn:hover::before {
    width: 100%;
}

.premium-btn:hover::after {
    opacity: 1;
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(1);
    }
}

.premium-btn span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.premium-btn:hover i {
    transform: translateX(5px);
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    background: rgba(37, 86, 193, 0.05);
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
}

.premium-card:hover .floating-element {
    opacity: 1;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 10%;
    animation-delay: 1s;
}

.element-3 {
    width: 30px;
    height: 30px;
    bottom: 10%;
    right: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .card-header {
        padding: 20px 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .card-title h3 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .premium-card-inner {
        min-height: 350px;
    }
}

/* Animation for card appearance */
.premium-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.8s forwards;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-card:nth-child(2) {
    animation-delay: 0.1s;
}

.premium-card:nth-child(3) {
    animation-delay: 0.2s;
}

.premium-card:nth-child(4) {
    animation-delay: 0.3s;
}

.premium-card:nth-child(5) {
    animation-delay: 0.4s;
}

.premium-card:nth-child(6) {
    animation-delay: 0.5s;
}

.premium-card:nth-child(7) {
    animation-delay: 0.6s;
}

.premium-card:nth-child(8) {
    animation-delay: 0.7s;
}

.premium-card:nth-child(9) {
    animation-delay: 0.8s;
}

.premium-card:nth-child(10) {
    animation-delay: 0.9s;
}

.premium-card:nth-child(11) {
    animation-delay: 1s;
}

.premium-card:nth-child(12) {
    animation-delay: 1.1s;
}

.premium-card:nth-child(13) {
    animation-delay: 1.2s;
}

.premium-card:nth-child(14) {
    animation-delay: 1.3s;
}
