@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-color: #1a1a1a;
  --text-color: #e8e8e8;
  --secondary-text-color: #5c5c5c;
  --tertiary-text-color: #4a4a4a;
  --icon-size: 28px;
  --hover-background: rgba(255, 255, 255, 0.02);
  /* Between major sections (experience / education / projects) */
  --section-gap: 3rem;
  /* Name → subtitle; keep a touch tighter than section breaks */
  --header-stack-gap: 3rem;
}

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

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-weight: normal;
  font-size: 16px;
  height: auto;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Slightly less inset than “ultra zoomed”; column width does the rest */
  padding: clamp(3.25rem, 9vw, 6.5rem) clamp(2rem, 8vw, 5rem);
}

.blob {
  display: none;
}

/*-------------------Layout and Containers-------------------*/
.container {
  /* ~mid‑40% of a typical laptop viewport (screenshot 2) */
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

header {
  margin-top: 0;
}

header h1 {
  font-size: clamp(2.25rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: var(--header-stack-gap);
}

header h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--secondary-text-color);
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.description {
  color: var(--secondary-text-color);
  margin-bottom: 0;
  max-width: 42rem;
  line-height: 1.65;
}

.social-icons {
  position: relative;
  margin-bottom: 15px;
}

.social-icons i {
  height: 45px;
  width: 45px;
  color: var(--tertiary-text-color);
  font-size: 22px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  margin-right: 1px;
  transition: color 0.2s ease;
}

.social-icons i:hover {
  color: var(--text-color);
}

/*-------------------About Section-------------------*/
.about h3 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--secondary-text-color);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
}

.about p {
  color: var(--secondary-text-color);
  margin-bottom: 0px;
  line-height: 1.7;
  max-width: 42rem;
}

strong {
  color: var(--text-color);
}

/*-------------------Experience Section-------------------*/
.experience {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.experience h2 {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--secondary-text-color);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
}

.experience-item {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: flex-start;
  position: relative;
  margin-bottom: 28px;
  border-radius: 0;
}

.date-range {
  flex: 0 0 22%;
  min-width: 7.5rem;
  color: var(--tertiary-text-color);
  font-size: 0.82rem;
  font-weight: 400;
}

.experience-details {
  flex: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  justify-content: flex-start;
  align-items: center;
}

.skill-bubble {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--secondary-text-color);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: default;
}

.skill-bubble:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: none;
}

.experience h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-color);
  letter-spacing: 0.4px;
  font-weight: 510;
}

.experience h4 {
  font-size: 0.88rem;
  color: var(--secondary-text-color);
  margin-bottom: 8px;
  font-weight: 400;
}

.experience p {
  font-size: 0.84rem;
  color: var(--tertiary-text-color);
  line-height: 1.65;
}
/*-------------------Education--------------------------*/
.education {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.education h2 {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--secondary-text-color);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
}

.education h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-color);
  letter-spacing: 0.4px;
  font-weight: 510;
}

.education h4 {
  font-size: 0.88rem;
  color: var(--secondary-text-color);
  margin-bottom: 8px;
  font-weight: 400;
}

.education p {
  font-size: 0.84rem;
  color: var(--tertiary-text-color);
  line-height: 1.65;
}
/*-------------------Projects Section-------------------*/
.projects {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.projects h2 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--secondary-text-color);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
}

.project-item {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2rem);
  background-color: transparent;
  border-radius: 0;
  position: relative;
}

.project-thumbnail {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
  border: none;
  opacity: 0.92;
}

.project-details {
  flex: 1;
}

.project-details h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
  letter-spacing: 0.4px;
  font-weight: 510;
}

.project-details h3 a {
  font-size: 1rem;
  color: var(--tertiary-text-color);
  text-decoration: none;
}

.project-links {
  display: flex;
  gap: 18px;
  margin: 14px 0 12px;
}

.project-link {
  display: flex;
  align-items: center;
  color: var(--tertiary-text-color);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.78rem;
}

.project-link i {
  margin-right: 6px;
}

.project-link:hover {
  color: var(--secondary-text-color);
}

.project-details p {
  font-size: 0.84rem;
  color: var(--tertiary-text-color);
  margin-bottom: 8px;
  line-height: 1.65;
}

.stars, .installs {
  font-size: 0.85rem;
  color: var(--highlight-color);
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background-color: var(--tag-bg);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/*-------------------Footer-------------------*/
footer {
  color: var(--tertiary-text-color);
  padding: 24px 0 0;
  text-align: left;
  font-size: 0.8rem;
  width: 100%;
  margin: 2rem auto 0;
}

footer p {
  max-width: 42rem;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

footer a {
  color: var(--tertiary-text-color);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--secondary-text-color);
}

footer p {
  margin: 6px 0;
}

/*-------------------Animations-------------------*/
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.container {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

header,
section {
  opacity: 1;
}

body {
  overflow-x: hidden;
}

/*---------------------Responsive-------------------*/

@media (max-width: 768px) {
  body {
    padding: 2.5rem 1.5rem;
    align-items: flex-start;
  }

  .container {
    max-width: 100%;
    gap: var(--section-gap);
  }

  header h1 {
    font-size: 2.2rem;
    line-height: 2rem;
    margin-bottom: var(--header-stack-gap);
  }

  header h2 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .description {
    max-width: 100%;
    margin-bottom: 0;
  }

  .social-icons {
    margin-bottom: 30px;
    text-align: center;
  }

  .social-icons i {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }

  .experience-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .date-range {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }

  .project-item {
    flex-direction: column;
    gap: 15px;
  }

  .project-thumbnail {
    width: 100%;
    height: auto;
  }

  .project-details h3 {
    font-size: 0.9rem;
  }

  .project-details p {
    font-size: 0.85rem;
  }

  .project-links {
    flex-direction: column;
    gap: 10px;
  }

  .skill-tags {
    justify-content: flex-start;
  }

  footer {
    padding: 10px 0;
    font-size: 0.8rem;
  }

  footer p {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  header h2 {
    font-size: 0.9rem;
  }

  .experience-item {
    padding: 0;
  }

  .container {
    gap: var(--section-gap);
  }

  .projects,
  .about,
  .experience {
    gap: 15px;
  }
}
