/* ===========================
   EXPERIENCE SECTION
   =========================== */

.experience {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 20px;
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.experience .container {
    position: relative;
    z-index: 1;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.experience-timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Timeline line */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
    opacity: 0.3;
}

.experience-card {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
}

.experience-header {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.company-logo {
    flex-shrink: 0;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

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

.experience-title-section {
    flex-grow: 1;
}

.experience-title-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.company-name {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: #667eea;
}

.experience-content {
    padding: 2.5rem 2rem;
}

.responsibilities {
    margin-bottom: 2rem;
}

.responsibilities h5,
.tech-used h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.responsibilities li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.responsibilities li:hover {
    background: #667eea10;
    transform: translateX(8px);
    border-left-color: #764ba2;
}

.bullet-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.responsibilities li span:last-child {
    color: #555;
    line-height: 1.7;
    font-size: 0.98rem;
}

.tech-used {
    padding-top: 1.5rem;
    border-top: 2px dashed #e0e0e0;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.35);
}

/* Alternating colors */
.experience-card:nth-child(2) .logo-circle {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.experience-card:nth-child(3) .logo-circle {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.experience-card:nth-child(4) .logo-circle {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.experience-card:nth-child(2) .company-name {
    color: #f5576c;
}

.experience-card:nth-child(3) .company-name {
    color: #00f2fe;
}

.experience-card:nth-child(4) .company-name {
    color: #38f9d7;
}

.experience-card:nth-child(2) .tech-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.experience-card:nth-child(3) .tech-badge {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.experience-card:nth-child(4) .tech-badge {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}
