@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Mono:wght@300;400;500;600&display=swap');

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

body {
  font-family: 'Red Hat Mono', monospace;
  background: #000;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.back-link {
  position: fixed;
  top: 2rem;
  left: 2rem;
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  background: rgba(10, 10, 10, 0.9);
  padding: 0.5rem 1rem;
  border: 1px solid #222;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.back-link:hover {
  color: #fff;
  border-color: #444;
  transform: translateX(0.5rem);
}

header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #222;
}

header.compact {
  margin-bottom: 3rem;
  padding-top: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subtitle {
  font-size: 1rem;
  color: #888;
  font-weight: 300;
}

.description {
  font-size: 1rem;
  color: #999;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 3rem;
}

section {
  margin-bottom: 3rem;
}

.project {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #111;
  border: 1px solid #222;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project:hover {
  border-color: #666;
  transform: translateX(0.5rem);
}

.project h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}

.project p {
  font-size: 0.9rem;
  color: #999;
  font-weight: 300;
}

.skills,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill,
.tag {
  padding: 0.5rem 1rem;
  background: #111;
  border: 1px solid #222;
  font-size: 0.85rem;
  font-weight: 400;
}

.contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact a {
  color: #888;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #fff;
}

.gallery {
  margin-bottom: 3rem;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111;
  border: 1px solid #222;
  margin-bottom: 1rem;
  overflow: hidden;
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gallery-main img.active,
.gallery-main video.active {
  display: block;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-btn {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #222;
  color: #e0e0e0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  pointer-events: all;
  font-family: 'Red Hat Mono', monospace;
}

.gallery-btn:hover {
  border-color: #666;
  background: rgba(17, 17, 17, 0.95);
}

.gallery-btn:first-child:hover {
  transform: translateX(-0.5rem);
}

.gallery-btn:last-child:hover {
  transform: translateX(0.5rem);
}

.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #222;
  color: #e0e0e0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Red Hat Mono', monospace;
  z-index: 10;
}

.fullscreen-btn:hover {
  border-color: #666;
  background: rgba(17, 17, 17, 0.95);
  transform: scale(1.1);
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.fullscreen-overlay.active {
  display: flex;
}

.fullscreen-content {
  max-width: 95vw;
  max-height: 95vh;
  position: relative;
}

.fullscreen-content img,
.fullscreen-content video {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #222;
}

.fullscreen-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #222;
  color: #e0e0e0;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  font-family: 'Red Hat Mono', monospace;
  backdrop-filter: blur(10px);
}

.fullscreen-close:hover {
  border-color: #666;
  background: rgba(17, 17, 17, 0.95);
  transform: rotate(90deg);
}

.fullscreen-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 10;
}

.fullscreen-nav-btn {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #222;
  color: #e0e0e0;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  pointer-events: all;
  font-family: 'Red Hat Mono', monospace;
  backdrop-filter: blur(10px);
}

.fullscreen-nav-btn:hover {
  border-color: #666;
  background: rgba(17, 17, 17, 0.95);
}

.fullscreen-nav-btn:first-child:hover {
  transform: translateX(-0.5rem);
}

.fullscreen-nav-btn:last-child:hover {
  transform: translateX(0.5rem);
}

.fullscreen-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.fullscreen-nav-btn:disabled:hover {
  transform: none;
  border-color: #222;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #111;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #222;
}

.thumbnail {
  min-width: 120px;
  width: 120px;
  height: 80px;
  background: #111;
  border: 1px solid #222;
  cursor: pointer;
  transition: border-color 0.3s ease;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: #444;
}

.thumbnail.active {
  border-color: #666;
}

.thumbnail img,
.thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
}

.thumbnail[data-type="video"]::after {
  opacity: 0.8;
}

.post {
  margin-bottom: 3rem;
}

.post h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-content {
  font-size: 0.95rem;
  color: #999;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 2rem 1.5rem;
  }

  .back-link {
    top: 1rem;
    left: 1rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }
}