/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

/* Full-bleed video background */
.bg-video {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  background: #000;
}

.bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: transform 0.5s ease-out, object-fit 0.5s ease-out;
}

/* Make poster appear smaller and further away - show background */
.bg-video video.poster-visible {
  transform: translate(-50%, -50%) scale(0.5);
  object-fit: contain;
  object-position: center center;
}

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: .5rem
}

p {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  opacity: .9
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .6rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

/* Make sure small devices don't hide important content */
@media (max-width:600px) {
  .card {
    padding: 1.25rem
  }
}


/* About Page Styles */
.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  /* Ensure it's above the video background if present */
}

.about-text {
  flex: 1 1 500px;
  /* Grow, shrink, basis */
  color: #fff;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background for readability */
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    /* Text on top, image on bottom usually, but let's keep standard flow or adjust as needed. User asked for left/right. On mobile, stacking is better. */
    padding: 1rem;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .about-image {
    flex: 1 1 100%;
    margin-bottom: 1rem;
  }
}

/* Navigation Menu */
.main-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hamburger Animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

/* Tablet and Mobile Responsive */
@media (max-width: 768px) {
  .main-nav {
    top: 1rem;
    right: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 70%;
    max-width: 300px;
    height: 100vh;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .main-nav a {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* Small Mobile */
@media (max-width: 600px) {
  .main-nav a {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .nav-menu {
    width: 80%;
  }
}

/* Certificates Page Styles */
.certificates-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  /* Top padding to account for fixed nav */
  position: relative;
  z-index: 1;
  text-align: center;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  transition: opacity 0.6s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: .5rem
}

p {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  opacity: .9
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .6rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

/* Make sure small devices don't hide important content */
@media (max-width:600px) {
  .card {
    padding: 1.25rem
  }
}


/* About Page Styles */
.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  /* Ensure it's above the video background if present */
}

.about-text {
  flex: 1 1 500px;
  /* Grow, shrink, basis */
  color: #fff;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background for readability */
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    /* Text on top, image on bottom usually, but let's keep standard flow or adjust as needed. User asked for left/right. On mobile, stacking is better. */
    padding: 1rem;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .about-image {
    flex: 1 1 100%;
    margin-bottom: 1rem;
  }
}

/* Navigation Menu */
.main-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .main-nav {
    top: 1rem;
    right: 1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Certificates Page Styles */
.certificates-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  /* Top padding to account for fixed nav */
  position: relative;
  z-index: 1;
  text-align: center;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Styles */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.cert-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.cert-item img {
  width: 100%;

  .card {
    padding: 1.25rem
  }
}


/* About Page Styles */
.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  /* Ensure it's above the video background if present */
}

.about-text {
  flex: 1 1 500px;
  /* Grow, shrink, basis */
  color: #fff;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background for readability */
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    /* Text on top, image on bottom usually, but let's keep standard flow or adjust as needed. User asked for left/right. On mobile, stacking is better. */
    padding: 1rem;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .about-image {
    flex: 1 1 100%;
    margin-bottom: 1rem;
  }
}

/* Navigation Menu */
.main-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .main-nav {
    top: 1rem;
    right: 1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Certificates Page Styles */
.certificates-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  /* Top padding to account for fixed nav */
  position: relative;
  z-index: 1;
  text-align: center;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Styles */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.cert-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.cert-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media only screen and (max-width: 700px) {
  .cert-modal-content {
    width: 95%;
  }
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  /* Ensure it's above the video background if present */
}

.about-text {
  flex: 1 1 500px;
  /* Grow, shrink, basis */
  color: #fff;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background for readability */
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    /* Text on top, image on bottom usually, but let's keep standard flow or adjust as needed. User asked for left/right. On mobile, stacking is better. */
    padding: 1rem;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .about-image {
    flex: 1 1 100%;
    margin-bottom: 1rem;
  }
}

/* Navigation Menu */
.main-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .main-nav {
    top: 1rem;
    right: 1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Certificates Page Styles */
.certificates-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  /* Top padding to account for fixed nav */
  position: relative;
  z-index: 1;
  text-align: center;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Styles */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.cert-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.cert-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media only screen and (max-width: 700px) {
  .cert-modal-content {
    width: 95%;
  }
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .certificates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rotate-modal {
  position: absolute;
  top: 15px;
  right: 85px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.rotate-modal:hover,
.rotate-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}