
    * { font-family: 'Open Sans', sans-serif; }
    h1, h2, h3, .heading { font-family: 'Montserrat', sans-serif; }
	
.photo-click{
position: relative;
display: inline-block;
cursor: pointer;
}

/* блок фото */
.photo-popup{
display: none;
position: absolute;
top: -40px;
left: 110%;
width: 600px;
background: #fff;
border: 1px solid #ccc;
padding: 6px;
box-shadow: 0 6px 18px rgba(0,0,0,0.25);
z-index: 9999;
}

/* фото */
.photo-popup img{
width: 100%;
height: auto;
display: block;
}

/* показ фото */
.photo-click.active .photo-popup{
display: block;
}


/* варіант для лівої сторони */
.photo-click.left .photo-popup{
left: auto;
right: 110%;
}
	
.atest-link {
    color: #b31b5d;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.25s ease;
}

.atest-link:hover {
    color: #ffffff;
    background: #b31b5d;
    padding: 4px 8px;
    border-radius: 6px;
}

    .timeline-line {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, #d97706, #f59e0b, #fbbf24);
      border-radius: 2px;
    }
    
	
	
    @media (max-width: 768px) {
      .timeline-line {
        left: 20px;
      }
    }
    
    .timeline-item {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 0.6s ease forwards;
    }
    
    .timeline-item:nth-child(1) { animation-delay: 0.1s; }
    .timeline-item:nth-child(2) { animation-delay: 0.2s; }
    .timeline-item:nth-child(3) { animation-delay: 0.3s; }
    .timeline-item:nth-child(4) { animation-delay: 0.4s; }
    .timeline-item:nth-child(5) { animation-delay: 0.5s; }
    .timeline-item:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .card-hover {
      transition: all 0.3s ease;
    }
    
    .card-hover:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }
    
    
	
	 /* Спільна база */
.dot-pulse-amber,
.dot-pulse-emerald {
  position: relative;
}

/* ========================= */
/* 🔶 ПОМАРАНЧЕВА ПУЛЬСАЦІЯ */
/* ========================= */

.dot-pulse-amber::before,
.dot-pulse-amber::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(245, 158, 11, 0.6); /* amber */
  animation: pulse-ring 2s infinite;
}

.dot-pulse-amber::after {
  animation-delay: 1s;
}

/* ========================= */
/* 🟢 БІРЮЗОВА ПУЛЬСАЦІЯ */
/* ========================= */

.dot-pulse-emerald::before,
.dot-pulse-emerald::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(5, 150, 105, 0.6); /* emerald */
  animation: pulse-ring 2s infinite;
}

.dot-pulse-emerald::after {
  animation-delay: 1s;
}

/* Анімація спільна */
@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
    
    .nav-btn {
      transition: all 0.3s ease;
    }
    
    .nav-btn:hover {
      background: #d97706;
      transform: scale(1.05);
    }
    
    .nav-btn.active {
      background: #d97706;
    }
    
    .section {
      display: none;
      animation: fadeIn 0.5s ease;
    }
    
    .section.active {
      display: block;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes drive {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(10px); }
    }
    
    .grain-bg {
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d97706' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    
    .stat-card {
      background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    }
    
    .timeline-card {
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
    }
    
   .timeline-card-content {
  overflow: visible;
}

.timeline-card.expanded .timeline-card-content {
  overflow: visible;
}
    
    .timeline-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }
    
    .expand-icon {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform 0.3s ease;
      font-weight: bold;
      color: #d97706;
    }
    
    .timeline-card.expanded .expand-icon {
      transform: rotate(180deg);
    }
    
    .timeline-card-full {
      display: none;
    }
    
    .timeline-card.expanded .timeline-card-full {
      display: block;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #e5e7eb;
    }
    
    .timeline-card-preview {
      display: block;
    }
    
    .timeline-card.expanded .timeline-card-preview {
      display: none;
    }
	
	/* ===== КОМПЕТЕНТНОСТІ ===== */

.skills{
margin-bottom:40px;
max-width:700px;
}

.skills-title{
font-size:24px;
font-weight:700;
margin-bottom:20px;
}

.skill{
margin-bottom:18px;
}

.skill-name{
margin-bottom:6px;
color:#374151;
}

.skill-bar{
height:8px;
background:#e5e7eb;
border-radius:6px;
overflow:hidden;
}

.skill-level{
height:100%;
background:#059669;
}

/* міні сертифікат */

.cert-preview{
position:relative;
width:160px;
height:112px;
cursor:pointer;
flex-shrink:0;
}

.certificate-mini{
width:100%;
height:100%;
object-fit:cover;
border-radius:6px;
border:2px solid #ddd;
display:block;
}

.cert-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.55);
color:white;
display:flex;
align-items:center;
justify-content:center;
font-size:11px;
text-align:center;
border-radius:6px;
opacity:0;
transition:opacity .2s;
}

.cert-preview:hover .cert-overlay{
opacity:1;
}


/* переглядач фото */

.photo-viewer{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
align-items:center;
justify-content:center;
z-index:2000;
}

.photo-viewer img{
max-width:80%;
max-height:80%;
border-radius:6px;
box-shadow:0 0 20px rgba(0,0,0,0.4);
background:white;
}

.counter-finish{
animation: counterPop 0.4s ease;
}

@keyframes counterPop{

0%{
transform:scale(1);
}

50%{
transform:scale(1.2);
}

100%{
transform:scale(1);
}

}

/* короткий текст — видно завжди */
.timeline-card-preview {
  display: block;
}

/* повний текст — спочатку прихований */
.timeline-card-full {
  display: none;
}

/* коли картка відкрита */
.timeline-card.expanded .timeline-card-full {
  display: block;
}

.timeline-card.expanded .timeline-card-preview {
  display: none;
}

.timeline-card-content {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

@media (max-width: 768px) {

  .photo-popup{
    position: static;
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  .photo-click.active .photo-popup{
    display: block;
  }

}

@media (max-width: 768px) {

  .photo-popup{
    position: static;
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  .photo-click.active .photo-popup{
    display: block;
  }

}