:root {
  --primary-color: #2a2a72;
  --secondary-color: #009ffd;
  --text-color: #333;
  --bg-color: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 1rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  transition: all 0.3s ease;
}

nav ul.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

nav ul li {
  margin: 0 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

#certificates {
  padding: 5rem 2rem;
  background: var(--bg-color);
  min-height: 100vh;
}

.certificate-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid #727272;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-card:hover {
  border: 2px solid #528efd;
  color: #009ffd;
  transform: translateY(-10px);
}

.certificate-card img {
  border: 2px solid #727272;
}

.certificate-card img:hover {
  border: 2px solid #528efd;
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

footer {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

social-links a:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: rgb(234, 234, 234) solid 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Responsive styles for 1024px */
@media screen and (max-width: 1024px) {
  .certificates-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
  }
}

/* Responsive styles for 768px */
@media screen and (max-width: 768px) {
  .certificates-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
