* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  background-image: url(https://images.unsplash.com/photo-1545486332-9e0999c535b2?q=80&w=1887&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
  background-position: center;
  background-size: cover;
}

/* --- Premium Design CSS --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
li,
a {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: "Monaco", monospace, "Courier New", Courier, monospace; /* Coding type font */
  /* background: linear-gradient(45deg, #1c1c1c, #2a2a2a, #1c1c1c); */
  background-size: 100% 100%;
  animation: gradientAnimation 10s ease infinite;
  color: #f0f0f0;
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  padding: 40px;
}
/* --- Header Styles --- */
header {
  padding: 30px 0; /* Adjusted padding */
  display: flex;
  align-items: center;
  position: fixed; /* Fixed header for better UX */
  top: 0;
  left: 0;
  right: 0;
  /* background-color: rgba(28, 28, 28, 0.95); */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  justify-content: space-evenly;
  position: sticky; top: 0;
}
.logo {
  font-size: 3vmax;
  font-weight: 800;
  color: #00bfff; /* Vibrant accent color */
}
nav ul {
  display: flex;
  align-items: center; /* Vertically align items in the nav */
}
nav ul li {
  margin-left: 30px; /* Adjusted margin */
  position: relative; /* For dropdown positioning */
}
nav a {
  color: #ffffff;
  font-size: 1.2vmax;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block; /* Make links block for better click area */
  padding: 8px 0; /* Add some vertical padding */
  transition-delay: 0.1s;
}
nav a:hover {
  color: #ddff00;
}
.dropdown-content {
  display: none;
  position: absolute;
  /* background-color: #333; */
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 100%; /* Position below the parent */
  left: 0;
  border-radius: 4px;
  transition-delay: 0.1s;
}
.dropdown-content a {
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.1s ease;
}
.dropdown-content a:hover {
  background-color: #555;
  color: #ffaa00;
}
.sections:hover .dropdown-content {
  display: block;
}
.hire-button {
  transition-delay: 0.1s;
  background-color: #488ca2;
  color: #ffffff;
  padding: 12px 24px; /* Adjusted padding */
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
}
.hire-button:hover {
  background-color: #008ec6;
  transform: scale(1.05); /* Added hover animation */
}
/* --- Hero Section Styles --- */
.hero {
  display: flex;
  align-items: center;
  padding: 6vmax 0 7vmax; /* Increased padding for prominence */
  margin: 4vmax 4vmax;
}
.hero-image {
  flex: 1;
  text-align: center;
  transition: transform 0.4s ease-in-out; /* Added transition */
}
.hero-image:hover {
  transform: rotate(5deg); /* Added subtle rotation on hover */
}
.hero-image img {
  width: 30vmax;
  height: 30vmax;
  border-radius: 50%;
  border: 10px solid white;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease-in-out; /* Added transition for smoother hover */
}
.hero-image img:hover {
  transform: scale(1.05); /* Added hover animation */
}
.hero-content {
  flex: 1;
  margin-left: 65px;
  transition-delay: 0.2s;
}
.hero-content h1 {
  transition-delay: 0.1s;
  font-size: 6vmax;
  font-weight: 700;
  color: #fff;
  margin-top: 15%;
  margin-bottom: 10px;
  /* Removed color animation for typing animation */
}
.hero-content p {
  color: #ffffff;
  font-size: 1.1vmax;
  line-height: 1.9;
  margin-bottom: 40px;
  /* Removed slide-in animation */
  overflow: hidden; /* Hide the overflowing text */
  white-space: nowrap; /* Prevent text from wrapping */
  border-right: 0.15em solid #00bfff; /* The typewriter cursor */
  animation: typing 3.5s steps(50, end) forwards,
    blink-caret 0.75s step-end infinite;
  animation-fill-mode: forwards; /* Keep the final state */
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  45% {
    border-color: #fffb00;
  }
}
.hero-buttons a {
  transition-delay: 0.1s;
  display: inline-block;
  margin-right: 20px;
  padding: 16px 32px;
  border-radius: 12px;
  color: #fff;
  font-size: 1vmax;
  background-color: #333;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
.hero-buttons a:hover {
  background-color: #555;
  box-shadow: 0 0px 12px cyan;
  transform: scale(1.05); /* Added hover animation */
}
.typing-animation {
  transition-delay: 0.4s;
  color: #00bfff;
  font-size: 1.4em;
  font-weight: 500;
  overflow: hidden; /* Hide the overflowing text */
  white-space: nowrap; /* Prevent text from wrapping */
  border-right: 0.15em solid #00bfff; /* The typewriter cursor */
  animation: typing 3.5s steps(30, end) forwards,
    blink-caret 0.75s step-end infinite;
  animation-fill-mode: forwards; /* Keep the final state */
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* --- About Section Styles --- */
#about {
  padding: 60px 0;
  text-align: center;
}
#about h2 {
  font-size: 6vmax;
  font-weight: 700;
  color: #fff;
  margin-top: 5%;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 40px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: zoomIn 1s ease-out forwards; /* Added zoom-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: scale(1); /* Reset initial transform */
}
#about h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
#about p {
  transition-delay: 0.2s;
  color: #ffffff;
  font-size: 1.1vmax;
  font-weight: 700;
  line-height: 2;
  margin-left: 70px;
  margin-right: 70px;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
  text-align: left;
  opacity: 1; /* Set opacity to 1 to make text visible */
  transform: translateY(0); /* Reset initial transform */
}

