@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #373747;
  --background-color-rgb: 55, 55, 71;
  --background-color2: #3c3c44;
  --text-color: #ffffff;
  --light-text-color: #777;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color2);
  overflow: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  overflow: scroll;
}

header {
  background-color: var(--background2-color);
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  position: fixed;
  top: 2%;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  background-color: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  margin: 0 5%;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.logo i {
  margin-right: 1rem;
}

/* .logo .small-text {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--primary-color);
  margin-left: 1rem;
} */

.small-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-block;
  border-right: 2px solid var(--primary-color); /* Cursor effect */
  padding: 0 2px 0 20px;
  white-space: nowrap;
  overflow: hidden;
}

/* .logo:hover {
  color: var(--secondary-color);
} */

/* nav span {
  width: 30ch;
  text-wrap: nowrap;
  overflow: hidden;
  animation: typing 2s steps(20) infinite;
  animation-direction: alternate-reverse;
} */

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  /* color: var(--text-color); */
  color: #000000;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #00aced;
  transform: translateX(-50%);
  transition: width 0.4s ease-in-out, left 0.4s ease-in-out;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a:hover::after {
  width: 100%;
  left: 50%;
}

.nav-links li a.active {
  color: var(--primary-color);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  color: #000000;
  background-color: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* main {
  margin-top: 2%;
  padding: 1rem 5%;
} */

/* section {
  margin-top: 1%;
} */

/* Sections */
#home {
  /* background-color: white; */
  border-radius: 15px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5% 4rem;
  background-color: var(--background-color2);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 760px;
  margin: 5% 10rem;
  z-index: 0;
}

.hero .text {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.hero .text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2%;
  color: var(--primary-color);
}

.hero .text h2 {
  font-size: 2rem;
  color: #fff;
}

.hero .text p {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.hero .text .btn-download {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 24px;
  font-size: 1.2rem;
  color: #fff;
  background-color: var(--primary-color);
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero .text .btn-download:hover {
  background-color: var(--primary-color);
  filter: brightness(0.8);
  /* Darken by 20% */
}

.hero .image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero .image img {
  border-radius: 50%;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(37, 37, 48, 0.8));
}


h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}


/* About */
#about {
  /* padding: 5rem 10%; */
  background-color: var(--background-color2) !important;
  background-image: url("/placeholder.svg?height=400&width=1200");
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  /* margin-top: 5%; */
}

/* Flexbox for About Me Section */
.about_me {
  display: flex;
  flex-direction: row;
  height: 450px;
  padding: 4rem 150px;
  margin-top: -2%;
  margin-bottom: -3%;
}


/* Left Side: About Me Content */
.about_me>div {
  flex: 1;
  padding: 2rem;
  /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 15px; */
}

.about_me h2 {
  font-size: 2rem;
  margin-top: -2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.about_me span {
  line-height: 1;
  margin-bottom: 2%;
  color: var(--primary-color);
}

.about_me p {
  font-size: 1.2rem;
  color: #ffffff;
}

.about_me_tab p {
  text-align: justify;
}


.tab-container {
  flex: 1;
  max-width: 50%;
}

/* Tab Titles and Content */
.tab-titles {
  display: flex;
  margin: 20px 0 40px;
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.tab-links {
  margin: 0 30px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.tab-links.active-link {
  color: var(--primary-color);
  font-weight: bold;
}

.tab-contents {
  display: none;
  margin-top: 5%;
  margin-left: 10%;
}

.tab-contents.active-tab {
  display: block;
}

/* Tool Row Styling */
.tool-row {
  display: flex;
  justify-content: center;
  margin-bottom: 7%;
  position: relative;
  flex-wrap: wrap;
  margin-left: -10%;
}

.tool-item {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 200px;
  margin: 1rem 20px;
  position: relative;
  flex: 1 1;
}

.tool-item img {
  width: 70%;
  height: auto;
  margin: 0;
  border-radius: 10px;
  position: relative;
  transition: all 0.5s ease;
  opacity: 1;
  display: block;
  width: 80%;
}

#toggle-aboutme {
  display: none;
  border: none;
  width: auto;
  padding: 1rem 2rem;
  margin: 30px;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  padding: 1rem 2rem;
}

#toggle-aboutme:hover {
  background-color: #2980b9;
}



/* Services Section */
.services_me {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4.7rem 5%;
  /* margin-top: -10%; */
  margin-bottom: 8%;
  border-radius: 15px;
  background-color: var(--background-color2);
  position: relative;
  overflow: hidden;
  height: auto;
}

/* Text content */
.services_me .text {
  flex: 1;
  text-align: center;
  padding: 2rem 0;
}

.services_me .text h1 {
  font-size: 3rem;
  margin-top: -3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.services_me h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.services_me .text p {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* Grid Layout for Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin-top: 2rem;
}

.service-item {
  background-color: var(--background-color);
  padding: 2em;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1;
}

.service-item:hover {
  cursor: pointer;
  background-color: rgba(var(--background-color-rgb),0.7);
  transform: translateY(-10px);
}

/* Overlay Effect for Text Readability */
.services_me .text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: -1;
}



#toggle-services {
  display: none;
  border: none;
  width: auto;
  padding: 1rem 2rem;
  margin: 30px;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#toggle-services:hover {
  background-color: #2980b9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Slightly darker blue */
}


