/* FORCE VISIBILITY FIX */
.service-card-new,
.service-item.service-card-new,
div.service-item.service-card-new {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/**
 * Service Cards Redesign CSS
 * Added: 2026-01-09
 * 
 * Features:
 * - Modern card design with hover glow effect
 * - Glassmorphism elements
 * - Responsive layout
 * - Dark mode compatible
 */

/* ========================================
   BASE CARD STYLES
======================================== */

.service-card-new {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Hover Glow Effect */
.service-card-new:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(76, 175, 80, 0.2),
        inset 0 0 20px rgba(76, 175, 80, 0.05);
}

/* Gradient border on hover */
.service-card-new::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4CAF50, #2196F3, #9C27B0, #FF6B35);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card-new:hover::before {
    opacity: 1;
}

.service-card-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 40, 0.95);
    border-radius: 16px;
    z-index: -1;
}

/* ========================================
   BADGE STYLES
======================================== */

.service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-popular {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #00bcd4, #26c6da);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.badge-sale {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.badge-hot {
    background: linear-gradient(135deg, #ff5722, #ff7043);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.badge-custom {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

/* Quality Tier Badge */
.service-tier-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

.tier-premium {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a1a;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.tier-vip {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #fff;
    box-shadow: 0 3px 10px rgba(142, 68, 173, 0.4);
}

/* ========================================
   ICON STYLES (70% size)
======================================== */

.service-icon-new {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain;
    margin: 15px auto 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.service-card-new:hover .service-icon-new {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   TITLE STYLES
======================================== */

.service-card-new .service-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 10px 0;
    line-height: 1.3;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RATING STYLES
======================================== */

.service-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 8px 0;
}

.service-rating i {
    color: #ffc107;
    font-size: 14px;
}

.service-rating .rating-value {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0.9;
}

/* ========================================
   PRICE STYLES
======================================== */

.service-price {
    margin: 12px 0;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.service-price .price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
}

.service-price .price-value {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin: 0 4px;
    font-family: 'Lato', sans-serif;
}

.service-price .price-currency {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}


/* ========================================
   INFO ROW (Guarantee + Speed)
======================================== */

.service-info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    font-size: 12px;
}

.service-guarantee,
.service-speed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.service-guarantee i {
    color: #4CAF50;
}

.service-speed i {
    color: #ff6b35;
}

/* ========================================
   PROMO TIMER
======================================== */

.service-promo-timer {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* animation: pulse-promo 1.5s infinite;
}

@keyframes pulse-promo {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(233, 30, 99, 0); }
}

.promo-text {
    font-weight: 600;
    margin-right: 5px;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* ========================================
   ACTION BUTTON
======================================== */

.service-card-new .service-actions {
    margin-top: 15px;
}

.service-card-new .service-order-btn {
    width: 100%;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #5a2d82 0%, #3d1a5f 50%, #2d1640 100%) !important;
    border: none;
    border-radius: 10px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-card-new .service-order-btn:hover {
    background: linear-gradient(135deg, #6a3d92 0%, #4d2a6f 50%, #3d2650 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 45, 91, 0.5), 0 0 15px rgba(138, 43, 226, 0.3);
}

.service-card-new .service-order-btn i {
    font-size: 16px;
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

@media (max-width: 768px) {
    .service-card-new {
        padding: 15px;
    }
    
    .service-icon-new {
        width: 48px !important;
        height: 48px !important;
    }
    
    .service-card-new .service-title {
        font-size: 14px;
        min-height: 36px;
    }
    
    .service-price .price-value {
        font-size: 20px;
    }
    
    .service-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .service-info-row {
        font-size: 11px;
    }
}

/* ========================================
   DARK MODE NATIVE SUPPORT
======================================== */

@media (prefers-color-scheme: dark) {
    .service-card-new::after {
        background: rgba(20, 20, 30, 0.98);
    }
}

/* ========================================
   MICRO-ANIMATIONS
======================================== */

/* Icon bounce on load */
@keyframes bounce-in {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.service-card-new .service-icon-new {
    opacity: 1; /* animation disabled */
}

/* Staggered animation for cards */
/* .service-items .service-card-new:nth-child(1) { animation-delay: 0.1s; }
/* .service-items .service-card-new:nth-child(2) { animation-delay: 0.2s; }
/* .service-items .service-card-new:nth-child(3) { animation-delay: 0.3s; }
/* .service-items .service-card-new:nth-child(4) { animation-delay: 0.4s; }
/* .service-items .service-card-new:nth-child(5) { animation-delay: 0.5s; }
/* .service-items .service-card-new:nth-child(6) { animation-delay: 0.6s; }

/* Fade in animation */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-new {
    opacity: 1; /* animation disabled */
    /* Cards are visible by default - animation will enhance appearance */
}

/* ========================================
   3D TRANSFORM ON HOVER
======================================== */

.service-card-new {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.service-card-new:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

/* ========================================
   GLASSMORPHISM ENHANCEMENT
======================================== */

.service-card-new {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========================================
   NEUMORPHISM FOR PRICE BOX
======================================== */

.service-price {
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.3),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

/* ========================================
   SCROLL-TRIGGERED ANIMATION
======================================== */

.service-card-new.in-view {
    opacity: 1; /* animation disabled */
}

/* Removed initial hidden state - cards visible by default for better UX */

/* ========================================
   SHIMMER EFFECT FOR BUTTON
======================================== */

.service-card-new .service-order-btn::before {
    content: ";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    animation: shimmer-btn 4s infinite;
}

@keyframes shimmer-btn {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* Button base shadow for depth */
.service-card-new .service-order-btn {
    box-shadow: 0 4px 15px rgba(107, 45, 91, 0.3);
}

/* Price text formatting - no space, different sizes */
.service-price .price-currency-small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.service-price .price-unit {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

/* OVERRIDE btn-gradient with higher specificity */
.btn-gradient.service-order-btn,
a.btn-gradient.service-order-btn,
.service-card-new a.service-order-btn,
.service-card-new .btn-gradient.service-order-btn {
    background: linear-gradient(135deg, #5a2d82 0%, #3d1a5f 50%, #2d1640 100%) !important;
    background-image: linear-gradient(135deg, #5a2d82 0%, #3d1a5f 50%, #2d1640 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(90, 45, 130, 0.4) !important;
}

.btn-gradient.service-order-btn:hover,
a.btn-gradient.service-order-btn:hover,
.service-card-new a.service-order-btn:hover {
    background: linear-gradient(135deg, #6a3d92 0%, #4d2a6f 50%, #3d2650 100%) !important;
    background-image: linear-gradient(135deg, #6a3d92 0%, #4d2a6f 50%, #3d2650 100%) !important;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6), 0 8px 20px rgba(90, 45, 130, 0.5) !important;
    transform: translateY(-2px);
}
