/* Experience Page Styles */
:root {
    --primary: #E8A1B3;
    --secondary: #FFB5C8;
    --accent: #DDA0AB;
    --misty-rose: #FFE4E1;
    --dark: #2D3436;
    --light: #F9F5F6;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

.experience-page {
    padding-top: 80px;
    background: var(--light);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.experience-hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    overflow: hidden;
}

.experience-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 10%);
    background-size: 30px 30px;
    animation: particleFloat 20s linear infinite;
}

.experience-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulseGradient 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideUp 0.8s ease forwards;
    background: linear-gradient(to right, white, var(--misty-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-content h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.experience-timeline {
    padding: 4rem 2rem;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    animation: slideInFromRight 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.experience-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(232, 161, 179, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(232, 161, 179, 0.1);
    margin-left: 50px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 161, 179, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(240, 128, 128, 0.15);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(240, 128, 128, 0.05) 25%,
        transparent 25%,
        transparent 50%,
        rgba(240, 128, 128, 0.05) 50%,
        rgba(240, 128, 128, 0.05) 75%,
        transparent 75%
    );
    background-size: 60px 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover::before {
    opacity: 1;
    animation: gradientMove 30s linear infinite;
}

.experience-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(255, 255, 255, 0.1) 0%,
                transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.experience-card:hover::after {
    opacity: 1;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.company-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(240, 128, 128, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover .company-logo {
    transform: scale(1.1) rotate(5deg);
}

.experience-card:hover .company-logo::after {
    opacity: 1;
}

.company-info h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.company-info h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.company-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.experience-card:hover .company-info h3::after {
    transform: scaleX(1);
    transform-origin: left;
}

.location-date {
    display: flex;
    gap: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.location-date i {
    margin-right: 0.5rem;
    display: inline-block;
    animation: iconWiggle 3s ease-in-out infinite;
}

.location-date span:nth-child(2) i {
    animation-delay: 0.2s;
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.responsibilities ul {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.responsibilities li:hover {
    transform: translateX(5px);
    color: var(--primary);
}

.responsibilities li:hover::before {
    transform: translateX(3px);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 161, 179, 0.2);
}

.tech-stack span {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--misty-rose), white);
    border: 1px solid rgba(232, 161, 179, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(232, 161, 179, 0.15);
    transform-origin: center;
    animation: floatTag 3s ease-in-out infinite;
}

.tech-stack span::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.tech-stack span:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.tech-stack span:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.tech-stack span:nth-child(2n) {
    animation-delay: 0.2s;
}

.tech-stack span:nth-child(3n) {
    animation-delay: 0.4s;
}

@keyframes floatTag {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Timeline connector */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.3;
}

/* Timeline dots */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(240, 128, 128, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(240, 128, 128, 0.2);
    background: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-hero h1 {
        font-size: 2.5rem;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .location-date {
        flex-direction: column;
        align-items: center;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 21px;
    }

    .experience-card {
        margin-left: 40px;
    }

    .experience-card::before {
        left: -20px;
        width: 20px;
    }

    .tech-stack {
        justify-content: center;
    }
    
    .experience-card {
        transform: none !important;
    }
    
    .scroll-progress {
        height: 2px;
    }
}

/* Timeline connector */
.timeline-container::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent,
        var(--primary),
        var(--secondary),
        transparent
    );
    animation: gradientFlow 3s linear infinite;
}

/* Education Section Styles */
.education-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--light), white);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header h2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(8px);
    opacity: 0.5;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.education-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.education-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(232, 161, 179, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 161, 179, 0.1);
    position: relative;
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(232, 161, 179, 0.1) 0%,
                transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.education-card:hover::before {
    opacity: 1;
}

.education-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.edu-logo-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: visible;
    background: white;
    box-shadow: 0 5px 15px rgba(232, 161, 179, 0.2);
    position: relative;
}

.edu-logo-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.education-card:hover .edu-logo-container::before {
    opacity: 1;
}

.edu-logo-container::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    filter: blur(10px);
}

.education-card:hover .edu-logo-container::after {
    opacity: 0.5;
    inset: -10px;
}

.edu-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.education-card:hover .edu-logo {
    transform: scale(1.1);
}

.edu-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.edu-info h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.edu-program {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--accent);
}

.edu-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gpa {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.gpa::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: transform 0.5s ease;
}

.education-card:hover .gpa::before {
    transform: translate(100%, 100%);
}

.education-details ul {
    list-style: none;
    padding: 0;
}

.education-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.education-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.edu-highlights {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 161, 179, 0.2);
    position: relative;
}

.edu-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary),
        transparent
    );
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--misty-rose);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.highlight-item:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.highlight-item:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
}

/* Add these animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseGradient {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

@keyframes gradientFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(232, 161, 179, 0.5);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .edu-meta {
        justify-content: center;
    }

    .edu-highlights {
        flex-wrap: wrap;
        justify-content: center;
    }

    .timeline-container::after {
        left: 25px;
    }

    .timeline-item::before {
        left: 21px;
    }
}

/* Add subtle particle effect to hero section */
@keyframes particleFloat {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Timeline animations */
.timeline-item {
    animation: slideInFromRight 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

/* Staggered animation for timeline items */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced timeline connector */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(240, 128, 128, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(240, 128, 128, 0.2);
    background: var(--accent);
}

/* Timeline line enhancement */
.timeline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary),
        transparent
    );
    opacity: 0.3;
}

/* Card hover effects */
.experience-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(240, 128, 128, 0.05) 25%,
        transparent 25%,
        transparent 50%,
        rgba(240, 128, 128, 0.05) 50%,
        rgba(240, 128, 128, 0.05) 75%,
        transparent 75%
    );
    background-size: 60px 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(240, 128, 128, 0.15);
}

.experience-card:hover::before {
    opacity: 1;
    animation: gradientMove 30s linear infinite;
}

/* Company logo animation */
.company-logo {
    transition: all 0.3s ease;
    position: relative;
}

.company-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(240, 128, 128, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover .company-logo {
    transform: scale(1.1) rotate(5deg);
}

.experience-card:hover .company-logo::after {
    opacity: 1;
}

/* Skills tags animation */
.skills-used span {
    animation: fadeInUp 0.5s ease-out backwards;
    transition: all 0.3s ease;
}

.skills-used span:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(240, 128, 128, 0.2);
    background: var(--primary);
    color: white;
}

/* Staggered animation for skills */
.skills-used span:nth-child(1) { animation-delay: 0.1s; }
.skills-used span:nth-child(2) { animation-delay: 0.2s; }
.skills-used span:nth-child(3) { animation-delay: 0.3s; }
.skills-used span:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced role title */
.role-title {
    position: relative;
    display: inline-block;
}

.role-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.experience-card:hover .role-title::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animated bullet points */
.responsibilities li {
    position: relative;
    padding-left: 1.5em;
    transition: all 0.3s ease;
}

.responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.responsibilities li:hover {
    transform: translateX(5px);
    color: var(--primary);
}

.responsibilities li:hover::before {
    transform: translateX(3px);
}

/* Date badge enhancement */
.date-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.date-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240,128,128,0.2) 0%, transparent 70%);
    transform: translate(-100%, -100%) rotate(45deg);
    transition: 0.5s ease;
}

.experience-card:hover .date-badge::before {
    transform: translate(0, 0) rotate(45deg);
}

/* New animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth scroll behavior */
.experience-page {
    scroll-behavior: smooth;
} 