/* Trial for Services */
/* .services_me2 {
  background-color: #1c6fa3;
  text-align: center;
  justify-content: center;
  display: grid;
  max-width: 1200px;
  height: 500px;
  margin: 0 auto;
  gap: 1rem;
  grid-template-columns:
  repeat(auto-fit, minmax(300px, 1fr));
} */

/* Trial - Card */
/* #cardy {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  margin: 0 auto;
  padding: 2em;
  width: 500px;
  background: var(--background-color);
  text-align: center;
  border-radius: 10px;
  position: relative;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card:hover::after,
.card:hover::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(var(--background-color-rgb),0.7);
  background-image: conic-gradient(from var(--angle), transparent 70%, blue);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 10px;
  opacity: 1;
  animation: 3s spin linear infinite;
}

.card::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
} */



/* Projects Section */
.projects_me {
  padding: 4rem 10%;
  margin-bottom: 5%;
  border-radius: 15px;
  background-color: var(--background-color2);
  position: relative;
  overflow: hidden;
  height: auto;
  text-align: center;
}

/* Text Styling for the Title and Paragraph */
.projects_me .text {
  margin-bottom: 3rem;
}

.projects_me .text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.projects_me .text p {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-top: 1rem;
  /* Ensure space between h1 and p */
}

/* Project Group */
.projects_me .project-group {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Each Project Item */
.projects_me .project-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  /* Stack image, h2, p vertically on mobile */
  gap: 2rem;
}

/* Alternating Image Placement */
.projects_me .project-item:nth-child(odd) {
  flex-direction: row;
  /* For odd items: text on the left, image on the right */
}

.projects_me .project-item:nth-child(even) {
  flex-direction: row-reverse;
  /* For even items: image on the left, text on the right */
}

/* Text Item */
.projects_me .text-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.projects_me .text-item h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  text-align: left;
}

.projects_me .text-item p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  text-align: justify;
}

.projects_me .text-item a {
  color: var(--primary-color);
}

/* Image */
.projects_me .project-item-img img {
  max-width: 60%;
  border-radius: 15px;
  flex: 1;
}

/* Optional: Add overlay effect for readability */
.projects_me .text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.projects_me .project-item:nth-child(odd) {
  flex-direction: row;
}

.projects_me .project-item:nth-child(even) {
  flex-direction: row-reverse;
}


/* Overlay Effect for Text Readability */
.projects_me .text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

/* Hide projects by default */
/* .projects-hidden {
  display: none;
} */

/* .toggle-project {
  display: none !important;
  justify-content: center;
  align-items: center;
  width: 100%;
} */


/* Toggle Button Style */
#toggle-projects {
  display: none;
  border: none;
  padding: 1rem 2rem;
  margin: 30px auto;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#toggle-projects:hover {
  background-color: #2980b9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Slightly darker blue */
}

.center-about {
  text-align: center;
  max-width: 800px;
  margin: 0 auto; /* Center horizontally */
}

.center-about h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.center-about p {
  line-height: 1.6;
  font-size: 1.1rem;
}

.skills h2 {
    margin-top: -10px;
}

.skills-grid, .tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  justify-content: center;
}

.skill-item {
  text-align: center;
  width: 120px;
}

.skill-item i {
  font-size: 2rem;
  color: #3498db;
}

.tools {
    height: auto;
    margin-bottom: 10%;
}

.tools h2 {
    margin-top: 50px;
}

.tools-row img,
.tools-row i,
.tools-row span.iconify {
  height: 100px;
  margin: 0 15px;
  transition: transform 0.3s ease;
}

.tools-row img,
.tools-row i,
.tools-row span.iconify {
  transition: transform 0.3s ease;
}

.tools-row img:hover,
.tools-row i:hover,
.tools-row span.iconify:hover {
  transform: scale(1.1);
}

