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

body {
  font-family: "Poppins", sans-serif;
  background-color: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e6edf3;
  font-weight: lighter;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #e6edf3;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.nav-links a:hover {
  background-color: #58a6ff;
  color: #0d1117;
  box-shadow: 0 0 15px #58a6ff, 0 0 30px #58a6ff;
  transform: translateY(-4px);
}

/* Hero Section*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-glow {
  font-size: 5.5rem;
  font-weight: 600;
  color: #58a6ff;
  text-align: center;
  opacity: 0;
  animation: fadeGlow 2.5s ease-in-out forwards;
}

@keyframes fadeGlow {
  0% {
    opacity: 0;
    text-shadow: none;
  }

  50% {
    opacity: 0.5;
    text-shadow: 0 0 6px #58a6ff;
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 10px #58a6ff, 0 0 15px #1f6feb, 0 0 20px #1f6feb;
  }
}

.hero h1 {
  font-size: 6rem;
  color: #58a6ff;
}

.hero p {
  font-size: 2.9rem;
  margin-top: 0.5rem;
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  margin: 0 10px;
  color: #e6edf3;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #58a6ff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  background-color: #58a6ff;
  color: #0d1117;
  transform: translateY(-10px);
  box-shadow: 0 0 20px #58a6ff, 0 0 40px #58a6ff;
}

/* Section Styling */
section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #58a6ff;
  text-align: center;
}

#about > p,
#education > ul {
  text-align: center;
  list-style-type: none;
}

/* Education Timeline - Horizontal */
.edu-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin: 3rem 0 2rem 0;
  position: relative;
  padding: 2rem 0 1.5rem 0;
}

.edu-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, #58a6ff 0%, #1f6feb 100%);
  z-index: 0;
  border-radius: 2px;
  transform: translateY(-50%);
}

.edu-item {
  position: relative;
  background: #161b22;
  border: 1.5px solid #30363d;
  border-radius: 14px;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  box-shadow: 0 2px 10px rgba(88, 166, 255, 0.08);
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: center;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s,
    border-color 0.3s;
  opacity: 1;
  transform: none;
  animation: none;
  animation-delay: 0s;
}

.edu-item:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 0 24px #58a6ff, 0 0 48px #58a6ff;
  border-color: #58a6ff;
}

.edu-icon {
  font-size: 2.2rem;
  color: #58a6ff;
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}

.edu-item:hover .edu-icon {
  color: #58a6ff;
}

.edu-content h3 {
  font-size: 1.25rem;
  color: #e6edf3;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.edu-content .edu-year {
  display: block;
  font-size: 1.05rem;
  color: #58a6ff;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.edu-content p {
  font-size: 0.98rem;
  color: #b1bac4;
  margin: 0.2rem 0 0 0;
}

.edu-place {
  color: #8b949e;
  font-size: 0.92rem;
}

.edu-badge {
  background: #58a6ff;
  color: #0d1117;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 8px;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: badgePulse 1.2s infinite alternate;
}

.edu-item.current {
  border: 2px solid #58a6ff;
  box-shadow: 0 0 24px #58a6ff, 0 0 48px #58a6ff;
}

@keyframes eduFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 #58a6ff55;
  }

  100% {
    box-shadow: 0 0 0 8px #58a6ff11;
  }
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.5rem;
  justify-items: center;
  align-items: center;
  margin: 3rem 0 2rem 0;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2.5rem;
  color: #58a6ff;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  transition: box-shadow 0.3s, color 0.3s, background 0.3s,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(88, 166, 255, 0.05);
  min-width: 90px;
  min-height: 110px;
  width: 100%;
  box-sizing: border-box;
}

.skill-icon:hover {
  color: #58a6ff;
  box-shadow: 0 0 10px #58a6ff, 0 0 20px #58a6ff;
  transform: scale(1.08);
}

.skill-icon span {
  font-size: 1rem;
  color: #58a6ff;
  margin-top: 0.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  display: block;
}

/* Projects Section */

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  justify-items: center;
  align-items: stretch;
  margin-top: 6rem;
}

