/* Base Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fefefe;
  display: flex;
  flex-direction: column; /* Allows vertical alignment with the navbar */
  align-items: center;
  
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 100px;
  background-color: #fff;
  border-bottom: 0px solid #ddd;
  position: fixed; /* Make the navbar stay at the top */
  top: 0;
  left: -2;
  width: 95%;
  z-index: 1000;
}

.logo a {
  text-decoration: none;
  color: #000;
  font-size: 2.0em;
  font-weight: bold;
}

.menu {
  display: flex;
}

.menu a {
  text-decoration: none;
  color: #000;
  margin: 0 15px;
  font-size: 1.2em;
  position: relative;
}

.menu a:hover {
  color: #4c8d72; /* Change color on hover */
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #000000; /* Underline color */
  left: 0;
  bottom: -2px;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%; /* Expand underline on hover */
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centers the content vertically */
  height: calc(119vh - 80px); /* Adjust height to fit below navbar */
  margin-top: 0;
}

/* Add hover effect styles for the profile image */
.profile-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease; /* Initial transition for hover */
}

/* Hover effect enabled after animation */
.profile-img.hover-enabled:hover {
  transform: scale(1.09); /* Scale up the image */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgb(201, 201, 201); /* Glow effect */
}

/* Example of fade-in animation for profile image */
.profile-img {
  animation: fadeIn 1.5s ease-out; /* Image fade-in animation */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro Text Animation */
.intro {
  opacity: 0; /* Initially hidden */
  transform: translateY(20px); /* Slightly below its position */
  animation: textFadeIn 1.5s ease-out forwards; /* Text animation duration synchronized with profile image */
  animation-delay: 0s; /* Same delay as the profile image */
}

@keyframes textFadeIn {
  to {
    opacity: 1;
    transform: translateY(0); /* Restore to original position */
  }
}

/* Intro Text */
.intro p {
  margin: 15px 0 5px;
  font-size: 1.2em;
  color: #333;
}

.intro h1 {
  margin: 0;
  font-size: 2.5em;
  color: #000;
}

.intro h2 {
  margin: 5px 0;
  font-size: 1.5em;
  color: #4b4b4b;
}

/* Buttons */
.buttons {
  margin-top: 30px;
}

.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1em;
  margin: 5px;
  transition: all 0.3s ease;
}

.download {
  border: 1px solid #000;
  color: #000;
  background: transparent;
}

.download:hover {
  background: #000;
  color: #fff;
}

.connect {
  background: #000;
  color: #fff;
}

.connect:hover {
  background: #444;
}

/* Social Media Icons Animation */
.socials {
  margin-top: 40px;
}

.socials a {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.socials img {
  width: 37px;
  height: 37px;
  border-radius: 50%;
}

.socials a:hover {
  transform: scale(1.3); /* Scale-up effect */
  filter: brightness(1.3); /* Slightly brighten the icon */
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu a {
    margin: 10px 0;
  }

  .hero {
    padding: 20px;
    height: auto; /* Allow content to determine height */
  }

  .profile-img {
    width: 120px; /* Reduce size on smaller screens */
    height: 120px;
  }
}



/* Contact Section */
#contact {
  width: 100%;
  padding: 50px 10%;
  display: flex;
  justify-content: center;
  background-color: #f9f9f9;
}

.contact-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  justify-content: space-between;
  gap: 100px;
}

/* Left Section (Text + Social Links) */
.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.contact-left h3 {
  font-size: 1.5em;
  color: #4c8d72;
  margin-bottom: -30px;
}

.contact-left h2 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 20px;
}

.contact-left p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
  max-width: 450px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-item img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
}

.contact-item p {
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.socials-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  text-align: center;
  margin-top: -10px; /* Adjust to move upward */
}

.contact-socials {
  margin-top: 10px; /* Adjust margin as needed */
}

