@import url("https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --body-color: rgb(250, 250, 250);
  --color-white: rgb(255, 255, 255);
  --text-color-second: rgb(105, 105, 105);
  --text-color-third: rgb(102, 102, 102);
  --first-color: rgb(110, 90, 222);
  --first-color-hover: rgb(40, 90, 212);
  --second-color: rgb(0, 201, 255);
  --third-color: rgb(22, 109, 190);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--third-color);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
}

::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}
nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 90px;
  line-height: 90px;
  background: linear-gradient(
    to bottom,
    rgb(212, 212, 212),
    rgba(128, 128, 128, 0.048)
  );
  padding-inline: 9vw;
  transition: 0.3s;
  z-index: 100;
}

nav.scrolled {
  background: rgb(38, 135, 226); /* Solid color when scrolled */
}

nav.scrolled .nav-link,
nav.scrolled .nav-name,
nav.scrolled .btn {
  color: rgb(255, 255, 255); /* Change text color to white when scrolled */
}

.nav-logo {
  position: relative;
}

.nav-name {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-color-third);
}

.nav-logo span {
  position: absolute;
  top: -15px;
  right: -20px;
  font-size: 5em;
  color: var(--third-color);
}

.nav-menu,
.nav_menu_list {
  display: flex;
}

.nav-menu .nav_list {
  list-style: none;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  padding-inline: 15px;
  margin-inline: 20px;
}

.nav-menu-btn {
  display: none;
}

.nav-menu-btn i {
  font-size: 28px;
  cursor: pointer;
}

.btn {
  font-weight: 500;
  font-size: 14px; /* Decrease font size */
  padding: 8px 16px; /* Reduce padding to make the button smaller */
  background: #efefef;
  border: none;
  border-radius: 8px; /* Slightly smaller radius for a more compact look */
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn > i {
  margin-left: 8px; /* Adjust margin between text and icon */
}

.btn:hover {
  background-color: var(--third-color);
  color: var(--color-white);
}

i {
  font-size: 16px;
}

body {
  background: var(--body-color) url(../assets/013\ Heavy\ Rain.png) no-repeat
    center center fixed;
  background-size: cover;
}

.container {
  width: 100%;
  position: relative;
  height: 10vh;
}
nav.scrolled .btn {
  background-color: rgb(40, 138, 204); /* Darker color when scrolled */
}
.wrapper {
  padding-top: -60px;
  padding-inline: 10vw;
}
.featured-text {
  position: relative;
  display: flex;
  justify-content: center;
  align-content: center;
  margin-top: 120px;
  min-height: 80vh;
  flex-direction: column;
  width: 50%;
  padding-left: 20px;
}

.featured-text-card span {
  background: var(--third-color);
  color: var(--color-white);
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 5px;
}

.featured-name {
  font-size: 50px;
  font-weight: 600;
  color: var(--second-color);
  margin-block: 20px;
}
.typed-text {
  text-transform: capitalize;
  color: var(--text-color-third);
}
.featured-text-info {
  font-size: 15px;
  margin-bottom: 30px;
  color: var(--text-color-second);
}
.featured-text-btn {
  display: flex;
  gap: 20px;
}
.featured-text-btn > .blue-btn {
  background: var(--third-color);
  color: var(--color-white);
}
.fetaured-text-btn.blue-btn:hover {
  background: var(--first-color-hover);
}
.social-icons {
  display: flex;
  margin-top: 5em;
  gap: 30px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.icon a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: inherit; /* Keeps icon color same as original */
  text-decoration: none; /* Removes underline from links */
}

.icon:hover {
  color: var(--third-color);
}
.featured-image {
  display: flex;
  justify-content: right;
  align-items: center; /* Adjusted to properly center the content vertically */
  min-height: 80vh;
  width: 50%;
}

.image {
  margin: auto 0;
  width: 100%; /* Makes the image responsive */
  max-width: 400px; /* Maximum width */
  border-radius: 55%;
  overflow: hidden;
  animation: imgFloat 2.2s ease-in-out infinite;
}

.image img {
  width: 100%; /* Adjusted for responsiveness */
  max-width: 100%; /* Ensures the image doesn't exceed the container's width */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensures the image covers the area without distortion */
}

@keyframes imgFloat {
  50% {
    transform: translateY(10px);
    border-radius: 45% 55% 45% 55%;
  }
}

.scroll-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 50px;
  gap: 5px;
  text-decoration: none;
  color: var(--text-color-second);
  width: 150px;
  height: 50px;
  gap: 5px;
  text-decoration: none;
  color: var(--third-color);
  background: var(--color-white);
  border-radius: 30px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn {
  font-size: 20px;
}
.section {
  padding-block: 5em;
  text-align: center;
}

.row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
}
#intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}
.about-info {
  text-align: center; /* Center the content */
  max-width: 800px; /* Max width to prevent stretching */
  margin: 0 auto; /* Center horizontally */
}

