/* ==========================================================================
   ENGUUN UUGANBOLD | PORTFOLIO ULTRA-PREMIUM ENHANCER & MOBILE ENGINE
   Fonts: Montserrat & Roboto
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --enguun-accent-male: #ff3333;
  --enguun-accent-female: #e91e63;
  --enguun-glow-male: rgba(255, 51, 51, 0.4);
  --enguun-glow-female: rgba(233, 30, 99, 0.4);
  --enguun-bg-glass: rgba(12, 12, 18, 0.88);
  --enguun-border-glass: rgba(255, 255, 255, 0.12);
  --enguun-font-title: 'Montserrat', sans-serif;
  --enguun-font-body: 'Roboto', sans-serif;
}

html, body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden !important;
  width: 100%;
  font-family: var(--enguun-font-body);
}

h1, h2, h3, h4, h5, h6, .font-montserrat {
  font-family: var(--enguun-font-title) !important;
}

/* Floating Master Quick Dock (Mobile & Desktop) */
#enguun-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--enguun-bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 95vw;
}

#enguun-dock.hidden-intro {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(30px);
}

.dock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #e0e0e0;
  font-family: var(--enguun-font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.dock-btn:hover, .dock-btn:active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.dock-btn i {
  font-size: 13px;
}

.dock-btn.highlight {
  background: linear-gradient(135deg, rgba(255, 51, 51, 0.25), rgba(255, 51, 51, 0.1));
  border-color: rgba(255, 51, 51, 0.4);
  color: #ff8080;
}

body[data-gender="female"] .dock-btn.highlight {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.25), rgba(233, 30, 99, 0.1));
  border-color: rgba(233, 30, 99, 0.4);
  color: #ff80ab;
}

/* Modal Engine - Perfect Touch & Scroll Isolation */
.enguun-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overscroll-behavior: contain;
}

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

.enguun-modal {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}

.enguun-modal-backdrop.active .enguun-modal {
  transform: scale(1) translateY(0);
}

.enguun-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.enguun-modal-title {
  font-family: var(--enguun-font-title);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.enguun-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #bbb;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.enguun-modal-close:hover {
  background: rgba(255, 51, 51, 0.25);
  color: #fff;
  border-color: rgba(255, 51, 51, 0.5);
}

/* Modal Body with Isolated Smooth Touch Scrolling */
.enguun-modal-body {
  padding: 24px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  font-family: var(--enguun-font-body);
  color: #ccc;
  font-size: 14px;
  line-height: 1.65;
  flex: 1 1 auto;
}

.enguun-modal-body::-webkit-scrollbar {
  width: 6px;
}
.enguun-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
.enguun-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
.enguun-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Grid & Components */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.info-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-stat-label {
  font-family: var(--enguun-font-title);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  font-weight: 700;
}

.info-stat-value {
  font-family: var(--enguun-font-title);
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}

.award-timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 18px;
  border-left: 2px solid rgba(255, 51, 51, 0.3);
}

body[data-gender="female"] .award-timeline-item {
  border-left-color: rgba(233, 30, 99, 0.3);
}

.award-timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3333;
  box-shadow: 0 0 10px #ff3333;
}

body[data-gender="female"] .award-timeline-item::before {
  background: #e91e63;
  box-shadow: 0 0 10px #e91e63;
}

.award-badge-title {
  font-family: var(--enguun-font-title);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.award-badge-desc {
  font-family: var(--enguun-font-body);
  font-size: 13px;
  color: #aaa;
}

.tech-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: #ddd;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Specific Optimizations */
@media (max-width: 768px) {
  #enguun-dock {
    bottom: 16px;
    padding: 6px 10px;
    gap: 5px;
  }
  
  .dock-btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  .dock-btn span {
    font-size: 10px;
  }

  .enguun-modal {
    max-height: 90vh;
    border-radius: 20px;
  }

  .enguun-modal-header {
    padding: 14px 18px;
  }

  .enguun-modal-title {
    font-size: 15px;
  }

  .enguun-modal-body {
    padding: 16px;
  }
}
