
:root {
    --primary-color: #3B4443;
    --secondary-color: #2563EB;
    --accent-color: #10B981;
    --tertiary-color: #F43F5E;
    --light-bg: #F9FAFB;
    --card-bg: #FFFFFF;
    --dark-text: #1F2937;
    --light-text: #FFFFFF;
    --medium-text: #6B7280;
    --border-color: #E5E7EB;
    --transition-time: 0.4s;
    --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.services-wrapper {
    position: relative;
    padding: 40px 0 80px;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 90%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.services-container {
    max-width: 1280px;
    margin: -90px auto 0;
    padding: 30px;
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.services-heading {
    text-align: center;
    margin-bottom: 60px;
}

.services-heading h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.services-heading h2:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.services-heading p {
    font-size: 18px;
    color: var(--medium-text);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    transition: transform 0.6s var(--transition-cubic), box-shadow 0.6s var(--transition-cubic);
    height: 450px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.service-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(244, 63, 94, 0.05) 100%);
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.service-header {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-text);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover .service-badge {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(1) .service-badge {
    color: var(--secondary-color);
}

.service-card:nth-child(2) .service-badge {
    color: var(--tertiary-color);
}

.service-card:nth-child(3) .service-badge {
    color: var(--accent-color);
}

.service-icon-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-cubic);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover .service-icon-circle {
    transform: rotateY(180deg);
}

.service-icon-front, .service-icon-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: transform 0.5s var(--transition-cubic);
    border-radius: 50%;
}

.service-icon-back {
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 36px;
    transition: all 0.3s ease;
}

.service-card:nth-child(1) .service-icon-front .service-icon {
    color: var(--secondary-color);
}

.service-card:nth-child(2) .service-icon-front .service-icon {
    color: var(--tertiary-color);
}

.service-card:nth-child(3) .service-icon-front .service-icon {
    color: var(--accent-color);
}

.service-card:nth-child(1) .service-icon-circle {
    background: linear-gradient(135deg, #ffffff 0%, rgba(37, 99, 235, 0.1) 100%);
}

.service-card:nth-child(2) .service-icon-circle {
    background: linear-gradient(135deg, #ffffff 0%, rgba(244, 63, 94, 0.1) 100%);
}

.service-card:nth-child(3) .service-icon-circle {
    background: linear-gradient(135deg, #ffffff 0%, rgba(16, 185, 129, 0.1) 100%);
}

.service-card:nth-child(1) .service-icon-back {
    background-color: var(--secondary-color);
}

.service-card:nth-child(2) .service-icon-back {
    background-color: var(--tertiary-color);
}

.service-card:nth-child(3) .service-icon-back {
    background-color: var(--accent-color);
}

.service-icon-back .service-icon {
    color: white;
}

.service-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.05) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-pattern {
    opacity: 0.5;
}

.service-content {
    padding: 30px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    transform: translateX(5px);
}

.service-card:nth-child(1) .service-title {
    color: var(--secondary-color);
}

.service-card:nth-child(2) .service-title {
    color: var(--tertiary-color);
}

.service-card:nth-child(3) .service-title {
    color: var(--accent-color);
}

.service-description {
    color: var(--medium-text);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.service-features {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: absolute;
    bottom: 75px;
    left: 30px;
    right: 30px;
}

.service-card:hover .service-features {
    opacity: 1;
    transform: translateY(0);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 14px;
}

.service-card:nth-child(1) .feature-icon {
    color: var(--secondary-color);
}

.service-card:nth-child(2) .feature-icon {
    color: var(--tertiary-color);
}

.feature-text {
    font-size: 14px;
    color: var(--medium-text);
}

.service-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 10px 25px;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:nth-child(1) .service-link {
    color: var(--secondary-color);
}

.service-card:nth-child(2) .service-link {
    color: var(--tertiary-color);
}

.service-card:nth-child(3) .service-link {
    color: var(--accent-color);
}

.service-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.service-card:nth-child(1) .service-link:before {
    background-color: var(--secondary-color);
}

.service-card:nth-child(2) .service-link:before {
    background-color: var(--tertiary-color);
}

.service-card:nth-child(3) .service-link:before {
    background-color: var(--accent-color);
}

.service-card:hover .service-link:before {
    width: 100%;
}

.service-card:hover .service-link {
    color: white;
}

.service-link-text {
    margin-right: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.service-link-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link-icon {
    transform: translateX(5px);
}

.service-decoration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    z-index: 0;
    opacity: 0.15;
    transition: all 0.6s ease;
}

.service-card:hover .service-decoration {
    transform: rotate(30deg) scale(1.2);
}

.service-card:nth-child(1) .service-decoration {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
}

.service-card:nth-child(2) .service-decoration {
    background: radial-gradient(circle, var(--tertiary-color) 0%, transparent 70%);
}

.service-card:nth-child(3) .service-decoration {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.services-background-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: -1;
    background-color: #f3f4f6;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .services-container {
        margin-top: -40px;
        padding: 20px;
    }
    
    .services-heading h2 {
        font-size: 32px;
    }
    
    .services-heading p {
        font-size: 16px;
    }
    
    .service-card {
        height: auto;
        min-height: 400px;
    }
    
    .service-header {
        height: 140px;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Pulse animation */
.pulse {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Mouse scroll animation for demo purposes */
.scroll-downs {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    width: 34px;
    height: 55px;
}

.mousey {
    width: 3px;
    padding: 10px 13px;
    height: 35px;
    border: 2px solid var(--dark-text);
    border-radius: 25px;
    opacity: 0.75;
    box-sizing: content-box;
}

.scroller {
    width: 3px;
    height: 10px;
    border-radius: 25%;
    background-color: var(--dark-text);
    animation-name: scroll;
    animation-duration: 2.2s;
    animation-timing-function: cubic-bezier(.15,.41,.69,.94);
    animation-iteration-count: infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(0); }
    10% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

.abt-btn{
    margin-top: -30px !important;
}
