/* ============================================
   SCROLL ANIMATION BASE STYLES - REFINED
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* Subtle reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced staggered delays */
/* Reduced staggered delays */
.reveal-delay-1 { transition-delay: 0.02s; }
.reveal-delay-2 { transition-delay: 0.04s; }
.reveal-delay-3 { transition-delay: 0.06s; }
.reveal-delay-4 { transition-delay: 0.08s; }
.reveal-delay-5 { transition-delay: 0.1s; }
.reveal-delay-6 { transition-delay: 0.12s; }

/* Hero Section - Subtle */
.hero-container .hero-text {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero-container .hero-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-container h2 {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.7s ease 0.3s;
}

.hero-container .hero-text.animate-in h2 {
    opacity: 1;
    transform: translateY(0);
}

.hero-container .btn-primary {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.7s ease 0.5s;
}

.hero-container .hero-text.animate-in .btn-primary {
    opacity: 1;
    transform: translateY(0);
}

/* Core Values - Gentle */
.core-value-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-value-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.core-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Section Titles - Smooth */
.section-title h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-title h3.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title .title-line {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.7s ease 0.2s;
}

.section-title .title-line.right {
    transform-origin: right;
}

.section-title .title-line.animate-in {
    opacity: 1;
    transform: scaleX(1);
}

/* Cards - Unified */
.service-card,
.portfolio-card,
.modern-card {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate-in,
.portfolio-card.animate-in,
.modern-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-5px);
}

/* Images - Gentle zoom */
.portfolio-image-wrapper img,
.service-card img,
.about-image {
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-image-wrapper img.animate-in,
.service-card img.animate-in,
.about-image.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Text - Subtle */
.section-info p,
.card-body p,
.project-description {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease;
}

.section-info p.animate-in,
.card-body p.animate-in,
.project-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-info p:nth-child(1) { transition-delay: 0.05s; }
.section-info p:nth-child(2) { transition-delay: 0.1s; }
.section-info p:nth-child(3) { transition-delay: 0.15s; }

/* Footer - Gentle */
.footer-about,
.footer-nav,
.footer-contact {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-about.animate-in,
.footer-nav.animate-in,
.footer-contact.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.footer-nav { transition-delay: 0.05s; }
.footer-contact { transition-delay: 0.1s; }

/* Directional - Reduced movement */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale - Minimal */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Navbar */
.navbar.sticky-scroll {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #74ac83, #8b537c);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Mobile - Minimal animations */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(15px);
        transition-duration: 0.5s;
    }
    
    .fade-in-left,
    .fade-in-right {
        transform: translateY(15px);
    }
}

/* Performance */
.reveal,
.core-value-card,
.service-card,
.portfolio-card {
    will-change: transform, opacity;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal,
    .animate-in {
        opacity: 1 !important;
        transform: none !important;
    }
}