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

html,
body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 50%, #1a1a1a 100%);
  overflow-x: hidden;
}

.background_p {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

.tc {
  color: #f8fafc;
}

.lg {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.lm {
  font-size: 1.5rem;
  font-weight: 400;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.top {
  z-index: 1;
  position: relative;
}

.main-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.main-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.6);
  border-color: rgba(100, 181, 246, 0.3);
}

.logo-container {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.contact-section {
  margin-top: 2.5rem;
}

.contact-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.contact-icon {
  margin-right: 1rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  opacity: 1;
  transform: scale(1.1);
}

.uk-link, a {
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  z-index: 3;
}

.uk-link:hover, a:hover {
  color: #64b5f6;
  text-decoration: none;
}

.reveal-link {
  color: #94a3b8;
  font-style: italic;
  cursor: pointer;
}

.reveal-link:hover {
  color: #64b5f6;
}

.certificates-section {
  margin-top: 2rem;
  text-align: center;
}

.certificates-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.certificates-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.certificate-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.certificate-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 181, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.certificate-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-image {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .lg {
    font-size: 2.5rem;
  }
  
  .lm {
    font-size: 1.2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .certificates-grid {
    gap: 1rem;
    flex-wrap: nowrap; /* Ensure items stay in one row */
    justify-content: space-around; /* Distribute items evenly */
    width: 100%; /* Ensure the grid takes full available width */
  }

  .certificate-item {
    padding: 0.5rem; /* Reduce padding on smaller screens */
    flex-shrink: 1; /* Allow items to shrink to fit */
    min-width: 0; /* Allow shrinking below content size if necessary */
  }
  
  .certificate-image {
    width: 70px; /* Increase image size slightly for better readability */
    height: 70px; /* Increase image size slightly for better readability */
  }
}

@media (max-width: 480px) {
  .main-card {
    padding: 1.5rem 1rem;
  }
  
  .lg {
    font-size: 2rem;
  }
  
  .contact-list {
    padding: 1rem;
  }
}

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

.main-card {
  animation: fadeInUp 0.8s ease-out;
}

/* Subtle glow effect */
.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.3), rgba(33, 150, 243, 0.1));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.main-card:hover::before {
  opacity: 1;
}
