@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --background: #0B0F19;
  --foreground: #E2E8F0;
  --accent: #6366F1;
  --card-bg: rgba(22, 28, 45, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
}

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

main {
  flex-grow: 1;
  padding: 3rem 0;
  position: relative;
  z-index: 1;

}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;

}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;

}

.logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
}

.desktop-menu {
  display: flex;
  gap: 0.5rem;

}


.nav-link {
  text-decoration: none;
  color: #94A3B8;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;

}

.nav-link:hover {
  color: #fff;

}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);

}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;

}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #0B0F19;

}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem;
  gap: 0.25rem;

}

.mobile-nav-link {
  text-decoration: none;
  color: #94A3B8;
  padding: 0.75rem 1.5rem;
  font-size: 14px;
  border-radius: 6px;

}

.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;


}

.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;

}

.cosmic-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

}

.cosmic-canvas {
  width: 100%;
  height: 100%;
}

.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.glow-left {
  top: 10%;
  left: -100px;
}

.glow-right {
  bottom: 10%;
  right: -100px;
  background: rgba(236, 72, 153, 0.12);
}

h1,
h2,
h3,
h4 {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.6;
  color: #94A3B8;
  font-size: 0.95rem;

}

.text-sm-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;

}

/*button*/
.btn, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #4F46E5;

}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border);

}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Typography & Hero */
.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 600px;
  margin-bottom: 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.secondary-links-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.link-pill {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.link-pill:hover {
  color: #fff;
}

/* Layout & Grids */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-highlights-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-subtitle-line {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #fff;
}

.span-indigo {
  width: 1rem;
  height: 3px;
  background: #6366F1;
  border-radius: 2px;
}

.span-pink {
  width: 1rem;
  height: 3px;
  background: #EC4899;
  border-radius: 2px;
}

.paragraph-spacing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.6;
}

.text-dim {
  color: #94A3B8;
}

/* Highlights */
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  padding: 1.25rem;
  transition: transform 0.2s, background 0.2s;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.highlight-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.highlight-flex {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-icon-featured {
  color: #EC4899;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-bullet {
  width: 6px;
  height: 6px;
  background: #6366F1;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.highlight-content h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #E2E8F0;
  margin-bottom: 0.25rem;
}

.highlight-content p {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.4;
}

.highlight-featured-tag {
  font-size: 0.7rem;
  background: rgba(236, 72, 153, 0.2);
  color: #F472B6;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Projects & Collaborations Grid */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.directory-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s, background 0.2s;
}

.directory-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.directory-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.directory-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.directory-header svg {
  color: var(--accent);
}

.directory-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.5;
  flex-grow: 1;
}

.directory-links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.directory-link {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.directory-link:hover {
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  background: rgba(11, 15, 25, 0.8);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.toc-container {
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  border-left: 3px solid var(--accent);
}
.toc-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  display: block;
}
.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.toc-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.toc-link:hover {
  color: #fff;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
}
.blog-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.5rem;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}
.blog-flex {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.blog-icon-box {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.blog-chevron {
  color: #64748b;
  transition: transform 0.3s ease;
}
.blog-card.active .blog-chevron {
  transform: rotate(180deg);
}
.blog-summary {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.blog-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #cbd5e1;
  line-height: 1.7;
}
.blog-card.active .blog-content {
  display: block;
  animation: fadeIn 0.4s ease;
}

.lounge-controls-container {
  display: flex;
  margin-bottom: 2rem;

}

.search-input-wrapper {
  position: relative;
  width: 100%;

}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;

}

.lounge-search-field {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.25rem;
  background: rgba(0, 0, 0, 0);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.lounge-search-field:focus {
  border-color: var(--accent)
}

.lounge-tabs-row {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.loung-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #94A3B8;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;

}

.lounge-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);

}

.lounge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  justify-content: center;
  gap: 1.5rem;

}

.lounge-card {
  width: 200px;
  height: 310px;
  perspective: 1000px;
  cursor: pointer;


}

.lounge-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

}

.lounge-card.flipped .lounge-card-inner {
  transform: rotateY(180deg);

}

.lounge-card-front,
.lounge-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #111827;
}

.lounge-card-back {
  transform: rotateY(180deg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background: #1e293b;
}

.lounge-poster-wrapper {
  height: 220px;
  position: relative;
}

.lounge-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lounge-card-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  font-size: 11px;
  color: #94A3B8;
}

.lounge-anime-title {
  padding: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.lounge-back-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.lounge-back-header h4 {
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.lounge-back-tags {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.lounge-tag {
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #CBD5E1;
}

.lounge-back-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #94A3B8;
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}

.lounge-back-review h5 {
  font-size: 11px;
  color: var(--accent);
}

.lounge-back-review p {
  font-size: 10px;
  line-height: 1.3;
}

.lounge-redirect-btn {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 11px;
  padding: 0.4rem;
  border-radius: 4px;
  margin-top: auto;
  font-weight: 500;
}

.sandbox-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sandbox-canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #05070c;
}

.sandbox-canvas-el {
  width: 100%;
  height: 100%;
  display: block;
}

.sandbox-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 15, 25, 0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.presets-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.preset-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

.sandbox-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sandbox-slider-input {
  width: 100%;
  accent-color: var(--accent);
}

.options-panel {
  display: flex;
  gap: 1rem;
}

.resume-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.resume-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.resume-name {
  font-size: 28px;
  font-weight: 700;
}

.resume-tagline {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  margin: 0.25rem 0 0.5rem 0;
}

.resume-meta {
  display: flex;
  gap: 1rem;
  font-size: 13px;
  color: #94A3B8;
}

.resume-meta a {
  color: inherit;
  text-decoration: none;
}

.resume-section {
  margin-bottom: 1.5rem;
}

.resume-section-title {
  font-size: 16px;
  text-transform: uppercase;
  border-left: 3px solid var(--accent);
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
}

.resume-item {
  margin-bottom: 1rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.resume-item-title {
  font-weight: 600;
}

.resume-item-date {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.resume-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.resume-skill-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 11px;
}

.curator-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

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

.curator-modal-content {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.curator-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.curator-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.curator-field-group label {
  font-size: 11px;
  text-transform: uppercase;
  color: #94A3B8;
}

.curator-input,
.curator-select {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  outline: none;
}

.curator-items-table-wrapper {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.curator-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.curator-items-table th,
.curator-items-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.curator-items-table th {
  background: rgba(0, 0, 0, 0.3);
  text-align: left;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .lounge-grid {
    grid-template-columns: repeat(auto-fill, 160px);
  }

  .lounge-card {
    width: 160px;
    height: 270px;
  }

  .lounge-poster-wrapper {
    height: 180px;
  }
}

@media (max-width: 500px) {
  .lounge-grid {
    grid-template-columns: repeat(auto-fill, 160px);
    gap: 0.75rem;
  }
  .lounge-card {
    width: 160px;
    height: 250px;
  }
  .lounge-poster-wrapper {
    height: 180px;
  }
  .lounge-card-meta {
    font-size: 9px;
  }
  .lounge-anime-title {
    font-size: 11px;
  }
  .lounge-card-back {
    padding: 0.6rem;
  }
  .lounge-back-header h4 {
    font-size: 11px;
  }
  .lounge-tag {
    font-size: 8px;
    padding: 0.1rem 0.2rem;
  }
  .lounge-back-desc {
    font-size: 10px;
    margin-bottom: 0.25rem;
  }
  .lounge-back-review h5 {
    font-size: 9px;
  }
  .lounge-back-review p {
    font-size: 9px;
  }
  .lounge-redirect-btn {
    font-size: 10px;
    padding: 0.3rem;
  }
}