:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-hover: #262626;
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #ededed;
  --text-muted: #a1a1aa;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.3);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-cta { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-cta:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover); transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface);
}

/* Hero Section */
.hero {
  position: relative; padding: 10rem 1.5rem 6rem;
  text-align: center; min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(10,10,10,0) 70%);
  z-index: -1; pointer-events: none;
}
.badge {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.125rem; color: var(--text-muted); max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Slider Section */
.slider-section {
  padding: 2rem 0 6rem; overflow: hidden;
}
.slider-container {
  position: relative; max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.slider-track {
  display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide {
  min-width: 100%; height: 500px;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.slide-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(45deg, #171717, #262626);
  color: var(--text-muted); font-size: 1.5rem; font-weight: 600;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10,10,10,0.5); color: white; border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(4px); transition: all 0.2s;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

/* Portfolio Section */
.portfolio { padding: 5rem 0; background: #000; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.category-group { margin-bottom: 4rem; }
.category-title {
  font-size: 1.25rem; font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 2rem;
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card UI */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.card-img-wrap {
  position: relative; padding-top: 56.25%; /* 16:9 */ overflow: hidden;
  border-bottom: 1px solid var(--border); background: #262626;
}
.card-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.card:hover .card-img { transform: scale(1.05); }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 0.25rem 0.6rem; border-radius: 99px; font-size: 0.7rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.5px;
}
.card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.3; }
.card-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; flex: 1; }

.card-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.btn-link {
  color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }
.btn-detail {
  background: transparent; color: var(--text-main); border: 1px solid var(--border);
  padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-detail:hover { background: var(--surface-hover); }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg); padding: 4rem 0 2rem; }
.footer-content {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem;
  margin-bottom: 4rem;
}
.footer-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-info p { color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.social-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.social-link:hover { color: white; }
.footer-bottom {
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  border-top: 1px solid var(--border); padding-top: 2rem;
}

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 700px;
  position: relative; transform: translateY(20px); transition: transform 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.5); border: none;
  color: white; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10;
}
.modal-body-img { width: 100%; height: 350px; object-fit: cover; border-bottom: 1px solid var(--border); }
.modal-info { padding: 2rem; }
.modal-title { font-size: 1.5rem; margin-bottom: 1rem; }
.modal-desc { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.modal-meta { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.modal-buttons { display: flex; gap: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .slider-container { border-radius: 0; border-left: none; border-right: none; }
  .slide { height: 300px; }
  .footer-content { flex-direction: column; text-align: center; }
}
