/* ============================================
   FLIP CARDS
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.flip-card {
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip on hover (desktop) */
@media (hover: hover) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Flip on click (mobile) */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* FRONT SIDE */
.flip-card-front {
    background: #003359;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.flip-card-front img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.05);
}

.flip-card-front-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 51, 89, 0.95) 0%, rgba(0, 51, 89, 0.7) 50%, transparent 100%);
}

.flip-card-front-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* BACK SIDE */
.flip-card-back {
    background: linear-gradient(135deg, #003359 0%, #004d7a 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
}

.flip-card-back h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #fff;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.flip-card-back .btn {
    margin-top: auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b1e314;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0.5rem 0 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flip-card {
        height: 350px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .flip-card-back {
        padding: 1.5rem;
    }
    
    .flip-card-back p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .flip-card {
        height: 320px;
    }
    
    .flip-card-front-content h3 {
        font-size: 1.25rem;
    }
    
    .flip-card-back h3 {
        font-size: 1.25rem;
    }
}




/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #b1e314;
    color: #fff;
    border-color: #b1e314;
}

.btn-primary:hover {
    background: #b1e314;
    border-color: #b1e314;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}


#card-flip
 {
    padding: 100px 1.5rem;
}

.container

 {
    max-width: 1300px;
    margin: 0 auto;
}