.about-info h3 {
  font-size: 2.5rem; /* Large, bold title */
  font-weight: 600; /* Slightly bold font */
  color: #333; /* Dark color for contrast */
  margin-bottom: 20px; /* Space below the title */
}

.about-info p {
  font-size: 1.2rem; /* Slightly larger font for readability */
  color: #555; /* Medium dark gray for text */
  line-height: 1.6; /* Increased line height for better readability */
  font-family: "Arial", sans-serif; /* Clean, modern font */
  text-align: justify; /* Justify text for neat alignment */
  margin-top: -30px;
  margin-bottom: 30px;
}
/* Section Styling */
/* #experience {
  padding: 60px 0;
  background-color: #f9f9f9;
} */

/* Header Styling */
#experience .top-header {
  text-align: center;
  margin-bottom: 40px;
}

#experience .top-header h1 {
  font-size: 36px;
  color: #333;
  margin-bottom: 10px;
}

#experience .top-header span {
  font-size: 18px;
  color: #777;
  display: block;
  margin-top: 10px;
}

/* Timeline Container */
#experience .timeline {
  max-width: 800px;
  margin: 0 auto;
}

/* Timeline Wrapper */
#experience .timeline-wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 30px;
}

/* Timeline Year */
#experience .timeline-yr {
  width: 80px;
  height: 80px;
  background-color: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  margin-right: 20px;
}

/* Timeline Info */
#experience .timeline-info {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#experience .timeline-info h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

#experience .timeline-info h3 small {
  display: block;
  font-size: 16px;
  color: #777;
}

#experience .timeline-info p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.skills-header h3 {
  color: #777;
  font-size: 30px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Increased gap for better spacing */
}

.skills-list span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  padding: 15px 20px; /* Adjusted padding for more space */
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effect transition */
}

.skills-list span:hover {
  transform: translateY(-5px); /* Slight upward movement on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow effect */
}

.skills-list span img {
  width: 80px; /* Larger size for logos */
  height: auto;
  margin-bottom: 10px;
}

.top-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: -80px;
}

.top-header h1 {
  font-size: 2.8rem;
  color: #535353;
  position: relative;
}

.top-header h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px; /* Adjust the distance from the text */
  width: 50%; /* Adjust the width of the underline */
  height: 8px; /* Adjust the thickness of the underline */
  background-color: var(--third-color);
  border-radius: 5px;
}

.top-header h1 {
  font-size: 2.5rem; /* Larger heading */
  margin-bottom: 30px;
  color: #2c3e50; /* Darker color for better contrast */
}
/* Project Container Styling */
.project-container {
  display: grid; /* Use grid for a modern layout */
  grid-template-columns: repeat(
    auto-fill,
    minmax(300px, 1fr)
  ); /* Responsive grid */
  gap: 30px; /* Increased gap for better spacing */
  justify-items: center; /* Center items in grid */
}

