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

body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  -ms-overflow-style: none;
  line-height: 1.6;
  color: #222;
  background: #fafbfc;
  position: relative;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  height: 80px;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 2rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
}

header p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li {
  display: flex;
  align-items: center;
}

nav a,
.contact-button,
#theme-toggle {
  text-decoration: none;
  color: #222;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
}

nav a:hover,
.contact-button:hover,
#theme-toggle:hover {
  background: #f0f0f0;
}

.contact-button {
  background: #222;
  color: #fff;
}

.contact-button:hover {
  background: #444;
}

main {
  margin-top: 80px;
}

html {
  scroll-behavior: smooth;
}

.lines {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  margin: auto;
  width: 90vw;
  display: flex;
  justify-content: space-between;
  z-index: 0;
  pointer-events: none;
}

.line {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
}

.line::after {
  content: '';
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
  animation: drop 7s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1)::after {
  background: linear-gradient(to bottom, rgba(255, 69, 0, 0) 0%, rgba(255, 69, 0, 0.4) 75%, rgba(255, 69, 0, 0.6) 100%);
  animation-delay: 0.5s;
}

.line:nth-child(2)::after {
  background: linear-gradient(to bottom, rgba(50, 205, 50, 0) 0%, rgba(50, 205, 50, 0.4) 75%, rgba(50, 205, 50, 0.6) 100%);
  animation-delay: 1s;
}

.line:nth-child(3)::after {
  background: linear-gradient(to bottom, rgba(30, 144, 255, 0) 0%, rgba(30, 144, 255, 0.4) 75%, rgba(30, 144, 255, 0.6) 100%);
  animation-delay: 1.5s;
}

.line:nth-child(4)::after {
  background: linear-gradient(to bottom, rgba(255, 215, 0, 0) 0%, rgba(255, 215, 0, 0.4) 75%, rgba(255, 215, 0, 0.6) 100%);
  animation-delay: 2s;
}

.line:nth-child(5)::after {
  background: linear-gradient(to bottom, rgba(138, 43, 226, 0) 0%, rgba(138, 43, 226, 0.4) 75%, rgba(138, 43, 226, 0.6) 100%);
  animation-delay: 2.5s;
}

.line:nth-child(6)::after {
  background: linear-gradient(to bottom, rgba(32, 178, 170, 0) 0%, rgba(32, 178, 170, 0.4) 75%, rgba(32, 178, 170, 0.6) 100%);
  animation-delay: 3s;
}

.line:nth-child(7)::after {
  background: linear-gradient(to bottom, rgba(220, 20, 60, 0) 0%, rgba(220, 20, 60, 0.4) 75%, rgba(220, 20, 60, 0.6) 100%);
  animation-delay: 3.5s;
}

.line:nth-child(8)::after {
  background: linear-gradient(to bottom, rgba(0, 250, 154, 0) 0%, rgba(0, 250, 154, 0.4) 75%, rgba(0, 250, 154, 0.6) 100%);
  animation-delay: 4s;
}

.line:nth-child(9)::after {
  background: linear-gradient(to bottom, rgba(255, 20, 147, 0) 0%, rgba(255, 20, 147, 0.4) 75%, rgba(255, 20, 147, 0.6) 100%);
  animation-delay: 4.5s;
}

.line:nth-child(10)::after {
  background: linear-gradient(to bottom, rgba(0, 191, 255, 0) 0%, rgba(0, 191, 255, 0.4) 75%, rgba(0, 191, 255, 0.6) 100%);
  animation-delay: 5s;
}

@keyframes drop {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

.slides-container {
  position: relative;
  z-index: 1;
}

.slide {
  min-height: calc(100vh - 80px - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: transparent;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
}

.slide h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #222;
}

.slide-about {
  text-align: center;
}

.slide-about p {
  max-width: 700px;
  margin: 1.5rem auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

.slide-about > img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes scroll-tech-stack {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-120px * 9));
  }
}

.tech-stack-slider {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 120px;
  margin: 2rem auto 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
}

.tech-stack-slider::before,
.tech-stack-slider::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  content: "";
  height: 120px;
  position: absolute;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.tech-stack-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.tech-stack-slider::before {
  left: 0;
  top: 0;
}

.tech-stack-track {
  animation: scroll-tech-stack 25s linear infinite;
  display: flex;
  width: calc(120px * 18);
}

.tech-stack-track:hover {
  animation-play-state: paused;
}

.tech-stack-slide {
  height: 120px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tech-stack-slide img {
  width: 100%;
  height: 100%;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 0;
  background: none;
}

.tech-stack-slide:hover img {
  transform: scale(1.15);
}

.slide-projects {
  min-height: auto;
  padding-bottom: 6rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.project-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 420px;
  max-width: 370px;
  margin: 0 auto;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.project-img {
  width: 100%;
  height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e9ecef;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f9fa;
}

.project-content {
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #222;
  text-align: center;
}

.project-desc {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #222;
  border: none;
  padding: 0.7rem 1.3rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  margin-top: 0.5rem;
}

.project-button:hover {
  background: #444;
  transform: translateY(-2px);
}

.project-button i {
  font-size: 0.95rem;
}

.slide-work-experience ul {
  list-style: none;
  max-width: 800px;
  width: 100%;
}

.slide-work-experience li {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.slide-work-experience h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.slide-work-experience p {
  color: #555;
  margin: 0.5rem 0;
  text-align: left;
}

.slide-work-experience p:first-of-type {
  color: #888;
  font-size: 0.95rem;
  font-style: italic;
}

.slide-contact-me ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 10px;
}

.slide-contact-me li {
  background: #fff;
  border-radius: 12px;
  padding: 10px 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.slide-contact-me li:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateX(8px);
}

.slide-contact-me a {
  color: #222;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slide-contact-me a i {
  font-size: 1.5rem;
  color: #555;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .header-info {
    margin-right: 0;
    align-items: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    margin-top: 120px;
  }
}
