/* Parallax Effects - Inspired by Apple, Stripe & Airbnb */

/* Parallax container for sections */
.parallax-container {
    position: relative;
    overflow: hidden;
}

/* Subtle parallax for hero section elements */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    transform: translateZ(0);
    will-change: transform;
}

.hero-visual {
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax scrolling for section backgrounds */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax for cards and elements */
.parallax-item {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.4, 1);
}

/* Subtle hover parallax for cards */
.project-card:hover,
.about-card:hover,
.skill-card:hover,
.cert-item:hover,
.contact-item:hover,
.social-link-item:hover,
.social-card:hover,
.tag-item:hover,
.exp-item:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Subtle mouse parallax for hero elements */
.mouse-parallax {
    transition: transform 0.1s cubic-bezier(0.2, 0, 0.4, 1);
    will-change: transform;
}

/* Staggered reveal animation for sections */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0.4, 1), 
                transform 0.6s cubic-bezier(0.2, 0, 0.4, 1);
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax for section titles */
.section-title {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

/* Disable parallax effects on mobile for performance */
@media (max-width: 768px) {
    .parallax-bg {
        transform: none !important;
    }
    
    .mouse-parallax {
        transform: none !important;
        transition: none;
    }
    
    .stagger-item {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg,
    .mouse-parallax,
    .stagger-item,
    .parallax-item {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
} 