/* Reset and Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  scroll-behavior: smooth;
  height: 100%;
  transition: background 0.3s ease, color 0.3s ease;
}
/* Initially hidden */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible when in view */
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Light Mode Styles */
body {
  background-color: white;
  color: black;
}

/* Dark Mode Styles */
body.dark {
  background-color: black;
  color: white;
}

/* Wrapper Styles */
.wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  width: 55vw;
  background: black;
  line-height: 60px;
  border-radius: 50px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: all 0.3s ease;
}

body.dark .wrapper {
  background: white;
}

.wrapper nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.wrapper nav label {
  flex: 1;
  width: 100%;
  z-index: 1;
  cursor: pointer;
  text-align: center;
}

.wrapper nav label a {
  position: relative;
  z-index: -1;
  color: white; /* Default color for light theme */
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

body.dark .wrapper nav label a {
  color: black; /* White text color for dark theme */
}

.wrapper nav #home:checked ~ label.home a,
.wrapper nav #inbox:checked ~ label.inbox a,
.wrapper nav #contact:checked ~ label.contact a,
.wrapper nav #heart:checked ~ label.heart a,
.wrapper nav #about:checked ~ label.about a {
  color: #00c9ff;
}

body.dark .wrapper nav #home:checked ~ label.home a,
body.dark .wrapper nav #inbox:checked ~ label.inbox a,
body.dark .wrapper nav #contact:checked ~ label.contact a,
body.dark .wrapper nav #heart:checked ~ label.heart a,
body.dark .wrapper nav #about:checked ~ label.about a {
  color: #00c9ff; /* Change the color to lightblue for dark mode */
}

.wrapper nav label a i {
  font-size: 25px;
  margin: 0 7px;
}

.wrapper nav .tab {
  position: absolute;
  height: 100%;
  width: 20%;
  left: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 50px;
  transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper nav input {
  display: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .wrapper {
      top: 20px;
      width: 80vw; /* Adjust width for tablets */
  }
  .wrapper nav label a {
      font-size: 18px; /* Smaller font size */
  }
  .wrapper nav label a i {
      font-size: 22px; /* Smaller icon size */
  }
  .wrapper nav .tab {
      width: 25%; /* Adjust tab width for tablets */
  }

  .wrapper nav #inbox:checked ~ .tab {
      left: 25%;
  }

  .wrapper nav #contact:checked ~ .tab {
      left: 50%;
  }

  .wrapper nav #heart:checked ~ .tab {
      left: 75%;
  }

  .wrapper nav #about:checked ~ .tab {
      left: 100%;
  }
}

@media (max-width: 768px) {
  .wrapper {
      top: auto;
      bottom: 20px;
      width: 90vw;
      border-radius: 30px;
  }

  body {
      padding-top: 0;
      padding-bottom: 100px;
  }

  .wrapper nav label a {
      font-size: 16px;
  }

  .wrapper nav label a i {
      font-size: 20px;
  }

  .wrapper nav .tab {
      width: 25%; /* Adjust the tab width for smaller devices */
  }

  .wrapper nav #inbox:checked ~ .tab {
      left: 25%;
  }

  .wrapper nav #contact:checked ~ .tab {
      left: 50%;
  }

  .wrapper nav #heart:checked ~ .tab {
      left: 75%;
  }

  .wrapper nav #about:checked ~ .tab {
      left: 100%;
      transform: translateX(-100%);
  }

  /* Hide text and keep layout consistent on smaller screens */
  .wrapper nav label a {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 16px;
      width: 100%;
  }

  .wrapper nav label span {
      display: none; /* Hide text */
  }

  .wrapper nav label a i {
      font-size: 20px; /* Icons only */
  }
}

