/* Apps Animation Styles */
/* Moving background lines for apps */
.line {
    position: absolute;
    background: rgba(128, 128, 128, 0.3);
    border-radius: 2px;
}

.line-vertical {
    width: 2px;
    height: 100%;
    animation: moveVertical 3s linear infinite;
}

.line-horizontal {
    height: 2px;
    width: 100%;
    animation: moveHorizontal 4s linear infinite;
}

.line-v1 { left: 20%; animation-delay: 0s; opacity: 0.8; }
.line-v2 { left: 40%; animation-delay: -1s; opacity: 0.6; }
.line-v3 { right: 30%; animation-delay: -2s; opacity: 0.7; }

.line-h1 { top: 15%; animation-delay: 0s; opacity: 0.6; }
.line-h2 { bottom: 25%; animation-delay: -2.5s; opacity: 0.5; }

.phone {
    position: relative;
    z-index: 10;
    width: 70px;
    height: 120px;
    background: #f3f1ee;
    border: 2px solid rgba(128, 128, 128, 0.6);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    animation: phoneFloat 4s ease-in-out infinite;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.phone-top {
    width: 30px;
    height: 2px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 2px;
    margin-bottom: 15px;
}

.loading-dots {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(128, 128, 128, 0.7);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.speed-line {
    position: absolute;
    background: rgba(128, 128, 128, 0.4);
    border-radius: 1px;
    z-index: 5;
}

.speed-line-1 {
    width: 30px;
    height: 2px;
    top: 30%;
    left: -40px;
    animation: speedLine1 2s linear infinite;
}

.speed-line-2 {
    width: 40px;
    height: 1px;
    top: 50%;
    right: -50px;
    animation: speedLine2 1.8s linear infinite;
}

/* Branding Animation Styles */
.logo-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.logo-circle {
    position: absolute;
    border: 3px solid #666;
    border-radius: 50%;
    animation: logoSpin 4s linear infinite;
}

.logo-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.logo-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-color: #888;
    animation-delay: -1s;
}

.logo-circle:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-color: #aaa;
    animation-delay: -2s;
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: #666;
    border-radius: 50%;
    animation: centerPulse 2s ease-in-out infinite;
}

/* Websites Animation Styles */
.browser-window {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid #666;
    border-radius: 8px;
    position: relative;
    animation: browserFloat 3s ease-in-out infinite;
}

.browser-header {
    height: 20px;
    background: transparent;
    border-bottom: 1px solid #888;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.browser-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid #888;
}

.browser-dot:nth-child(1) { background: transparent; }
.browser-dot:nth-child(2) { background: transparent; }
.browser-dot:nth-child(3) { background: transparent; }

.browser-content {
    padding: 8px;
    height: calc(100% - 20px);
}

.content-line {
    height: 3px;
    background: #888;
    border-radius: 2px;
    margin-bottom: 6px;
    animation: contentLoad 3s ease-in-out infinite;
}

.content-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.content-line:nth-child(2) { width: 60%; animation-delay: 0.5s; }
.content-line:nth-child(3) { width: 90%; animation-delay: 1s; }

/* Motion Animation Styles - Pong Game */
.pong-field {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Center dashed line */
.center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #888 0px,
        #888 8px,
        transparent 8px,
        transparent 16px
    );
}

/* Paddles */
.paddle {
    position: absolute;
    width: 6px;
    height: 40px;
    background: #666;
    border-radius: 3px;
}

.paddle-left {
    left: 15px;
    animation: paddleLeft 4s ease-in-out infinite;
}

.paddle-right {
    right: 15px;
    animation: paddleRight 4s ease-in-out infinite;
}

/* Ball */
.pong-ball {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
    animation: ballMovement 3s linear infinite;
}

/* Score display */
.score-display {
    position: absolute;
    top: 10px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #666;
}

.score-left {
    left: 30%;
}

.score-right {
    right: 30%;
}

/* Ball trail effect */
.ball-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 102, 102, 0.3);
    border-radius: 50%;
    animation: trailMovement 3s linear infinite;
}

.trail-1 { animation-delay: -0.1s; }
.trail-2 { animation-delay: -0.2s; }
.trail-3 { animation-delay: -0.3s; }

/* Animation Keyframes */
@keyframes moveVertical {
    0% { 
        transform: translateY(-100%) scaleY(0.5);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100%) scaleY(2);
        opacity: 0;
    }
}

@keyframes moveHorizontal {
    0% { 
        transform: translateX(-100%) scaleX(0.5);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateX(100%) scaleX(2);
        opacity: 0;
    }
}

@keyframes phoneFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(0);
    }
    50% { 
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes speedLine1 {
    0% {
        transform: translateX(0) scaleX(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
        transform: scaleX(1);
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(120px) scaleX(0.3);
        opacity: 0;
    }
}

@keyframes speedLine2 {
    0% {
        transform: translateX(0) scaleX(0);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    75% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(-100px) scaleX(0.2);
        opacity: 0;
    }
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes centerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes browserFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
    50% { transform: translate(-50%, -50%) translateY(-5px) scale(1.02); }
}

@keyframes contentLoad {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes paddleLeft {
    0%, 100% { top: 20%; }
    25% { top: 60%; }
    50% { top: 10%; }
    75% { top: 50%; }
}

@keyframes paddleRight {
    0%, 100% { top: 50%; }
    25% { top: 10%; }
    50% { top: 60%; }
    75% { top: 20%; }
}

@keyframes ballMovement {
    0% { 
        left: 25px; 
        top: 20%; 
    }
    25% { 
        left: 50%; 
        top: 70%; 
    }
    50% { 
        left: calc(100% - 35px); 
        top: 15%; 
    }
    75% { 
        left: 50%; 
        top: 80%; 
    }
    100% { 
        left: 25px; 
        top: 20%; 
    }
}

@keyframes trailMovement {
    0% { 
        left: 25px; 
        top: 20%; 
        opacity: 0;
    }
    25% { 
        left: 50%; 
        top: 70%; 
        opacity: 1;
    }
    50% { 
        left: calc(100% - 35px); 
        top: 15%; 
        opacity: 1;
    }
    75% { 
        left: 50%; 
        top: 80%; 
        opacity: 1;
    }
    100% { 
        left: 25px; 
        top: 20%; 
        opacity: 0;
    }
} 