/* Modern CV Styles */

/* Typography */
.cv-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* CV Navbar */
.cv-navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cv-navbar .navbar-brand {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cv-navbar .navbar-brand:hover {
    color: #03a87c;
}

/* CV Header */
.cv-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cv-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cv-intro {
    position: relative;
    z-index: 2;
}

.cv-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-style: italic;
}

.cv-tagline-section {
    margin-bottom: 2rem;
}

.cv-tagline-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.cv-tagline-section blockquote {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cv-tagline-section blockquote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cv-tagline-section ul {
    list-style: none;
    padding: 0;
}

.cv-tagline-section li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.cv-tagline-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-item i {
    width: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffd89b;
}

/* CV Avatar */
.cv-avatar {
    position: relative;
    margin-bottom: 2rem;
}

.avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.cv-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.summary-item {
    text-align: center;
}

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd89b;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CV Content */
.cv-content {
    padding: 60px 0;
    background: white;
    position: relative;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    color: #03a87c;
}

.cv-sections h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #03a87c;
    position: relative;
}

.cv-sections h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* Experience Sections */
.cv-sections h3[id] {
    scroll-margin-top: 100px;
}

.cv-sections h3 + blockquote {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #03a87c;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cv-sections ul {
    list-style: none;
    padding: 0;
}

.cv-sections li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.cv-sections li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #03a87c, #2ecc71);
    border-radius: 50%;
}

.cv-sections strong {
    color: #2c3e50;
    font-weight: 600;
}

.cv-sections code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
    border: 1px solid #e9ecef;
}

/* Sidebar */
.cv-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title i {
    color: #03a87c;
}

/* Skills */
.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.skill-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* Skill-specific colors */
.skill-tag.java { background: linear-gradient(135deg, #f89820, #ff6b35); color: white; }
.skill-tag.kotlin { background: linear-gradient(135deg, #7c4dff, #651fff); color: white; }
.skill-tag.spring { background: linear-gradient(135deg, #6db33f, #5cb85c); color: white; }
.skill-tag.gcp { background: linear-gradient(135deg, #4285f4, #1a73e8); color: white; }
.skill-tag.aws { background: linear-gradient(135deg, #ff9900, #ff6b00); color: white; }
.skill-tag.azure { background: linear-gradient(135deg, #0078d4, #106ebe); color: white; }
.skill-tag.postgresql { background: linear-gradient(135deg, #336791, #2d5a87); color: white; }
.skill-tag.mongodb { background: linear-gradient(135deg, #47a248, #4caf50); color: white; }

/* Navigation */
.cv-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #03a87c;
    background: rgba(3, 168, 124, 0.1);
    transform: translateX(5px);
}

/* Career Timeline */
.career-timeline {
    position: relative;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #03a87c, #2ecc71);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #03a87c;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #03a87c;
}

.timeline-year {
    font-size: 0.8rem;
    color: #03a87c;
    font-weight: 600;
}

.timeline-role {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.timeline-company {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Print Styles */
@media print {
    .cv-navbar,
    .avatar-ring,
    .sidebar-section:last-child {
        display: none !important;
    }
    
    .cv-page {
        background: white !important;
    }
    
    .cv-header {
        background: #2c3e50 !important;
        padding: 40px 0 !important;
        page-break-inside: avoid;
    }
    
    .cv-content {
        padding: 20px 0 !important;
    }
    
    .sidebar-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }
    
    .cv-name {
        font-size: 2.5rem !important;
        color: white !important;
        background: none !important;
        -webkit-text-fill-color: white !important;
    }
    
    .avatar-img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .cv-name {
        font-size: 2.5rem;
    }
    
    .cv-contact {
        justify-content: center;
    }
    
    .cv-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .avatar-img {
        width: 150px;
        height: 150px;
    }
    
    .avatar-ring {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 767.98px) {
    .cv-header {
        padding: 100px 0 40px;
        text-align: center;
    }
    
    .cv-name {
        font-size: 2rem;
    }
    
    .cv-contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cv-summary {
        gap: 1rem;
    }
    
    .summary-number {
        font-size: 1.5rem;
    }
    
    .avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .avatar-ring {
        width: 140px;
        height: 140px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.skill-tag:hover {
    background: linear-gradient(135deg, #03a87c, #2ecc71);
    color: white;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

/* Focus States for Accessibility */
.nav-link:focus,
.contact-item a:focus {
    outline: 2px solid #03a87c;
    outline-offset: 2px;
}

/* Dark Theme Support */
.theme-classic .cv-page {
    background: #f8f9fa;
}

.theme-classic .cv-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.theme-classic .sidebar-section {
    background: #f8f9fa;
    border-color: #e9ecef;
}