/* --- Styles for IT Consulting & Planning Page --- */

/* Hero Section */
/* --- Updated Styles for IT Consulting Hero Section --- */

.hero-consulting {
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

.hero-consulting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-consulting-text {
    text-align: right;
}

.hero-consulting-text h1 {
    font-size: 3.6em;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-consulting-text .subtitle {
    font-size: 1.4em;
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-consulting-image {
    text-align: center;
}

.hero-consulting-image img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0px 10px 25px rgba(0, 0, 0, 0.4));
    animation: subtle-float 6s ease-in-out infinite;
}

/* --- Final Flip Card Design for Hover & Tap --- */

.benefits-section-flip {
    padding: 6rem 2rem;
    background-color: #283c70;
}

.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    justify-content: center;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

/* --- LOGIC FOR DESKTOP & MOBILE --- */

/* 1. Default hover effect for DESKTOP */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* 2. On touch devices, the JS will add .is-flipped on tap */
.touch-device .flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* 3. On touch devices, DISABLE the hover effect to prevent "sticky hover" */
.touch-device .flip-card:hover .flip-card-inner {
    transform: none;
}


.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.flip-card-front {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.flip-card-front i {
    font-size: 3.6em; color: #3b82f6; margin-bottom: 1.5rem;
}

.flip-card-front h5 {
    font-size: 1.7em; margin: 0;
}
/* --- Fix for Mobile Tap on Flip Cards --- */

/* This rule makes sure the inner elements don't block the click event */
.flip-card-front > * {
    pointer-events: none;
}
.flip-card-back {
    background: #3b82f6;
    color: #fff;
    transform: rotateY(180deg);
}

.flip-card-back h5 {
    font-size: 1.7em; margin-bottom: 1rem;
}

.flip-card-back p {
    font-size: 1.2em; line-height: 1.7; color: #e0e0e0;
}

/* --- Tap Indicator for Mobile --- */
.tap-indicator {
    display: none; /* Hidden by default on desktop */
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}
.tap-indicator i {
    font-size: 0.9em; margin: 0 0 0 0.5rem; color: #fff;
}

/* Show the indicator only on touch devices */
.touch-device .tap-indicator {
    display: inline-flex;
}
/* Responsive adjustments for the consulting hero */
@media (max-width: 992px) {
    .hero-consulting-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-consulting-text {
        order: 2;
        text-align: center;
    }
    .hero-consulting-image {
        order: 1;
        margin-bottom: 2rem;
    }
}


/* Planning Process Section */
.planning-process-section {
    padding: 6rem 2rem;
   
}

.planning-process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* The vertical connecting line */
.planning-process-timeline::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 40px; /* Position based on icon size */
    bottom: 2rem;
    width: 3px;
    background-color: rgba(59, 130, 246, 0.2);
    z-index: 1;
}

.process-item {
    display: grid;
    grid-template-columns: 100px 1fr; /* Icon column and text column */
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.process-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #16213e;
    border: 3px solid rgba(59, 130, 246, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.process-item:hover .process-icon-wrapper {
    background-color: #3b82f6;
    color: #fff;
    transform: scale(1.1);
}

.process-text h4 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.process-text p {
    color: #bbb;
    line-height: 1.7;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 2rem;
}
/* This section reuses the .expertise-grid and .expertise-card styles */