.project-box {
  background: #ffffff;
  border-radius: 15px; /* Slightly more rounded corners */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* Full width within grid item */
  max-width: 350px; /* Max width for project boxes */
  text-align: left; /* Keep text alignment to the left for other elements */
}

.project-box:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project-box a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Image Styling */
.project-box img {
  width: 100%;
  height: 200px; /* Consistent height */
  object-fit: cover;
  border-radius: 15px 15px 0 0; /* Rounded corners for the image */
}

/* Title and Description Styling */
.project-box h3 {
  margin: 15px 0 10px;
  font-size: 1.5rem; /* Larger title */
  color: #2c3e50;
  padding: 10px;
  margin-top: -5px;
  margin-bottom: -3px;
}

/* Adjusted Label Styling */
.project-box label {
  font-size: 0.95rem; /* Slightly larger font size */
  color: #7f8c8d; /* Softer color for descriptions */
  line-height: 1.6;
  text-align: center; /* Center the text */
  padding: 0 10px; /* Add horizontal padding to the label */
  display: block; /* Ensure label behaves like a block element */
  margin: 10px 0; /* Add vertical margin for spacing */
}
.section {
  padding-block: 5em;
  text-align: center;
}

.top-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: -80px;
}

.top-header h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

/* Project Container Styling */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-box {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 350px;
  text-align: left;
}

/* Certification Container Styling */
.certification-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.certification-box {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px;
  text-align: left;
}

.certification-box a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.certification-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.certification-box h3 {
  margin: 15px 0 10px;
  font-size: 1.2rem;
  color: #2c3e50;
  padding: 10px;
  margin-top: -5px;
  margin-bottom: -3px;
}

.certification-box label {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.6;
  text-align: center;
  padding: 0 10px;
  display: block;
  margin: 10px 0;
}

.contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 30px;
  width: 100%;
  height: 315px;
  background: var(--third-color);
  border-radius: 10px;
  box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
  margin-bottom: 20px;
  overflow: hidden;
}

.contact-info > h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.featured-box {
  display: flex;
  flex-direction: row-reverse !important;
}

.contact-info > p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  margin-block: 5px;
}

.contact-info p > i {
  font-size: 18px;
}

.contact-info::after {
  content: "";
  position: absolute;
  bottom: -100%;
  background: var(--color-white);
  width: 100%;
  height: 100%;
  transition: 0.4s;
  z-index: 1;
}

.contact-info:hover::after {
  bottom: 0;
}

.contact-info:hover h2,
.contact-info:hover p,
.contact-info:hover i {
  color: #777;
  z-index: 2;
}

.contact-form-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-input-field {
  width: 100%;
  height: 45px;
  background: transparent;
  border: 2px solid #aaa;
  padding: 0 15px;
  font-size: 16px;
  outline: none;
  border-radius: 8px;
}

.contact-textarea {
  width: 100%;
  height: 150px;
  background: transparent;
  border: 2px solid #aaa;
  border-radius: 8px;
  padding: 15px;
  font-size: 16px;
  outline: none;
  resize: vertical;
}

.contact-form-button {
  margin-top: 10px;
}

.contact-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--third-color);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #00b5e7;
}

.contact-btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-col {
  flex: 1;
  min-width: 300px;
}

/* Success and error messages */
.alert {
  padding: 10px;
  background-color: #4caf50;
  color: white;
  margin-top: 10px;
  text-align: center;
}

.error {
  padding: 10px;
  background-color: #f44336;
  color: white;
  margin-top: 10px;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
  background: #f8f8f8;
  padding-block: 40px 60px;
}
.top-footer p {
  font-size: 25px;
  font-weight: 600;
}
.middle-footer .footer-menu {
  display: flex;
}
.footer_menu_list {
  list-style: none;
}
.footer_menu_list a {
  text-decoration: none;
  color: var(--third-color);
  font-weight: 500;
  margin-inline: 20px;
}
.footer-social-icons {
  display: flex;
  gap: 30px;
}
.bottom-footer {
  font-size: 14px;
  margin-top: 10px;
}
/* Chatbot icon styling */
/* Root Variables */
:root {
  --body-bg: rgb(250, 250, 250);
  --message-bg: rgb(255, 255, 255);
  --left-message-bg: rgb(22, 109, 190);
  --right-message-bg: rgb(102, 102, 102);
}

