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

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #333;
  transition: 0.3s ease;
}

.dark body {
  background: #121212;
  color: #f5f5f5;
}

.hero {
  display: flex;
  height: 100vh;
}

.left {
  width: 40%;
  background: #eaeaea;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.dark .left {
  background: #181818;
}

.illustration {
  width: 75%;
  max-width: 420px;
  object-fit: contain;
  border-radius: 20px;
  opacity: 0.95;
}

.right {
  width: 60%;
  background: #6FDCBF;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: 0.3s;
}

.dark .right {
  background: #1e1e1e;
}

nav {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  position: relative;
  transition: 0.3s;
}

.dark nav a {
  color: #f5f5f5;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  transform: translateY(-2px);
}

.content {
  max-width: 650px;
  transform: translateY(-40px);
}

.intro {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
}

h2 {
  font-size: 62px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1px #333;
}

.dark .outline {
  -webkit-text-stroke: 1px #f5f5f5;
}

.hobbies {
  padding: 100px 80px;
  background: #ffffff;
}

.dark .hobbies {
  background: #121212;
}

.hobbies h3 {
  font-size: 36px;
  margin-bottom: 50px;
}

.hobby-list {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hobby {
  flex: 1;
  min-width: 250px;
  padding: 25px;
  border-radius: 16px;
  background: #f5f5f5;
  transition: 0.3s;
}

.dark .hobby {
  background: #1e1e1e;
}

.hobby:hover {
  transform: translateY(-8px);
  background: #6FDCBF;
  color: #fff;
}

.dark .hobby:hover {
  background: #6FDCBF;
  color: #121212;
}

.projects {
  padding: 100px 80px;
  background: #eaeaea;
}

.dark .projects {
  background: #181818;
}

.project-list {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.project {
  margin: 20px;
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  transition: 0.3s;
  cursor: pointer;
}

.dark .project {
  background: #1e1e1e;
}

.project:hover {
  transform: translateY(-8px);
  background: #6FDCBF;
  color: #fff;
}

.dark .project:hover {
  background: #6FDCBF;
  color: #121212;
}

.skills {
  padding: 100px 80px;
  background: #ffffff;
}

.dark .skills {
  background: #121212;
}

.skills h3 {
  font-size: 36px;
  margin-bottom: 40px;
}

.skills p {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills span {
  background: #6FDCBF;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.skills span:hover {
  transform: translateY(-3px);
  background: #333;
  color: #fff;
}

.dark .skills span:hover {
  background: #6FDCBF;
  color: #121212;
}

footer {
  background: #333;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dark footer {
  background: #000;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: 0.3s;
}

.footer-links img:hover {
  transform: translateY(-5px) scale(1.1);
}

#backToTop {
  padding: 10px 16px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: #6FDCBF;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

#backToTop:hover {
  background: #fff;
}

.dark img[src*="Github"] {
  filter: invert(1);
}

.light-img {
  display: block;
}

.dark-img {
  display: none;
}

.dark .light-img {
  display: none;
}

.dark .dark-img {
  display: block;
}