

/* =========================
   MAIN CONTENT
========================= */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  text-align: center;
  font-size: 3rem;
  color: #0d1117;
  margin-bottom: 2rem;
}

/* =========================
   CAROUSEL STYLING
========================= */
.carousel-section {
  margin-bottom: 4rem;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.slide:hover {
  transform: scale(1.05);
}

.recent-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.recent-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.recent-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recent-content {
  padding: 1rem;
  text-align: center;
}

.view-cert-btn {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  background: #00bfff;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-cert-btn:hover {
  background: #008fc4;
  transform: translateY(-3px);
}

.recent-content h4 {
  margin: 1rem 0 0.5rem;
  color: #0d1117;
}

.recent-content p {
  font-size: 0.9rem;
  color: #555;
}

/* =========================
   LIGHTBOX EFFECT
========================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   PORTFOLIO GRID
========================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  color: #0d1117;
}

.card-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 0.6rem 0;
  background: #00bfff;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #008fc4;
  transform: translateY(-3px);
}



/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: #0d1117;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 2rem;
  }

  .main-nav a {
    margin: 0.5rem 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav.open {
    display: flex;
  }
}
