/* General Styles - Keep these unchanged for now*/
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1a2e;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.page-transition {
    position: relative;
    overflow: hidden;
}
.page-transition::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1); /* Modified timing function for smoother transition */
}
.page-transition.page-transition-active::before {
    transform: translateX(0);
}

main {
  overflow-y: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main section {
  display: none;
  padding: 80px 20px;
  /* Add padding to top and bottom */
  align-items: center;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Added transitions */
    transform: translateY(20px); /* Initial Y-offset */
}

main section.current {
  display: flex;
    opacity: 1; /* Show with fade-in */
    transform: translateY(0); /* Move to original position */
  overflow-y: auto;
}


/* Header & Navigation */
header {
  background-color: #1a1a1a;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added a subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    header:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
    display: inline-block;
  position: relative;
    overflow: hidden;
}
nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #00FF7F;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
nav ul li a:hover::before {
    transform: translateX(0);
}


nav ul li a:hover {
  color: #00FF7F;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #4568DC, #B06AB3);
  opacity: 0.1;
  z-index: -1;
    animation: gradientBackground 15s ease-in-out infinite alternate;
}

@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero-content-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally in the hero section */
    max-width: 1200px; /* Limit the maximum width of the content container */
     margin: 0 auto;
    padding: 20px;
}

.hero-image-container {
     flex: 0 0 auto; /* Do not grow or shrink the image */
    margin-right: 20px;
    transform: translateX(-20px);
    opacity: 0;
        transition: transform 0.5s ease-out 0.2s, opacity 0.5s ease-out 0.2s;
}
.hero.current .hero-image-container{
    transform: translateX(0);
    opacity: 1;
}

.hero-image {
    max-width: 180px; /* Reduced max width of image*/
    height: auto;
    border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-image:hover {
 transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.hero-content {
    flex: 1; /* Allow content to take available space*/
    text-align: left;/* Align text to the left */
    padding-right: 10px;
  max-width: 600px;
    transform: translateY(20px); /* Initial Y-offset */
    opacity: 0; /* Initial opacity */
    animation: fadeInSlideUp 0.8s ease-out 0.3s forwards;
}
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
    line-height: 1.8;
}

#job-title-container {
  display: block;
  font-size: 1.5em;
  margin-bottom: 10px;
}

#job-title-container {
  display: block;
  font-size: 1.5em;
  margin-bottom: 10px;
    overflow: hidden; /* keeps the animation inside of the container*/
    white-space: nowrap; /* keeps the text in a single line*/
    border-right: 0.1em solid #00FF7F; /* creates the caret*/
}
#job-title.animate-job-title{
  animation: blurInOut 0.5s ease-in-out;
}
@keyframes blurInOut {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}
.hero-button {
  background-color: #00FF7F;
  color: #111;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.hero-button:hover {
  background-color: #00c066;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
  .hero-button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
  padding: 80px 20px;
  position: relative;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.about:hover {
    transform: scale(1.03);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about .container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  padding: 20px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  padding-right: 20px;
    transform: translateX(-20px);
    opacity: 0;
        transition: transform 0.5s ease-out 0.2s, opacity 0.5s ease-out 0.2s;
}
.about.current .about-image {
     transform: translateX(0);
    opacity: 1;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-image img:hover {
  transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.about-text {
  flex: 2;
  padding-left: 20px;
      transform: translateX(20px);
        opacity: 0;
        transition: transform 0.5s ease-out 0.4s, opacity 0.5s ease-out 0.4s;
}
.about.current .about-text{
    transform: translateX(0);
    opacity: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-text p {
  font-size: 1.1rem;
    line-height: 1.7;
}

/* Services Section */
.services {
  padding: 80px 20px;
  background-color: #1a1a1a;
  position: relative;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.services:hover {
    transform: scale(1.03);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-item {
  background-color: #222;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* space between icon and text*/
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  text-align: left;
    transform: translateY(20px);
    opacity: 0;
}

.services.current .service-item {
    animation: fadeInSlideUpItem 0.5s ease-out forwards;
}
@keyframes fadeInSlideUpItem {
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item:hover {
  transform: translateY(-5px) scale(1.03);
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.service-item:active {
  transform: translateY(-2px) scale(1);
}

.service-item .icons {
  font-size: 2.5rem;
  margin-bottom: 0;
  /* remove the margin-bottom of the old icon*/
  flex-shrink: 0;
  /* to make sure icon does not shrink if content is large */
}

.service-item-content {
  flex: 1;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-item p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.arrow-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.arrow-button i {
  font-size: 1.2rem;
}

.service-item:hover .arrow-button {
  background-color: rgba(255, 255, 255, 0.2);
}

.icons {
  font-size: 2.5rem;
  /* Removed here, moved to specific place*/
}

/* Projects Section */
.projects {
  padding: 80px 20px;
  position: relative;
        transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.projects:hover {
    transform: scale(1.03);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.projects .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-item {
  background-color: #222;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
    transform: translateY(20px);
    opacity: 0;
}
.projects.current .project-item {
      animation: fadeInSlideUpItem 0.5s ease-out forwards;
}

.project-item:hover {
  transform: translateY(-5px) scale(1.03);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.project-item:active {
  transform: translateY(-2px) scale(1);
}

.project-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-item img:hover {
  transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.project-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-item p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.project-button {
  background-color: #00FF7F;
  color: #111;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.project-button:hover {
  background-color: #00c066;
    transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
.project-button:active {
  transform: scale(0.95);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  background-color: #1a1a1a;
  position: relative;
      transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.contact:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info {
  font-size: 1.1rem;
  margin-top: 20px;
}

.contact-info a {
  color: #00FF7F;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  /* Aligns icon with the text /
  gap: 5px; /* Add a small space between icon and text */
}

.contact-info a:hover {
  color: #00c066;
    transform: translateY(-2px);
}
  .contact-info a i {
        font-size: 1.2em;
    }

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #1a1a1a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    margin-top: 10px;
    flex-direction: column;
  }

  nav ul li {
    margin: 5px 0;
  }

  .about .container {
    flex-direction: column;
  }

  .about-image {
    padding-bottom: 20px;
  }
    .about-text{
         padding-left: 0px;
    text-align: center;
    }
    .hero-content-container {
       flex-direction: column;
    }
    .hero-image-container {
        margin-right: 0; /* Remove margin on mobile view */
       transform: translateX(0); /* Remove margin on mobile view*/
       margin-bottom: 15px; /* Add margin bottom on mobile view */
        opacity: 1;
        align-self: center; /* Center image on mobile view */
    }
    .hero-content{
        text-align: center;
    padding-right: 0; /* Remove right padding on mobile view */
        margin-top: 0px;
    }

}