.contact-socials a {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-socials img {
  width: 37px;
  height: 37px;
  border-radius: 55%;
}

.contact-socials a:hover {
  transform: scale(1.3); /* Scale-up effect */
  filter: brightness(1.3); /* Slightly brighten the icon */
}

/* Social Media Icons Animation */
.socials {
  margin-top: 40px;
}

.socials a {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.socials img {
  width: 37px;
  height: 37px;
  border-radius: 50%;
}

.socials a:hover {
  transform: scale(1.3); /* Scale-up effect */
  filter: brightness(1.3); /* Slightly brighten the icon */
}

/* Right Section (Form) */
.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-right form {
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-right .input-group {
  position: relative;
  margin-bottom: 20px;
}

.contact-right input,
.contact-right textarea {
  width: 94%;
  padding: 15px;
  font-size: 1.1em;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-right input:focus,
.contact-right textarea:focus {
  border-color: #4c8d72;
  box-shadow: 0 0 5px rgba(76, 141, 114, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-right textarea {
  height: 150px;
  resize: none;
}

.contact-right label {
  position: absolute;
  top: 5px;
  left: 15px;
  font-size: 0.9em;
  color: #888;
  transition: 0.3s ease;
}

.contact-right input:focus + label,
.contact-right textarea:focus + label {
  top: -10px;
  left: 10px;
  font-size: 0.85em;
  color: #4c8d72;
}

/* Submit Button Styling */
.contact-right button {
  width: 101%;
  padding: 15px;
  font-size: 1.2em;
  background-color: #4c8d72;
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-right button:hover {
  background-color: #3a6c56;
  transform: scale(1.05); /* Slight scaling */
  box-shadow: 0 8px 15px rgba(76, 141, 114, 0.4);
}

.contact-right button img {
  width: 20px;
  margin-left: 5px;
  transition: transform 0.3s ease; /* Icon hover effect */
}

.contact-right button:hover img {
  transform: rotate(20deg); /* Slight rotation effect */
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  #contact {
    padding: 30px 5%;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-left {
    align-items: center;
  }

  .contact-right {
    align-items: center;
  }
}

/*for removal of horizontal slider*/
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  box-sizing: border-box;
}


/* Style for active link */
.menu a.active {
  color: green; /* Highlight color for the active link */
  border-bottom: 2px solid green; /* Underline for active link */
}

/* Smooth scroll for better UX */
html {
  scroll-behavior: smooth;
}


/* About Section Styling */

#about {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column; /* Allows vertical alignment */
  align-items: center;
  transform: scale(0.80); /* Scales the section's content */
  transform-origin: top center; /* Ensures the scaling happens from the top center */
  width: 100%;
  padding: 50px 0; /* Add some padding for spacing */
}

/* Section Styling */
.timeline-section h4 {
  margin: -10px 0;
  font-size: 1.2em;
  color: #666;
  font-weight: 500;
}
 
.timeline-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.timeline-section h1 {
  font-size: 30px;
  margin-bottom: 50px;
  color: #000000;
}

/* Timeline Styling */
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
  width: 80%;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #333;
  transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  margin: 20px 0;
}

.timeline-item.left {
  flex-direction: row-reverse;
}

.timeline-item::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: #000000;
  border: 4px solid #333;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-card {
  background-color: #000000;
  color: #faf9f6;
  padding: 10px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 40%;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  background-color: #faf9f6; /* Changes background to white on hover */
  color: #000000; /* Changes text color to black on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.timeline-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #f1ae30; /* Highlighted orange for titles */
  transition: color 0.3s ease;
}

.timeline-card:hover h2 {
  color: #333; /* Changes title color to dark gray on hover */
}

.timeline-card p {
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.timeline-card:hover p {
  color: #181818; /* Changes paragraph text color to gray on hover */
}

/* Left and Right Alignment */
.timeline-item.left .timeline-card {
  margin-right: auto;
  text-align: right;
}

.timeline-item.right .timeline-card {
  margin-left: auto;
  text-align: left;
}


@media (max-width: 768px) {
  .timeline {
      width: 100%; /* Full width on smaller devices */
  }

  .timeline-card {
      width: 80%; /* Expand cards to 80% for better readability */
  }

  .timeline::before {
      left: 10%; /* Adjust vertical line to the left */
  }
}




/* Skills Section */

#skills {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column; /* Allows vertical alignment */
  align-items: center;
  transform: scale(0.80); /* Scales the section's content */
  transform-origin: top center; /* Ensures the scaling happens from the top center */
  width: 100%;
  padding: 50px 0; /* Add some padding for spacing */
}

#skills {
  padding: 100px 30px; /* Slightly larger padding for the section */
  background-color: #fff;
  text-align: center;
}

.skills-section h4 {
  font-size: 20px; /* Increased font size */
  font-weight: 500;
  color: #666;
  margin-bottom: -30px; /* Adjusted margin for spacing */
}

.skills-section h1 {
  font-size: 42px; /* Larger headline */
  font-weight: 700;
  color: #333;
  margin-bottom: 40px; /* Balanced spacing */
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px; /* Increased gap between skill tags */
}

.skill-tag {
  border: 2px solid #333;
  border-radius: 10px; /* Slightly more rounding */
  padding: 15px 30px; /* Increased padding for larger skill tags */
  font-size: 18px; /* Increased font size */
  font-weight: 300;
  text-transform: uppercase;
  color: #333;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

section{
  overflow: auto;
}


/* certificates.css */


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

.title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  font-weight: bold;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.certificate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.certificate img {
  width: 90%;
  height: auto;
  transition: transform 0.3s ease;
}

.certificate-title {
  font-size: 1em;
  font-weight: no;
  text-align: left;
  margin-top: 13px;
}

.certificate:hover img {
  transform: scale(1.5);
}

.certificates-grid .certificate {
  gap: 20px;
  align-items: flex-start;
}


/* projects.css */

/* style.css */

/* Existing styles for other sections */

/* Projects Section */
#projects {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  padding: 35px 0px;
}

#projects .container {
  max-width: 1400px;
  margin: 0 auto;
}

#projects .title {
  text-align: center;
  margin-bottom: 10px;
}

