/* ===== certification.css - Certification Page Only (Premium Styles) ===== */

/* Hero Section */
.portfolio-hero {
  text-align: center;
  padding: 4rem 5vw 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portfolio-hero .big-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.portfolio-hero .projects-description {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}

/* Projects Masonry Columns - Screen Filling */
.projects {
  column-count: 3;
  column-gap: 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 4rem;
  padding: 0 5vw;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 1024px) {
  .projects {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .projects {
    column-count: 1;
    column-gap: 0;
  }
}

/* Individual Project Card overrides (glassmorphism) */
.project-card {
  display: inline-flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  height: auto;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(185, 219, 107, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

/* Image/Video Container */
.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.project-image-wrapper img,
.project-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover .project-image-wrapper img,
.project-card:hover .project-image-wrapper video {
  transform: scale(1.05);
}

/* Counter Badge */
.image-count {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(9, 10, 15, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Lightbox wrapper adjustments */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox.show {
  display: flex;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox .close:hover {
  color: var(--accent);
}

.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #090a0f;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(185, 219, 107, 0.4);
}

.lightbox button:hover {
  background: #fff;
  color: #090a0f;
  border-color: #fff;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.45);
}

.lightbox .prev { left: 40px; }
.lightbox .next { right: 40px; }

.lightbox-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  height: 80vh;
  max-width: 1200px;
}

.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(185, 219, 107, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Certification Cards unique modifications */
.project-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.4;
}

.project-card-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Double buttons in certification card */
.project-card-content .buttons-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.project-card-content .btn {
  margin-top: 0;
  flex: 1;
  min-width: 130px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: 3rem 1.5rem 1rem;
  }
  
  .projects {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .project-card-content .buttons-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }
  
  .project-card-content .btn {
    width: 100%;
    max-width: 100%;
  }

  .lightbox .prev { left: 15px; }
  .lightbox .next { right: 15px; }
  .lightbox .close { right: 20px; top: 20px; }
}