@font-face {
  font-family: 'Minecraftia';
  src: url('MC_font/Minecraftia-Regular.ttf') format('truetype');
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Minecraftia', sans-serif;
  box-sizing: border-box;
}

/* ENDER DRAGON OG AKO*/
.header-dragon img {
  width: 700px; /* adjust size */
  animation: floatDragon 6s ease-in-out infinite;
}

@keyframes floatDragon {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.dragon-effect {
  position: relative;
  display: inline-block;
}

.header-dragon {
  position: relative;
  display: inline-block;
}

/* Pixel particles */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #a020f0;
  box-shadow: 0 0 6px #a020f0;
  animation: pixelMove 7s infinite ease-in-out;
}

/* Place particles around the dragon edges */
.particle:nth-child(2) { top: 10%; left: -20px; }
.particle:nth-child(3) { top: 20%; right: -20px; }
.particle:nth-child(4) { top: 40%; left: -25px; }
.particle:nth-child(5) { top: 60%; right: -25px; }
.particle:nth-child(6) { bottom: 20%; left: -15px; }
.particle:nth-child(7) { bottom: 30%; right: -15px; }
.particle:nth-child(8) { top: 50%; left: 60%; }
.particle:nth-child(9) { top: 60%; left: 40%; }
.particle:nth-child(10) { bottom: 10%; right: 40%; }

@keyframes pixelMove {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  25%  { transform: translate(10px, -5px) scale(1.1); opacity: 0.8; }
  50%  { transform: translate(-10px, 5px) scale(1); opacity: 0.6; }
  75%  { transform: translate(5px, -10px) scale(1.2); opacity: 0.9; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

body {
  background: #080808;
  color: #fff;
}

/* home section */
#header {
  width: 100%;
  height: 100vh;
  background-image: url(images/theENDbg.webp);
  background-size: cover;
  background-position: center;
}

/* custom logo nahu sa taas, clickable for landing page */
.logo img {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-right: 1px;      
}
.logo img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.container {
  padding: 0 3%;
}

.container h2{
  font-size: 26px;
 margin-top: 40px;
}

/* for navigation section */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 15px;
}

nav ul li a {
  display: inline-flex;
  padding: 3px 10px;
  margin: 2px; 
  color: #000;
  background-color: #7a7a7a;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #bfbfbf, inset -2px -2px #3f3f3f;
  font-size: 10px;
  font-size: 12px;
  padding: 5px 15px;
  margin: 5px;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  display: inline-block;
  text-decoration: none;
   
}

nav ul li a:hover {
  background: #4c4b4a;
  color: #ffffff;
  transform: scale(1.05);
}

/* intro nahu */
.header-text {
  margin-top: 14%;
  font-size: 25px;
  line-height: 1.6;
}

.header-text h1 {
  font-size: 30px;
  margin-top: 20px;
  margin-bottom: 15px;
}

.header-text p {
  font-size: 15px;
}

.header-text h1 span {
  color: #fffb00;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#editor-type {
  transition: opacity 0.5s ease-in-out, color 0.5s ease-in-out;
}
.follow-text {
  margin-top: 50px;
  font-size: 13px;
  font-weight: bold;
}

/* social media icons nahu sa home */
.social-icons a {
  display: inline-flex;         
  align-items: center;
  justify-content: center;
  width: 30px;                 
  height: 30px;
  background-color: #7a7a7a;
  border: 2px solid #000; 
  box-shadow: inset 2px 2px #bfbfbf, inset -2px -2px #3f3f3f;
  border-radius: 8px;
  font-size: 20px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

/* sa About section nahu */

#about {
  background-image: url("images/aboutBG.png");
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 40px;
  color: #ababab;
}

.profile-pic {
  margin: 0 20px 20px 0;
  width: 200px;
  animation: floatPic 6s ease-in-out infinite;
}

@keyframes floatPic {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}
.about-col-1 img {
  width: 100%;
  border-radius: 15px;
}
.about-col-2 {
  flex-basis: 60%;
}

.about-col-2 p {
  font-size: 13px;
  color: #ffffff;
}

.about-col-2 h1 {
  font-size: 18px;
  color: #fffb00;
}

.sub-title {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
}

.tab-titles {
  display: flex; 
  gap: 10px;
  margin: 10px 0;
} 