.tools-row span.iconify {
  display: inline-block;
}



/* Footer General Styling */
footer {
  background-color: #333;
  color: #fff;
  padding: 5rem 5% 1rem;
  font-size: 1rem;
  /* margin-bottom: -2rem; */
}

/* Footer Grid Layout */
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  /* height: 680px; */
}

.footer-left,
.footer-right {
  padding: 1rem;
}

.footer-left {
  height: 300px;
}

/* Left Section - Contacts and Social Icons */
.footer-left h2 {
  margin-bottom: 1rem;
  color: var(--secondary-color, #00aced);
  text-align: left;
}

.footer-left p {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.footer-left p i {
  margin-bottom: 0.1rem;
  margin-right: 15px;
}

.footer-left ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-left ul li a:hover {
  color: var(--secondary-color, #00aced);
}

/* Social Icons in Footer Left */
.footer-left .social-icons {
  display: flex;
  gap: 1rem;
}

.footer-left .social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-left .social-icons a:hover {
  color: var(--secondary-color, #00aced);
}

/* Right Section - Contact Form */
.footer-right {
  height: 400px;
}

.footer-right h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color, #00aced);
}

.footer-right input,
.footer-right textarea {
  display: block;
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-right textarea {
  resize: none;
}

.footer-right button {
  background-color: var(--primary-color, #2980b9);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-right button:hover {
  background-color: #1c6fa3;
}

/* Footer Bottom Section */
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #555;
  margin-top: 2rem;
}

.footer-bottom p {
  color: #bbb;
  font-size: 0.9rem;
}



@media screen and (max-width: 1440px) {
  .hero {
    height: 600px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  footer {
    padding: 3rem 5%;
  }
}


/* For smaller screen sizes */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }

  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
  }

  .logo {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .nav-active {
    display: block;
    position: fixed; /* Use fixed position to make it fill the screen */
    top: 0; /* Align to the top of the screen */
    left: 0; /* Align to the left of the screen */
    width: 100%; /* Full width */
    height: 100vh; /* Full height (viewport height) */
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    text-align: center;
    border-radius: 0; /* Remove rounded corners */
    z-index: 999; /* Ensure it's above other elements */
  }

  .nav-links li {
    margin-left: 0;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(50px);
    animation: navLinkFade 0.05s forwards;
  }

  .nav-links li a {
    color: #000000;
  }

  .nav-links li:nth-child(1) {
    animation-delay: 0.01s;
  }

  .nav-links li:nth-child(2) {
    animation-delay: 0.02s;
  }

  .nav-links li:nth-child(3) {
    animation-delay: 0.03s;
  }

  .burger div {
    background-color: var(--text-color);
    width: 25px;
    height: 3px;
    margin: 5px;
    transition: all 0.3s ease;
  }

  .burger.toggle div:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 5px;
  }

  .burger.toggle div:nth-child(2) {
    opacity: 0;
  }

  .burger.toggle div:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -5px;
  }

  

  main {
    margin-top: 2.5%;
    padding: 2rem 5%;
    margin-bottom: 0;
  }

  /* section {
    margin: 20% 0 20%;
  } */


  #home {
    /* padding: 2rem 0 2rem; */
    height: auto;
  }

  .hero {
    flex-direction: column;

    height: auto;
    /* margin: 0; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
    padding: 10rem 20vh 20rem;
  }

  .hero .image img {
    max-width: 80%;
    height: 80%;
    margin-top: 10%;
  }

  .hero .text {
    padding-left: 0;
    text-align: center;
  }

  .hero .text h1 {
    font-size: 2rem;
  }

  .hero .text h2 {
    font-size: 1.5rem;
  }

  .hero .text p {
    font-size: 1rem;
  }


  #about {
    position: relative;
    overflow: visible;
    z-index: 5;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }

  .about_me {
    position: block !important;
    z-index: 5;
    flex-direction: column;
    height: auto !important;
    padding: 0 5%;
  }

  .about_me>div {
    height: auto;
    padding: 0;
  }

  .about_me h1 {
    text-align: center;
    margin-bottom: 20px;
  }

  .about_me p {
    font-size: 16px;
  }

  .tab-container {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 15;
    /* background-color: white; */
    height: auto !important;
    padding: 0;
    margin: 2rem 0 0;
  }

  .tool-item {
    flex: 1 1 50%;
  }

  .tool-item img {
    margin-left: 90px;
    margin-bottom: 5px;
    width: 50%;
  }

  .tab-titles {
    display: flex;
    gap: 60px;
    /* Adjust spacing as needed */
    margin-left: 30px;
  }

  .tab-links {
    font-size: 16px;
    color: var(--primary-color);
    margin-left: -30px;
  }

  .tab-contents {
    display: none !important;
    position: relative !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* min-height: 100vh !important; */
    /* background: white !important; */
    /* padding: 1rem; */
    box-sizing: border-box;
    overflow-y: auto;
    /* height: auto !important; */
    text-align: center;
    margin: 0;
  }

  .tab-contents.active-tab {
    display: block !important;
    position: relative;
    height: auto !important;
    z-index: 10;
    /* min-height: 100vh !important; */
    /* padding: 1rem; */
    box-sizing: border-box;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
  }

  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .skill-item i {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .tool-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .tool-item img {
    height: 30px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }
  

  /* Services */
  .services_me {
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
    padding: 10rem 0;
  }

  .services_me .text h1 {
    margin-top: -20%;
    font-size: 2.5rem;
  }

  .services_me .text h1 {
    font-size: 2rem;
  }

  .services_me .text p {
    font-size: 1rem;
  }

  /* .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  } */



  .projects_me {
    margin-top: 10%;
    flex-direction: column;
    height: auto;
    padding: 2rem 5%;
  }

  .projects_me .image {
    max-width: 100%;
    height: 250px;
    margin-bottom: 2rem;
  }

  .projects_me .text {
    padding-left: 0;
    text-align: center;
  }

  .projects_me .text h1 {
    font-size: 2rem;
  }

  .projects_me .text h2 {
    font-size: 1.5rem;
  }

  .projects_me .text p {
    font-size: 1rem;
  }

  .projects_me .project-group {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .projects_me .project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row; /* Image left, text right */
    gap: 2rem;
    padding: 0 0 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .projects_me .project-item-img {
    flex: 1;
    max-width: 50%;
  }

  .projects_me .project-item-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .projects_me .text-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Align text to the left for better readability */
  }

  .projects_me .text-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .projects_me .text-item p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
  }

  /* Alternate the image placement */
  .projects_me .project-item:nth-child(even) {
    flex-direction: row-reverse; /* Image on the right for even items */
  }





  footer {
    margin: 0;
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left {
    margin-bottom: -2rem;
  }

  .footer-right form input,
  .footer-right form textarea {
    text-align: left;
  }

  .footer-left h2 {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }


  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media screen and (max-width: 768px) {
/* @media screen and (max-width: 860px) { */
  .logo {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .small-text {
    font-size: 12px;
    padding: 0 2px 0 10px;
  }

  .nav-active {
    display: block;
    position: fixed; /* Use fixed position to make it fill the screen */
    top: 0; /* Align to the top of the screen */
    left: 0; /* Align to the left of the screen */
    width: 100%; /* Full width */
    height: 100vh; /* Full height (viewport height) */
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    text-align: center;
    border-radius: 0; /* Remove rounded corners */
    z-index: 999; /* Ensure it's above other elements */
  }

  .nav-links li {
    margin-left: 0;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(50px);
    animation: navLinkFade 0.05s forwards;
  }

  .nav-links li a {
    color: #000000;
  }

  .nav-links li:nth-child(1) {
    animation-delay: 0.01s;
  }

  .nav-links li:nth-child(2) {
    animation-delay: 0.02s;
  }

  .nav-links li:nth-child(3) {
    animation-delay: 0.03s;
  }

  .burger div {
    background-color: var(--text-color);
    width: 25px;
    height: 3px;
    margin: 5px;
    transition: all 0.3s ease;
  }

  .burger.toggle div:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 5px;
  }

  .burger.toggle div:nth-child(2) {
    opacity: 0;
  }

  .burger.toggle div:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -5px;
  }


  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }

  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
  }

  main {
    margin-top: 2.5%;
    padding: 2rem 5%;
    margin-bottom: 0;
  }

  section {
    margin-top: 14%;
    margin-bottom: 10px;
  }


  #home {
    padding: 2rem 0 2rem;
    height: auto;
  }

  .hero {
    flex-direction: column;
    height: auto;
    margin: 0;
    margin-top: 30%;
    margin-bottom: 50%;
  }

  .hero .image img {
    max-width: 80%;
    height: 80%;
    margin-top: 10%;
  }

  .hero .text {
    padding-left: 0;
    text-align: center;
  }

  .hero .text h1 {
    font-size: 2rem;
  }

  .hero .text h2 {
    font-size: 1.5rem;
  }

  .hero .text p {
    font-size: 1rem;
  }


  #about {
    position: relative;
    overflow: visible;
    z-index: 5;

    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }

  .about_me {
    position: block !important;
    z-index: 5;
    flex-direction: column;
    margin-top: 5%;
    margin-bottom: 15%;
    height: auto !important;
    padding: 1rem 5% 0;
  }

  .about_me>div {
    height: auto;
    padding: 0;
  }

  .about_me h2 {
    margin-top: 5%;
  }

  .about_me h1 {
    text-align: center;
    margin-top: -20%;
    margin-bottom: 20px;
  }

  .about_me p {
    font-size: 16px;
  }

  .tab-container {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 15;
    /* background-color: white; */
    height: auto !important;
    padding: 0;
    margin: 2rem 0 0;
  }

  .tool-item {
    flex: 1 50%;
  }

  .tool-item img {
    margin-left: 25px;
    margin-bottom: 20px;
    width: 70%;
  }

  .tab-titles {
    display: flex;
    gap: 60px;
    /* Adjust spacing as needed */
    margin-left: 30px;
  }

  .tab-links {
    font-size: 16px;
    color: var(--primary-color);
    margin-left: -30px;
  }

  .tab-contents {
    display: none !important;
    position: relative !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* min-height: 100vh !important; */
    /* background: white !important; */
    /* padding: 1rem; */
    box-sizing: border-box;
    overflow-y: auto;
    /* height: auto !important; */
    text-align: center;
    margin: 0;
  }

  .tab-contents.active-tab {
    display: block !important;
    position: relative;
    height: auto !important;
    z-index: 10;
    /* min-height: 100vh !important; */
    /* padding: 1rem; */
    box-sizing: border-box;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
  }

  .about-hidden {
    display: none;
  }

  .toogle-about {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #toggle-aboutme {
    display: flex;
    width: auto;
    padding: 1rem 2rem;
  }

  #toggle-aboutme:hover {
    background-color: #2980b9;
    /* Slightly darker blue */
  }

  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .skill-item i {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .tool-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .tool-item img {
    height: 30px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }



  /* Services */
  .services_me .text h1 {
    margin-top: -20%;
    font-size: 2.5rem;
  }

  .services_me .text h1 {
    font-size: 2rem;
  }

  .services_me .text p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-hidden {
    display: none;
  }

  #toggle-services {
    display: block;
    width: auto;
    padding: 1rem 2rem;
  }

  #toggle-services:hover {
    background-color: #2980b9;
    -webkit-tap-highlight-color: transparent;
  }



  /* Projects Section */
  .projects_me {
    margin-top: 20%;
    flex-direction: column;
    height: auto;
    padding: 2rem 5%;
  }

  .projects_me .image {
    max-width: 100%;
    height: 250px;
    margin-bottom: 2rem;
  }

  .projects_me .text {
    padding-left: 0;
    text-align: center;
  }

  .projects_me .text h1 {
    font-size: 2rem;
  }

  .projects_me .text p {
    font-size: 1rem;
  }

  /* Project Item Layout (Mobile: Uniform stacking) */
  .projects_me .project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ensure text within the project item is centered */
    gap: 2rem;
    /* Space between the image, h2, and p */
  }

  /* Image Styling */
  .projects_me .project-item-img img {
    width: 80%;
    max-width: 350px;
    margin-bottom: 1rem;
  }

  /* Center the h2 */
  .projects_me .project-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    /* Center the h2 */
    width: 100%;
    /* Make sure h2 takes up full width to allow centering */
  }

  /* Text Styling for p */
  .projects_me .project-item p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 0.5rem;
  }

  /* Remove alternating behavior for mobile */
  .projects_me .project-item:nth-child(odd),
  .projects_me .project-item:nth-child(even) {
    flex-direction: column;
  }

  .projects-hidden {
    display: none !important;
  }
  
  .toggle-project {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  /* Make the button visible in mobile */
  #toggle-projects {
    display: block;
    padding: 1rem 2rem;
    margin: 30px auto;
    cursor: pointer;
  }

  #toggle-projects:hover {
    background-color: #2980b9;
  }



  /* Footer */
  footer {
    margin: 0;
    padding: 1rem;
    height: 100vh;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left p {
    margin: 15px;
  }

  .footer-left {
    margin-bottom: -20%;
    margin-top: 20%;
  }

  .footer-right {
    margin-bottom: -10%;
  }

  .footer-right form input,
  .footer-right form textarea {
    text-align: left;
  }

  .footer-left h2 {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }


  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media screen and (max-width: 480px) {
  #about {
    padding: 3rem 3%;
    height: 760px;
    overflow: hidden;
  }
}

/* About - Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}