@media (max-width: 480px) {
  .wrapper {
      bottom: 10px; /* Fixed at the bottom on very small screens */
      width: 90vw;
      border-radius: 25px;
  }

  body {
      padding-top: 0;
      padding-bottom: 90px;
  }

  .wrapper nav label a {
      font-size: 14px;
  }

  .wrapper nav label a i {
      font-size: 18px;
  }

  .wrapper nav .tab {
      width: 30%; /* Further adjust tab width for very small devices */
  }

  .wrapper nav #inbox:checked ~ .tab {
      left: 30%;
  }

  .wrapper nav #contact:checked ~ .tab {
      left: 60%;
  }

  .wrapper nav #heart:checked ~ .tab {
      left: 90%;
      transform: translateX(-100%);
  }

  .wrapper nav #about:checked ~ .tab {
      left: 120%;
      transform: translateX(-200%);
  }

  /* Hide text on small devices */
  .wrapper nav label a span {
      display: none;
  }
}

/* General Styles for the Banner Section */

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  width: 100%; /* Ensure it takes full width */
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
}

/* Description Section */
.description {
  max-width: 50%;
}

.description h1 {
  font-size: 2.5rem;
}

.description h2 {
  font-size: 3rem;
  margin: 10px 0;
}

.description h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.description .highlight {
  color: #00c9ff;
}

.description p {
  margin-bottom: 20px;
  color: #ccc;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-links a {
  color: #00c9ff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
}