.project-card {
  background: linear-gradient(135deg, #161b22 80%, #1f6feb 120%);
  border: 1.5px solid #30363d;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 370px;
  min-height: 340px;
  box-shadow: 0 4px 32px 0 rgba(88, 166, 255, 0.1), 0 1.5px 8px 0 #1f6feb22;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s,
    border-color 0.3s, background 0.3s;
  cursor: pointer;
  opacity: 1;
  transform: none;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #58a6ff 0%, #1f6feb 100%);
  opacity: 0.7;
  border-radius: 18px 18px 0 0;
  transition: opacity 0.3s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-content {
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.project-content h3 {
  margin-bottom: 0.7rem;
  color: #58a6ff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.project-card:hover .project-content h3 {
  color: #58a6ff;
}

.project-content p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #b1bac4;
  flex: 1 1 auto;
}

.project-content a {
  text-decoration: none;
  color: #58a6ff;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  font-size: 1.05rem;
  margin-right: 1.2rem;
  transition: color 0.3s, border-bottom 0.3s;
}

.project-content a:hover {
  border-bottom: 1.5px solid #58a6ff;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.project-badge {
  background: #23272e;
  color: #58a6ff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 10px;
  letter-spacing: 0.2px;
  border: 1px solid #30363d;
  transition: background 0.3s, color 0.3s;
}

.project-card:hover .project-badge {
  background: #23272e;
  color: #58a6ff;
}
.project-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px #58a6ff, 0 0 40px #58a6ff;
}
.project-links {
  display: flex;
  gap: -0.2rem;
  margin-top: 1rem;
}
.project-content {
  padding: 1rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  color: #58a6ff;
}

.project-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-content a {
  text-decoration: none;
  color: #58a6ff;
  border-bottom: 1px solid transparent;
}

.project-content a:hover {
  border-bottom: 1px solid #58a6ff;
}
@keyframes projectFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/*  Contact Section  */

#contact {
  text-align: center;
  padding: 4rem 2rem;
}

#contact h1 {
  font-size: 2.5rem;
  color: #58a6ff;
  margin-bottom: 1.5rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #161b22;
  color: #58a6ff;
  font-size: 2.2rem;
  border: 1.5px solid #58a6ff;
  box-shadow: 0 2px 10px rgba(88, 166, 255, 0.08);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  position: relative;
}

.contact-icon:hover {
  background: #58a6ff;
  color: #0d1117;
  box-shadow: 0 0 20px #58a6ff, 0 0 40px #58a6ff;
  transform: scale(1.12) translateY(-6px);
  z-index: 2;
}

.contact-icon i {
  pointer-events: none;
}

/*  Footer  */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #161b22;
  color: #8b949e;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/*   MEDIA QUERIES SECTION   */

/* Responsive for timeline */
@media (max-width: 900px) {
  .edu-timeline {
    gap: 1.2rem;
  }
  .edu-item {
    min-width: 140px;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero p {
    font-size: 2rem;
  }
  .project-card {
    width: 260px;
  }
  .projects-container {
    gap: 3rem;
  }
  .skills-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  .project-card {
    min-height: 220px;
    max-width: 100%;
    padding: 0;
  }
  .project-content {
    padding: 1.2rem 1rem 1rem 1rem;
  }
}

@media (max-width: 900px) {
  .edu-timeline {
    gap: 1.2rem;
  }
  .edu-item {
    min-width: 140px;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    align-items: center;
    position: relative;
  }
  .logo {
    margin-right: 0.5rem;
  }
  .menu-btn {
    margin-left: auto;
    position: static;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
  section {
    padding: 3rem 1.5rem;
  }
  .projects-container {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .contact-list {
    flex-direction: column;
    align-items: center;
  }
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .skill-icon {
    font-size: 2rem;
    padding: 0.8rem 1rem;
    min-width: 70px;
    min-height: 90px;
  }
}

@media (max-width: 600px) {
  .edu-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0.5rem 0;
  }
  .edu-timeline::before {
    top: 0;
    left: 50%;
    right: auto;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #58a6ff 0%, #1f6feb 100%);
    transform: translateX(-50%);
  }
  .edu-item {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
  .projects-container {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 2.5rem;
  }
  .project-card {
    min-height: 0;
    max-width: 98vw;
    width: 98vw;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(88, 166, 255, 0.1), 0 1.5px 8px 0 #1f6feb22;
  }
  .project-content {
    padding: 1rem 0.7rem 0.8rem 0.7rem;
  }
  .project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .project-content p {
    font-size: 0.92rem;
    margin-bottom: 0.7rem;
  }
  .project-badges {
    gap: 0.3rem;
    margin-bottom: 0.7rem;
  }
  .project-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
  }
  .project-content a {
    font-size: 0.95rem;
    margin-right: 0.7rem;
  }
  .contact-icons {
    gap: 1.2rem;
  }
  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .social-links a {
    display: block;
    margin: 10px auto;
    width: fit-content;
  }
  h2 {
    font-size: 2rem;
  }
  .project-card {
    width: 90%;
  }
  #in,
  #cb,
  .current {
    font-size: 1.1rem;
  }
  .contact-btn {
    width: 90%;
    padding: 10px;
  }
  /* Hamburger menu styles */
  .menu-btn {
    display: block;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    margin-left: auto;
    position: static;
  }
  .menu-btn .bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px auto;
    background-color: #58a6ff;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .menu-btn.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-btn.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100vw;
    background: #161b22;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 0 0 12px 12px;
  }
  .nav-links.nav-active {
    display: flex;
    animation: fadeInMenu 0.3s;
  }
  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .skill-icon {
    font-size: 1.3rem;
    padding: 0.5rem 0.7rem;
    min-width: 50px;
    min-height: 70px;
  }
  .skill-icon span {
    font-size: 0.8rem;
  }
}

@media (min-width: 481px) {
  .menu-btn {
    display: none;
  }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    width: auto;
    padding: 0;
    border-radius: 0;
  }
}
