@import url('base.css');

*{margin:0;padding:0;box-sizing:border-box}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:var(--primary-bg);
    color:var(--text-primary);
    line-height:1.6;
    overflow-x:hidden;
    padding-top:80px; /* offset for fixed navbar */
}

.section-one{
    background:var(--secondary-bg);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    text-align:center;
    position:relative;
}
  .hexagon {
    width: 500px;
    height: 577px;
    background-image: url('/static/images/endolum.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    } 50% {
      transform: translateY(-20px);
    }
  }
  
  .title {
    font-size: 72px;
    margin-top: 40px;
    animation: fadeInDown 1s ease-out;
  }
  
  .title .endolum {
    color: var(--text-primary);
    font-weight: normal;
  }
  
  .title .academy {
    color: #8c52ff;
    font-weight: bold;
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-50px);
    } to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .content-section {
    padding: 60px 40px 40px;
    background: linear-gradient(to bottom, #131b2b, #0a0f1a);
  }
  
  .certification-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .certification-images img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .certification-images img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  }
  
  .section-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .section {
    background-color: #131b2b;
    margin: 20px;
    border-radius: 10px;
    padding: 30px;
    max-width: 550px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    flex: 1 1 calc(50% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    } to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .section h2 {
    color: #8c52ff;
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .section .section-icon {
    width: 220px;
    height: auto;
    margin-bottom: 20px;
  }
  
  .button-container {
    text-align: center;
  }
  
  .button {
    background-color: #219b9d;
    color: var(--text-primary);
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .button:hover {
    background-color: #8c52ff;
  }
  
  .new-course-section {
    background-color: #0a0f1a;
    padding: 40px 20px;
  }
  
  .course-item {
    background-color: #131b2b;
    margin: 40px auto;
    border-radius: 10px;
    padding: 30px;
    max-width: 1200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: zoomIn 1s ease;
  }
  
  @keyframes zoomIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    } to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .course-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .course-logo {
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-right: 30px;
  }
  
  .course-content {
    flex: 1;
  }
  
  .course-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .course-content p {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .divider {
    height: 2px;
    background-color: #8c52ff;
    margin: 30px 0;
    width: 100%;
  }
  
  .course-details {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .details-table {
    width: 70%;
    max-width: 800px;
    margin: 0;
    border-collapse: collapse;
    text-align: center;
  }
  
  .details-table th, .details-table td {
    padding: 15px 20px;
    font-size: 18px;
    color: var(--text-primary);
    border-bottom: 1px solid #1f2a3e;
  }
  
  .details-table th {
    font-weight: bold;
    color: #8c52ff;
  }
  
  .details-table tr:last-child td {
    border-bottom: none;
  }
  
  .certifications-section {
    background-color: #0a0f1a;
    padding: 40px 20px;
  }
  
  .certification-item {
    background-color: #131b2b;
    margin: 40px auto;
    border-radius: 10px;
    padding: 30px;
    max-width: 1200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: zoomIn 1s ease;
  }
  
  .certification-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .certification-logo {
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-right: 30px;
  }
  
  .certification-content {
    flex: 1;
  }
  
  .certification-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .certification-content p {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .certification-details {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .footer {
    background-color: #0a0f1a;
    padding: 40px;
    text-align: center;
    color: var(--text-primary);
    margin-top: 40px;
  }
  
  .footer-logo {
    width: 80px;
    margin: 0 auto 20px;
  }
  
  .footer-links {
    margin-bottom: 20px;
    font-size: 18px;
  }
  
  .footer-links a {
    color: var(--text-primary);
    margin: 0 15px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #8c52ff;
  }
  
  .footer-info {
    font-size: 16px;
    color: #bbbbbb;
    margin-top: 20px;
  }
  
  .footer-info a {
    color: #bbbbbb;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-info a:hover {
    color: #8c52ff;
  }
  
  @media (max-width: 1200px) {
    .certification-logo, .course-logo {
      width: 250px;
      margin-bottom: 20px;
    }
  
    .certification-top, .course-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .certification-content h2, .course-content h2 {
      font-size: 36px;
    }
  
    .certification-content p, .course-content p {
      font-size: 16px;
    }
  
    .details-table {
      width: 100%;
    }
  
    .details-table th, .details-table td {
      font-size: 16px;
      padding: 10px 15px;
    }
  
    .course-details, .certification-details {
      flex-direction: column;
      align-items: stretch;
    }
  
    .button-container {
      margin-top: 20px;
      text-align: center;
    }
  
    .button {
      width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .section-one {
      min-height: auto;
      padding-top: 20px;
    }
  
    .hexagon {
      width: 200px;
      height: auto;
      margin-bottom: 20px;
    }
  
    .title {
      font-size: 48px;
      margin-top: 0;
    }
  
    .content-section {
      padding-top: 20px;
    }
  
    .certification-images {
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 40px;
    }
  
    .certification-images img {
      width: 60px;
    }
  
    .section {
      padding: 20px;
      margin: 20px 0;
      max-width: 100%;
    }
  
    .section-wrapper {
      flex-direction: column;
    }
  
    .section .section-icon {
      width: 70px;
      height: auto;
    }
  
    .certification-content h2, .course-content h2 {
      font-size: 32px;
    }
  
    .certification-content p, .course-content p {
      font-size: 14px;
    }
  
    .details-table th, .details-table td {
      font-size: 14px;
      padding: 8px 10px;
    }
  
    .button {
      font-size: 14px;
      padding: 10px 20px;
    }
  
    .course-details, .certification-details {
      flex-direction: column;
      align-items: stretch;
    }
  
    .button-container {
      margin-top: 20px;
      text-align: center;
    }
  }
  
  .additional-info {
    margin-top: 40px;
  }
  
  .additional-info h3 {
    color: #8c52ff;
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .additional-info ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-bottom: 20px;
  }
  
  .additional-info ul li {
    font-size: 18px;
    line-height: 1.6;
  }
  
  .additional-info p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
  }

  /* Success and Error Containers */
#success-container,
#error-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Make sure these containers start off hidden */
#success-container.d-none,
#error-container.d-none {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-20px);
}

/* When containers are visible, ensure full opacity and reset transform */
#success-container:not(.d-none),
#error-container:not(.d-none) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Customize the card within containers */
#success-container .card,
#error-container .card {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

/* Success message styling */
#success-container .card {
    background-color: #28a745;
    color: var(--text-primary);
}

/* Error message styling */
#error-container .card {
    background-color: #dc3545;
    color: var(--text-primary);
}

/* The message text */
#success-message,
#error-message {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
}

.divider {
  border: 0;
  border-top: 1px solid #8c52ff;
  margin: 20px 0;
}

.login-discord-btn {
  background: linear-gradient(135deg, #8c52ff, #219b9d);
  color: var(--text-primary);
  font-size: 28px;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.login-discord-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #219b9d, #8c52ff);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.6);
}

.login-discord-btn i {
  margin-right: 10px;
  font-size: 32px;
  vertical-align: middle;
}


.login-discord-btn-mini {
  background: linear-gradient(135deg, #8c52ff, #219b9d);
  color: var(--text-primary);
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.login-discord-btn-mini:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #219b9d, #8c52ff);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.6);
}

.login-discord-btn-mini i {
  margin-right: 10px;
  vertical-align: middle;
}
