/* TO RESET and BASE STYLING*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: black;
  color: white;
  min-height: 100vh;
}

/* NAVBAR*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: transparent;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
}
/* For spacing of logo and project btn */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  margin: 0 auto;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  box-shadow: 0 2px 8px white;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ffe7;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: white;
  text-decoration: none; 
}


/* for link btn */
.project-button .btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid white;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  transition: 0.3s;
  text-decoration: none; 

}

.project-button .btn:hover {
  background-color: rgb(255, 255, 255);
  color: black;
}

#menu-toggle {
  display: none;
}

/* For the Menu Icon or the hamburger kung tawagin */
.menu-icon {
  display: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.menu-icon img {
  width: 30px;
  height: 30px;
}

/* For the Home section */
.Home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10rem 2rem;
  flex-wrap: wrap;
}

/* For adjustment of image the big image */
.left {
  flex: 1;
  max-width: 500px;
  position: relative;
  padding-top: 20%;
}

.left img {
  position: absolute;
  top: -135px;
  left: -25%;
  width: 112%;
  height: auto;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
  display: block;
}

.right {
  flex: 1;
  max-width: 600px;
  padding: 1rem;
}

.right h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.right h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.highlight {
  color: #00ffe7;
}

/* For the social media icons*/
.icons a img {
  width: 36px;
  margin-right: 1rem;
  transition: transform 0.3s;
  
}

.icons a img:hover {
  transform: scale(1.1);
  
}

/* For RESPONSIVE */
@media (max-width: 1124px) { /* It disappears the image when it reaches earlier (at 1024px) */
  .left {
    display: none !important;
  }
}

@media (max-width: 768px) { /* It disappears the btn when it reaches earlier (at 768px) */
  .project-button {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: black;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    gap: 20px;
    z-index: 999;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  /* Home Text Centered */
  .right {
    text-align: center;
  }

  .right h1 {
    font-size: 2.2rem;
  }

  .right h2 {
    font-size: 1.2rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
  }
}


/* Project Section */
.projects {
    position: relative;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.project-grid a {
    text-decoration: none;
    color: inherit;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 0 15px rgba(149, 223, 223, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block; 
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(124, 235, 255, 0.7);
}

.project-card img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    object-fit: contain;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #eeeeee;
}

.project-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.4;
    margin: 0;
}

/* Project Section for Icon */
.projects .project-icon {
    position: absolute;
    width: 200px;
    z-index: 1;
    opacity: 0.8;
}

.projects .project-top-left {
    top: 90px;
    left: -410px;
    transform: rotate(25deg) skew(5deg, -15deg);
}

.projects .project-top-right {
    top: 450px;
    right: -300px;
    transform: rotate(25deg) skew(-10deg, -5deg);
}

.projects .project-top-right-NEW {
    top: 900px;
    right: -450px;
    transform: rotate(25deg) skew(20deg, -5deg);
}

.projects .project-bottom-center {
    bottom: 10px;
    left: -20%;
    transform: rotate(25deg) skew(20deg, -40deg);
}

@media screen and (max-width: 768px) { /* Dissapear icons on smaller screens */
    .projects .project-icon {
        display: none;
    }
}

/* For back btn*/
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  display: inline-block;
}

.back-button img {
  width: 40px;  
  height: auto;
  transition: transform 0.3s ease;
}

.back-button img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* Contact Page */
.contact-section {
  text-align: center;
  padding: 60px 20px;
}

.contact-section h1 {
  font-size: 42px;
  margin-bottom: 30px;
  color: white;
}

/* Form Box */
.contact-form {
  background-color: white;
  color: black;
  border: 2px solid black;
  box-shadow: 0 0 25px skyblue;
  border-radius: 10px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* This is the Textarea */
.contact-form input,
.contact-form textarea {
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 18px;
  width: 100%;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Send Message Btn */
.form-bottom button {
  padding: 12px 25px;
  border: none;
  background-color: #007bff; 
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.form-bottom button:hover {
  background-color: #0056b3;
}

#social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

#social-links a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#social-links a img:hover {
  transform: scale(1.2);
}

/* To Responsive*/
@media (max-width: 600px) {
  .form-bottom {
    flex-direction: column;
    align-items: center;
  }

  .form-bottom button {
    width: 100%;
    text-align: center;
  }

  #social-links {
    justify-content: center;
  }
}
