html {
  scroll-behavior: smooth;
}
/* General Styles */
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* Navbar */
nav {
  background: rgba(22, 27, 34, 0.8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #21262d;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #58a6ff, #a259ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.navbar li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar li a:hover {
  color: #fff;
  border-color: rgba(88, 166, 255, 0.5);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(88, 166, 255, 0.2),
    0 4px 15px rgba(162, 89, 255, 0.1);
  background: rgba(88, 166, 255, 0.1);
}
.navbar li a:active {
  transform: translateY(0) scale(1.02);
}

/* Intro Section */
.intro-section {
  text-align: left;
  padding: 4rem 0 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border-image: linear-gradient(135deg, #58a6ff, #a259ff) 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.intro-text {
  max-width: 500px;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.wave {
  font-size: 2.5rem;
  animation: wave-animation 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.intro-section h1 {
  font-size: 2.5rem;
  margin: 0;
}

.intro-section h1 .name-gradient {
  background: linear-gradient(90deg, #82aaff, #c77dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #8b949e;
}
.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}
.social-links a {
  color: #c9d1d9;
  background: #21262d;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #30363d;
}
.social-links a:hover {
  background-color: #30363d;
  border-color: #8b949e;
}

.resume-button {
  background: linear-gradient(90deg, #58a6ff, #a259ff) !important;
  color: white !important;
  border: none !important;
}

.resume-button:hover {
  filter: brightness(1.2);
}

/* Coding Pictures */
.coding-pics {
  margin: 2rem 0 3rem 0;
}
.coding-pics h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.pics-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pics-grid img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 40, 60, 0.08);
  transition: transform 0.2s;
}
.pics-grid img:hover {
  transform: scale(1.04);
}

/* About Section */
.about-section,
.experience-section {
  padding: 40px 0;
  text-align: center;
}

.about-section p,
.experience-section p {
  color: #8b949e;
}

.about-section h1,
.experience-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.experience-item {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.experience-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f0f6fc;
}

.experience-head span {
  color: #8b949e;
  font-size: 0.92rem;
}

.experience-item ul {
  margin: 0;
  padding-left: 1.2rem;
}

.experience-item li {
  color: #c9d1d9;
  margin-bottom: 0.45rem;
}

.experience-item li:last-child {
  margin-bottom: 0;
}
.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.skills-list li {
  background: #eaf1fb;
  color: #1a2233;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-section {
  padding: 40px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: #161b22;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #30363d;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.25rem;
  margin: 0;
  color: #c9d1d9;
}

.project-link img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.project-description {
  font-size: 0.9rem;
  color: #8b949e;
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-tech span {
  font-size: 0.8rem;
  color: #8b949e;
}

.project-tech img {
  width: 20px;
  height: 20px;
  filter: none;
}

.project-tech img.mono-icon {
  filter: invert(1);
}

/* Blogs Section */
.blogs-section {
  padding: 60px 0;
}

.blogs-intro {
  text-align: center;
  color: #8b949e;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.blog-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.25rem;
}

.blog-card h3 {
  margin-top: 0;
  color: #f0f6fc;
}

.blog-card p {
  color: #8b949e;
}

.blog-card a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 600;
}

.blog-card a:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-section .contact-wrapper {
  background: linear-gradient(
    135deg,
    rgba(22, 27, 34, 0.8),
    rgba(13, 17, 23, 0.9)
  );
  border-radius: 20px;
  border: 1px solid rgba(88, 166, 255, 0.1);
  padding: 60px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info-center h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #58a6ff, #a259ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info-center p {
  font-size: 1.1rem;
  color: #8b949e;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(88, 166, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.3);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

/* Mobile responsiveness for contact section */
@media (max-width: 768px) {
  .contact-section {
    padding: 50px 0;
  }

  .contact-section .contact-wrapper {
    padding: 40px 20px;
    margin: 0 10px;
  }
}

/* Footer */
.main-footer {
  background-color: #161b22;
  color: #8b949e;
  padding: 0; /* Reset padding */
  border-top: 1px solid #30363d;
  margin-top: auto;
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

#back-to-top {
  color: #8b949e;
  text-decoration: none;
  display: none; /* Initially hidden */
  transition: color 0.3s ease;
}

#back-to-top:hover {
  color: #58a6ff;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #58a6ff, #a259ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #58a6ff, #a259ff);
}

/* Tech Skills Section */
.tech-skills-section {
  padding: 60px 0;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.skill-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: none;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-item:hover img {
  filter: none;
  transform: scale(1.1);
}

.skill-item p {
  font-size: 0.9rem;
  color: #8b949e;
}

/* Responsive Design */
@media (max-width: 700px) {
  .nav-container,
  .container {
    width: 98%;
  }
  .navbar {
    gap: 1rem;
  }
  .pics-grid {
    flex-direction: column;
    align-items: center;
  }
  .skills-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .contact-form {
    padding: 1rem;
  }
}

.wave {
  display: inline-block;
  animation-name: wave-animation;
  text-align: center;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  font-size: 4rem;
}

.greeting {
  font-size: 2.5rem;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
