/* Hero Animation Container */
.hero-animation-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    /* Adjust based on original design */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    /* Seamless blend */
}

/* Background Network Nodes */
.network-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animated Nodes */
.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.6);
    animation: floatNode 6s infinite ease-in-out;
}

.node-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.node-2 {
    top: 70%;
    left: 15%;
    animation-delay: 1s;
    background: #6610f2;
    box-shadow: 0 0 15px rgba(102, 16, 242, 0.6);
}

.node-3 {
    top: 30%;
    left: 85%;
    animation-delay: 2s;
    background: #20c997;
    box-shadow: 0 0 15px rgba(32, 201, 151, 0.6);
}

.node-4 {
    top: 80%;
    left: 75%;
    animation-delay: 3s;
    background: #fd7e14;
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.6);
}

/* Connecting Lines */
.node::after {
    content: '';
    position: absolute;
    width: 0px;
    height: 0px;
}

@keyframes floatNode {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -25px);
    }
}

/* Terminal Window */
.terminal-window {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 500px;
    height: 320px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow: hidden;
    border: 1px solid #333;
    /* 3D Tilt Effect on Desktop */
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.terminal-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    margin-right: 50px;
    /* Balance the dots */
}

.terminal-content {
    padding: 20px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
}

.command-line {
    display: flex;
    margin-bottom: 15px;
    font-size: 15px;
}

.prompt {
    color: #27c93f;
    margin-right: 10px;
    font-weight: bold;
}

.typing-text {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 18px;
    background: #fff;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: sub;
}

.output-log {
    color: #bbb;
    font-size: 13px;
    flex-grow: 1;
    overflow: hidden;
}

.log-line {
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    margin-bottom: 5px;
    padding-left: 10px;
    border-left: 2px solid transparent;
}

.log-line.success {
    color: #27c93f;
    border-left-color: #27c93f;
}

.log-line.info {
    color: #5bc0de;
}

.log-line.warning {
    color: #ffbd2e;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

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

    from {
        opacity: 0;
        transform: translateY(5px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .terminal-window {
        width: 100%;
        max-width: 100%;
        height: 280px;
        transform: none;
        /* Disable 3D tilt on mobile/tablet */
        margin-top: 30px;
    }

    .hero-animation-wrapper {
        height: auto;
        padding: 20px 0;
        display: block;
        /* Stack naturally */
    }

    .node {
        opacity: 0.3;
        /* Less distraction on mobile */
    }
}
/* Mobile Optimization Tweaks */
@media (max-width: 576px) {
    .terminal-window {
        height: 250px; /* Shorter on mobile */
        width: 95%; /* Prevent edge touching */
        margin: 20px auto 0 auto;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 13px; /* Smaller monospaced font */
    }
    
    .command-line {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    /* Ensure typing text doesn't overflow horizontally */
    .typing-text {
        white-space: normal; /* Allow wrapping on super small screens if needed */
        word-break: break-all;
    }
}
