*{
  box-sizing: border-box;
  
}

body {
   font-family: 'Roboto', sans-serif;
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   background-image:url(/images/pexels-padrinan-255379.jpg);
   font-weight: 500–600;
   
 }

 .logo {
  position: fixed;
  top: 20px; 
  right: 40px; 
  z-index: 1000; 
 }
.logo-img {
  width: 50px; 
  height: auto; 
}

 nav {
  background-color: #e2a9a9;
  color: #f4f4f4;
  padding: 1em;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1em;
  font-size: 1.2em;
  transition: color 0.3s ease-in-out;
}

nav a:hover {
  color: #00b894;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#burger-menu {
  display: none;
  cursor: pointer;
  order: -1;
}

#burger-icon {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  position: absolute;
  top: 1em;
  left: 1em;
  z-index: 2;
  color: #ddd;
}

@media (max-width: 767px) {

  #burger-icon {
    display: block;
  }

  #burger-menu {
    display: none;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    flex-direction: column;
    align-items: center;
    
  }

  nav a {
    margin: 1em 0;
    display: none;

    
  }

nav a:hover {
  color: #00b894;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

  #burger-menu:checked + nav {
    display: flex;

  }

  #burger-menu:checked + nav a {
    display: block;
    
  }



  #burger-menu:checked + nav #burger-icon::before {
    content: '\f00d'; /* Unicode for 'close' icon */
  }
}


 header {
   background-color: #e2a9a9;
   opacity: .8;
   color: #fff;
   text-align: center;
 }

 @keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


h1 {
  animation: fadeIn 2s ease-out;
}



section {
  background-color: rgba(255, 255, 255, 0.1); /* semi-transparent white */
  margin: 2em;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(224, 118, 118, 0.1);
  animation: fadeIn 1s ease-in-out forwards;
}

/* Define the fadeIn animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0.3;
    transform: translateY(20px);
  }
}


 h1{
   color:#ddd;
   font-family: 'Dancing Script', cursive;
   font-weight: bold;
 }

   h2, h3 {
   color: #333;
  
 }

 #about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#about img {
  width: 90%;
  border: none; /* Remove CSS border */
  border-radius: 8px; /* Optional: smooth corners */
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.05); /* subtle soft outline */
  display: block;
  margin: 1.5em auto;
  clip-path: inset(1px);  
}

#about-text {
  max-width: 80%;
  margin-bottom: 1em;
}


#scrollToTop {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #e2a9a9;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1000;
  opacity: .6;
}

#scrollToTop:hover {
  background-color: #e2a9a9;
  opacity: 0.8;
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 768px) {



  #about {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    
  }

  button {
    margin: 2em auto;
    display: block;
    -webkit-appearance: none;
    border: 6px solid rgba(245, 151, 151, 0.45);
    border-radius: 50px;
    padding: 1em 3em;
    background-repeat: no-repeat;
    background-size: 100%;
    background-clip: padding-box;
    position: relative;
    color: #FFF;
    background-image: linear-gradient(90deg, #ec7bb3, #3bd1d3);
}

button:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 50px;
    z-index: -1;
    filter: blur(14px);
}

button:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50px;
    z-index: -1;
    filter: blur(14px);
}




  #about-text {
    max-width: 50%;
  }
}

.slideshow-container img {
  display: block;
  margin: auto;
  
}



.school-image img{
  cursor: pointer;
}

.school-image img:hover{
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.project{
  background-color: rgba(255, 255, 255, 0.3);
}


 .projects, .skills {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   text-align: center;
   gap: 1.5rem;
 }

 .skills{
  overflow-x: auto;     /* enables horizontal scroll */
  gap: 1rem; 
  padding: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
 }



 .project {

   margin: 1em;
   padding: 1em;
   border: 1px solid #ddd;
   border-radius: 8px;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   cursor: pointer;
 }

.skill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
  min-width: 120px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
  transition: transform 0.3s;
}

