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

body {
  font-family: "Wallpoet", "DotGothic16", sans-serif;
  font-style: normal;
  color: #F2F2F7;
  background-color: #08080c;
  background-image: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #08080c 70%);
  min-height: 100vh;
}

header {
  padding: 60px 20px 40px;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #00ffcc, #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 255, 204, 0.2);
}

header p {
  color: #a0aab5;
  font-size: 1.1rem;
}


.back-nav {
  position: absolute;
  top: 30px;
  left: 30px;
}

.back-link {
  color: #00ffcc;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: rgba(0, 255, 204, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.back-link:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: translateX(-5px);
}


.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}


.work-card {
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 204, 0.15);
  border-color: rgba(0, 255, 204, 0.3);
}


.work-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.work-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 255, 204, 0.1);
  color: #00ffcc;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: bold;
}

.work-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #F2F2F7;
}

.work-desc {
  font-size: 1rem;
  color: #dcdcdc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.work-card:hover .view-btn {
  color: #00ffcc;
  border-top-color: rgba(0, 255, 204, 0.3);
}


.work-card:hover {
  transform: translateX(5px);
}


@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  .back-nav {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .gallery-container {
    max-width: 500px;
    padding: 0 20px 60px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
}