
:root {
  --bg: #FFFFFF;
  --text: #1F2937;
  --accent: #3B82F6;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --muted-text: #6B7280;
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --text: #1F2937;
  --accent: #3B82F6;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --muted-text: #6B7280;
}

.icon {
  cursor: pointer;
  height: 2rem;
  filter: invert(0);
  transition: filter 0.3s ease;
}

@font-face {
  font-family: "Anton";
  src: url("fonts/Anton-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

p {
  color: var(--muted-text);
}

a,
.btn {
  transition: all 300ms ease;
}

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-between;
  align-items: center;
  height: 10vh;
}

#desktop-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#desktop-nav.hidden,
#hamburger-nav.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#desktop-nav.visible,
#hamburger-nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--accent);
}

a {
  color: var(--text);
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--accent);
}

.logo {
  font-size: 2rem;
  color: var(--text);
}

.logo:hover {
  cursor: default;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.btn-color-1,
.btn-color-2 {
  border: var(--border) 0.1rem solid;
  color: var(--text);
  transition: all 0.3s ease;
}

.btn-color-1 {
  background: var(--text);
  color: var(--bg);
}

.btn-color-2 {
  background: none;
}

.btn-color-1:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-color-2:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

section {
  padding-top: 2vh;
  height: 80vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}


section {
  padding-top: 2vh;
  height: 80vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

#about {
  position: relative;
}

.section__text__p1 {
  text-align: center;
  color: var(--muted-text);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 3rem;
  font-family: "Anton", sans-serif;
  text-align: center;
  color: var(--text);
  margin-bottom: 3rem;
}

.section-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section__pic-container {
  display: flex;
  height: 380px;
  width: 380px;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--card-bg);
  border: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.section__pic-container img,
.about-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-details-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.text-container p {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0;
  text-align: justify;
}

.text-container p+p {
  margin-top: 1.5rem;
}

#personal-touch {
  position: relative;
}

.personal-touch-container {
  flex-direction: row;
}

.personal-touch-pic {
  height: 380px;
  width: 380px;
  border-radius: 1.5rem;
}

section[id="What i do"] {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

section[id="What i do"] .intro-text-container {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;

  text-align: center;
}

section[id="What i do"] .intro-text-container .title {
  margin-bottom: 2rem;
}

section[id="What i do"] .intro-text-container .section__text__p2 {
  text-align: justify;

  line-height: 1.65;
  margin-bottom: 1rem;
}

footer {
  height: max-content;
  margin: 0 1rem;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  
  gap: 1rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.footer-links a {
  color: var(--muted-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}

@media (max-width: 900px) {
  section[id="What i do"] {
    padding: 1.5rem 0;
    margin: 0 2rem;
    justify-content: center;
  }

  section[id="What i do"] .intro-text-container {
    padding: 0 1rem;
    max-width: 100%;
  }

  section[id="What i do"] .intro-text-container .section__text__p2 {
    text-align: justify;
    font-size: 1.5rem;
  }

  #personal-touch .section-container,
  #personal-touch .personal-touch-container {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  .personal-touch-pic {
    width: 280px;
    height: 280px;

  }

  #personal-touch .about-details-container {
    width: 100%;
  }
}

@media (max-width: 600px) {
  section[id="What i do"] .intro-text-container .section__text__p2 {
    font-size: 1.25rem;
  }

  .personal-touch-pic {
    width: 220px;
    height: 220px;
    margin: 0;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
  }

  section {
    margin: 0 5rem;
  }
}

@media screen and (max-width: 900px) {
  section {
    height: auto;
    margin: 0 2rem;
    padding-top: 3vh;
    padding-bottom: 5vh;
  }

  .section-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .section__pic-container {
    width: 300px;
    height: 300px;
  }

  .section__pic-container img,
  .about-pic {
    object-fit: cover;
    object-position: center;
  }

  .about-details-container {
    width: 100%;
  }

  .text-container {
    padding: 2rem;
  }

  .title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 600px) {
  section {
    margin: 0 1rem;
  }

  .section__pic-container {
    width: 250px;
    height: 250px;
  }

  .section__pic-container img,
  .about-pic {
    object-fit: cover;
    object-position: center;
  }

  .text-container {
    padding: 1.5rem;
  }

  .text-container p {
    font-size: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .section__text__p1 {
    font-size: 0.9rem;
  }

  .nav-links {
    font-size: 1.2rem;
    gap: 1rem;
  }

  footer {
    height: auto;
    padding: 2rem 0;
  }

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  footer .nav-links-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  footer .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    flex-wrap: wrap;
  }

  footer .nav-links li {
    margin: 0;
    padding: 0;
  }
}


#github-profile {
  margin-top: 2rem;
  height: auto;
  
  min-height: fit-content;
  margin-bottom: 4rem;
}

.github-content-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.github-profile-header {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.gh-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
}

.gh-profile-info {
  text-align: left;
}

.gh-profile-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.gh-bio {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  max-width: 600px;
}

.gh-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.gh-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.gh-details {
  display: flex;
  gap: 1.5rem;
  color: var(--muted-text);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.gh-details span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gh-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-text);
}

.gh-languages {
  margin-top: 2rem;
  text-align: left;
  width: 100%;
}

.gh-languages h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lang-item {
  width: 100%;
}

.lang-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

@media screen and (max-width: 768px) {
  .github-profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

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

  .gh-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .stat-box {
    flex: 1 1 120px;
    padding: 1rem;
  }

  .gh-details {
    justify-content: center;
  }

  .github-content-container {
    padding: 1.5rem;
  }
}