* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  color: #f5f5f5;
  background:
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.76)),
    url("/assets/bg.jpg") center center / cover no-repeat fixed;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.20));
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
}

.menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.menu a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #d8d8d8;
  font-size: 14px;
  transition: 0.25s ease;
}

.menu a:hover,
.menu a.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 90px;
}

.hero-section {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-left h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
  margin: 0 0 20px;
}

.hero-description {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.8;
  color: #c8c8c8;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: #a8a8a8;
}

.hero-buttons,
.bookmark-actions,
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f2;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary {
  background: rgba(255, 255, 255, 0.12);
}

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

.glass-card {
  background: rgba(18, 18, 18, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition: 0.28s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  background: rgba(26, 26, 26, 0.75);
}

.small-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #969696;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
  max-width: 760px;
  color: #c3c3c3;
  line-height: 1.75;
}

.content-grid {
  display: grid;
  gap: 20px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.one-column {
  grid-template-columns: 1fr;
}

.bookmark-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.bookmark-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 8px;
}

.tag {
  font-size: 12px;
  color: #b7b7b7;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li + li {
  margin-top: 12px;
}

.link-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.link-list a {
  display: block;
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #ececec;
  transition: 0.25s ease;
  word-break: break-all;
}

.link-list a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.delete-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.25s ease;
}

.delete-btn:hover {
  background: rgba(255, 80, 80, 0.18);
  color: #fff;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card p {
  color: #c5c5c5;
  line-height: 1.75;
}

.stack-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stack-list span {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d6d6d6;
}

.contact-card {
  max-width: 860px;
}

.top-margin {
  margin-top: 20px;
}

.embed-frame-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.embed-frame {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(100%, 520px);
  margin: 0 auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.close-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d5d5d5;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
}

.form-group input::placeholder {
  color: #8c8c8c;
}

.card-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
}

.card-select option {
  background: #111;
  color: #fff;
}

.empty-message {
  color: #a9a9a9;
  padding: 10px 2px;
}

@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .bookmark-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section {
    width: min(100% - 24px, 1200px);
    padding: 90px 0 70px;
  }

  .two-columns,
  .bookmark-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .glass-card {
    border-radius: 22px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .link-item-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.card-type-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.card-type-btn {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f2;
  cursor: pointer;
  transition: 0.25s ease;
}

.card-type-btn:hover,
.card-type-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.card-form.hidden {
  display: none;
}

.note-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
  resize: vertical;
  font: inherit;
}

.note-textarea::placeholder {
  color: #8c8c8c;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.note-content {
  color: #e8e8e8;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secret-hover-zone {
  position: fixed;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  z-index: 300;
  opacity: 0;
  pointer-events: auto;
}