/* =========================================
   SERVICES SECTION
========================================= */
.tanmay-services-section {
    min-height: calc(100vh - 82px);
    padding: var(--section-padding);
    background: var(--odd-section-bg);
    align-items: center;
}

/* =========================================
   CONTAINER
========================================= */

.services-container {
    width: 100%;
    max-width: 1290px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.tanmay-services-section-mixed-heading {
    text-align: center;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.tanmay-services-section-mixed-heading h3 {
    font-size: var(--heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading2-color);
}

/* Double line divider container */

.tanmay-services-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 250px;
    margin: 0 auto;
}

/* Double lines on both sides */

.tanmay-services-section-divider::before,
.tanmay-services-section-divider::after {
    content: "";
    flex: 1;
    height: 4px;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

/* Middle Diamond Symbol */

.tanmay-services-section-diamond {
    margin: 0 12px;
    color: var(--primary-color);
    font-size: 20px;
    transform: scaleY(1.2);
}

.tanmay-services-section-description {
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.6;
    font-size: var(--sub-paragraph);
    color: var(--text-muted);
}

.tanmay-services-section-main-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--sub-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.tanmay-services-section-main-title span {
    color: var(--testimonial-star);
}

/* =========================================
   SERVICE CARD
========================================= */

.tanmay-service-card {
    background: var(--white);
    border-radius: 13px;
    padding: 21px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.tanmay-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* =========================================
   IMAGE
========================================= */

.tanmay-service-image {
    position: relative;
}

.tanmay-service {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 11px;
    overflow: hidden;
}

/* =========================================
   HOVER OVERLAY
========================================= */

.tanmay-service::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: -240px;
    left: 0;
    border-radius: 11px;
    background: var(--hero-overlay);
    opacity: 0;
    z-index: 2;
    transition:all 1s ease-in-out;
}

.tanmay-service-card:hover .tanmay-service::after {
    height: 240px;
    top: 0;
    opacity: 1;
    cursor: pointer;
    /* transition:all 1s ease-in-out; */
}

/* =========================================
   IMAGE
========================================= */

.tanmay-service-image .tanmay-service img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 11px;
    transition:all 1s ease-in-out;
}

/* =========================================
   IMAGE HOVER
========================================= */

.tanmay-service-card:hover .tanmay-service-image .tanmay-service img {
    transform: scale(1.03);
    filter: brightness(0.78);
    /* transition:all 1s ease-in-out; */
}

/* =========================================
   ICON BOX
========================================= */

.tanmay-service-icon {
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 78px;
    height: 78px;
    border-radius: 11px;
    background-color: var(--sevice-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition:all 1s ease-in-out;
}

/* =========================================
   ICON HOVER BACKGROUND
========================================= */

.tanmay-service-icon::before {
    width: 0;
    height: 0;
    content: "";
    position: absolute;
    transform: scale(0);
    transition:all 1s ease-in-out;
}

.tanmay-service-card:hover .tanmay-service-icon::before {
    width: 78px;
    height: 78px;
    background-color: var(--accent-color);
    border-radius: 11px;
    transform: scale(1.1);
    /* transition:all 1s ease-in-out; */
}

/* =========================================
   ICON
========================================= */

.tanmay-service-icon i {
    color: var(--primary-color);
    font-size: 36px;
    
    transition:all 1s ease-in-out;
}

/* =========================================
   ICON HOVER
========================================= */

.tanmay-service-card:hover .tanmay-service-icon i {
    transform: scale(1.1);
    color: var(--white);
    /* transition:all 1s ease-in-out; */
}

/* =========================================
   CARD CONTENT
========================================= */

.tanmay-service-content {
    padding-top: 50px;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* =========================================
   HEADING
========================================= */

.tanmay-service-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 17px;
    color: var(--heading-color2);
}

/* =========================================
   PARAGRAPH
========================================= */

.tanmay-service-content p {
    color: var(--sub-text);
    font-size: 17px;
    line-height: 1.7;
    /* max-width: 330px; */
    margin: auto;
}
.tanmay-service-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 120px;
    height: 40px;

    margin-top: auto;
    margin-left: auto;
    margin-right: auto;

    text-decoration: none;
    color: var(--border-color);

    font-size: 23px;

    transition: all 1s ease-in-out;
}

/* ICON */

.tanmay-service-link i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* LEARN MORE */

.tanmay-service-link p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    margin: 0;
    color: var(--accent-color);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* HOVER */

.tanmay-service-card:hover .tanmay-service-link i {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    /* transition:all 1s ease-in-out; */
}

.tanmay-service-card:hover .tanmay-service-link p {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    /* transition:all 1s ease-in-out; */
}
