.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body {
  margin: 0;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #110000 40%,
    #707070 75%,
    #5a5959 110%
  );
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar-light .navbar-toggler-icon {
  filter: invert(25%) sepia(98%) saturate(7464%) hue-rotate(357deg) brightness(93%) contrast(106%);
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ff0000 !important; 
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ff0000;
  transition: width 0.3s ease;
}


.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding-left: 0;
  margin: 0;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ff0000;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ff0000;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.container {
  width: min(90%, 1000px);
  margin: 0 auto;
  padding: 1.5rem 0;
}

.hero-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin: 0 0 0.5rem 0;
  font-weight: 900;
  color: #ff0000;
}

.hero-text p {
  font-size: 1.125rem;
  color: #ffffff;
  max-width: 520px;
}

.hero-image {
  flex: 1 1 280px;
}

.hero-image img {
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
  cursor: pointer;
}

.hero-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.6);
}

main img:hover {
  transform: scale(1.25);
  transition: transform 0.5s ease;
}

.about-section {
  padding: 4rem 0;
}

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 900;
  color: #ff0000;
  text-align: center;
}

.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.about-text {
  flex: 1 1 400px;
  font-size: 1.125rem;
  color: #ffffff;
  line-height: 1.7;
}

.about-image {
  flex: 0 0 300px;
}

.about-image img {
  border-radius: 15px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.about-image img:hover {
  transform: scale(1.05);
}

.video-container {
  position: relative;
  padding-bottom: 45%;
  height: 0;
  overflow: hidden;
  max-width: 100%; 
  margin: 0 auto; 
  background: #000;
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.projects-section {
  padding: 3rem 0 4rem;
  background: #858585;
}

.projects-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  font-weight: 900;
  color: #ff0000;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #858585;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card img {
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  height: 180px;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  flex: 1;
}

.project-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #ff0000;
}

.project-info p {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
}

.btn-course-detail {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #ff0000;
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.btn-course-detail:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.5);
}

.contact-section {
  padding: 1.5rem 0 1.5rem;
  background-color: #000000;
  color: #ffffff;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ff0000;
}

.contact-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-info {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  text-align: center;
}

.btn-submit {
  padding: 0.85rem 1.5rem;
  background-color: #ff0000;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #cc0000;
}

.social-link {
  text-decoration: none;
  color: #ff0000;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.15rem 0;
  transition: color 0.3s ease;
}

.social-link::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0%;
  bottom: 0;
  left: 0;
  background-color: #ff0000;
  transition: width 0.3s ease;
}

.social-link:hover,
.social-link:focus {
  color: #cc0000;
}

.social-link:hover::after,
.social-link:focus::after {
  width: 100%;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  border-top: 1px solid #e4e8ec;
}

.course-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery-images {
  display: flex;
  transition: transform 0.4s ease-in-out;
  max-width: 100%;
}

.gallery-images img {
  min-width: 100%;
  display: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.gallery-images img.active {
  display: block;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: rgba(204, 0, 0, 0.8);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.no-hover-zoom {
  transition: none !important;
  transform: none !important;
}

.no-hover-zoom:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    margin-top: 2rem;
  }

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

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-top: 1.5rem;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
}
