:root {
    --primary-color: #d24625;
    --secondary-color: #2c569d;
    --addtional-color: #c72027;
    --white-color: #fff;
    --black-color: #000000a2;
    --button-background-color: #d24625;
}

/* == Main Service Section == */
.services-section {
    padding: 40px 0;
}

/* == Section Title Styling == */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    /* Deep blue title */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

@media(max-width:768px) {
    .section-title h2 {
        font-size: 30px;
    }
}

@media(max-width:425px) {
    .section-title h2 {
        font-size: 25px;
    }
}


.section-title p {
    font-size: 1.1rem;
    color: var(--black-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Title underline effect */
.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    /* Red-orange underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

/* == PUTHU STYLE: Intha 'a' tag ah card maathiri act panna vaikkarathukku == */
.service-card-link {
    display: block;
    /* Takes up the full column width */
    height: 100%;
    /* Matches the parent's d-flex height */
    text-decoration: none;
    /* Link underline ah remove panna */
    color: inherit;
    /* Text color normal ah irukka */
    transition: all 0.3s ease-in-out;
    /* Same transition as card */
}

.service-card-link:hover {
    text-decoration: none;
    /* Hover laiyum underline venaam */
    color: inherit;
    /* Hover laiyum text color maara venaam */
    /* Hover effect ippo 'service-card' la irunthu inga move aaguthu */
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 86, 157, 0.2);
}

/* == Service Card Styling == */
.service-card {
    background-color: var(--white-color);
    border-radius: 15px;
    /* Rounded corners */
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    /* Important for image hover effect */
    height: 100%;
    /* Ellame ore height la irukka */
    display: flex;
    flex-direction: column;

    /* HOVER ANIMATION (Itha 'service-card-link' ku maathiyachu) */
    /* transition: all 0.3s ease-in-out; */
    /* Note: We keep the individual transitions for inner parts */
}

/* HOVER EFFECT (Itha 'service-card-link:hover' ku maathiyachu) */
/*
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(44, 86, 157, 0.2);
        }
        */

/* Image Container */
.card-body {
    position: relative;
    overflow: hidden;
    /* Image zoom effect kaaga */
}

/* == MAPLA KETTADHU: Gradient Border == */
.card-body::after {
    content: '';
    position: absolute;
    bottom: 50;
    left: 0;
    width: 100%;
    height: 4px;
    /* Border thickness */
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
    opacity: 0.9;
    transition: all 0.4s ease;
}

/* Hover panna gradient konjam perusaagum */
.service-card-link:hover .card-img-container::after {
    opacity: 1;
    transform: scaleY(1.2);
    /* Konjam thick aagum */
}

/* == End of Gradient Border == */


.service-card .card-img-top {
    height: 100%;
    /* Neenga kudutha maathiri 100% vechirukken. */
    /* NOTE: Ithu correct ah work aaga, image oda size ellam ore maathiri iruntha nallathu */
    /* Oru vela image height maarina, 'height: 220px;' nu maathikkonga */
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;

    /* IMAGE HOVER ANIMATION */
    transition: transform 0.4s ease;
}

/* Ippo 'a' tag mela hover panna image zoom aaganum */
.service-card-link:hover .card-img-top {
    transform: scale(1.1);
    /* Image zoom aagum */
}

/* Card Body */
.service-card .card-body {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ithu button ah keela thallidum */
}

/* Icon styling */
.service-icon {
    font-size: 3rem;
    /* Periya icon */
    color: var(--primary-color);
    /* Red-orange icon */
    margin-bottom: 20px;
    /* Icon rotation on hover */
    transition: transform 0.3s ease;
}

/* Ippo 'a' tag mela hover panna icon rotate aaganum */
.service-card-link:hover .service-icon {
    transform: rotateY(180deg);
    /* Icon rotate aagum */
}

.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    /* Deep blue title */
    margin-bottom: 15px;
}

.service-card .card-text {
    color: var(--black-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Ithu text kum button kum naduvula space fill pannum */
}

/* Button Styling (Ithu ippo 'span' tag) */
.btn-service {
    background-color: var(--white-color) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--button-background-color) !important;
    border-radius: 50px;
    /* Pill shape button */
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    /* Cursur ah pointer ah maatha theva illa, 'a' tag pathukum */
}

/* 'a' tag mela hover pannaalum button effect varanum */
.service-card-link:hover .btn-service {
    background-color: var(--button-background-color) !important;
    color: var(--white-color) !important;
    border-color: var(--button-background-color);
    transform: scale(1.05);
    /* Button perusaagum */
}