: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);
}

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

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

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

.btn-color-2:hover {
  border: var(--accent) 0.1rem solid;
  background: var(--text);
}

#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: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 0.5rem;
  background: var(--card-bg);
  
  border: 0.08rem solid var(--border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

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

.section__text {
  align-self: center;
  text-align: center;

}

.section__text p {
  font-weight: 600;
  color: var(--muted-text);
}

.section__text__p1 {
  text-align: center;
  color: var(--muted-text);
  font-family: "Poppins", sans-serif;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text);
}

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

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.icon {
  cursor: pointer;
  height: 2rem;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

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

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

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

  .section-container,
  .about-containers {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .section__pic-container {
    width: 220px;
    height: 220px;
    margin: 0;
  }

  .about-details-container {
    width: 100%;
    padding: 0 0.5rem;
  }

  .details-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .text-container {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.25rem;
    text-align: left;
  }

  .title {
    font-size: 2.25rem;
  }
}

#experience {
  position: relative;
}

.experience-sub-title {
  color: var(--muted-text);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

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

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  width: auto;
  color: var(--text);
}

.article-container article i,
.article-container article .fa,
.article-container article .fab,
.article-container article .fas {
  font-size: 1.8rem;
  line-height: 1;
}

article .icon {
  cursor: default;
}

#skills .skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.skills-category {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 3rem auto;
}

.skills-category-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
  width: 100%;
}

#skills article {
  display: flex;
  flex-direction: column;
  flex: 0 1 300px;
  
  width: 300px;
  
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  min-height: 250px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

#skills article:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

#skills article i {
  font-size: 6rem !important;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

#skills article:hover i {
  transform: scale(1.1);
}


#skills .fa-github {
  color: #181717 !important;
}

#skills article div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

#skills article h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

#skills article p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--muted-text);
}

@media screen and (max-width: 1400px) {
  #skills .skills-grid {
    gap: 2rem;
    padding: 1.5rem;
  }
}

@media screen and (max-width: 1200px) {
  #skills .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  #skills .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  #skills article i {
    font-size: 5rem !important;
  }

  #skills article h3 {
    font-size: 1.5rem;
  }

  #skills article p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 600px) {
  #skills .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  #skills article {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }

  #skills article i {
    font-size: 4rem !important;
  }

  #skills article h3 {
    font-size: 1.3rem;
  }

  #skills article p {
    font-size: 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;
  }
}