:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --card: #1c1c1c;
  --border: #2a2a2a;
  --grey-light: #888;
  --grey-mid: #555;
  --text: #e8e8e8;
  --text-muted: #666;
  --accent: #a0a0a0;
  --accent-bright: #d0d0d0;
  --white: #f0f0f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.logo span {
  color: var(--grey-light);
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: var(--grey-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--white);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(100, 100, 100, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--grey-light);
}

.hero-sub {
  font-size: 17px;
  color: var(--grey-light);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  color: var(--grey-light);
  border: 1px solid var(--border);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* SECTION COMMONS */
section {
  padding: 100px 48px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--grey-light);
  max-width: 480px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}

.section-header {
  margin-bottom: 60px;
}

/* SERVICES */
#services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
  position: relative;
}

.service-card:hover {
  background: var(--card);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  opacity: 0.7;
}

.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-card p {
  color: var(--grey-light);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}

/* TECH STACK */
#stack {
  background: var(--bg);
}

.stack-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 2px;
  transition:
    border-color 0.2s,
    background 0.2s;
  cursor: default;
}

.tech-pill:hover {
  border-color: var(--grey-mid);
  background: var(--surface);
}

.tech-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey-light);
}

.tech-pill span {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: 0.3px;
}

.tech-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* PROJECTS */
#projects {
  background: var(--surface);
}

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--grey-mid);
  transform: translateY(-2px);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb-placeholder {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 24px;
}

.project-tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 8px;
}

.project-info h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.project-info p {
  font-size: 13px;
  color: var(--grey-light);
  line-height: 1.6;
  font-weight: 300;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-link {
  font-size: 12px;
  color: var(--grey-mid);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--white);
}

.no-projects {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.no-projects p {
  margin-top: 8px;
  font-size: 13px;
}

/* PROCESS */
#process {
  background: var(--bg);
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.process-step:first-child {
  border-top: 1px solid var(--border);
}

.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-mid);
  letter-spacing: 1px;
  padding-top: 3px;
}

.step-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 14px;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

/* CONTACT */
#contact {
  background: var(--surface);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--grey-light);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--grey-light);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-text {
  font-size: 14px;
  color: var(--grey-light);
}

.contact-item-text strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--grey-mid);
}

.form-group select option {
  background: var(--card);
}

.form-submit {
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  font-family: "Inter", sans-serif;
  margin-top: 4px;
}

.form-submit:hover {
  background: var(--accent);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--grey-light);
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.footer-logo span {
  color: var(--grey-mid);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--grey-light);
}

/* ADMIN MODAL */
.admin-footer-link {
  font-size: 12px;
  color: transparent;
  text-decoration: none;
  cursor: default;
  user-select: none;
  transition: color 0.3s;
  letter-spacing: 0.3px;
}

.admin-footer-link:hover {
  color: var(--text-muted);
  cursor: pointer;
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 300;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.admin-overlay.open {
  display: flex;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.admin-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.admin-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-light);
  font-size: 18px;
  transition: background 0.2s;
}

.admin-close:hover {
  background: var(--card);
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}

.admin-tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.admin-tab.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.admin-body {
  padding: 32px;
}

.admin-section {
  display: none;
}
.admin-section.active {
  display: block;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 24px;
}

.stat-card-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-card-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}

.stat-card-delta {
  font-size: 11px;
  color: #6b9b6b;
  margin-top: 4px;
}

.analytics-chart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.chart-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-light);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  background: var(--grey-mid);
  border-radius: 2px 2px 0 0;
  transition: background 0.2s;
  min-height: 4px;
}

.bar-wrap:hover .bar {
  background: var(--accent-bright);
}

.bar-month {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* PROJECT UPLOAD */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-form .form-group input,
.upload-form .form-group select,
.upload-form .form-group textarea {
  background: var(--bg);
}

.file-drop {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-drop:hover {
  border-color: var(--grey-mid);
}

.file-drop p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.file-drop-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.projects-list-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.project-admin-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.project-admin-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.project-admin-del {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey-mid);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.project-admin-del:hover {
  color: #c77;
  border-color: #c77;
}

/* Login */
.admin-login {
  padding: 48px 32px;
  max-width: 360px;
  margin: 0 auto;
}

.admin-login h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.admin-login p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.login-form input:focus {
  border-color: var(--grey-mid);
}

.login-error {
  font-size: 12px;
  color: #c77;
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }
  nav ul {
    display: none;
  }
  .hero {
    padding: 100px 20px 60px;
  }
  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }
  section {
    padding: 70px 20px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-panel {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
}
