/* ===== TECHNOLOGIES MODAL COMPONENT ===== */

/* Modal Overlay */
.technologies-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.technologies-modal.active {
  opacity: 1;
  visibility: visible;
}

.technologies-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Modal Content */
.technologies-modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  background: linear-gradient(145deg,
      rgba(0, 0, 161, 0.1),
      rgba(42, 208, 208, 0.05),
      rgba(0, 0, 161, 0.1));
  border: 2px solid rgba(42, 208, 208, 0.3);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 50px rgba(0, 0, 161, 0.3),
    0 0 100px rgba(42, 208, 208, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(50px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: modalGlow 3s ease-in-out infinite alternate;
}

.technologies-modal.active .technologies-modal-content {
  transform: scale(1) translateY(0);
}

@keyframes modalGlow {
  from {
    box-shadow:
      0 25px 50px rgba(0, 0, 161, 0.3),
      0 0 100px rgba(42, 208, 208, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  to {
    box-shadow:
      0 25px 50px rgba(0, 0, 161, 0.5),
      0 0 150px rgba(42, 208, 208, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* Modal Header */
.technologies-modal-header {
  position: relative;
  padding: 30px 40px;
  background: linear-gradient(135deg,
      rgba(0, 0, 161, 0.2),
      rgba(42, 208, 208, 0.1));
  border-bottom: 1px solid rgba(42, 208, 208, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.technologies-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  text-shadow: 0 0 20px rgba(42, 208, 208, 0.5);
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(42, 208, 208, 0.5);
  }

  50% {
    text-shadow: 0 0 30px rgba(42, 208, 208, 0.8), 0 0 40px rgba(0, 0, 161, 0.3);
  }
}

.tech-icon {
  font-size: 3rem;
  animation: iconRotate 4s linear infinite;
}

@keyframes iconRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.tech-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(42, 208, 208, 0.8);
  margin-top: 5px;
  letter-spacing: 2px;
}

.technologies-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(42, 208, 208, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.technologies-close-btn:hover {
  background: rgba(42, 208, 208, 0.2);
  border-color: var(--secondary-cyan);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(42, 208, 208, 0.5);
}

/* Technologies Grid */
.technologies-grid {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 208, 208, 0.5) rgba(0, 0, 0, 0.1);
}

.technologies-grid::-webkit-scrollbar {
  width: 8px;
}

.technologies-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.technologies-grid::-webkit-scrollbar-thumb {
  background: rgba(42, 208, 208, 0.5);
  border-radius: 4px;
}

.technologies-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(42, 208, 208, 0.7);
}

/* Tech Category */
.tech-category {
  background: linear-gradient(145deg,
      rgba(0, 0, 161, 0.1),
      rgba(42, 208, 208, 0.05));
  border: 1px solid rgba(42, 208, 208, 0.3);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  animation: categoryFloat 6s ease-in-out infinite;
}

.tech-category:nth-child(even) {
  animation-delay: -3s;
}

@keyframes categoryFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.tech-category:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-cyan);
  box-shadow: 0 20px 40px rgba(42, 208, 208, 0.2);
}

.tech-category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(42, 208, 208, 0.2);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-cyan));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(42, 208, 208, 0.3);
}

.tech-category h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(42, 208, 208, 0.3);
}

/* Tech Items */
.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.tech-item {
  padding: 12px 16px;
  background: rgba(42, 208, 208, 0.1);
  border: 1px solid rgba(42, 208, 208, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(42, 208, 208, 0.3),
      transparent);
  transition: left 0.5s ease;
}

.tech-item:hover::before {
  left: 100%;
}

.tech-item:hover {
  background: rgba(42, 208, 208, 0.2);
  border-color: var(--secondary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(42, 208, 208, 0.2);
  text-shadow: 0 0 10px rgba(42, 208, 208, 0.5);
}

/* Modal Footer */
.technologies-footer {
  padding: 30px 40px;
  background: linear-gradient(135deg,
      rgba(0, 0, 161, 0.15),
      rgba(42, 208, 208, 0.08));
  border-top: 1px solid rgba(42, 208, 208, 0.3);
}

.tech-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
}

.tech-stat {
  text-align: center;
  color: #fff;
}

.tech-stat-number {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary-cyan);
  text-shadow: 0 0 15px rgba(42, 208, 208, 0.5);
  animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
  from {
    text-shadow: 0 0 15px rgba(42, 208, 208, 0.5);
  }

  to {
    text-shadow: 0 0 25px rgba(42, 208, 208, 0.8), 0 0 35px rgba(0, 0, 161, 0.3);
  }
}

.tech-stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .technologies-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .technologies-modal-header {
    padding: 20px;
  }

  .technologies-title {
    font-size: 1.8rem;
  }

  .technologies-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .tech-items {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }

  .tech-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .tech-stats {
    gap: 30px;
  }

  .tech-stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .technologies-title {
    font-size: 1.5rem;
    gap: 10px;
  }

  .tech-icon {
    font-size: 2rem;
  }

  .tech-category {
    padding: 15px;
  }

  .technologies-footer {
    display: none;
  }
}

/* Animation Staggering */
.tech-category:nth-child(1) {
  animation-delay: 0.1s;
}

.tech-category:nth-child(2) {
  animation-delay: 0.2s;
}

.tech-category:nth-child(3) {
  animation-delay: 0.3s;
}

.tech-category:nth-child(4) {
  animation-delay: 0.4s;
}

.tech-category:nth-child(5) {
  animation-delay: 0.5s;
}

.tech-category:nth-child(6) {
  animation-delay: 0.6s;
}

/* Loading Animation for Tech Items */
.tech-item:nth-child(odd) {
  animation: techItemSlideIn 0.5s ease-out forwards;
  opacity: 0;
}

.tech-item:nth-child(even) {
  animation: techItemSlideIn 0.5s ease-out 0.1s forwards;
  opacity: 0;
}

@keyframes techItemSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== TOOLTIP STYLES ===== */
.tech-tooltip {
  position: absolute;
  background: linear-gradient(145deg, #0000A1, #135F94);
  color: #2AD0D0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 161, 0.5);
  border: 1px solid rgba(42, 208, 208, 0.3);
  z-index: 10001;
  pointer-events: none;
  display: none;
}

.tech-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0000A1;
}

/* ===== NOTIFICATION STYLES ===== */
.tech-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(145deg, #0000A1, #135F94);
  border: 2px solid rgba(42, 208, 208, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 161, 0.4);
  z-index: 10002;
  backdrop-filter: blur(10px);
}

.notification-content h4 {
  color: #2AD0D0;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.notification-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}