.about-skills {
  text-align: left;
  margin-bottom: 20px;
  transition-delay: 0.5s;
}

.about-skills h3 {
  color: #00bfff;
  font-size: 1.5vmax;
  margin-left: 70px;
  margin-bottom: 15px;
}

.about-skills ul {
  margin-top: 10px;
  margin-left: 70px;
  border: #008ec6;
  border-radius: 50%;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.about-skills ul li {
  background-color: #333;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.95em;
}

/* --- Qualifications Section Styles --- */
#qualifications {
  padding: 120px 0;
  text-align: center;
  /* background-color: #282828; */
}
#qualifications h2 {
  font-size: 5vmax;
  font-weight: 700;
  justify-content: space-evenly;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#qualifications h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-left: 30px;
  margin-right: 30px;
}
.qualification-item {
  transition-delay: 0.2s;
  background-color: #333;
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: slideInBottom 0.8s ease-out forwards; /* Added slide-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
.qualification-item:hover {
  transform: scale(1.1); /* Added hover animation */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Added shadow on hover */
}
.qualification-item h3 {
  font-size: 1.5vmax;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
}
.qualification-item h4 {
  color: #00bfff;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1vmax;
}
.qualification-item p {
  color: #e29b00;
  line-height: 1.8;
  font-size: 1vmax;
  font-weight: 600;
}
/* --- Experience Section Styles --- */
#experience {
  padding: 10vmax 0;
  text-align: center;
  /* background-color: #282828; */
}
#experience h2 {
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#experience h2:hover {
  color: #ffc400;
  transform: scale(1.05); /* Added hover animation */
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-left: 40px;
  margin-right: 40px;
  border: 3px solid white;
  border-radius: 20px;
}
.experience-item {
  transition-delay: 0.2s;
  background-color: #333;
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out,
    opacity 0.5s ease-in; /* Added transition for smoother hover and fade in */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
.experience-item.animated {
  opacity: 1; /* Fade in when animated */
}
.experience-item:hover {
  transform: scale(1.02); /* Added hover animation */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Added shadow on hover */
}
.experience-item h3 {
  font-size: 2vmax;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}
.experience-item h4 {
  font-size: 2vmax;
  color: #00bfff;
  font-weight: 500;
  margin-bottom: 15px;
}
.experience-item p {
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 2vmax;
}
.experience-item ul {
  padding-left: 20px;
  color: #ffffff;
  line-height: 1.8;
  font-size: 1vmax;
}
.experience-item ul li {
  list-style-type: disc;
}
.experience-item .duration {
  font-size: 2vmax;
  color: #df9b9b;
  margin-bottom: 10px;
}
/* --- Services Section Styles --- */
#services {
  padding: 120px 0;
  text-align: center;
}
#services h2 {
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#services h2:hover {
  color: cyan;
  transform: scale(1.05); /* Added hover animation */
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  text-align: left;
}
.service-item {
  transition-delay: 0.2s;
  background-color: #333;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  animation: slideInLeft 0.8s ease-out forwards; /* Added slide-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateX(0); /* Reset initial transform */
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
}
.service-item:hover {
  transform: translateY(-8px) scale(1.02); /* Enhanced hover animation */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}
