/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    background: #2c3e50;
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* CV Container */
.cv-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* CV Controls */
.cv-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-download,
.btn-fullscreen,
.btn-zoom {
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover,
.btn-fullscreen:hover,
.btn-zoom:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#zoomLevel {
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
    text-align: center;
}

/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    height: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

#pdfFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* PDF Fallback */
.pdf-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
}

.fallback-content {
    text-align: center;
    padding: 40px;
}

.fallback-content i {
    font-size: 4rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.fallback-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.fallback-content p {
    color: #666;
    margin-bottom: 25px;
}

.btn-view-pdf {
    background: #2c3e50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-pdf:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* Alternative CV Display */
.cv-alternative {
    text-align: center;
    padding: 60px 20px;
}

.cv-message i {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.cv-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cv-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.alternative-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.option-btn {
    background: #2c3e50;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.option-btn:hover {
    background: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}



/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: white;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Fullscreen Mode */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
}

.fullscreen .pdf-viewer {
    height: calc(100vh - 80px);
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .cv-container {
        padding: 20px;
    }
    
    .cv-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zoom-controls {
        justify-content: center;
    }
    
    .pdf-viewer {
        height: 600px;
    }
    

    
    .alternative-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .cv-container,
    .cv-summary {
        padding: 15px;
    }
    
    .pdf-viewer {
        height: 500px;
    }
    

    
    .btn-download,
    .btn-fullscreen,
    .btn-zoom {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .cv-controls,
    .footer {
        display: none;
    }
    
    .cv-container {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    
    .pdf-viewer {
        height: auto;
        box-shadow: none;
    }
}