/* 
 * Certifications Section Stylesheet
 * Modern minimal layout with full certification images and smooth carousel
 */

/* Certifications Section */
.certifications-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  box-sizing: border-box;
}

/* Remove container padding for certifications section */
.certifications-section .container {
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.certifications-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.03) 0%,
    rgba(168, 85, 247, 0.03) 50%,
    rgba(236, 72, 153, 0.03) 100%
  );
  pointer-events: none;
}

/* Particle Animation Background for Certifications */
.certifications-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
    opacity: 0.6;
  }
  66% {
    transform: translateY(-10px) rotate(240deg);
    opacity: 0.4;
  }
}

/* Section Header */
.certifications-header {
  text-align: center;
  margin-bottom: 8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  position: absolute;
  top: 2vh;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  z-index: 5;
  padding: 0 1rem;
  box-sizing: border-box;
}

.certifications-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #ec4899 75%, #f97316 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  text-align: center;
  line-height: 1.1;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.certifications-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #6366f1, #a855f7, #ec4899, transparent);
  border-radius: 2px;
  opacity: 0.7;
}

.certifications-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  border-radius: 1px;
  opacity: 0.5;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.certifications-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 5rem auto;
  line-height: 1.7;
  position: relative;
  padding: 1.5rem 2rem;
  background: rgba(99, 102, 241, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSubtitle 1s ease 0.3s forwards;
}

.certifications-subtitle::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(99, 102, 241, 0.2);
  font-family: Georgia, serif;
}

.certifications-subtitle::after {
  content: '"';
  position: absolute;
  bottom: 0.2rem;
  right: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(99, 102, 241, 0.2);
  font-family: Georgia, serif;
}

@keyframes fadeInSubtitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Certifications Carousel Container */
.certifications-carousel {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 90vw;
  height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;
}

/* Certifications Track */
.certifications-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  align-items: center;
  justify-content: flex-start; /* Changed from center to flex-start */
  width: 100%; /* Simple 100% width for easier calculation */
  position: relative;
}

/* Individual Certification */
.certification-item {
  position: relative;
  flex: 0 0 33.333%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  width: 33.333%;
  box-sizing: border-box;
  padding: 0 10px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.certification-item.active {
  opacity: 1;
}

/* Certification Image Container */
.certification-image-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 25px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  background: transparent;
  display: block;
}

.certification-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent; /* Removed gradient background */
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.certification-image-container:hover::before {
  opacity: 0; /* Changed from 1 to 0 to prevent hover overlay */
}

/* Certification Image */
.certification-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.6s ease;
  object-fit: contain; /* Ensures the whole certificate is visible */
  object-position: center;
  border-radius: inherit;
  opacity: 1;
  filter: none;
}

.certification-image-container:hover .certification-image {
  transform: none; /* Removed scale effect on hover to prevent distortion */
}

/* Certification Info Overlay */
.certification-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.8) 70%,
    transparent 100%
  );
  backdrop-filter: blur(25px);
  padding: 3rem 2rem 2rem;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  z-index: 2;
}

.certification-image-container:hover .certification-info {
  transform: translateY(0);
  opacity: 1;
}

/* Badge Style Info */
.cert-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(99, 102, 241, 0.9);
  backdrop-filter: blur(20px);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  z-index: 3;
}

.certification-image-container:hover .cert-badge {
  transform: translateY(0);
  opacity: 1;
}

.cert-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cert-institution {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cert-date {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Verification Badge */
.cert-verification {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(34, 197, 94, 0.9);
  backdrop-filter: blur(20px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
  z-index: 3;
}

.certification-image-container:hover .cert-verification {
  transform: translateY(0);
  opacity: 1;
}

/* Certificate Subtitle */
.cert-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-bottom: 0.25rem;
  font-style: italic;
}

/* Certificate ID */
.cert-id {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
}

/* Skill Tags */
.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  background: rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* Certifications Navigation Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 10;
}

.carousel-btn {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  pointer-events: all;
  opacity: 0.7;
}

.carousel-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  transform: scale(1.1);
  opacity: 1;
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.carousel-indicators::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-50%);
  border-radius: 1px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 2;
  background: rgba(99, 102, 241, 0.3);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.carousel-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  transition: all 0.4s ease;
}

.carousel-indicator.active::before {
  width: 100%;
  height: 100%;
}

.carousel-indicator:hover {
  background: rgba(99, 102, 241, 0.5);
  transform: scale(1.2);
}

