/* ==========================================
   CV PAGE STYLES - Modern Ocean Theme
   ========================================== */

.cv-section {
    min-height: 100vh;
    background: var(--light-color);
    position: relative;
}

.cv-header {
    padding: 3rem 0 2rem;
    animation: fadeInDown 0.8s ease;
}

.cv-header h4 {
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cv-header h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.cv-header h1 i {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.cv-header .lead {
    color: var(--text-light);
    animation: fadeInUp 0.8s ease 0.2s both;
}

#downloadBtn {
    transition: var(--transition);
    background: var(--gradient-ocean);
    border: none;
    box-shadow: var(--shadow-md);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    animation: fadeInUp 0.8s ease 0.4s both;
}

#downloadBtn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

#downloadBtn i {
    transition: var(--transition-fast);
}

#downloadBtn:hover i {
    animation: pulse 0.6s ease infinite;
}

/* PDF Container */
.pdf-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    animation: scaleIn 0.8s ease 0.6s both;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.pdf-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pdf-viewer canvas {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(14, 165, 233, 0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pdf-viewer canvas:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

#pdfLoading {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 4px;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .cv-header h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .cv-header h1 {
        font-size: 1.75rem;
    }
    
    .cv-header {
        padding: 2rem 0 1.5rem;
    }
    
    .cv-header .lead {
        font-size: 0.95rem;
    }
    
    #downloadBtn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .pdf-viewer {
        gap: 1rem;
    }
    
    .pdf-viewer canvas {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .pdf-controls {
        padding: 0.75rem 1.5rem;
        gap: 1rem;
    }
}

/* Small phones: Extra compact */
@media (max-width: 576px) {
    .cv-header h4 {
        font-size: 0.8rem;
    }
    
    .cv-header h1 {
        font-size: 1.5rem;
    }
}
