/* DARK GLASS PREMIUM EFFECT */

/* A container for the glass effect to ensure it captures background */
.glass-panel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate;
}

.glass-panel-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(160, 20, 20, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
    transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
}

.glass-panel-container:hover::before {
    opacity: 1;
}

/* The Dark Glass Material */
.dark-glass {
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.6) 0%,
            rgba(20, 20, 20, 0.4) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* Glass Reflection Effect */
.dark-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
    pointer-events: none;
}

.dark-glass:hover::after {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

/* Floating Abstract Glass Elements in Background */
.hero-glass-shape {
    position: absolute;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: floatGlass 10s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    transform: rotate(15deg);
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    background: linear-gradient(135deg, rgba(142, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    transform: rotate(-10deg);
    animation-delay: -5s;
}

@keyframes floatGlass {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(-20px) rotate(calc(var(--r, 0deg) + 5deg));
    }
}

/* Update Service Cards to use Dark Glass */
.service-glass-card {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-glass-card:hover {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.5) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-top-color: var(--color-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}