/* CV Page Styles */
.cv-container {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.cv-header {
    text-align: center;
    margin-bottom: 60px;
}

.cv-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cv-header .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cv-header .info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
}

.cv-header .info-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-intro {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cv-section {
    margin-bottom: 60px;
}

.cv-section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: #333;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-period {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-company {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.timeline-details {
    margin: 10px 0;
    padding-left: 20px;
}

.timeline-details li {
    margin-bottom: 8px;
    list-style: disc;
    color: #444;
}

.tech-stack {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
}

.tech-stack strong {
    color: #333;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.skill-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.skill-item span {
    color: #666;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-group h3 {
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.project-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cv-project-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.cv-project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cv-project-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cv-project-card .date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-header h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