.service-item i {
  font-size: 2.5em;
  color: #00bfff;
  margin-bottom: 20px;
  animation: pulse 2s infinite alternate; /* Added icon animation */
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.service-item h3 {
  font-size: 1.1vmax;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
}
.service-item p {
  color: #ccc;
  line-height: 1.8;
}
/* --- Skills Section Styles --- */
#skills {
  padding: 120px 0;
  text-align: center;
  /* background-color: #282828; */
  margin-left: 25px;
  margin-right: 26px;
}
#skills h2 {
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#skills h2:hover {
  color: rgb(255, 106, 0);
  transform: scale(1.05); /* Added hover animation */
}
.skills-list {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(150px, 1fr)
  ); /* Adjust minmax for desired block width */
  gap: 20px; /* Adjust gap between skill blocks */
  justify-content: center; /* Center the skill blocks */
}
.skill-item {
  transition-delay: 0.1s;
  background-color: #333;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: slideInRight 0.8s ease-out forwards; /* Added slide-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateX(0); /* Reset initial transform */
}
.skill-item:hover {
  transform: scale(1.05); /* Added hover animation */
  box-shadow: 0px 0px 15px cyan; /* Added shadow on hover */
}
.skill-item i {
  font-size: 5vmax;
  color: #00bfff;
  margin-bottom: 10px;
  display: block; /* Center the icon */
  border-radius: 50%;
  border: #00bfff;
}

.skill-item h3 {
  font-size: 1vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0; /* Remove extra margin */
}
/* --- Projects Section Styles --- */
#projects {
  padding: 120px 0;
  text-align: center;
  margin-left: 25px;
  margin-right: 25px;
}

