/* Enhanced Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Smooth scroll padding for fixed nav */
section[id] {
    scroll-margin-top: 100px;
}

/* Enhanced nav link hover effects */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #00ff88;
    border-radius: 1px;
}

/* Enhanced Resume Selector Modal */
.resume-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
}

.resume-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-modal-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    border-radius: 25px;
    padding: 45px;
    max-width: 550px;
    width: 90%;
    height: 500px;
    position: relative;
    border: 3px solid #00ff88;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.resume-modal h3 {
    color: #00ff88;
    text-align: center;
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.resume-options {
    display: grid;
    gap: 18px;
    margin-bottom: 35px;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    height: 300px;
}

/* Custom scrollbar for resume options */
.resume-options::-webkit-scrollbar {
    width: 8px;
}

.resume-options::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.1);
    border-radius: 4px;
}

.resume-options::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 4px;
}

.resume-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.7);
}

.resume-option {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 18px 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.resume-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.resume-option:hover::before {
    left: 100%;
}

.resume-option:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-color: #00ff88;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.resume-option-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.resume-option-text {
    flex: 1;
}

.resume-option-title {
    font-weight: bold;
    font-size: 18px;
    color: #00ff88;
}

.resume-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.resume-modal-close:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
}

.resume-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Resume Preview Page */
.resume-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    backdrop-filter: blur(15px);
}

.resume-preview.active {
    display: flex;
    flex-direction: column;
}

.resume-preview-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 2px solid #00ff88;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resume-preview-title {
    color: #00ff88;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.resume-preview-controls {
    display: flex;
    gap: 15px;
}

.resume-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-btn:hover {
    background: linear-gradient(135deg, #00cc6a 0%, #00aa55 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.resume-btn.back-btn {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: white;
}

.resume-btn.back-btn:hover {
    background: linear-gradient(135deg, #777 0%, #555 100%);
}

.resume-btn.share-btn {
    background: linear-gradient(135deg, #007acc 0%, #005999 100%);
    color: white;
}

.resume-btn.share-btn:hover {
    background: linear-gradient(135deg, #0099ff 0%, #007acc 100%);
}

/* Activity Indicator for Share Button */
.resume-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.resume-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.resume-preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.resume-slideshow {
    max-width: 900px;
    max-height: 85vh;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-slide {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

.resume-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.resume-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 136, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-nav:hover {
    background: rgba(0, 255, 136, 1);
    transform: translateY(-50%) scale(1.1);
}

.resume-nav.prev {
    left: 20px;
}

.resume-nav.next {
    right: 20px;
}

.resume-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Mobile responsiveness for resume preview */
@media (max-width: 768px) {
    .resume-modal-content {
        height: 450px;
        padding: 30px;
    }

    .resume-options {
        height: 280px;
    }

    .resume-preview-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .resume-preview-title {
        font-size: 20px;
    }

    .resume-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .resume-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .resume-nav.prev {
        left: -50px;
    }

    .resume-nav.next {
        right: -50px;
    }
}

/* Enhanced LinkedIn Link Styling */
.contact-item .contact-text a[href*="linkedin"] {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
    margin-top: 5px;
}

.contact-item .contact-text a[href*="linkedin"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
    background: linear-gradient(135deg, #005885 0%, #0077b5 100%);
}

/* Robotics Quote Styling */
.robotics-quote {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-left: 4px solid #00ff88;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.robotics-quote::before {
    content: "🤖";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    opacity: 0.3;
}

.robotics-quote blockquote {
    margin: 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.robotics-quote .quote-author {
    color: #00ff88;
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}

.robotics-quote .quote-author::before {
    content: "— ";
}

/* Gallery functionality removed */