/* Chatbot Wrapper */
#chatbot-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Chatbot Icon */
#chatbot-icon {
  background-color: #007bff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

#chatbot-icon:hover {
  transform: scale(1.1);
}

/* Chatbot Window */
.messenger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  height: 100%; /* Ensure this takes the full available height */
  max-height: 400px; /* Fix the height */
  margin: 2px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

/* Chat Header */
.messenger-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 10px 10px 0px 0px;
  background: #eee;
  color: #666;
}

.messenger-header img {
  height: 30px;
  width: auto;
}

.messenger-header p {
  letter-spacing: 1px;
  font-size: 1.8rem;
  font-weight: bold;
}

/* Chat Messages */
.messenger-chat {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  max-height: 280px;
}

.messenger-chat::-webkit-scrollbar {
  width: 6px;
}

.messenger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 10px;
}

/* Message Bubbles */
.message {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.message:last-of-type {
  margin-bottom: 0;
}

.message-img {
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 50%;
}

.message-bubble {
  max-width: 250px;
  padding: 15px;
  border-radius: 15px;
}

.left-message .message-bubble {
  background: var(--left-message-bg);
  color: #fff;
  border-bottom-left-radius: 0;
}

.right-message {
  flex-direction: row-reverse;
}

.right-message .message-bubble {
  background: var(--right-message-bg);
  color: #000;
  border-bottom-right-radius: 0;
}

/* Input Area */
.message-inputarea {
  display: flex;
  padding: 10px;
  background: #f1f1f1;
  border-top: 1px solid #ccc;
  border-radius: 0 0 10px 10px;
}

.message-input {
  flex: 1;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  padding: 10px 15px;
}

.message-input:focus {
  border-color: #999;
}

.message-send-btn {
  margin-left: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.message-send-btn:hover {
  background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .card-chatbot {
    width: 90%; /* Full width on small screens */
    right: 5%; /* Align with screen edge */
  }

  #chatbot-icon {
    padding: 10px; /* Adjust padding for smaller screens */
  }
}

/**media quieris or responsiveness****/
@media only screen and (max-width: 768px) {
  .contact-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-col {
    width: 100%;
  }
}
#intro {
  padding: 20px; /* Less padding on smaller screens */
}

.about-info h3 {
  font-size: 2rem; /* Smaller title on smaller screens */
}

.about-info p {
  font-size: 1rem; /* Slightly smaller text */
}

