﻿/* Ensure the carousel area has its own space and stays below text */
.carousel3d {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    margin-top: 40px; /* Add breathing space below text */
    transform-style: preserve-3d;
    animation: rotateRight 22s infinite linear;
    perspective: 1500px;
    z-index: 1; /* stays above its own background but below nearby text */
}

/* Hero section container fix */
.hero .col-lg-6.text-center {
    position: relative;
    z-index: 0; /* allow the text column to stay above the rotating images */
    overflow: hidden; /* hides any part of carousel that extends outward */
}

/* Optional: subtle glow + rotation spacing */
.carousel3d img {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    opacity: 0.95;
}

    /* Spread images in 3D */
    .carousel3d img:nth-child(1) {
        transform: rotateY(0deg) translateZ(500px);
    }

    .carousel3d img:nth-child(2) {
        transform: rotateY(90deg) translateZ(500px);
    }

    .carousel3d img:nth-child(3) {
        transform: rotateY(180deg) translateZ(500px);
    }

    .carousel3d img:nth-child(4) {
        transform: rotateY(270deg) translateZ(500px);
    }

@keyframes rotateRight {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

.btn-cta-advanced {
    display: inline-block;
    position: relative;
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 50%, #007bff 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}

    .btn-cta-advanced::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: all 0.5s ease;
    }

    .btn-cta-advanced:hover::before {
        left: 100%;
    }

    .btn-cta-advanced:hover {
        box-shadow: 0 0 30px rgba(0, 198, 255, 0.6);
        transform: translateY(-3px);
        background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    }

    .btn-cta-advanced span {
        position: relative;
        z-index: 1;
    }

/* Optional: glowing pulse animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 198, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
    }
}

.btn-cta-advanced {
    animation: pulse-glow 2.5s infinite ease-in-out;
}


/*     Security section
             */
/* Background animation */
.security-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, #007bff33, transparent 60%), radial-gradient(circle at 80% 70%, #00d4ff33, transparent 60%), linear-gradient(135deg, #0a1930, #041229);
    animation: moveBg 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes moveBg {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Glass cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

    .glass-card:hover {
        transform: translateY(-8px) scale(1.03);
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* Text coloring */
.text-light-50 {
    color: rgba(255, 255, 255, 0.75);
}

/* Image float animation */
.security-image-wrapper {
    position: relative;
    display: inline-block;
}

.security-img {
    opacity: 0.95;
    animation: floatImg 5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
}

@keyframes floatImg {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/*     Request demo
         */
/* ===== Base styling ===== */
#metrics-section {
    position: relative;
    z-index: 1;
}

/* Darker glass background with more contrast */
.metric-card {
    background: rgba(15, 25, 50, 0.75);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.08), 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: #e0f7ff;
}

    /* Hover glow */
    .metric-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 10px 30px rgba(0, 255, 255, 0.35);
    }

    /* Moving light beam effect */
    .metric-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: -70%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
        transform: skewX(-25deg);
        transition: 0.8s;
    }

    .metric-card:hover::after {
        left: 120%;
    }

/* Glow text for the numbers */
.glow-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00e6ff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 25px rgba(0, 255, 255, 0.4);
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* Subtext with better contrast */
.metric-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

/* Rotate background gradient for motion effect */
.metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,255,0.08), transparent 60%), radial-gradient(circle at 80% 70%, rgba(0,200,255,0.08), transparent 60%);
    z-index: 0;
    animation: moveLight 8s ease-in-out infinite alternate;
}

@keyframes moveLight {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 25px rgba(0, 255, 255, 0.9), 0 0 45px rgba(0, 255, 255, 0.7);
    }
}

.futuristic-services {
    background: linear-gradient(135deg, #0a0a23 0%, #1a0033 50%, #0f0f2a 100%);
    min-height: 500px;
}

.futuristic-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(120,219,255,0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.futuristic-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.title-glow {
    background: linear-gradient(45deg, #00f5ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.service-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s;
    }

    .service-card:hover::before {
        left: 100%;
    }

    .service-card:hover {
        transform: translateY(-12px) scale(1.02);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 245, 255, 0.5);
        box-shadow: 0 25px 50px -12px rgba(0, 245, 255, 0.25);
    }

.card-icon {
    position: relative;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-hover {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: grayscale(50%) brightness(0.8);
}

.service-card:hover .icon-hover {
    filter: grayscale(0%) brightness(1.1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    transform: scale(1.1) rotate(5deg);
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .pulse-ring {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}
