/* general  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  background: #fafafa;
  color: #171717;
  line-height: 1.7;
}
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section {
  margin-bottom: 3rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #171717;
}
/* navbar  */
nav {
  margin-bottom: 4rem;
}
.nav-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.avatar {
  width: 80px;
  height: 80px;
}
.avatar img {
  width: 100%;
  border-radius: 10px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.avatar img:hover {
  filter: grayscale(0%);
}
.name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #171717;
}
.tagline {
  color: #737373;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
}
.nav-links a {
  color: #737373;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #171717;
}

/* hero  */
.intro {
  font-size: 1rem;
  color: #404040;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.work-state {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.work-label {
  font-size: 0.85rem;
  color: #737373;
  margin-bottom: 0.5rem;
}
.work-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.work-state-card {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #20e92a 0%, #19af0c 100%);
  border-radius: 4px;
}
.card-info {
  flex: 1;
}
.state {
  font-weight: 600;
  color: #171717;
  margin-bottom: 0.25rem;
}
.relocate {
  color: #737373;
  font-size: 0.9rem;
}

/* projects  */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.project-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.project-card:hover {
  border-color: #a3a3a3;
  transform: translateY(-2px);
}
.project-header {
  display: flex;
  align-items: start;
  margin-bottom: 1rem;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #171717;
}
.github-link {
  margin-left: auto;
  margin-right: 5px;
}
.project-link,
.github-link {
  color: #737373;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.project-link:hover,
.github-link:hover {
  color: #171717;
}
.project-description {
  color: #525252;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tag {
  padding: 0.25rem 0.75rem;
  background: #f5f5f5;
  color: #525252;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

/* skills  */
.tech-list h3 {
  margin-right: 8px;
  font-weight: 500;
}
.tech-list ul li {
  list-style-type: none;
}
.tech-list span {
  margin-bottom: 12px;
}
.tech-list span i {
  font-size: 33px;
  margin-right: 22px;
}
.skills-item {
  padding-bottom: 12px;
}
.skills-item p {
  color: #525252;
}
.skills-item h3 {
  color: #171717;
}
.skills-description {
  margin-bottom: 12px;
}

/* experience   */
.experience-list {
  display: grid;
  gap: 2rem;
}
.experience-item {
  border-left: 2px solid #e5e5e5;
  padding-left: 1.5rem;
  position: relative;
}
.experience-item:before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #171717;
  border-radius: 50%;
}
.experience-period {
  font-size: 0.85rem;
  color: #737373;
  margin-bottom: 0.5rem;
}
.experience-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #171717;
  margin-bottom: 0.25rem;
}
.experience-company {
  color: #525252;
  margin-bottom: 0.75rem;
}
.experience-description {
  color: #525252;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* contact  */
.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.social-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #171717;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-card:hover {
  border-color: #a3a3a3;
  transform: translateY(-2px);
}
.social-name {
  font-weight: 500;
}
.social-handle {
  color: #737373;
  font-size: 0.9rem;
}
.social-icon {
  color: #a3a3a3;
  font-size: 1.2rem;
}

/* footer  */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  color: #a3a3a3;
  font-size: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle {
  margin-left: auto;
  top: 1.5rem;
  right: 5%;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: #a3a3a3;
}
.sun-icon {
  display: block;
  color: #171717;
}
.moon-icon {
  display: none;
  color: #171717;
}

/* Smooth transitions */
body {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
* {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* Dark Theme Styles */
body.dark-theme {
  background: #0a0a0a;
  color: #e5e5e5;
}
body.dark-theme .fs {
  color: #a7a7a7;
}

body.dark-theme .name {
  color: #f5f5f5;
}

body.dark-theme .tagline {
  color: #a3a3a3;
}

body.dark-theme .nav-links {
  border-bottom-color: #262626;
}

body.dark-theme .nav-links a {
  color: #a3a3a3;
}

body.dark-theme .nav-links a:hover {
  color: #f5f5f5;
}

body.dark-theme .section-title {
  color: #f5f5f5;
}

body.dark-theme .intro {
  color: #a3a3a3;
}

body.dark-theme .work-state {
  background: #171717;
  border-color: #262626;
}

body.dark-theme .work-label {
  color: #a3a3a3;
}

body.dark-theme .state {
  color: #f5f5f5;
}

body.dark-theme .relocate {
  color: #a3a3a3;
}

body.dark-theme .project-card {
  background: #171717;
  border-color: #262626;
}

body.dark-theme .project-card:hover {
  border-color: #525252;
}

body.dark-theme .project-title {
  color: #f5f5f5;
}

body.dark-theme .project-link,
body.dark-theme .github-link {
  color: #a3a3a3;
}

body.dark-theme .project-link:hover,
body.dark-theme .github-link:hover {
  color: #f5f5f5;
}

body.dark-theme .project-description {
  color: #d4d4d4;
}

body.dark-theme .tech-tag {
  background: #262626;
  color: #d4d4d4;
  border-color: #404040;
}
body.dark-theme #github i {
  color: #d4d4d4;
}

body.dark-theme .experience-item,
body.dark-theme .skills-item {
  border-left-color: #262626;
}

body.dark-theme .experience-item:before,
body.dark-theme .skills-item::before {
  background: #f5f5f5;
}

body.dark-theme .experience-period {
  color: #a3a3a3;
}

body.dark-theme .experience-title,
body.dark-theme .skills-title {
  color: #f5f5f5;
}

body.dark-theme .experience-company {
  color: #d4d4d4;
}

body.dark-theme .experience-description,
body.dark-theme .skills-description {
  color: #a3a3a3;
}

body.dark-theme .social-card {
  background: #171717;
  border-color: #262626;
  color: #f5f5f5;
}

body.dark-theme .social-card:hover {
  border-color: #525252;
}

body.dark-theme .social-handle {
  color: #a3a3a3;
}

body.dark-theme .social-icon {
  color: #737373;
}

body.dark-theme footer {
  border-top-color: #262626;
  color: #737373;
}

body.dark-theme .theme-toggle {
  background: #171717;
  border-color: #262626;
}
body.dark-theme .theme-toggle:hover {
  border-color: #737373;
}

body.dark-theme .sun-icon {
  display: none;
}

body.dark-theme .moon-icon {
  display: block;
  color: #f5f5f5;
}

body.dark-theme .avatar {
  filter: grayscale(100%) brightness(0.8);
}

body.dark-theme .avatar:hover {
  filter: grayscale(0%) brightness(1);
}

body.dark-theme .album-art {
  opacity: 0.9;
}

/* media styles  */
@media (max-width: 640px) {
  .theme-toggle {
    top: 1rem;
    right: 1.5rem;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .name {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}
