/* Resume Page Styles */
.resume-main {
    padding-bottom: 4rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-pdf-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-pdf-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-pdf-btn:active {
    transform: translateY(0);
}

.download-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-pdf-btn svg {
    width: 18px;
    height: 18px;
}

@media print {
    .header-actions,
    .bg-animation,
    .footer {
        display: none !important;
    }
    
    .resume-main {
        padding: 0;
    }
    
    .resume-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

.resume-section {
    margin-bottom: 4rem;
}

/* Personal Card */
.personal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
}

.personal-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.personal-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-resume);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.avatar-placeholder svg {
    width: 60px;
    height: 60px;
}

.personal-info {
    flex: 1;
}

.personal-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: var(--gradient-resume);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.personal-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.personal-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: var(--bg-card-hover);
}

.contact-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-item svg {
    width: 20px;
    height: 20px;
}

.personal-bio {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.personal-bio p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--gradient-resume);
    border-radius: 2px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.5);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-resume);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-resume);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: var(--bg-card-hover);
    border-radius: 1rem;
}

.timeline-description {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gradient-resume);
    font-weight: bold;
}

.timeline-description li:last-child {
    margin-bottom: 0;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.education-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: var(--gradient-resume);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.education-icon svg {
    width: 32px;
    height: 32px;
}

.education-content {
    flex: 1;
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.education-school {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.education-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-card-hover);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.education-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-highlights span {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.375rem 0.875rem;
    background: var(--bg-card-hover);
    border-radius: 1rem;
}

/* Footer */
.footer {
    margin-top: 6rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .personal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skills-grid,
    .education-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .personal-card {
        padding: 2rem;
    }

    .personal-name {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