.skills-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 20px 0;
}

.skills::-webkit-scrollbar {
  display: none;
}

.skills {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.skill:hover {
  transform: scale(1.05);
}

 .project h3, .skill h3 {
   color: #333;
 }

 @media (max-width: 768px) {
  .project p{
    text-align: center; 
}

  .project a {
    text-align: center; 
  }
 }

 @keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.skill img {
  width: 60px;
  height: auto;
  margin: 10px 0;
}

.skills-slider::-webkit-scrollbar {
  height: 8px;
}

.skills-slider::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
}

 form {
   display: flex;
   flex-direction: column;
   align-items: center;
 }

 label {
   margin: 0.5em 0;
 }

 input, textarea {
   width: 70%;
   padding: 0.5em;
   margin: 0.5em 0;
   border: 1px solid #ddd;
   border-radius: 5px;
   box-sizing: border-box;
 }

 button {
   background-color: #333;
   color: #fff;
   padding: 0.7em;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   transition: transform 0.3s ease-in-out;
 }

 /* Modal Styles */
 .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 1); /* Black background with opacity */
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%; /* Limit the width of the image */
  max-height: 90%; /* Limit the height of the image */
  border-radius: 10px;
  display: block;
  margin: auto; /* Ensure it's centered */
  object-fit: contain; 
  box-sizing: border-box;
  top: 20vh;
  
}


@media (max-width: 768px) {
  #imageModal {
    padding: 20px; /* Add padding to ensure it's not too tight */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    height: 100vh; /* Ensure modal takes full viewport height */
    opacity: 1;
  }

  .modal-content {
    
    max-width: 90%; /* Slightly smaller width for mobile */
    max-height: 80%; /* Restrict the height for mobile view */
    object-fit: contain; /* Ensure the image fits properly */
    top: 10vh; /* Ensure no extra margin pushes image down */
  }

  .close {

    font-size: 25px;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 10px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


 button:hover {
   background-color: #555;
   transform: scale(1.1);
 }

 #contact {
   margin-bottom: 100px; 
 }

 /* Remove underline from links */
#contact a {
  text-decoration: none; /* Removes the underline */
  color: #007bff; /* Adjust the color as needed */
  transition: color 0.3s ease; /* Adds a smooth transition effect */
}

#contact a:hover {
  color: #0056b3; /* Change color on hover for better UX */
}

/* Remove list bullets */
#contact ul {
  list-style: none; /* Removes bullets from the list */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
}

/* Style list items for better alignment */
#contact ul li {
  display: flex; 
  align-items: center; 
  margin-bottom: 10px; 
}

#contact ul li img {
  margin-right: 10px; 
  
}

footer {
  background-color: #e2a9a9;
  color: #fff;
  text-align: center;
  padding: 0; 
  height: 100px;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center; /* Vertically center the content */
  justify-content: center; /* Horizontally center the content */
}

.certificate-image {
  display: block;
  width: 50%; /* Set width to 50% of the screen */
  height: auto;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


.zoom-text {
  cursor: pointer;
  font-size: 16px;
  
}

.zoom-text:hover {
  font-size: 18px; 
  transition: font-size 0.5s ease;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
}

#contact-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#contact-form button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#contact-form button:hover {
  background-color: #0056b3;
}

.error {
  color: red;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
}

.success {
  color: green;
  font-size: 16px;
  text-align: center;
}

/* Default Styles */
.project img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Make the project section more responsive */
  .project {
    padding: 10px;
    text-align: center;

  }

  /* Make sure images scale properly */
  .project img {
    width: 100%; /* Full width */
    height: auto; /* Maintain aspect ratio */
  }

  .slideshow-container{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Adjust buttons and text if needed */
  .project button {
    width: 100%; /* Full width for buttons on mobile */
    margin-bottom: 10px;
    justify-content: center;
  }
}
