:root {
  --bg: #f8fafc;
  --bg-1: #f1f5f9;
  --bg-2: #e2e8f0;
  --bg-3: #cbd5e1;
  --surface: rgba(255,255,255,0.8);
  --surface-hover: rgba(255,255,255,0.95);
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.12);
  --cyan: #0891b2;
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(8,145,178,0.06);
  --violet: #6d28d9;
  --violet-glow: rgba(109,40,217,0.06);
  --amber: #d97706;
  --grad-1: linear-gradient(135deg, #0891b2, #6d28d9);
  --grad-2: linear-gradient(135deg, #6d28d9, #d97706);
  --text: #0f172a;
  --text-dim: #475569;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { background: none; border: none; font-family: var(--font-body); cursor: pointer; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-title span {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1200px;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius);
  background: rgba(248,250,252,0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo .logo-bracket { color: var(--cyan); }
.nav-logo .logo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  margin: 0 2px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--surface-hover); }

.nav-admin {
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.nav-admin:hover { border-color: var(--cyan); color: var(--cyan); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 28px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: 80px;
}

.hero-content { flex: 1; max-width: 640px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--cyan-glow);
  border: 1px solid rgba(34,211,238,0.15);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
}

.title-line { display: block; color: var(--text-dim); font-size: 0.45em; font-weight: 600; margin-bottom: 6px; }
.title-name { display: block; background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-item { text-align: left; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== HERO LOGO ===== */
.hero-visual {
  flex: 0 0 auto;
  width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.hero-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.btn svg { width: 16px; height: 16px; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,211,238,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,211,238,0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { width: 18px; height: 18px; }

/* ===== ABOUT ===== */
.about { position: relative; }

.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.about-desc { color: var(--text-dim); line-height: 1.9; margin-bottom: 20px; font-size: 15px; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.skill-tag {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

.about-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.info-avatar {
  width: 48px; height: 48px;
  background: var(--grad-1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.info-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.info-role { color: var(--cyan); font-size: 12px; font-weight: 500; }
.info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

.info-item svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; }
.info-item a { color: var(--cyan); }
.info-item a:hover { text-decoration: underline; }

.info-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--cyan-glow);
  border: 1px solid rgba(34,211,238,0.1);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.status-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
}

/* ===== PROJECTS ===== */
.projects { position: relative; }

.projects::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.projects-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--text-muted); color: var(--text); }
.filter-btn.active { background: var(--grad-1); color: #fff; border-color: transparent; font-weight: 600; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-3);
}

.project-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.project-body { padding: 24px; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-glow);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(34,211,238,0.1);
}

.project-category {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-desc {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.project-link svg { width: 13px; height: 13px; }
.project-card:hover .project-link { gap: 10px; }

.projects-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }

/* ===== CONTACT ===== */
.contact { position: relative; }

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  min-width: 0;
  flex: 0 1 auto;
  cursor: default;
}

.contact-card:hover {
  border-color: rgba(8,145,178,0.12);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.contact-card a { text-decoration: none; }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: var(--cyan-glow);
  flex-shrink: 0;
}
.contact-icon.spigot-icon { color: var(--violet); background: var(--violet-glow); }
.contact-icon svg { width: 22px; height: 22px; }

.contact-info { display: flex; flex-direction: column; gap: 3px; }
.contact-info h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.contact-info p { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.contact-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  transition: opacity 0.3s;
  display: inline-block;
  margin-top: 2px;
}
.contact-link:hover { opacity: 0.7; }
}

.contact-link:hover { opacity: 0.7; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { font-family: var(--font-heading); font-weight: 700; }
.footer-brand .logo-bracket { color: var(--cyan); }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color 0.3s; font-weight: 500; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { color: var(--text-muted); font-size: 12px; font-weight: 500; }

/* ===== PROJECT MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover { background: var(--surface-hover); color: var(--text); }

.modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-3);
}

.modal-body { padding: 24px; }

.modal-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-glow);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.modal-title { font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.modal-desc { color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; align-items: center; gap: 40px; }
  .hero-visual { width: 240px; height: 240px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-info-card { position: static; }
}

@media (max-width: 768px) {
  .navbar { top: 8px; width: calc(100% - 24px); padding: 0 16px; }
  .nav-links { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 260px; background: var(--bg-2); border-left: 1px solid var(--border); flex-direction: column; padding: 80px 24px 24px; gap: 4px; z-index: 200; transform: translateX(100%); transition: transform 0.3s; }
  .nav-links.open { display: flex; transform: translateX(0); }
  .hamburger { display: flex; z-index: 201; }
  .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .stat-divider { display: none; }
  .footer-content { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-detail {
  padding-top: 120px;
  min-height: 100vh;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: var(--transition);
}
.back-link:hover { color: var(--cyan); }
.loading { color: var(--text-dim); font-size: 15px; }

.detail-header {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}
.detail-img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  aspect-ratio: 16/9;
  object-fit: cover;
}
.detail-info { padding-top: 8px; }
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.detail-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.detail-links { display: flex; gap: 12px; flex-wrap: wrap; }

.detail-section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}
.version-row {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  transition: var(--transition);
}
.version-row:hover { border-color: var(--border-hover); }
.version-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-glow);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  height: fit-content;
  border: 1px solid rgba(34,211,238,0.1);
}
.version-info { flex: 1; }
.version-changelog { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.version-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.version-date { color: var(--text-muted); font-size: 12px; }
.version-download {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.version-download:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .detail-header { grid-template-columns: 1fr; gap: 24px; }
  .detail-img { max-height: 240px; }
  .version-row { flex-direction: column; gap: 12px; }
}
