@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #38bdf8;
  margin-bottom: 10px;
  font-weight: 600;
  font-family: monospace;
}

header p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #94a3b8;
}

main {
  max-width: 1000px;
  margin: 0 auto;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 20px 0;
}

.project {
  flex: 1 1 300px;
  background: linear-gradient(to bottom right, #1e293b, #334155);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.project h2 {
  margin-bottom: 10px;
  color: #7dd3fc;
  font-size: 1.2rem;
}

.project p {
  color: #cbd5e1;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.project a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.project a:hover {
  text-decoration: underline;
  color: #e0f2fe;
}

.sidebar {
  width: 220px;
  background-color: #1e293b;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: auto;
  padding-top: 40px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar a {
  display: block;
  color: #a5f3fc;
  padding: 16px 24px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background-color: #0f172a;
  color: #67e8f9;
}

.content {
  margin-left: 240px;
  padding: 20px;
}

footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.85rem;
  color: #64748b;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: #334155;
  color: #ef4673;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid #475569;
  user-select: none;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #1e293b;
}

#sidebarToggle {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 999;
  background-color: #334155;
  color: #e2e8f0;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

#sidebarToggle:hover {
  background-color: #1e293b;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.content {
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .content {
  margin-left: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .content {
    margin-left: 0;
    padding-top: 20px;
  }
}

@media screen and (max-width: 480px) {
  .project {
    max-width: 100%;
  }

  header p {
    padding: 0 10px;
  }

  .sidebar {
    flex-direction: column;
  }

  .sidebar a {
    text-align: center;
    padding: 12px;
  }
}

.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Fade animation */
.fade {
  animation: fade 0.8s;
}

@keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  color: #7dd3fc;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

.dots {
  text-align: center;
  padding-top: 10px;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #94a3b8;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #7dd3fc;
}