.download-cv {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(90deg, #00c9ff, #92fe9d);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s;
}

.download-cv:hover {
  background: linear-gradient(90deg, #92fe9d, #00c9ff);
}

/* Image Section */
.image {
  max-width: 50%;
  text-align: center;
  
}

.circle {
  position: relative;
  background-color: #00c9ff;
  padding: 20px;
  border-radius: 50%;
  display: inline-block;
  z-index: 1;
  width: 550px;
  height: 550px;
}

.circle img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
}


@keyframes slideText {
  0% {
    content: "Computer Engineer";
  }
  33.33% {
    content: "Frontend Developer";
  }
  66.66% {
    content: "Backend Developer";
  }
  100% {
    content: "Computer Engineer";
  }
}

.highlight {
  display: inline-block;
  font-weight: bold;
  font-size: 1.5rem;
  color: #00c9ff; /* Customize the color */
  animation: slideText 12s infinite ease-in-out; /* Duration of 12s for smooth transition */
  white-space: nowrap;
}

.highlight::after {
  content: "Computer Engineer"; /* Initial content */
  display: inline-block;
  animation: slideText 12s infinite ease-in-out; /* Apply the animation to the text */
}

/* Make circle visible on small screens */
@media screen and (max-width: 1050px) {
  .circle {
    top: -10px; /* Move circle closer to the top */
    width: 450px;
    height: 450px;
  }
  .circle img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
  }
  .social-links {
    display: flex;
    gap: 60px;
    margin-bottom: 20px;
  }
  
  .social-links a {
    color: #00c9ff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
  }
  .banner-content {
    flex-direction: column-reverse; /* Stack the content */
    align-items: center; /* Center align the content */
  }

  /* Make the left side of the banner extend till the right */
  .banner {
    width: 100%; /* Ensure it takes the full width */
    margin-top: 0; /* Move banner section to the top with no space */
  }

  /* Adjust description section */
  .description {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .image {
    max-width: 100%;
    text-align: center;
  }

  .description h1 {
    font-size: 2rem; /* Decrease h1 size */
  }

  .description h2 {
    font-size: 2.5rem; /* Decrease h2 size */
  }

  .description h3 {
    font-size: 1.2rem; /* Decrease h3 size */
  }

  .description p {
    font-size: 14px; /* Smaller text for paragraph */
  }
}

/* Make circle visible on small screens */
@media screen and (max-width: 850px) {
  .circle {
    top: -30px; /* Move circle closer to the top */
    width: 350px;
    height: 350px;
  }
  .circle img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
  }
  .social-links {
    display: flex;
    gap: 60px;
    margin-bottom: 20px;
  }
  
  .social-links a {
    color: #00c9ff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
  }
  .banner-content {
    flex-direction: column-reverse; /* Stack the content */
    align-items: center; /* Center align the content */
  }

  /* Make the left side of the banner extend till the right */
  .banner {
    width: 100%; /* Ensure it takes the full width */
    margin-top: 0; /* Move banner section to the top with no space */
  }

  /* Adjust description section */
  .description {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .image {
    max-width: 100%;
    text-align: center;
  }

  .description h1 {
    font-size: 2rem; /* Decrease h1 size */
  }

  .description h2 {
    font-size: 2.5rem; /* Decrease h2 size */
  }

  .description h3 {
    font-size: 1.2rem; /* Decrease h3 size */
  }

  .description p {
    font-size: 14px; /* Smaller text for paragraph */
  }
}

@media screen and (max-width: 480px) {
  .circle {
    top: -50px; /* Adjust circle position further for very small screens */
    width: 250px;
    height: 250px;
  }
  .circle img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
  }
  .social-links {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
  }
  
  .social-links a {
    color: #00c9ff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
  }

  .banner-content {
    flex-direction: column-reverse; /* Stack the content */
    align-items: center; /* Center align the content */
  }

  .banner {
    width: 100%; /* Ensure full width */
    margin-top: 0; /* No margin at the top for very small screens */
  }

  .description {
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .image {
    max-width: 100%;
    text-align: center;
  }

  .description h1 {
    font-size: 1.5rem;
  }

  .description h2 {
    font-size: 1.8rem;
  }

  .description h3 {
    font-size: 1rem;
  }

  .description p {
    font-size: 12px; /* Small paragraph text */
  }
}

/* skills */
.skills-section {
  text-align: center;
  padding: 50px 20px;
}

.skills-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill {
  width: 300px;
  border: 1px solid;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.skill img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.skill p {
  font-size: 1.2rem;
  margin: 10px 0;
}

.progress {
  width: 100%;
  height: 20px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  background-color: #00c9ff;
  color: #fff;
  text-align: right;
  padding-right: 5px;
  line-height: 20px;
  font-size: 0.9rem;
  border-radius: 10px 0 0 10px;
  width: 0; /* Start at 0 for animation */
  transition: width 2s ease-in-out; /* Smooth animation */
}


/* Projects section */

.filter-bar {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  border: none;
  outline: none;
  cursor: pointer;
  margin: 5px 10px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #ddd;
  border-radius: 11px;
  transition: background-color 0.3s ease;
}

.filter-btn.active {
  background-color: #333;
  color: #fff;
}
.projects-container {
  padding: 50px 0;
}

.projects-title {
  font-size: 2.5rem;
  font-family: 'Oswald', sans-serif;
  text-align: center;
  margin-bottom: 50px;
}

.projects {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project-item {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px ;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  cursor: pointer;
  color: #fff;

}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.project-item:hover img {
  opacity: 0.7;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.3s ease;
  text-align: center;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-overlay em {
  font-size: 1rem;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  padding: 20px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  text-align: center;
  position: relative;
}

.popup-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.popup-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
}


/* Blog Section Styles */
.blog-container {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-family: 'Oswald', sans-serif;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.blog-post {
  box-shadow: 0 4px 8px ;
  transition: transform 0.3s ease-in-out;
  border-radius: 8px; /* Add border-radius to the blog post container */
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  height: 200px; /* Fixed height for all images */
  object-fit: cover; /* Ensures images cover the area without distortion */
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
}

.blog-content em {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 1rem;
  line-height: 1.6;

}

.blog-content a {
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
}

.blog-content a:hover {
  text-decoration: underline;
}

.button-50 {
  margin-top: 1em;
  background-color:rgb(114, 102, 102); /* Green background */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.button-50:hover {
  background-color: rgb(114, 102, 102); /* Slightly darker green on hover */
  transform: translateY(-5px); /* Button lifts slightly when hovered */
  box-shadow: 0 8px 16px; /* Add shadow effect */
}

.button-50:active {
  transform: translateY(2px); /* Button moves down when clicked */
}


/* contact us */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  margin: 20px;
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 18px;
  line-height: 1.5;
}

.contact-info a {
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  
}

.social-icons img {
  width: 30px;
  height: 30px;
  
}
.social-icons i{
  color:#00c9ff;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  margin: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid;
  border-radius: 4px;
}

.contact-form button {
  padding: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #3b74f2;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #315fc4;
}
