* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #e0e0e0;
    line-height: 1.8;
}

.container {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    background: #2a2a3e;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 50%, #f0abfc 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: #2a2a3e;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    color: #2d2d44;
    font-weight: 500;
}

.contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: rgba(192, 132, 252, 0.1);
    border-bottom: 2px solid rgba(192, 132, 252, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #f0abfc;
}

.contact-item::before {
    content: '◆';
    color: #e879f9;
    font-size: 0.8rem;
}

.contact-item.print-only {
    display: none;
}

.action-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.action-button {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
    color: #1a1a2e;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(192, 132, 252, 0.6);
}

.action-button:active {
    transform: scale(0.95);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip {
    position: absolute;
    right: 70px;
    background: #2a2a3e;
    color: #f0abfc;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.action-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.content {
    padding: 2rem;
}

.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    color: #e879f9;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(232, 121, 249, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '▸';
    color: #c084fc;
}

.job, .education-item, .project {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(192, 132, 252, 0.05);
    border-left: 3px solid #c084fc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.job:hover, .education-item:hover, .project:hover {
    background: rgba(192, 132, 252, 0.1);
    border-left-color: #e879f9;
    transform: translateX(5px);
}

.job-title, .education-title, .project-title {
    font-size: 1.2rem;
    color: #f0abfc;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.job-company, .education-institution {
    color: #c084fc;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.job-date, .education-date {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.job-description, .project-description {
    color: #d1d5db;
    line-height: 1.7;
}

.job-description li, .project-description li {
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.job-description li::before, .project-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #e879f9;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-category {
    background: rgba(192, 132, 252, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.skill-category-title {
    color: #f0abfc;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
    color: #1a1a2e;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.note {
    background: rgba(232, 121, 249, 0.1);
    border-left: 3px solid #e879f9;
    padding: 1rem;
    border-radius: 8px;
    color: #d1d5db;
    font-style: italic;
    margin-top: 0.5rem;
}
.link {
    color: #f0abfc;
    text-decoration: underline;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    .header {
        padding-top: 0;
    }
    .contact-item.print-only {
        display: flex;
    }
    .job:hover, .education-item:hover, .project:hover {
        transform: none;
    }
    .action-buttons {
        display: none;
    }
    .experience-section {
        break-after: page;
    }
    .project-section {
        break-after: page;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .contact {
        flex-direction: column;
        gap: 1rem;
    }
    .content {
        padding: 1rem;
    }
    .action-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    .action-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}