/* Homepage Specific Styles */

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
}

@keyframes flow {
    to { stroke-dashoffset: -100; }
}

/* Typography Animations */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid;
    animation: typewriter 3s steps(40) 1s forwards, blink 1s step-end infinite;
}

.fade-in-up {
    animation: slideInFromBottom 0.8s ease-out forwards;
    opacity: 0;
}

/* Timeline Styles */
.timeline-dot {
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 50%;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--secondary), var(--primary), transparent);
}

/* Card Styles */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.tech-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Styles */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.15), transparent 70%);
}

/* Animated Background */
.data-flow {
    stroke-dasharray: 5, 5;
    animation: flow 20s linear infinite;
}

.parallax-slow {
    animation: float 6s ease-in-out infinite;
}

.parallax-fast {
    animation: float 4s ease-in-out infinite;
}

/* Story Sections */
.story-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Code Window */
.code-window {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    backdrop-filter: blur(10px);
}

.terminal-cursor {
    animation: blink 1s step-end infinite;
}

/* Hero Section Adjustments */
.hero-section {
    transform: translateY(-10vh);
}

/* 404 Page Background Effects */
.orbit {
    position: absolute;
    border: 1px dashed var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    margin-top: -150px;
    margin-left: -150px;
}

.orbit-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -250px;
    animation-duration: 40s;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 20%; right: 15%; animation-delay: 1s; }
.icon-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.icon-4 { bottom: 20%; right: 10%; animation-delay: 3s; }
.icon-5 { top: 40%; left: 5%; animation-delay: 4s; }
.icon-6 { top: 15%; right: 40%; animation-delay: 5s; }

.floating-bubble-1 {
    animation-delay: 0s;
}

.floating-bubble-2 {
    animation-delay: 2s;
}

.floating-bubble-3 {
    animation-delay: 4s;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-dot::before {
        display: none;
    }
    
    .timeline-line {
        display: none;
    }
    
    .parallax-slow,
    .parallax-fast {
        animation: none;
    }
    
    .hover-card:hover {
        transform: none;
    }
    
    .hero-section {
        transform: translateY(-5vh);
    }
    
    .orbit-1 {
        width: 200px;
        height: 200px;
        margin-top: -100px;
        margin-left: -100px;
    }
    
    .orbit-2 {
        width: 250px;
        height: 250px;
        margin-top: -125px;
        margin-left: -125px;
    }
    
    .orbit-3 {
        width: 300px;
        height: 300px;
        margin-top: -150px;
        margin-left: -150px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .icon-1 { top: 5%; left: 5%; }
    .icon-2 { top: 10%; right: 5%; }
    .icon-3 { bottom: 15%; left: 10%; }
    .icon-4 { bottom: 10%; right: 5%; }
    .icon-5 { top: 30%; left: 2%; }
    .icon-6 { top: 10%; right: 30%; }
}

@media (max-width: 480px) {
    .orbit-1,
    .orbit-2,
    .orbit-3 {
        display: none;
    }
    
    .floating-icon {
        font-size: 1rem;
        opacity: 0.1;
    }
    
    .icon-5,
    .icon-6 {
        display: none;
    }
}