#projects h2 {
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#projects h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
}
.project-item {
  transition-delay: 0.1s;
  background-color: #333;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: slideInUp 0.8s ease-out forwards; /* Added entrance animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
.project-item:hover {
  transform: scale(1.08); /* Enhanced hover animation */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); /* Enhanced shadow on hover */
}
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.project-item img {
  width: 100%;
  justify-content: center;
  display: block;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Added transition for smoother hover */
}
.project-item img:hover {
  opacity: 0.9;
  transform: scale(1.05); /* Added image hover animation */
}
.project-info {
  padding: 30px;
}
.project-info h3 {
  font-size: 1.1vmax;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
}
.project-info p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 10px; /* Reduced margin for technologies */
}
.project-info .technologies {
  color: #999;
  font-size: 1vmax;
  margin-bottom: 15px; /* Added margin for technologies */
}
.project-info a {
  color: #00bfff;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
}
.project-info a:hover {
  color: #008ec6;
  transform: translateX(5px); /* Added hover animation */
}
/* --- Currently Learning Section Styles --- */
#learning {
  padding: 120px 0;
  text-align: center;
  /* background-color: #282828; */
  transition-delay: 0.1s;
}
#learning h2 {
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#learning h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
.learning-items {
  margin-top: 5%;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.learning-item {
  transition-delay: 0.1s;
  background-color: #333;
  font-size: 1vmax;
  color: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: zoomIn 0.8s ease-out forwards; /* Added zoom-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: scale(1); /* Reset initial transform */
}
.learning-item:hover {
  transform: scale(1.2); /* Added hover animation */
  box-shadow: 0 0px 12px cyan; /* Added shadow on hover */
}
/* --- Mini-Projects Section Styles --- */
#mini-projects {
  padding: 120px 0;
  text-align: center;
  transition-delay: 0.1s;
}
#mini-projects h2 {
  transition-delay: 0.1s;
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#mini-projects h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
.mini-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-left: 35px;
  margin-right: 35px;
}
.mini-project-item {
  transition-delay: 0.1s;
  background-color: #333;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: slideInLeft 0.8s ease-out forwards; /* Added slide-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateX(0); /* Reset initial transform */
}
.mini-project-item:hover {
  transition-delay: 0.2s;
  transform: rotate(-3deg) scale(1.05); /* Added rotation and scale on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Added shadow on hover */
}
.mini-project-item h3 {
  font-size: 2vmax;
  font-weight: 600;
  color: #f7ff1c;
  margin-bottom: 15px;
}
.mini-project-item p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 20px;
}
.mini-project-item a {
  display: inline-block;
  background-color: #00bfff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
}
.mini-project-item a:hover {
  background-color: #008ec6;
  transform: scale(1.08); /* Added hover animation */
}
/* --- Hobbies & Interests Section Styles --- */
#hobbies {
  padding: 120px 0;
  text-align: center;
  /* background-color: #282828; */
  transition-delay: 0.1s;
}
#hobbies h2 {
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#hobbies h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
.hobbies-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.hobby-item {
  transition-delay: 0.1s;
  background-color: #333;
  justify-content: space-evenly;
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 1vmax;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: zoomIn 0.7s ease-out forwards; /* Added zoom-in animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: scale(1); /* Reset initial transform */
}
.hobby-item:hover {
  transform: scale(1.1); /* Added hover animation */
  box-shadow: 0 0px 12px cyan; /* Added shadow on hover */
}
/* --- Resume Section Styles --- */
#resume {
  padding: 120px 0;
  text-align: center;
  transition-delay: 0.1s;
}
#resume h2 {
  transition-delay: 0.1s;
  font-size: 5vmax;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#resume h2:hover {
  color: #19c5ff;
  transform: scale(1.05); /* Added hover animation */
}
.resume-download-button {
  background-color: hsl(36, 97%, 46%);
  color: #000000;
  padding: 20px 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 2vmax;
  font-weight: 600;
  border: 3px solid rgb(254, 254, 254);
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: pulse 1.5s ease-in-out infinite alternate; /* Added pulse animation */
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
.resume-download-button:hover {
  background-color: #8ce5f5;
  transform: scale(2.08); /* Added hover animation */
  box-shadow: 0 6px 12px rgba(76, 75, 75, 0.4); /* Added shadow on hover */
}
/* --- Contact Section Styles --- */
#contact {
  padding: 120px 0;
  text-align: center;
  /* background-color: #282828; */
}
#contact h2 {
  margin-top: 50px;
  font-size: 5vmax;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
#contact h2:hover {
  color: #00bfff;
  transform: scale(1.05); /* Added hover animation */
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.form-group {
  margin-bottom: 30px;
}
.form-group label {
  display: block;
  color: #ccc;
  font-size: 2vmax;
  margin-bottom: 10px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 18px;
  border: 3px solid #555;
  /* background-color: #333; */
  color: #f0f0f0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.3s ease-in-out; /* Added transition for smoother focus */
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: #00bfff; /* Added focus effect */
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.5); /* Added focus shadow */
}
.form-group textarea {
  resize: vertical;
}
.submit-button {
  background-color: #7fc3da;
  color: #000000;
  padding: 16px 32px;
  border-radius: 30%;
  cursor: pointer;
  font-size: 2vmax;
  font-weight: 600;
  border: 5px solid cyan;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease-in-out; /* Added transition for smoother hover */
  animation: pulse 1.5s ease-in-out infinite alternate; /* Added pulse animation */
}
.submit-button:hover {
  /* background-color: #262626; */
  transform: scale(1.08); /* Added hover animation */
  box-shadow: 0px 0px 15px cyan inset; /* Added shadow on hover */
}
.contact-info {
  margin-top: 50px;
  text-align: left; /* Align "Or reach me directly" to the left */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
.contact-info h3 {
  color: #9fff0f;
  font-size: 1.5vmax;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  margin-left: 30%;
}
.contact-info p {
  margin-left: 29%;
  color: #ffffff;
  font-size: 2vmax;
  margin-bottom: 15px;
  transition: transform 0.3s ease-in-out; /* Added transition for smoother hover */
}
.contact-info p i {
  margin-right: 10px;
  color: #00bfff;
}
.contact-info p a {
  color: #00bfff;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
}
.contact-info p a:hover {
  color: #008ec6;
  transform: scale(1.05); /* Added hover animation */
}
/* --- Footer Styles --- */
footer {
  /* background-color: #333; */
  color: #ffb8b8;
  text-align: center;
  padding: 40px 0;
  font-size: 1vmax;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transition for smoother hover */
  animation: fadeInUp 1s ease-out forwards; /* Added fade-in-up animation */
  opacity: 1; /* Set initial opacity to 1 for visibility */
  transform: translateY(0); /* Reset initial transform */
}
footer a:hover {
  color: #e39700;
  transform: scale(1.05); /* Added hover animation */
}

/* --- Responsive Design --- */
/* For tablets (up to 960px) */
@media (max-width: 960px) {
  .container {
    padding: 30px;
  }
  header {
    padding: 20px 0;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
  }
  nav ul li {
    margin-left: 0;
    margin-bottom: 15px;
  }
  nav ul li.sections {
    margin-bottom: 0; /* Adjust dropdown positioning */
  }
  .dropdown-content {
    position: static;
    display: none; /* Initially hide dropdown on smaller screens */
    box-shadow: none;
    /* background-color: #444; */
    border-radius: 18px;
    min-width: auto;
  }
  .sections:hover .dropdown-content {
    display: block;
  }
  .dropdown-content a {
    padding-left: 30px;
  }
  .hero {
    padding: 150px 0 100px;
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-bottom: 30px;
  }
  .hero-content {
    margin-left: 0;
  }
  .hero-content h1 {
    font-size: 1vmax;
  }
  .hero-content p {
    font-size: 2vmax;
  }
  .hero-buttons a {
    padding: 14px 28px;
    margin: 0 10px 20px 0;
  }
  .qualifications-grid,
  .experience-grid,
  .services-grid,
  .skills-list,
  .projects-grid,
  .mini-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  #about p {
    text-align: left;
    align-items: center;
    justify-content: center;
  }
  .contact-form {
    text-align: center;
  }
}