.tab-links {
  display: inline-block;
  padding: 8px 16px;
  color: #000;
  background-color: #7a7a7a;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #bfbfbf, inset -2px -2px #3f3f3f;
  border-radius: 6px;    
  font-size: 11px;
  font-family: 'Minecraftia', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.tab-links:hover {
  background: #4c4b4a;
  color: #000000;
  transform: scale(1.05);
}

.tab-links.active-link {
  background: #2c2c2b;
  color: #fff;
}

.tab-contents ul li {
  margin: 11px 0;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.5;
}

.tab-contents ul li span {
  font-size: 15px;
  color: #fffb00;
  font-weight: bold;
}

.tab-contents {
  display: none;
}
.tab-contents.active-tab {
  display: block;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .row {
    flex-direction: column;
  }
  .about-col-1, .about-col-2 {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
  .sub-title {
    font-size: 40px;
  }
}

/* Tools Section */

#tools {
  padding: 60px 10px;
  background-image: url(images/endportal_bg.jpg);
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: #fffb00;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  row-gap: 70px;
  column-gap: 5px;
  margin-top: 50px;
}

.tool-card {
  background-image: url(images/endportal_bg.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  padding: 10px;
}

.tool-card {
  background: transparent;
  border-radius: 0; 
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tool-card:hover {
  transform: scale(1.1);
}

.tool-card img {
  width: 85px;
  height: auto;
  display: block;
}
.tool-info {
  margin-top: 5px;
  background-image: url(images/obsidian_bg.jpg);
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px;
  border-radius: 5px;
  color: #fffb00;
  display: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

#tool-description {
  color: #fff;
  font-size: 12px;
  line-height: 1.6; 
}

/* PROJECT NGA SEC. */

#projects {
  background-image: url("images/endcity_bg2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 40px;
  min-height: 90vh;
}

.section-title {
  font-size: 3rem;
  color: #fffb00;
  text-shadow: 2px 2px #000;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.5rem;
  color: #ad26ab;
  text-shadow: 1px 1px #000;
  margin-bottom: 30px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(230, 0, 255, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
  text-align: center;
}

.project-category {
  display: block;
  font-size: 0.9rem;
  color: #ff00ff;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title {
  font-size: 1.2rem;
  color: #fff;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #b0009b;
}

/* slideshow */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
}

.slideshow-container {
  position: relative;
  max-width: 80%;
  margin: auto;
}

.mySlides {
  display: none;
  text-align: center;
}

.mySlides img {
  width: 60%;
  border-radius: 10px;
  border: 2px solid #fffb00;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-size: 30px;
  user-select: none;
}

.prev { left: 0; }
.next { right: 0; }

.close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* Contact sec */

#contact {
  background: url('images/end_ciy\ bg.avif') repeat;
  padding: 60px 300px;
  text-align: center;
  color: #fff;
}

#contact h2 {
  font-size: 2rem;
  color: #fffb00;
  text-shadow: 2px 2px #000;
}

#contact .section-subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Contact Form */
#contact form {
  max-width: 600px;
  margin: 0 auto;
}

#contact input, 
#contact textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 3px solid #ea7ae8;
  border-radius: 8px;
  background: #e3e085;
  color: #000000;
}

#contact input:focus, 
#contact textarea:focus {
  border-color: #540169;
  box-shadow: 0 0 10px #540169;
  outline: none;
}

/* Button */
#contact .btn {
  background: #d3d3d3;
  color: #000;
  padding: 12px 25px;
  border: 3px solid #000000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact .btn:hover {
  background: #111;
  color: #650056;
  box-shadow: 0 0 15px #650056;
}

/* Footer sec */

#footer {
  background-image: url(images/obsidian_bg.jpg);
   max-height: 110px;
  overflow: hidden;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
}

/* Social Icon Boxes */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #7a7a7a;
  box-shadow: inset 2px 2px #bfbfbf, inset -2px -2px #3f3f3f;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 20px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

/* Hover Effect */
.footer-social a:hover {
  background: #2c2c2b;
  color: #970085;
  transform: scale(1.05);
}

/* Navigation Links */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
  font-size: 13px;
}

.footer-nav a:hover {
  color: #650056;
  text-shadow: 0 0 10px #650056;
}

/* Copyright */
.footer-copy {
  font-size: 9px;
  color: #999;
  margin: 1px 0;
}

/* ari ra kutob gikapuy nako hehe */