:root {
    --gradient-1: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    --gradient-2: linear-gradient(135deg, #6a5acd 0%, #00bcd4 100%);
    --gradient-3: linear-gradient(135deg, #8e44ad 0%, #c0392b 100%);
    --gradient-4: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    --gradient-5: linear-gradient(135deg, #ff4081 0%, #e040fb 100%);
    --gradient-6: linear-gradient(135deg, #f44336 0%, #ff9800 100%);
}

/* Morphing Background for Services */
@keyframes morphBackground {
    0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
}

.services-hero {
    position: relative;
    background:  linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    overflow: hidden;
    padding: 10px 0 60px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(12,122,248,0.15) 0%, rgba(18,187,253,0.1) 50%, transparent 70%);
    transform: rotate(-12deg);
    pointer-events: none;
}

.morph-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(12,122,248,0.35) 0%,
        rgba(18,187,253,0.25) 30%,
        rgba(255,255,255,0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

.morph-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(12,122,248,0.8) 0%, rgba(18,187,253,0.6) 100%);
    opacity: 0.15;
    filter: blur(80px);
    animation: morphBackground 15s ease-in-out infinite;
}

.morph-shape:nth-child(1) {
    top: -200px;
    right: -100px;
}

.morph-shape:nth-child(2) {
    bottom: -200px;
    left: -100px;
    animation-delay: -7s;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

/* Hero Content Styles */
.hero-content {
    
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-top: 0%;
    text-align: left;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffff 0%, #ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    text-align: left;
    line-height: 1.6;
    color: rgba(12, 12, 12, 0.8);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: left;
}

.hero-buttons .btn-light {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 8px 25px rgba(12,122,248,0.25);
    color: white;
}

.hero-buttons .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(12,122,248,0.3);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    margin-left: 1rem;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.service-hero-container{
    margin: 50px;
  
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
}
.service-hero-img {
   
    margin: 50px, 50px;
    padding-top: 70px;
    max-width: 600px;
    max-height: 500px;
    margin: 40px ,40px, auto;
   
}

/* flip animation for hero image */
.hero-image-flip {
    perspective: 1000px;
    width: 420px;
    height: 620px;
    margin: auto;
    position: relative;
}
.hero-image-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 8%;
    transition: transform 1s cubic-bezier(.4,2,.3,.8);
    transform-style: preserve-3d;
    animation: flipHero 6s infinite;
}
@keyframes flipHero {
    0%   { transform: rotateY(0deg);}
    40%  { transform: rotateY(0deg);}
    50%  { transform: rotateY(180deg);}
    90%  { transform: rotateY(180deg);}
    100% { transform: rotateY(0deg);}
}
.hero-image-front, .hero-image-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
}
.hero-image-front {
    z-index: 2;
}
.hero-image-back {
    transform: rotateY(180deg);
    z-index: 1;
}
.hero-image-front img,
.hero-image-back img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover ki jagah contain */
    border-radius: 18px;
    /* background: #fff; optional: blank area ke liye */
}

/* Service Cards */
.service-item {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    height: 300px;
    width: 350px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-content {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

.service-item:nth-child(2n) .service-icon { background: var(--gradient-2); animation-delay: -0.5s; }
.service-item:nth-child(3n) .service-icon { background: var(--gradient-3); animation-delay: -1s; }
.service-item:nth-child(4n) .service-icon { background: var(--gradient-4); animation-delay: -1.5s; }
.service-item:nth-child(5n) .service-icon { background: var(--gradient-5); animation-delay: -2s; }
.service-item:nth-child(6n) .service-icon { background: var(--gradient-6); animation-delay: -2.5s; }

.service-item:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.service-item:hover .service-icon {
    color: white;
    background: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    transform: scale(1.1);
}

.service-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(74, 144, 226, 0); }
    50% { text-shadow: 0 0 10px rgba(74, 144, 226, 0.3); }
}

.service-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.service-item:hover .service-title {
    animation: titleGlow 2s ease-in-out infinite;
}

.service-description {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #556877;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.service-item:hover .service-description {
    color: #334155;
}

.service-tags {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-height: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.service-tags::-webkit-scrollbar {
    display: none;
}

.service-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    white-space: nowrap;
}

.service-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(74, 144, 226, 0.1);
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.95));
    margin-top: auto;
    backdrop-filter: blur(8px);
}

