body {
  font-family: "Arial", "Helvetica", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffc67d;
}

header {
  background: #333;
  color: #fff;
  padding: 1rem;
  text-align: center;
  animation: fadeInDown 1s ease-out;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* for my Scroll Animation Styles  for the class="section-animate"*/
.section-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

header p {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 300;
  color: #ddd;
}

header p.tagline {
  font-size: 0.8rem;
  color: #ddd;
  margin: 0.5rem 0;
  text-align: center;
}

header p.tagline i {
  font-style: italic;
  text-transform: capitalize;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #4caf50;
}

nav a.active {
  color: #4caf50;
  text-decoration: underline;
  font-weight: bold;
}
main {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.profile-pic {
  width: 30%;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  margin: 1rem 0;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.1);
}

@media (min-width: 1200px) {
  .profile-pic {
    max-width: 300px;
  }
}


@media (max-width: 992px) {
  .profile-pic {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .profile-pic {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .profile-pic {
    width: 70%;
  }
}

.lobster-font {
  font-family: "Lobster", cursive;
  font-size: 1.5rem;
  color: #333;
}

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  padding: 2rem;
  animation: fadeIn 1s ease-out;
}

#about .profile-pic {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

#about .profile-pic:hover {
  transform: scale(1.1);
  cursor: pointer;
}

#about h2 {
  font-size: 2rem;
  color: #333;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

#about p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  line-height: 1.5;
  margin-top: 0.5rem;
  text-align: justify;
  word-spacing: 0.05rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  #about p {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px #fff;
  }
  50% {
    text-shadow: 0 0 15px #ff0;
  }
  100% {
    text-shadow: 0 0 5px #fff;
  }
}

/* Text styles for sections */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  color: #333;
  animation: textGlow 3s ease-in-out infinite;
  text-align: center;
}

section {
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#contact {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

#contact h2 {
  font-size: 2rem;
  color: #333;
}

#contact p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.skills-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.skills-category {
  flex: 1;
  min-height: 250px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.skills-category ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.skills-category li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.skills-category li::before {
  content: "✦";
  color: #4caf50;
  margin-right: 5px;
  font-size: 1.5rem;
}

.skills-category:hover {
  box-shadow: 0 0 20px #4caf50;
  transform: translateY(-3px);
  transition: box-shadow 0.2s ease;
}

@media (min-width: 769px) {
  .skills-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    gap: 10px;
  }

  .skills-category {
    margin-bottom: 20px;
  }

  .skills-category li::before {
    font-size: 1.2rem;
  }
}

#projects {
  background: #fff;
  padding: 2rem;
  text-align: center;
}

#projects h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.project-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px;
  padding: 15px;
  max-width: 300px;
  flex: 1 1 calc(33.333% - 20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.project-card img {
  max-width: 100%;
  border-radius: 5px;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #4caf50;
}

.read-more {
  display: none;
}

.back-to-top {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}


footer {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .project-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .project-card {
    flex: 1 1 calc(100% - 20px);
  }
}

.read-more-button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.read-more-button:hover {
  background-color: #4caf50;
}

.read-more {
  display: none;
  margin-top: 10px;
}

.read-more ul {
  list-style-type: none;
  padding: 0;
}

.read-more li {
  padding-left: 20px;
  margin-bottom: 10px;
  position: relative;
}

.read-more li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-size: 1em;
}

.back-to-top {
  display: none;
  text-align: center;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: black;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  width: fit-content;
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background-color: #4caf50;
}

@media (max-width: 768px) {
  .back-to-top {
    display: block;
  }
}

section {
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out forwards;
  text-align: center;
}

.blog-section,
.github-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: #fff;
  margin-top: auto;
}
