/* Keyframe Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hero Section Animations */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    transform-origin: center;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.95) 70%);
    z-index: 2;
    opacity: 0;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    transform-origin: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    font-size: 4rem;
    line-height: 1.2;
    will-change: transform, opacity;
    color: var(--text-primary);
}

.tagline {
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.hero-cta button {
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
}

/* Element Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hover Effects */
.hover-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Cursor Effects */
.custom-cursor.hover {
    transform: scale(2);
    mix-blend-mode: difference;
}

.custom-cursor.click {
    transform: scale(0.8);
}

/* Scroll Animations */
.parallax {
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Background Animations */
.gradient-bg {
    background: linear-gradient(
        270deg,
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
}

/* Tech Card Animations */
.tech-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover .tech-model {
    animation: float 6s ease-in-out infinite;
}

/* Loading Animations */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    animation: gradientFlow 2s linear infinite;
}

/* Text Animations */
.text-reveal {
    position: relative;
    overflow: visible;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.text-reveal.visible span {
    transform: translateY(0);
    opacity: 1;
} 