/* Enhanced Service Card Styles */
.service-card {
    position: relative;
    padding: 2rem 2rem 3.5rem;
    /* Added extra bottom padding to make space for the hover hint */
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.7), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

/* Card content wrapper to manage spacing */
.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: center;
    /* Center vertically */
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, transparent 50%, rgba(0, 255, 255, 0.03) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.service-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

/* Icon container with animation */
.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    margin-top: 0.8rem;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    display: block;
    text-align: center;
}

.service-card:hover i {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Service title animation */
.service-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.4rem;
    transition: all 0.4s ease;
    position: relative;
    transform: translateZ(15px);
}

.service-card:hover h3 {
    transform: translateY(-5px) translateZ(15px);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Service description */
.service-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    transform: translateZ(10px);
}

/* Additional hidden details - faster transition for hover */
.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}

.service-card.expanded .service-details {
    max-height: 200px;
    /* Set a maximum height instead of auto for smooth animation */
    opacity: 1;
    margin-top: 1rem;
    margin-bottom: 2rem;
    /* Add space below the details */
}

/* Feature list inside details */
.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.service-details li:last-child {
    margin-bottom: 0;
}

.service-details li i {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--secondary);
}

/* Expanded state styles */
.service-card.expanded {
    background: linear-gradient(145deg, rgba(0, 40, 46, 0.5), rgba(20, 20, 20, 0.9));
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-5px);
    z-index: 2;
}

/* Pricing Plan Hover Effects */
.pricing-plan {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 255, 0.2) !important;
    border-color: rgba(0, 255, 255, 0.3) !important;
}

.pricing-plan.popular {
    transform: translateY(-5px);
}

.pricing-plan.popular:hover {
    transform: translateY(-15px);
}

.pricing-plan ul li {
    transition: all 0.3s ease;
}

.pricing-plan:hover ul li {
    transform: translateX(5px);
}

/* Sequential animation for list items */
.pricing-plan:hover ul li:nth-child(1) {
    transition-delay: 0.05s;
}

.pricing-plan:hover ul li:nth-child(2) {
    transition-delay: 0.1s;
}

.pricing-plan:hover ul li:nth-child(3) {
    transition-delay: 0.15s;
}

.pricing-plan:hover ul li:nth-child(4) {
    transition-delay: 0.2s;
}

.pricing-plan:hover ul li:nth-child(5) {
    transition-delay: 0.25s;
}

.pricing-plan:hover ul li:nth-child(6) {
    transition-delay: 0.3s;
}

.pricing-plan:hover ul li:nth-child(7) {
    transition-delay: 0.35s;
}

/* Hover hint styles - positioned below paragraph text */
.hover-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background: rgba(20, 20, 20, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.service-card:hover .hover-hint {
    opacity: 0;
    visibility: hidden;
}

/* For touch devices */
@media (hover: none) {
    .hover-hint {
        content: "Tap for details";
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-card i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .hover-hint {
        font-size: 0.8rem;
    }
}

/* Add this for image/icon inside service-card */
.service-card img,
.service-card .service-icon {
    width: 48px;
    height: 48px;
    display: block;
    margin-bottom: 0;
    object-fit: contain;
    border-radius: 8px;
    /* Remove any unwanted margin or padding */
    margin-left: auto;
    margin-right: auto;
    box-shadow: none;
    background: none;
    /* Prevent overflow */
    max-width: 100%;
    max-height: 100%;
}

/* Ensure the card itself clips overflow */
.service-card {
    overflow: hidden;
    border-radius: 10px;
    /* ...existing code... */
}

/* If you use <img> tags for icons, add: */
.service-card img {
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 auto 1.5rem auto;
    display: block;
}

/* Service card structure for proper expansion */
.services-cta {
    margin-top: 2.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.72);
    /* Darker for better contrast */
    border-radius: 12px;
    padding: 2.2rem 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 255, 255, 0.12);
    transition: box-shadow 0.3s, background 0.3s;
}

.services-cta .btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--light);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.services-cta .btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Improved Consultation Box styling */
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] {
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] h2,
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] p,
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] a,
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] .note {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] a.btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--light);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] a.btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 255, 0.4);
}

/* --- END IMPROVEMENTS --- */

/* Booking Section Styles */
.section {
    background: linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%);
    border-radius: 10px;
    margin: 2.5rem 0 2rem 0;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    background-blend-mode: multiply;
}

.section .fas {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 3.5rem;
    color: #00fff0;
    opacity: 0.1;
}

.section h2 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 8px #000, 0 0 8px #00fff0;
}

.section p {
    font-size: 1.1rem;
    color: #e0f7fa;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px #000;
}

.section a.btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 24px;
    background: #00fff0;
    font-weight: 600;
    box-shadow: 0 0 18px #00fff0;
    color: #0d1a1a !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section a.btn i {
    margin-right: 0.5em;
}

.section .note {
    margin-top: 1.1rem;
    color: #b2ebf2;
    font-size: 0.98rem;
    opacity: 0.7;
    text-shadow: 0 2px 8px #000;
}

.section .note i {
    color: #00fff0;
}

/* Responsive adjustments for the section */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section p {
        font-size: 1rem;
    }

    .section a.btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .section .note {
        font-size: 0.9rem;
    }
}

.btn.keep-white,
.btn-outline.keep-white {
    color: #fff !important;
    text-shadow: 0 2px 8px #000;
}

/* Add these styles for better button contrast */

/* Services CTA button */
.services-cta {
    text-align: center;
    margin-top: 3rem;
}

.services-cta .btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--light);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.services-cta .btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Book a Meeting button */
.booking-promo .btn {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.booking-promo .btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 255, 255, 0.5);
}

/* Override for cyan button text in booking section */
.booking-promo a[style*="background-color: #00FFFF"],
.booking-promo .cyan-button-white-text {
    color: #FFFFFF !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    /* Adds subtle shadow for readability */
}

/* Add text shadow to booking section text for better readability */
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] h2,
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] p,
.section[style*="linear-gradient(120deg, #0d1a1a 80%, #00fff0 100%)"] .note {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}