/* Modern Professional CV Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.cv-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.cv-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cv-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(35deg);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.3);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.header-info h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header-info .title {
    font-size: 1.4em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(5px);
}

/* Main Content Layout */
.cv-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* Section Styles */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Personal Details Grid */
.personal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    margin-right: 10px;
    min-width: 100px;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* Career Summary */
.career-summary {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(52,152,219,0.05) 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    font-size: 1.1em;
    line-height: 1.8;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 25px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-company {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1em;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9em;
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-content {
    color: var(--text-dark);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

.timeline-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.timeline-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 25px;
}

.skill-category {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h4::before {
    content: '▶';
    color: var(--secondary-color);
    font-size: 0.8em;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-progress {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    position: relative;
    animation: progressAnimation 1.5s ease-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--bg-light), rgba(52,152,219,0.1));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85em;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    transform: scale(1.05);
}

/* Education & Certificates */
.education-item, .certificate-item {
    background: var(--bg-white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.education-item:hover, .certificate-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.degree-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.degree-org {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.degree-time {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Awards Section */
.awards-list {
    display: grid;
    gap: 20px;
}

.award-item {
    background: linear-gradient(135deg, var(--bg-light), rgba(231,76,60,0.05));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    position: relative;
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: translateX(5px);
}

.award-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--accent-color);
    font-size: 1.2em;
}

.award-content {
    margin-left: 30px;
}

.award-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.award-desc {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Languages Section */
.languages-list {
    display: grid;
    gap: 15px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.language-name {
    font-weight: 600;
    color: var(--primary-color);
}

.language-level {
    color: var(--text-light);
    font-style: italic;
}

/* Interests Section */
.interests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.interest-item {
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-light), rgba(52,152,219,0.1));
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cv-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .cv-header {
        padding: 40px 20px;
    }
    
    .header-info h1 {
        font-size: 2em;
    }
    
    .cv-content {
        padding: 20px;
        gap: 30px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        left: -22px;
    }
    
    .personal-details {
        grid-template-columns: 1fr;
    }
    
    .interests-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-info h1 {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 1.4em;
    }
    
    .interests-list {
        grid-template-columns: 1fr;
    }
    
    .skill-tags {
        gap: 5px;
    }
    
    .skill-tag {
        font-size: 0.75em;
        padding: 4px 8px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
        font-size: 12pt;
    }
    
    .cv-container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
    
    .cv-header {
        background: var(--primary-color) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .cv-content {
        grid-template-columns: 2fr 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .timeline-item:hover,
    .skill-category:hover,
    .education-item:hover,
    .certificate-item:hover,
    .award-item:hover,
    .interest-item:hover,
    .detail-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .timeline-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}