/* CV Page Styles */
.cv-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-body);
}

.cv-container {
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cv-header {
    text-align: center;
    margin-bottom: 40px;
}

.cv-header h1 {
    font-size: clamp(32px, 5vw, 42px);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-primary), #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cv-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Flipbook Container */
.flipbook-viewport {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    margin: 20px 0;
}

.flipbook {
    width: 100%;
    max-width: 900px;
    /* Adjust based on your PDF's aspect ratio */
    height: 600px;
    /* Initial height, JS will adjust */
    background-color: var(--bg-surface-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Pages */
.page {
    background-color: #ffffff;
    /* PDF pages are usually white */
    overflow: hidden;
    position: relative;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.05);
    /* Spine shadow effect */
}

.page canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Loading State */
.cv-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(29, 191, 115, 0.1);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Controls */
.cv-controls {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.control-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #00d9ff);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(29, 191, 115, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .flipbook {
        height: 400px;
        /* Smaller height for mobile */
    }
}

/* Last Page Styling */
.cv-last-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-body));
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.cv-last-page::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(29, 191, 115, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.cv-last-page::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.last-page-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.thank-you-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--color-primary), #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.thank-you-text {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-option:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(29, 191, 115, 0.15);
}

.option-icon {
    font-size: 20px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(29, 191, 115, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
}

.option-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.option-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.option-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.social-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: rotate(10deg) scale(1.1);
}

.final-cta {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
}