/* ===== IT ANIMATIONS - CENTERED SINGLE ANIMATION ===== */

/* Main Section Container */
.it-animations-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

/* Single Animation Container - Centered */
.animations-container-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.animation-box {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide scroll indicator */
.scroll-indicator {
    display: none !important;
}

/* ===== FLOATING TECH ICONS (HIDDEN) ===== */
.floating-icons-animation {
    display: none;
}

.floating-icons-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    left: var(--x);
    top: var(--y);
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: var(--delay);
    will-change: transform;
}

.floating-icon svg {
    width: 100%;
    height: 100%;
    stroke: #00FF7F;
    filter: drop-shadow(0 0 15px rgba(0, 255, 127, 0.7));
    transition: all 0.3s ease;
}

.floating-icon:hover svg {
    stroke: #7FFF00;
    filter: drop-shadow(0 0 25px rgba(127, 255, 0, 1));
    transform: scale(1.2) rotate(10deg);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(15px, -15px) rotate(5deg);
    }

    50% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }

    75% {
        transform: translate(10px, -8px) rotate(3deg);
    }
}

.floating-icon:nth-child(odd) svg {
    animation: pulseGlowGreen 3s ease-in-out infinite;
}

.floating-icon:nth-child(even) svg {
    animation: pulseGlowGreen 3s ease-in-out infinite reverse;
}

@keyframes pulseGlowGreen {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 127, 0.7));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(127, 255, 0, 1));
    }
}

/* ===== DATA TRANSFER (RIGHT SIDE) ===== */
.data-transfer-animation {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.05), transparent);
    border-radius: 20px;
    border: 1px solid rgba(255, 99, 71, 0.2);
}

.data-transfer-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
}

.data-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: nodeGlowOrange 3s ease-in-out infinite;
}

.left-node {
    animation-delay: 0s;
}

.right-node {
    animation-delay: 1.5s;
}

@keyframes nodeGlowOrange {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 99, 71, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.9));
    }
}

.node-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 99, 71, 0.15);
    border: 2px solid rgba(255, 140, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.node-icon svg {
    width: 35px;
    height: 35px;
    stroke: #FF6347;
}

.node-icon:hover {
    background: rgba(255, 99, 71, 0.25);
    border-color: #FF4500;
    transform: scale(1.1);
}

.node-icon:hover svg {
    stroke: #FF4500;
}

.node-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-flow {
    flex: 1;
    position: relative;
    height: 100px;
}

.flow-line {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.data-packet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF6347;
    border-radius: 50%;
    box-shadow: 0 0 20px #FF6347, 0 0 40px #FF4500;
    animation: dataFlow 4s ease-in-out infinite;
}

.data-packet:nth-child(1) {
    animation-delay: 0s;
}

.data-packet:nth-child(2) {
    animation-delay: 1.3s;
}

.data-packet:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes dataFlow {
    0% {
        left: 0%;
        top: 50%;
        opacity: 0;
        transform: scale(0);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    25% {
        top: 30%;
    }

    50% {
        top: 50%;
    }

    75% {
        top: 30%;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        top: 50%;
        opacity: 0;
        transform: scale(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .animations-container {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .animation-box {
        min-height: 350px;
    }

    .floating-icons-container {
        height: 350px;
    }

    .floating-icon {
        width: 45px;
        height: 45px;
    }

    .node-icon {
        width: 60px;
        height: 60px;
    }

    .node-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Mobile (≤ 768px) - Stack Vertically */
@media (max-width: 768px) {
    .it-animations-section {
        padding: 3rem 0;
    }

    .animations-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .animation-box {
        min-height: 300px;
    }

    /* Floating Icons - Mobile */
    .floating-icons-container {
        height: 300px;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
    }

    /* Adjust positions for smaller container */
    .floating-icon:nth-child(1) {
        --x: 8%;
        --y: 15%;
    }

    .floating-icon:nth-child(2) {
        --x: 70%;
        --y: 10%;
    }

    .floating-icon:nth-child(3) {
        --x: 20%;
        --y: 65%;
    }

    .floating-icon:nth-child(4) {
        --x: 60%;
        --y: 70%;
    }

    .floating-icon:nth-child(5) {
        --x: 40%;
        --y: 40%;
    }

    /* Data Transfer - Mobile */
    .data-transfer-container {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .node-icon {
        width: 55px;
        height: 55px;
    }

    .node-icon svg {
        width: 28px;
        height: 28px;
    }

    .node-label {
        font-size: 0.75rem;
    }

    .data-flow {
        height: 80px;
    }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
    .it-animations-section {
        padding: 2rem 0;
    }

    .animations-container {
        gap: 1.5rem;
    }

    .animation-box {
        min-height: 250px;
    }

    /* Floating Icons - Small Mobile */
    .floating-icons-container {
        height: 250px;
    }

    .floating-icon {
        width: 35px;
        height: 35px;
    }

    /* Reduce animation intensity */
    @keyframes floatIcon {

        0%,
        100% {
            transform: translate(0, 0) rotate(0deg);
        }

        25% {
            transform: translate(10px, -10px) rotate(3deg);
        }

        50% {
            transform: translate(-8px, 8px) rotate(-3deg);
        }

        75% {
            transform: translate(8px, -5px) rotate(2deg);
        }
    }

    /* Data Transfer - Small Mobile */
    .data-transfer-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }

    .data-flow {
        width: 80px;
        height: 100px;
        transform: rotate(90deg);
    }

    .node-icon {
        width: 50px;
        height: 50px;
    }

    .node-icon svg {
        width: 25px;
        height: 25px;
    }

    .data-packet {
        width: 8px;
        height: 8px;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {

    .floating-icon,
    .data-node,
    .data-packet {
        animation: none !important;
    }

    .floating-icon svg {
        filter: drop-shadow(0 0 15px rgba(0, 255, 127, 0.7));
    }

    .node-icon {
        filter: drop-shadow(0 0 10px rgba(255, 99, 71, 0.5));
    }
}