/* For mobile devices (up to 600px) */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    position: sticky; top: 0;
  }
  nav ul {
    margin-top: 5%;
    position: sticky; top: 0;
  }
  nav ul li {
    margin-bottom: 10px;
  }
  .hero {
    padding: 120px 0 80px;
  }
  .hero-image img {
    width: 200px;
    height: 200px;
  }
  .hero-content h1 {
    font-size: 4vmax;
  }
  .hero-content p {
    font-size: 2vmax;
    animation: none; /* Disable typing animation on very small screens if needed */
    white-space: normal;
    overflow: visible;
    border-right: none;
  }
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  .hero-buttons a {
    font-size: 2vmax;
    padding: 10px 20px;
    margin-right: 5px;
    margin-bottom: 15px;
  }
  #about h2,
  #qualifications h2,
  #experience h2,
  #services h2,
  #skills h2,
  #projects h2,
  #mini-projects h2,
  #learning h2,
  #hobbies h2,
  #resume h2,
  #contact h2 {
    font-size: 3vmax;
  }
  .qualification-item h3 {
    font-size: 2vmax;
  }
  .experience-item h3 {
    font-size: 1vmax;
    justify-content: center;
  }
  .service-item h3 {
    font-size: 1vmax;
  }
  .skill-item h3 {
    font-size: 2vmax;
  }
  .project-info h3 {
    font-size: 2vmax;

  }
  .mini-project-item h3 {
    font-size: 2vmax;
  }
  .learning-items {
    gap: 25px;
    justify-content: center;
  }
  .learning-item {
    padding: 10px 15px;
    font-size: 2vmax;
    text-align: center;
  }
  .hobbies-list {
    gap: 15px;
  }
  .hobby-item {
    padding: 15px 15px;
    font-size: 2vmax;
  }
  .contact-info {
    text-align: center;
  }
  .contact-info h3 {
    font-size: 1vmax;
    text-align: center;
  }
  .contact-info p {
    font-size: 1vmax;
  }
  .contact-form {
    padding: 0 10px;
  }
  .form-group label {
    font-size: 2vmax;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    padding: 14px;
    font-size: 2vmax;
    margin-left: 20px;
    margin-right: 20px;
  }
  .submit-button {
    justify-content: center;
    align-items: center;
    font-size: 2vmax;
    padding: 12px 24px;
  }
}
