*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0d0d0d;
  color: #fff;
}

a {
  color: inherit;
}

.site-nav {
  display: flex;
  gap: 25px;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 10px;
}

.page-subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 40px;
}

.featured-project {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px;
  height: 350px;
  cursor: pointer;
  text-decoration: none;
}

.featured-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  transition: transform 0.4s ease;
}

.featured-project:hover img {
  transform: scale(1.05);
}

.featured-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  max-width: 500px;
}

.featured-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.featured-desc {
  color: #ccc;
  margin-bottom: 15px;
}

.featured-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  font-size: 14px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 30px;
}

.project-card {
  background: #151515;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.3s ease, border-color 0.3s ease;
  padding-bottom: 10px;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #444;
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.project-desc {
  color: #aaa;
  font-size: 14px;
}

.project-meta {
  color: #666;
  font-size: 12px;
  margin-top: 8px;
}

.project-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: #222;
  color: #fff;
  font-size: 13px;
  transition: background 0.3s ease;
}

.project-btn:hover {
  background: #333;
}

.loading-state,
.empty-state,
.error-state {
  text-align: center;
  color: #888;
  padding: 60px 20px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #333;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.project-hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

.project-hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
}

.project-hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.project-hero p {
  color: #ccc;
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-section {
  margin-bottom: 40px;
}

.detail-section h2 {
  margin-bottom: 10px;
}

.detail-section p {
  color: #bbb;
  line-height: 1.6;
  white-space: pre-wrap;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.link-btn {
  display: inline-block;
  padding: 10px 15px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  text-decoration: none;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .featured-project {
    height: 280px;
  }

  .project-hero h1 {
    font-size: 28px;
  }
}
