/* Modal Styles with Computer/Technology Elements */
.resume-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 58, 102, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.resume-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.resume-modal {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: linear-gradient(135deg, #0a2540 0%, #0B3A66 50%, #1a4a7a 100%);
  border-radius: 20px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 0 60px rgba(0, 255, 255, 0.2),
    0 0 120px rgba(0, 100, 255, 0.1),
    inset 0 0 60px rgba(0, 255, 255, 0.05);
  overflow: hidden;
  transform: scale(0.8) translateY(50px);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Computer/Tech Background Elements */
.resume-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.resume-modal::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
  animation: modalGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes modalGlow {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10%, 10%);
  }
}

/* Tech Border Elements */
.resume-modal-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 20px;
  pointer-events: none;
}

.resume-modal-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 255, 255, 0.5);
  pointer-events: none;
}

.resume-modal-corner--tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.resume-modal-corner--tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.resume-modal-corner--bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.resume-modal-corner--br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* Scanline Effect */
.resume-modal-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
  animation: scanline 3s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    top: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Modal Header */
.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  background: rgba(0, 20, 40, 0.5);
  position: relative;
  z-index: 1;
}

.resume-modal-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.resume-modal-title-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
  }
}

.resume-modal-title-text h3 {
  color: #00d4ff;
  font-size: 24px;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.resume-modal-title-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 5px 0 0 0;
}

.resume-modal-close {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff4444;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.resume-modal-close:hover {
  background: rgba(255, 0, 0, 0.4);
  transform: rotate(90deg);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* Modal Content */
.resume-modal-content {
  padding: 30px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
  position: relative;
  z-index: 1;
}

.resume-modal-content::-webkit-scrollbar {
  width: 8px;
}

.resume-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 20, 40, 0.5);
}

.resume-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d4ff, #0066ff);
  border-radius: 4px;
}

/* Resume Sections */
.resume-section {
  margin-bottom: 30px;
  background: rgba(0, 20, 40, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.resume-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00d4ff, #0066ff);
}

.resume-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00d4ff;
  font-size: 18px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.resume-section-title i {
  font-size: 20px;
  animation: titleIcon 3s ease-in-out infinite;
}

@keyframes titleIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Tech Info Bars */
.resume-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 15px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.resume-info-bar:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateX(5px);
}

.resume-info-bar i {
  color: #00d4ff;
  font-size: 16px;
  width: 20px;
}

.resume-info-bar span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Staff Image Background Watermark */
.resume-modal {
  position: relative;
}

.resume-modal-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}

/* Teaching Subjects */
.resume-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.resume-subject-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.resume-subject-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.resume-subject-item i {
  color: #00d4ff;
  font-size: 14px;
}

.resume-subject-item span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

/* Skills Progress Bars */
.resume-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.resume-skill-item {
  background: rgba(0, 20, 40, 0.5);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.resume-skill-item:hover {
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
}

.resume-skill-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.resume-skill-progress {
  height: 6px;
  background: rgba(0, 40, 80, 0.5);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.resume-skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #0066ff);
  border-radius: 3px;
  width: 0;
  transition: width 1s ease-out;
  position: relative;
}

.resume-skill-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: skillShine 2s ease-in-out infinite;
}

@keyframes skillShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Timeline */
.resume-timeline {
  position: relative;
  padding-right: 30px;
}

.resume-timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #00d4ff, #0066ff, #00d4ff);
}

.resume-timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-right: 20px;
}

.resume-timeline-item::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: #00d4ff;
  border-radius: 50%;
  border: 3px solid #0a2540;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  }
}

.resume-timeline-date {
  color: #00d4ff;
  font-size: 12px;
  margin-bottom: 5px;
  font-family: monospace;
}

.resume-timeline-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 5px;
}

.resume-timeline-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

/* Tech Floating Elements */
.resume-tech-float {
  position: absolute;
  font-size: 20px;
  color: rgba(0, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.resume-tech-float:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.resume-tech-float:nth-child(2) {
  top: 30%;
  right: 8%;
  animation-delay: 1s;
}

.resume-tech-float:nth-child(3) {
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.resume-tech-float:nth-child(4) {
  bottom: 10%;
  right: 5%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Binary Code Background */
.resume-binary-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.1;
  font-family: monospace;
  font-size: 12px;
  color: #00d4ff;
  line-height: 1.5;
  white-space: pre;
  animation: binaryScroll 20s linear infinite;
}

@keyframes binaryScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .resume-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .resume-modal-header {
    padding: 15px 20px;
  }
  
  .resume-modal-content {
    padding: 20px;
  }
  
  .resume-modal-title-text h3 {
    font-size: 20px;
  }
  
  .resume-skills-grid {
    grid-template-columns: 1fr;
  }
  
  .resume-timeline {
    padding-right: 20px;
  }
  
  .resume-staff-image {
    max-width: 150px;
    max-height: 150px;
  }
  
  .resume-subjects-grid {
    grid-template-columns: 1fr;
  }
}