/* Auto-play Progress */
.auto-play-progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certifications-carousel:hover .auto-play-progress {
  opacity: 1;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
  transform: translateX(-100%);
  transition: transform 3s linear;
}

.progress-bar.active {
  transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Loading State */
.certification-image-container.loading {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmerAdvanced 2s infinite;
}

@keyframes shimmerAdvanced {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Enhanced Certification Badge Styles */
.cert-badge.nvidia-badge {
  background: linear-gradient(135deg, #76b900, #5b9c00);
  border: 1px solid rgba(118, 185, 0, 0.3);
}

.cert-badge.academic-badge {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Enhanced Hover Effects */
.certification-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.certification-image-container:hover::after {
  opacity: 1;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.certification-item.active .certification-image-container {
  animation: float 6s ease-in-out infinite;
}

/* Glow Effect */
@keyframes glow {
  0%, 100% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.1),
      0 8px 25px rgba(99, 102, 241, 0.1),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.15),
      0 8px 25px rgba(99, 102, 241, 0.3),
      inset 0 1px 1px rgba(255, 255, 255, 0.2),
      0 0 30px rgba(99, 102, 241, 0.2);
  }
}

.certification-item.active .certification-image-container {
  animation: none; /* Remove animations that might cause issues */
}

/* Removed Parallax Effect */
.certification-image-container {
  transform-style: flat;
}

.certification-image-container:hover {
  transform: none; /* Remove hover effects that might interfere */
}

/* Enhanced image scaling and aspect ratio preservation */
.certification-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.6s ease;
  object-fit: contain; /* Ensures the whole certificate is visible */
  object-position: center;
  border-radius: inherit;
}

/* Ensure certification cards maintain good proportions */
.certification-item {
  min-height: 400px; /* Set minimum height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better responsive scaling */
@media (max-width: 1200px) {
  .certification-image-container {
    max-width: 480px;
  }
}

@media (max-width: 992px) {
  .certification-image-container {
    max-width: 420px;
  }
  
  .certification-item {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .certification-image-container {
    max-width: 380px;
  }
  
  .certification-item {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .certification-image-container {
    max-width: 100%;
    margin: 0 1rem;
  }
  
  .certification-item {
    min-height: 250px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .certifications-carousel {
    padding: 0;
    max-width: 100%;
  }
  
  .carousel-controls {
    padding: 0 1.5rem;
    max-width: 800px;
  }
  
  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .certification-image-container {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .certifications-section {
    padding: 4rem 0;
  }
  
  .certifications-header {
    margin-bottom: 6rem;
    padding: 0 1rem;
    width: 100%;
    top: 1vh;
  }
  
  .certifications-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
  }
  
  .certifications-title::before {
    width: 80px;
    height: 3px;
  }
  
  .certifications-title::after {
    width: 60px;
  }
  
  .certifications-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: 1.2rem 1.5rem;
    max-width: 100%;
    margin: 0 auto 4rem auto;
  }
  
  .certifications-subtitle::before,
  .certifications-subtitle::after {
    font-size: 2rem;
  }
  
  .certifications-carousel {
    top: 75%;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
  }
  
  .carousel-controls {
    padding: 0 1rem;
    max-width: 600px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .certification-item {
    padding: 0 1.5rem;
  }
  
  .certification-image-container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .certification-info {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .cert-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .cert-title {
    font-size: 1.25rem;
  }
  
  .cert-institution {
    font-size: 1rem;
  }
  
  .cert-date {
    font-size: 0.9rem;
  }
  
  .cert-verification {
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
  }
  
  .cert-skills {
    gap: 0.375rem;
  }
  
  .skill-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .cert-subtitle {
    font-size: 0.9rem;
  }
  
  .cert-id {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .certifications-section {
    padding: 3rem 0;
  }
  
  .certifications-header {
    padding: 0 0.5rem;
    top: 0.5vh;
    width: 100%;
    margin-bottom: 5rem;
  }
  
  .certifications-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .certifications-title::before {
    width: 60px;
    height: 2px;
  }
  
  .certifications-title::after {
    width: 40px;
  }
  
  .certifications-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: 1rem;
    max-width: 100%;
    margin: 0 0.5rem 3rem 0.5rem;
  }
  
  .certifications-subtitle::before,
  .certifications-subtitle::after {
    font-size: 1.5rem;
  }
  
  .certifications-subtitle::before {
    top: 0.2rem;
    left: 0.5rem;
  }
  
  .certifications-subtitle::after {
    bottom: 0rem;
    right: 0.5rem;
  }
  
  .certifications-carousel {
    top: 80%;
  }
  
  .certification-carousel {
    padding: 0;
    overflow: hidden;
  }
  
  .carousel-controls {
    padding: 0 0.5rem;
    max-width: 400px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .certification-item {
    padding: 0 1rem;
  }
  
  .certification-image-container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .certification-info {
    padding: 1.5rem 1rem 1rem;
  }
  
  .cert-title {
    font-size: 1.1rem;
  }
  
  .cert-institution {
    font-size: 0.9rem;
  }
  
  .cert-date {
    font-size: 0.8rem;
  }
  
  .carousel-indicators {
    gap: 0.75rem;
    margin-top: 2rem;
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Ultra-Minimal Certification Modal */
.certification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0);
}

.certification-modal.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.9);
}

.certification-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 99998;
}

.certification-modal .modal-content {
  position: relative;
  max-width: 800px;
  width: 90%;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.95);
  transition: all 0.3s ease;
  z-index: 99999;
  border: 1px solid #333;
}

.certification-modal.active .modal-content {
  transform: scale(1);
}

.certification-modal .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: bold;
}

.certification-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ultra-Minimal Modal Body */
.certification-modal .modal-body {
  padding: 0;
  display: block;
}

/* Certificate Image */
.cert-modal-image {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.modal-cert-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Certificate Info - Ultra Minimal */
.cert-modal-info {
  padding: 20px;
  color: #fff;
}

.cert-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.cert-modal-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0 0 15px 0;
  font-style: italic;
}

/* Essential Details Only */
.cert-essential-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.cert-detail-badge {
  background: #333;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.cert-detail-badge.institution {
  background: #1a4b8c;
}

.cert-detail-badge.date {
  background: #2d5a2d;
}

.cert-detail-badge.type {
  background: #6d4c7d;
}

/* Skills Tags - Minimal */
.cert-skills-minimal {
  margin-top: 15px;
}

.cert-skills-minimal h4 {
  font-size: 14px;
  color: #ccc;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.minimal-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.minimal-skill-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Single Action Button */
.cert-action-minimal {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.cert-verify-minimal {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-verify-minimal:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* Data Attributes for Proper Indexing */
.certification-item[data-cert-index] {
  cursor: pointer;
}

.certification-image-container[data-cert-id] {
  position: relative;
}

/* Enhanced 3D Card Effects */
.certification-item {
  perspective: 1000px;
}

.certification-image-container {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.certification-item:not(.active) .certification-image-container {
  transform: scale(1);
  opacity: 1;
}

.certification-item.active .certification-image-container {
  transform: scale(1);
  opacity: 1;
}

/* Ultra-Minimal Modal - Responsive */
@media (max-width: 768px) {
  .certification-modal .modal-content {
    width: 95%;
    max-width: none;
    margin: 20px auto;
  }
  
  .cert-modal-info {
    padding: 15px;
  }
  
  .cert-modal-title {
    font-size: 18px;
  }
  
  .cert-modal-subtitle {
    font-size: 13px;
  }
  
  .cert-essential-details {
    gap: 6px;
  }
  
  .cert-detail-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .certification-modal .modal-close {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .certification-modal .modal-content {
    width: 95%;
    margin: 15px auto;
  }
  
  .cert-modal-info {
    padding: 12px;
  }
  
  .cert-modal-title {
    font-size: 16px;
  }
  
  .cert-essential-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cert-detail-badge {
    font-size: 10px;
  }
}

/* Removed complex modal elements for simplified design */

/* Removed complex image and overlay elements for simplified design */

/* Removed complex header, stats, and navigation elements for simplified modal */

/* Enhanced Skill Tags */
.cert-modal-skills h4 {
  color: #ffffff !important;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.premium-tag {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  backdrop-filter: blur(15px);
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.5);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.premium-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.premium-tag:hover::before {
  left: 100%;
}

.premium-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Removed complex button styles for simplified design */

/* Enhanced Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Badge Animations */
.cert-badge.pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0);
  }
}

/* Fullscreen Mode */
.certification-modal.fullscreen {
  background: rgba(0, 0, 0, 0.95);
}

.certification-modal.fullscreen .modal-content {
  max-width: 95vw;
  max-height: 95vh;
  width: 95vw;
  height: 95vh;
}

.certification-modal.fullscreen .modal-cert-image {
  max-height: 80vh;
  object-fit: contain;
}

/* Removed complex responsive styles for simplified modal */
