/* ---------------------------------
CV MODAL STYLES
--------------------------------- */

@keyframes fadeIn {
   from {
      opacity: 0;
   }
   to {
      opacity: 1;
   }
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes spin {
   from {
      transform: rotate(0deg);
   }
   to {
      transform: rotate(360deg);
   }
}

.cv-modal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.4);
   backdrop-filter: blur(3px);
   overflow: auto;
   animation: fadeIn 0.3s ease-in-out;
}

.cv-modal.active {
   display: flex;
   align-items: center;
   justify-content: center;
}

.cv-modal-content {
   background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
   width: 100%;
   max-width: 850px;
   height: 85vh;
   border-radius: 16px;
   box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
   display: flex;
   flex-direction: column;
   overflow: hidden;
   animation: slideDown 0.4s ease-out;
   transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-modal-content.maximized {
   width: 98%;
   max-width: none;
   height: 95vh;
}

.cv-modal-header {
   background: linear-gradient(135deg, #120EF0 0%, #1A1FE8 100%);
   padding: 10px 20px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: white;
   box-shadow: 0 2px 8px rgba(18, 14, 240, 0.2);
}

.cv-modal-header h2 {
   margin: 0;
   font-size: 18px;
   font-weight: 600;
   letter-spacing: 0.5px;
   font-family: 'Poppins', sans-serif;
}

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

.cv-maximize {
   font-size: 20px;
   cursor: pointer;
   color: rgba(255, 255, 255, 0.7);
   transition: color 0.3s ease;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   line-height: 1;
}

.cv-maximize:hover {
   color: white;
   animation: spin 0.6s ease-in-out;
}

.cv-close {
   font-size: 32px;
   font-weight: 300;
   cursor: pointer;
   color: rgba(255, 255, 255, 0.7);
   transition: all 0.3s ease;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 0;
   background: transparent;
   line-height: 1;
}

.cv-close:hover {
   background: transparent;
   color: white;
   transform: rotate(90deg);
}

.cv-modal-body {
   flex: 1;
   overflow: auto;
   padding: 0;
   background: #3a3a3a;
}


.cv-modal-body iframe {
   width: 100%;
   height: 100%;
   border: none;
   border-radius: 0 0 16px 16px;
}

@media (max-width: 768px) {
   .cv-modal-content {
      width: 95%;
      height: 90vh;
   }

   .cv-modal-header {
      padding: 12px 15px;
   }

   .cv-modal-header h2 {
      font-size: 16px;
   }

   .cv-header-controls {
      gap: 5px;
   }

   .cv-maximize,
   .cv-close {
      font-size: 24px;
      width: 36px;
      height: 36px;
   }

   .cv-modal-body {
      padding: 0;
   }
}

@media (max-width: 480px) {
   .cv-modal-content {
      width: 98%;
      height: 95vh;
   }

   .cv-modal-header {
      padding: 10px 12px;
   }

   .cv-modal-header h2 {
      font-size: 14px;
   }

   .cv-maximize,
   .cv-close {
      font-size: 20px;
      width: 32px;
      height: 32px;
   }

   .cv-modal-body {
      padding: 0;
   }
}
