/* Keyframe Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-roles {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        max-width: 350px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-item:nth-child(1) {
        grid-column: span 1;
        aspect-ratio: 1;
    }

    .sw-card-top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sw-card-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sw-card-label {
        justify-content: flex-start;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .theme-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .sw-card-image {
        aspect-ratio: 16/10;
    }

    .sw-card-title {
        font-size: 1.25rem;
    }

    .sw-card-desc {
        font-size: 0.9rem;
    }

    .sw-card-links {
        flex-direction: column;
    }

    .sw-link {
        text-align: center;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-roles {
        font-size: 0.8rem;
    }

    .hero-cta {
        font-size: 0.8rem;
    }

    .hero-visual {
        max-width: 300px;
    }

    .hero-socials {
        bottom: -4rem;
        gap: 0.75rem;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .about-grid {
        gap: 2rem;
    }

    .about-image-wrapper {
        max-width: 250px;
    }
}