* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  rotate: 180deg;
  animation: slow-motion 30s infinite;
  opacity: 1;
}

@keyframes slow-motion {
  from { transform: scale(1); }
  to { transform: scale(1.01); }
}

nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  overflow: hidden;
  background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  width: 100%;
}

.sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(209, 209, 209, 0.9);
  box-shadow: 0px 4px 10px rgba(160, 160, 160, 0.2);
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
  z-index: 100;
}

.navbar {
  background-color: #333;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: white;
  transition: 0.3s;
}

.menu {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.menu a {
  padding: 0 10px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  border-top: none;
  font-size: 30px;
}

.menu a:hover {
  opacity: 0.85;
}

.menu.mobile {
  display: none;
  flex-direction: column;
  background-color: rgba(255,255,255,0.98);
  width: 100%;
  text-align: center;
}

.menu.mobile a {
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgb(88, 88, 88);
  color: white;
  cursor: pointer;

  width: 55px;
  height: 55px;

  border-radius: 50%;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}


#myBtn:hover {
  background-color: #292929; /* Add a dark-grey background on hover */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

nav li {
  display: inline;
  padding: 20px;
}

nav a {
  float: left;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 30px;
}

.pfp {
  display: flex;
  gap: 30px;
  font-size: 20px;
  align-items: center;
}

.pfp img {
  width: 90px;
  height: auto;
  border-radius: 6px;
}

.decoration1 {
  background: linear-gradient(rgb(202, 202, 202), rgb(134, 134, 134));
  height: 30px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 20px;
}

.bio-text {
  color: rgb(0, 0, 0);
  font-size: 25px;
  background: linear-gradient(#cacaca, rgb(196, 196, 196));
  height: auto;
  width: 700px;
  max-width: calc(100% - 40px);
  margin: 90px auto;
  padding: 30px;
  border-radius: 5%;
  margin-left: 10px;
  margin-bottom: 50px;
}

.bio {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  margin: 20px auto;
}

.bio img {
  display: block;
  margin: 85px auto;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(196, 196, 196, 0.2);
}

.socialmedias {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.youtube { width: 180px; height: auto; }
.tiktok { width: 80px; height: auto; }
.instagram { width: 200px; height: auto; }
.threads { width: 100px; height: auto; }
.x { width: 100px; height: auto; }
.linkedin { width: 200px; height: auto; }

.cover {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
}

.asalsekolah {
  font-size: 25px;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(179, 179, 179), rgb(167, 167, 167));
  height: 70px;
  scroll-margin-bottom: 80px;
  padding-top: 10px;
}

.asalsekolah-text {
  color: rgb(0, 0, 0);
  font-size: 25px;
  background: linear-gradient(#cacaca, rgb(196, 196, 196));
  height: auto;
  width: 1000px;
  max-width: calc(100% - 40px);
  margin: 90px auto 50px auto;
  padding: 10px;
  border-radius: 0%;
  text-align: center;
}

.skills {
  font-size: 20px;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(179, 179, 179), rgb(167, 167, 167));
  height: 70px;
  scroll-margin-bottom: 80px;
  padding-top: 10px;
}

.skills-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.skills-img img {
  flex: 1 1 200px;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-img img:hover {
  transform: scale(1.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.card {
  color: white;
  background-color: #a0a0a0;
  padding: 1px;
  border-radius: 0%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery {
  font-size: 25px;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(185, 185, 185), rgb(185, 185, 185));
  height: 90px;
  scroll-margin-bottom: 80px;
  padding-top: 10px;
}

/* ✅ Fixed image layout */
.row,
.row-2 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.column,
.column-2 {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img,
.column-2 img {
  width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.column img:hover,
.column-2 img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ✅ Modal */
#imgModal.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

.contact {
  font-size: 25px;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(187, 187, 187), rgb(206, 206, 206));
  height: 80px;
  scroll-margin-bottom: 100px;
  padding-top: 20px;
}

.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.animation {
  font-size: 25px;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(187, 187, 187), rgb(206, 206, 206));
  height: 70px;
  scroll-margin-bottom: 80px;
  padding-top: 10px;
}

.animation-video {
  max-width: 100%;
  height: auto;
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blender {
  font-size: 25px;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(179, 179, 179), rgb(167, 167, 167));
  height: 70px;
  scroll-margin-bottom: 80px;
  padding-top: 10px;
}

.blender-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 30px;
  margin-right: 0;
}

.blender-img img {
  width: 900px;
  height: 500px;
  object-fit: cover;
  border-radius: 0%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blender-img img.active {
  object-fit: contain;
  background: black;
}

.blender-img img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ✅ Responsive columns */
@media screen and (max-width: 1024px) {
  nav { padding: 10px 16px; }
  .menu a, nav a { font-size: 24px; }
  .bio-text { font-size: 22px; width: calc(100% - 40px); margin: 60px auto; }
  .asalsekolah-text { width: calc(100% - 40px); margin: 50px auto; }

  .column, .column-2 { flex: 50%; max-width: 50%; }
  .blender-img img { width: 340px; }
}

@media screen and (max-width: 768px) {
  .hamburger { display: flex; }
  .menu { display: none; }
  .menu.mobile { display: none; }
  .menu.mobile.active {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    width: 100%;
    padding: 10px 0;
  }
  .menu.mobile.active a { font-size: 20px; padding: 12px 0; }
  .column, .column-2 { flex: 50%; max-width: 50%; }
  .bio img { max-width: 320px; margin: 24px auto; }
  .bio-text { font-size: 20px; padding: 20px; margin: 40px auto; width: calc(100% - 40px); }

  .blender-img { padding: 16px; gap: 16px; }
}

@media screen and (max-width: 600px) {
  .column, .column-2 { flex: 100%; max-width: 100%; }
}

@media screen and (max-width: 480px) {
  nav { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .pfp { gap: 12px; }
  .pfp img { width: 64px; }
  .menu.mobile.active a { font-size: 18px; padding: 10px 0; }
  .bio img { max-width: 260px; }
  .socialmedias img { max-width: 80px; }
  .modal-content { width: 96%; max-width: 96%; margin-top: 3%; }
}

 footer {
  font-size: 25px;
  color: white;
  background: linear-gradient(rgb(179, 179, 179), rgb(167, 167, 167));
  height: 35px;
  display: flex;
  justify-content: center; 
  align-items: center;     
  width: 100%;
    }