#projects .title h4 {
  font-size: 0.5em;
  color: #666;
  margin-bottom: -30px;
  font-weight: normal;
}

#projects .title h1 {
  font-size: 1.0em;
  font-weight: 700;
  color: #333;
}

#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

#projects .project-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects .project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#projects .project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#projects .project-content {
  padding: 20px;
  text-align: left;
}

#projects .project-content h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

#projects .view-project-btn {
  display: inline-block;
  background-color: #4c8d72;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

#projects .view-project-btn:hover {
  background-color: #2c5242;
}

/* Style for active link */
.menu a.active {
  color: green; /* Highlight color for the active link */
  border-bottom: 2px solid green; /* Underline for active link */
}


/*Footer*/
.footer-body {
  margin: 0;
  font-family: Poppins, sans-serif;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  color: white;
  padding: 15px 15px; /* Reduced padding */
  position: relative;
  bottom: 0;
  width: 100%;
  box-sizing: border-box; /* Prevent overflow */
}

.custom-website-btn {
  display: inline-block;
  padding: 5px 15px; /* Reduced padding for a smaller button */
  border: 2px solid rgb(255, 255, 255);
  border-radius: 20px; /* Slightly smaller border-radius */
  text-decoration: none;
  color: rgb(255, 255, 255);
  background-color: transparent;
  font-weight: bold;
  font-size: 12px; /* Smaller font size */
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap; /* Prevent wrapping */
}

.custom-website-btn:hover {
  background-color: rgb(255, 255, 255);
  color: black;
}

.developer-info {
  font-size: 15px; /* Reduced font size */
  white-space: nowrap; /* Prevent wrapping */
}

.developer-info .developer-name {
  font-weight: bold;
  color: #ffa500;
}

footer {
  overflow: hidden; /* Prevent overflow */
}



/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 70px; /* Adjust to place it just above the footer */
  right: 20px; /* Distance from the right edge */
  background-color: #fff; /* White background */
  border: 2px solid #000; /* Black border */
  border-radius: 50%; /* Circular shape */
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px; /* Adjust arrow size */
  color: #000; /* Arrow color */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s, opacity 0.0s;
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Initially hidden */
}

/* Make button visible when scrolled */
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover Effect */
.back-to-top:hover {
  background-color: #000;
  color: #fff;
  transform: scale(1.1);
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 20px;
  background-color: #000; /* Black background */
  color: #fff; /* White text */
}

footer .developer-name {
  color: #f1c40f; /* Gold-like color */
  font-weight: bold;
}











