@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Barlow", sans-serif;
}

@font-face {
  font-family: "Nasalization";
  src: url("./fonts/Nasalization Rg.otf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(to right bottom, #1a1a2e, #16213e);
  color: #fff;
  overflow-x: hidden;
}

#world {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -11111;
  background-color: #4fba32;
}

.content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.header {
  text-align: center;
  padding: 2rem;
}

.header-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.login-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 2rem;
  background: linear-gradient(135deg, hsl(0, 92%, 47%), #3fa3e1);
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: auto;
  margin-bottom: 2rem;
  margin-top: -4rem;
}

.login-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes the image white */
  opacity: 0.9;
  transition: all 0.3s ease;
}

.login-button:hover .login-icon {
  transform: scale(1.1);
  opacity: 1;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 186, 50, 0.3);
}

.login-button svg {
  width: 20px;
  height: 20px;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4fba32, #3fa3e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.certificate-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 2rem;
  background: linear-gradient(135deg, #3fa3e1, #4fba32);
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  margin-top: -4rem;
}

.certificate-button:hover .login-icon {
  transform: scale(1.1);
  opacity: 1;
}

.certificate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 163, 225, 0.3);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.company-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 300px;
  height: 100%;
  max-height: 400px;
}

.company-card:hover {
  transform: translateY(-10px) rotateX(10deg) rotateY(-10deg);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.logo-container img {
  height: 100%;
  object-fit: contain !important;
}

.company-card:hover .logo-container {
  transform: scale(1.1);
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.company-division {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .companies-grid {
    grid-template-columns: 1fr;
  }

  .company-card {
    max-width: 100%;
  }

  .logo-container {
    width: 100px;
    height: 100px;
  }

  .company-name {
    font-size: 1.2rem;
  }

  .company-division {
    font-size: 0.8rem;
  }

  .header-content {
    flex-direction: column !important;
    gap: 1rem;
    align-items: center !important;
  }

  .certificate-button {
    margin-bottom: 4rem;
  }

  .login-button, .certificate-button {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    
  }
}

/* SERA Digital Hub Custom Font */
.sera-digital {
  background: linear-gradient(
    90deg,
    #4fba32,
    #3fa3e1
  ); /* SERA's gradient colors */
  -webkit-background-clip: text; /* Ensure the gradient is clipped to the text */
  -webkit-text-fill-color: transparent; /* Make the text color transparent so the gradient shows */
  font-family: "Nasalization"; /* Apply Nasalization font only to SERA Digital Hub */
}