/*****Responsivenes ********/
@media only screen and (max-width: 1024px) {
  .featured-text {
    padding: 0;
    z-index: 1;
  }

  .featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    width: 100%;
  }

  .image {
    max-width: 280px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 0;
  }

  .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .featured-box {
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    height: auto;
    padding: 20px;
  }

  .featured-text {
    width: 100%;
    order: 2;
    justify-content: center;
    align-content: flex-start;
  }

  .featured-image {
    min-height: auto;
    width: 100%;
    order: 1;
    justify-content: center;
  }

  .image {
    max-width: 200px;
  }

  .nav-button {
    display: none; /* Hide the chat button on mobile */
  }
  .footer {
    padding: 10px;
    gap: 10px;
  }

  .top-footer p {
    font-size: 20px;
  }

  .middle-footer .footer-menu {
    flex-direction: column;
    gap: 10px;
  }

  .footer_menu_list a {
    font-size: 12px;
    padding: 3px 6px;
  }

  .footer-social-icons {
    gap: 15px;
  }

  .footer-social-icons .icon a {
    font-size: 20px;
  }

  .bottom-footer p {
    font-size: 10px;
  }

  .nav-menu {
    position: fixed;
    top: 89px; /* Move down from the top */
    right: -35%; /* Start off-screen to the right */
    width: 35%; /* Set the width to 35% */
    height: calc(100% - 20px); /* Full height minus the top offset */
    background: rgba(38, 135, 226, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(20px);
    border-radius: 0; /* Straight corners */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start; /* Align items to the top */
    padding-top: 20px; /* Optional: padding from the top */
    transition: right 0.3s ease-in-out;
  }

  .nav-menu.responsive {
    right: 0; /* Move into view when responsive class is added */
  }

  .nav_menu_list {
    flex-direction: column; /* Ensure list items are in a column */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    list-style: none; /* Remove bullet points */
  }

  #myNavMenu {
    background: linear-gradient(
      to bottom,
      rgba(212, 212, 212, 0),
      rgba(128, 128, 128, 0.555)
    );
    transition: background 0.3s ease; /* Smooth transition for background */
  }

  #myNavMenu.scrolled {
    background: rgb(38, 135, 226); /* Solid background when scrolled */
  }

  .nav-link {
    text-decoration: none;
    color: var(--text-color-second); /* Default text color */
    font-weight: 500;
    padding: 10px; /* Adjust padding for touch targets */
    display: block; /* Make the link a block element for full width */
  }

  #myNavMenu.scrolled .nav-link {
    color: rgb(255, 255, 255);
  }

  .nav_list {
    margin: 10px 0; /* Add some spacing between items */
  }

  .nav-menu-btn {
    display: flex; /* Show the menu button */
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
  }

  .menu {
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" fill="%23fff"/%3E%3C/svg%3E')
      no-repeat center;
    transition: transform 0.3s ease-in-out;
  }

  .menu.animate {
    transform: rotate(180deg);
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="%23fff"/%3E%3C/svg%3E')
      no-repeat center;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none; /* Hide the toggle button on larger screens */
  }

  .nav-menu {
    display: flex !important; /* Show the menu on larger screens */
    position: static;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    width: auto;
    height: auto;
    padding-top: 0;
  }

  .nav_menu_list {
    flex-direction: row;
    align-items: center;
  }

  .nav_list {
    margin: 0 20px;
  }

  .nav-link {
    color: var(--text-color-second);
    padding: 10px;
  }

  .nav-menu.scrolled .nav-link {
    color: white;
  }

  .featured-box {
    justify-content: center;
    height: auto; /* Adjust height to content */
    padding: 20px; /* Added padding for additional spacing */
  }

  .featured-text {
    width: 100%;
    order: 2;
    justify-content: center;
    align-content: flex-start;
  }

  .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }

  .col {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-info {
    width: 100%;
  }

  .project-container {
    justify-content: center;
  }

  .project-box {
    width: 80%; /* Adjusted for better responsiveness */
  }
}
@media only screen and(max-width:540px) {
  .featured-name {
    font-size: 40px;
  }
  .project-box {
    width: 100;
  }
}
@media only screen and (max-width: 480px) {
  .footer {
    row-gap: 15px; /* Further reduce gap for very small screens */
  }

  .top-footer p {
    font-size: 18px; /* Adjust font size for very small screens */
  }

  .footer_menu_list a {
    font-size: 11px; /* Smaller font size for very small screens */
    padding: 4px 6px; /* Adjust padding for very small screens */
  }

  .footer-social-icons {
    gap: 10px; /* Reduce gap between icons */
  }

  .bottom-footer {
    font-size: 10px; /* Smaller font size for very small screens */
  }
  .footer {
    row-gap: 15px;
  }

  .top-footer p {
    font-size: 18px;
  }

  .footer_menu_list a {
    font-size: 11px;
    padding: 2px 4px;
  }

  .footer-social-icons {
    gap: 10px;
  }

  .footer-social-icons .icon a {
    font-size: 18px;
  }

  .bottom-footer p {
    font-size: 8px;
  }
}
