/* ==========================================================================
   Google-Level Portfolio - Animations
   Smooth, Fluid, Professional
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s var(--transition-base) both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--transition-base) both;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s var(--transition-base) both;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s var(--transition-base) both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-gradient {
    background: linear-gradient(90deg, 
        var(--color-primary-600) 0%, 
        var(--color-green) 25%, 
        var(--color-primary-600) 50%, 
        var(--color-green) 75%, 
        var(--color-primary-600) 100%);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Staggered Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Hero Section Specific Animations */
.hero-title .title-line:nth-child(1) {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero-title .title-line:nth-child(2) {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.hero-title .title-line:nth-child(3) {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

.hero-subtitle {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}

.hero-cta {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
}

.hero-metrics {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both;
}

/* Profile Image Animations */
.profile-image-wrapper {
    animation: fadeInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

.profile-ring {
    animation: rotate 20s linear infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: -5s; }
.ring-3 { animation-delay: -10s; }

/* Data Card Animations */
.card-1 {
    animation: fadeInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both;
}

.card-2 {
    animation: fadeInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both;
}

.card-3 {
    animation: fadeInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both;
}

/* Background Circle Animations */
.bg-circle-1 {
    animation: float 20s ease-in-out infinite;
}

.bg-circle-2 {
    animation: float 15s ease-in-out infinite reverse;
}

.bg-circle-3 {
    animation: float 25s ease-in-out infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s;
}

.hover-glow:hover::before {
    left: 100%;
}

/* Scroll Triggered Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-shimmer {
    background: linear-gradient(90deg, 
        var(--color-grey-100) 0%, 
        var(--color-white) 50%, 
        var(--color-grey-100) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}




/* About */



/* ==========================================================================
   About Section Animations
   ========================================================================== */

/* Profile Card Animation */
.profile-card {
    animation: fadeInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

/* Data Ring Animations */
.data-ring {
    opacity: 0;
    transform: scale(0.5);
    animation: ringAppear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both;
}

.ring-efficiency {
    animation-delay: 1s;
}

.ring-impact {
    animation-delay: 1.2s;
}

@keyframes ringAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Ring Fill Animation */
.ring-fill {
    stroke-dasharray: 0, 100;
    animation: fillRing 1.5s ease-out 1.5s forwards;
}

@keyframes fillRing {
    to {
        stroke-dasharray: var(--target-value, 90, 100);
    }
}

/* Philosophy Card Animation */
.philosophy-card {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

/* Values Grid Animation */
.value-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.value-item:nth-child(1) { animation-delay: 0.6s; }
.value-item:nth-child(2) { animation-delay: 0.8s; }
.value-item:nth-child(3) { animation-delay: 1.0s; }
.value-item:nth-child(4) { animation-delay: 1.2s; }

/* Timeline Animations */
.timeline-item {
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item.revealed {
    animation: slideInRight 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(1) { animation-delay: 0.3s; }
.timeline-item:nth-child(2) { animation-delay: 0.5s; }
.timeline-item:nth-child(3) { animation-delay: 0.7s; }
.timeline-item:nth-child(4) { animation-delay: 0.9s; }

/* Fact Items Animation */
.fact-item {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fact-item:nth-child(1) { animation-delay: 0.8s; }
.fact-item:nth-child(2) { animation-delay: 1.0s; }
.fact-item:nth-child(3) { animation-delay: 1.2s; }

/* Hover Animations */
.value-item:hover .value-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.fact-item:hover .fact-icon {
    animation: float 2s ease-in-out infinite;
}

.fact-item:hover .fact-value {
    animation: countUp 1s ease-out forwards;
}

@keyframes countUp {
    from {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* Background Animations */
.bg-circle-4 {
    animation: float 30s ease-in-out infinite;
}

.bg-circle-5 {
    animation: float 25s ease-in-out infinite reverse;
}


/* Skills Section Animations */
@keyframes skillPointPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.skill-point {
    animation: skillPointPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

@keyframes drawLine {
    from {
        stroke-dasharray: 0, 1000;
    }
    to {
        stroke-dasharray: 1000, 1000;
    }
}

.skill-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes skillCardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skill-card {
    animation: skillCardAppear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes filterTagBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

.filter-tag.active {
    animation: filterTagBounce 0.6s ease;
}

@keyframes sliderHandleGlow {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2), var(--shadow-md);
    }
}

.slider-handle {
    animation: sliderHandleGlow 2s ease-in-out infinite;
}

/* Background animations */
.bg-circle-6 {
    animation: float 25s ease-in-out infinite;
}

.bg-circle-7 {
    animation: float 30s ease-in-out infinite reverse;
}

/* Modal animations */
@keyframes modalBackdrop {
    from {
        backdrop-filter: blur(0);
        background: rgba(0, 0, 0, 0);
    }
    to {
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.5);
    }
}

.skill-modal.active {
    animation: modalBackdrop 0.3s ease forwards;
}

/* Export button animation */
@keyframes exportPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.export-btn:active {
    animation: exportPulse 0.3s ease;
}

/* Scale level hover animation */
.scale-level:hover .level-color {
    animation: bounce 0.6s ease;
}




/* Experience Section Animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.2);
    }
}

.timeline-node.active .node-circle {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.timeline-node {
    animation: slideInFromLeft 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.timeline-node:nth-child(1) { animation-delay: 0.1s; }
.timeline-node:nth-child(2) { animation-delay: 0.3s; }
.timeline-node:nth-child(3) { animation-delay: 0.5s; }

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.company-logo {
    animation: bounceIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.company-logo:nth-child(1) { animation-delay: 0.2s; }
.company-logo:nth-child(2) { animation-delay: 0.4s; }
.company-logo:nth-child(3) { animation-delay: 0.6s; }

@keyframes scaleYearHighlight {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.8);
    }
    100% {
        transform: translateX(-50%) scale(1.5);
    }
}

.scale-year[data-current="true"]::before {
    animation: scaleYearHighlight 0.6s ease forwards;
}

@keyframes metricCardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.metric-card:hover {
    animation: metricCardFloat 0.6s ease;
}

@keyframes achievementGlow {
    0%, 100% {
        box-shadow: var(--shadow-sm);
    }
    50% {
        box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
    }
}

.achievement-item:hover {
    animation: achievementGlow 0.6s ease;
}

@keyframes skillTagPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.skill-tag:hover {
    animation: skillTagPulse 0.3s ease;
}

@keyframes accordionSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-content {
    animation: accordionSlide 0.4s ease forwards;
}

@keyframes growthPointRise {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.growth-point {
    animation: growthPointRise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.growth-point:nth-child(1) { animation-delay: 0.1s; }
.growth-point:nth-child(2) { animation-delay: 0.3s; }
.growth-point:nth-child(3) { animation-delay: 0.5s; }

@keyframes drawGrowthLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.growth-line {
    animation: drawGrowthLine 1s ease-out 0.8s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes statValueCount {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value-large {
    animation: statValueCount 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.stat-item-large:nth-child(1) .stat-value-large { animation-delay: 0.1s; }
.stat-item-large:nth-child(2) .stat-value-large { animation-delay: 0.3s; }
.stat-item-large:nth-child(3) .stat-value-large { animation-delay: 0.5s; }
.stat-item-large:nth-child(4) .stat-value-large { animation-delay: 0.7s; }

/* Background animations */
.bg-circle-8 {
    animation: float 35s ease-in-out infinite;
}

.bg-circle-9 {
    animation: float 30s ease-in-out infinite reverse;
}

@keylines experienceLinesMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.experience-bg-lines {
    animation: experienceLinesMove 20s linear infinite;
}











