/* Resume Modal Styles */
.menu-resume-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--link-col);
    color: white !important;
    padding: 3px 12px;
    border-radius: 15px;
    font-weight: 500;
    font-size:0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.07);
    height: 30px;
    margin-top: 0.65rem; /* Match navbar padding */
    margin-bottom: 0.9375rem;
}

.menu-resume-button:hover {
    background-color: var(--hover-col);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.13);
}

.resume-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    perspective: 1200px;
}

.resume-modal-container.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.resume-modal {
    width: 90%;
    height: 90vh;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1), 0 15px 25px rgba(0,0,0,0.05);
    transform: scale(0.95) translateY(20px) rotateX(2deg) translateZ(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.resume-modal.active {
    transform: scale(1) translateY(0) rotateX(0) translateZ(0);
    opacity: 1;
}

.resume-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px; /* Reduced padding */
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.resume-modal-title {
    font-size: 18px; /* Smaller font size */
    font-weight: 600;
    color: var(--text-col);
    margin: 0;
}

.resume-modal-close {
    width: 28px; /* Smaller close button */
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    color:  #0a9396
}

.resume-modal-close:hover {
    background-color: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.resume-modal-content {
    flex: 1;
    overflow: hidden;
}

.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Dark mode styles */
[data-theme="dark"] .resume-modal {
    background-color: rgba(30, 30, 30, 0.95);
}

[data-theme="dark"] .resume-modal-header {
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .resume-modal-close {
    background-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .resume-modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .navbar-collapse .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .navbar-nav .nav-item .menu-resume-button {
    display: inline-flex !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0.5rem auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: center !important;
  }
}