.btn-service {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.btn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-service:hover::before {
    transform: translateX(100%);
}

.btn-service i {
    font-size: 0.75rem;
    transition: all 0.4s ease;
}

.btn-service:hover i {
    transform: translateX(4px) scale(1.2);
}

.btn-learn {
    background: transparent;
    color: #4A90E2;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.btn-learn:hover {
    background: rgba(74, 144, 226, 0.05);
    border-color: rgba(74, 144, 226, 0.3);
}

.btn-book {
    background: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    color: white;
    border: none;
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

/* Process Steps Animation */
.process-step-enhanced {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process-step-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.process-step-enhanced:hover::before {
    transform: translateX(100%);
}

.process-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
    transition: all 0.4s ease;
}

.process-step-enhanced:hover .process-number {
    transform: scale(1.1) rotate(10deg);
}

/* Comparison Table Enhancement */
.table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.table-primary {
    background: var(--gradient-1);
}

.table th {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.25rem;
    border: none;
}

.table td {
    padding: 1rem;
    border-color: rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.table tbody tr:hover td {
    background: rgba(74, 144, 226, 0.05);
}

/* Service Comparison Table Styles */
.service-comparison-table {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(2, 62, 138, 0.12);
    background: linear-gradient(120deg, #ade8f4 0%, #48cae4 100%);
    margin-bottom: 2rem;
}
.service-comparison-table th,
.service-comparison-table td {
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    vertical-align: middle;
}
.service-comparison-table th {
    background: #0077b6;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
}
.service-comparison-table td {
    background: #fff;
    border: none;
}
.service-comparison-table tr:nth-child(even) td {
    background: #f1faff;
}
.service-comparison-table td strong {
    color: #023e8a;
    font-weight: 600;
}
.service-comparison-table .fa-check {
    color: #38b000;
    font-size: 1.5rem;
}
.service-comparison-table .fa-times {
    color: #d90429;
    font-size: 1.5rem;
}
.service-comparison-table .fa-question {
    color: #f9c74f;
    font-size: 1.5rem;
}
.service-comparison-table .fa-minus {
    color: #adb5bd;
    font-size: 1.5rem;
}

/* Responsive Table */
@media (max-width: 991px) {
    .service-comparison-table th,
    .service-comparison-table td {
        font-size: 1rem;
        padding: 0.7rem 0.3rem;
    }
}
@media (max-width: 767px) {
    .service-comparison-table {
        font-size: 0.95rem;
        border-radius: 10px;
    }
    .service-comparison-table th,
    .service-comparison-table td {
        padding: 0.5rem 0.2rem;
        font-size: 0.95rem;
    }
    .table-responsive {
        overflow-x: auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .service-item {
        height: auto;
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .services-hero {
        padding: 3rem 0;
    }

    .service-content {
        padding: 1rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    .service-actions {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-service {
        width: 100%;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .process-step-enhanced {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .service-title {
        font-size: 0.98rem;
    }

    .service-description {
        font-size: 0.82rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

/* call to action */

.call-container{

    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
 
}
.call-sub-container{
   
    padding: 40px;
    height: 400px;
    width: 85%;
    background: rgba(24, 78, 119, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    align-items: flex-start

}
.call-action-slider{
    
    top: -30px;     
    transform: translateY(-30%);
    width: 300px;
    height: 480px;
    margin-right:20px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    
     background-size: cover;
}

/* Extra Small Devices – Mobile Optimisation */
@media (max-width: 576px) {
    /* Hero Section */
    .hero-title {
        font-size: 1.6rem;
        text-align: center;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 90%;
        text-align: center;
    }

    /* Hero Image Flip */
    .hero-image-flip {
        width: 90%;
        height: auto;
        max-width: 320px;
    }
    .hero-image-front img,
    .hero-image-back img {
        object-fit: contain;
    }

    /* Service Cards */
    .service-item {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    .service-title {
        font-size: 0.95rem;
    }
    .service-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .service-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    .btn-service {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* Call to Action */
    .call-container {
        height: auto;
        padding: 1.5rem 0;
    }
    .call-sub-container {
        padding: 20px;
        height: auto;
    }
    .call-action-slider {
        width: 100%;
        height: 250px;
        margin: 1rem 0;
    }

    /* Process Step */
    .process-step-enhanced {
        padding: 1rem;
    }
    .process-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}
