/* ========================================
   E-SERVICE PREMIUM ENHANCEMENTS
   7 Premium Techniques from MilerDev
   ======================================== */

/* ========================================
   1. GLASSMORPHISM EFFECTS
   ======================================== */

/* Enhanced service cards with glassmorphism */
.hover-card {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-card:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.25),
        0 0 20px rgba(255, 193, 7, 0.3);
}

/* ========================================
   2. ENHANCED GRADIENTS
   ======================================== */

/* Animated gradient background for E-SERVICE section */
.eservice-section {
    background: linear-gradient(135deg,
            #5e1914 0%,
            #8B2500 25%,
            #A0522D 50%,
            #ddc656 75%,
            #f4e4a6 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

/* Overlay to soften the gradient */
.eservice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.eservice-section>* {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Colorful gradient icon boxes - different color per service */
.icon-box {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Individual gradient colors for each service - Red/Gold Theme */
.hover-card:nth-child(1) .icon-box {
    background: linear-gradient(135deg, #5e1914 0%, #8B2500 100%);
}

.hover-card:nth-child(2) .icon-box {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
}

.hover-card:nth-child(3) .icon-box {
    background: linear-gradient(135deg, #ddc656 0%, #f4e4a6 100%);
}

.hover-card:nth-child(4) .icon-box {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.hover-card:nth-child(5) .icon-box {
    background: linear-gradient(135deg, #5e1914 0%, #A0522D 100%);
}

.hover-card:nth-child(6) .icon-box {
    background: linear-gradient(135deg, #CD853F 0%, #ddc656 100%);
}

.hover-card:nth-child(7) .icon-box {
    background: linear-gradient(135deg, #8B2500 0%, #D2691E 100%);
}

.hover-card:nth-child(8) .icon-box {
    background: linear-gradient(135deg, #dccb45 0%, #f4e4a6 100%);
}

/* Gradient border on hover */
.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #5e1914, #8B2500, #ddc656);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ========================================
   3. SMOOTH ANIMATIONS
   ======================================== */

/* Stagger animation for cards on page load */
.hover-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.hover-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hover-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hover-card:nth-child(3) {
    animation-delay: 0.3s;
}

.hover-card:nth-child(4) {
    animation-delay: 0.4s;
}

.hover-card:nth-child(5) {
    animation-delay: 0.5s;
}

.hover-card:nth-child(6) {
    animation-delay: 0.6s;
}

.hover-card:nth-child(7) {
    animation-delay: 0.7s;
}

.hover-card:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon bounce animation */
.icon-box i {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-card:hover .icon-box i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(-10deg);
    }

    50% {
        transform: scale(1.3) rotate(10deg);
    }

    75% {
        transform: scale(1.2) rotate(-5deg);
    }
}

/* ========================================
   4. ADVANCED HOVER EFFECTS
   ======================================== */

/* 3D tilt effect */
.hover-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hover-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
}

/* Glow effect */
.hover-card:hover {
    box-shadow:
        0 15px 45px 0 rgba(31, 38, 135, 0.25),
        0 0 30px rgba(255, 193, 7, 0.4),
        0 0 60px rgba(255, 193, 7, 0.2);
}

/* Icon scale and color change */
.hover-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Background gradient shift on hover */
.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-card:hover .icon-box::before {
    opacity: 1;
}

/* ========================================
   5. BOX SHADOWS & DEPTH
   ======================================== */

/* Multi-layer shadows for depth */
.hover-card {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.05);
}

.hover-card:hover {
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 30px rgba(255, 193, 7, 0.3);
}

/* Colored shadows matching icon theme - Red/Gold */
.hover-card:nth-child(1):hover {
    box-shadow: 0 15px 45px rgba(94, 25, 20, 0.4);
}

.hover-card:nth-child(2):hover {
    box-shadow: 0 15px 45px rgba(160, 82, 45, 0.4);
}

.hover-card:nth-child(3):hover {
    box-shadow: 0 15px 45px rgba(221, 198, 86, 0.5);
}

.hover-card:nth-child(4):hover {
    box-shadow: 0 15px 45px rgba(139, 69, 19, 0.4);
}

.hover-card:nth-child(5):hover {
    box-shadow: 0 15px 45px rgba(94, 25, 20, 0.4);
}

.hover-card:nth-child(6):hover {
    box-shadow: 0 15px 45px rgba(205, 133, 63, 0.4);
}

.hover-card:nth-child(7):hover {
    box-shadow: 0 15px 45px rgba(139, 37, 0, 0.4);
}

.hover-card:nth-child(8):hover {
    box-shadow: 0 15px 45px rgba(220, 203, 69, 0.5);
}

/* Inset shadows for glassmorphism depth */
.icon-box {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   6. TYPOGRAPHY ENHANCEMENT
   ======================================== */

/* Text gradient for main heading - Red/Gold Theme */
.eservice-heading {
    background: linear-gradient(135deg, #5e1914 0%, #8B2500 50%, #ddc656 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(94, 25, 20, 0.3);
    animation: headingPulse 3s ease-in-out infinite;
}

@keyframes headingPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

/* Service name enhancement */
.hover-card h6 {
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0;
}

.hover-card:hover h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #5e1914;
    text-shadow: 0 2px 8px rgba(94, 25, 20, 0.2);
}

/* Badge enhancement */
.badge {
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(221, 198, 86, 0.4);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   7. MICRO-INTERACTIONS
   ======================================== */

/* Icon rotation on hover */
.hover-card:hover .icon-box i {
    transform: rotate(360deg) scale(1.2);
}

/* Ripple effect on click */
.hover-card {
    position: relative;
    overflow: hidden;
}

.hover-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hover-card:active::after {
    width: 300px;
    height: 300px;
}

/* Icon color transition */
.icon-box i {
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hover-card:hover .icon-box i {
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Smooth text color transitions */
.hover-card small {
    transition: color 0.3s ease;
}

.hover-card:hover small {
    color: #5e1914 !important;
}

/* Loading skeleton effect (optional - for future use) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .hover-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .eservice-section {
        background-size: 200% 200%;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .hover-card,
    .icon-box i,
    .badge,
    .eservice-section {
        animation: none !important;
        transition: none !important;
    }
}