/* ============================================
   Cyanokit — Modern professional UI overrides
   ============================================ */

/* Typography & base */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero section — cleaner, more impact */
.hero-section {
  padding: 2.5rem 1rem 3rem;
  position: relative;
}

.hero-section .hero-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.hero-section h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-section .hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

/* Section titles */
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .section-title,
.sidebar-dark .section-title {
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Portfolio section — premium card grid */
#portfolio {
  margin-top: 0;
}

#portfolio .block-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] #portfolio .block-header,
.sidebar-dark #portfolio .block-header {
  border-bottom-color: rgba(255,255,255,0.08);
}

#portfolio .block-title {
  font-size: 1.25rem;
  font-weight: 600;
}

#portfolio .block-content {
  padding: 1.5rem;
}

#portfolio .portfolio-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

[data-theme="dark"] #portfolio .portfolio-card,
.sidebar-dark #portfolio .portfolio-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}

#portfolio .portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.12);
}

[data-theme="dark"] #portfolio .portfolio-card:hover,
.sidebar-dark #portfolio .portfolio-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

#portfolio .portfolio-thumb {
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

[data-theme="dark"] #portfolio .portfolio-thumb,
.sidebar-dark #portfolio .portfolio-thumb {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

#portfolio .portfolio-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

#portfolio .portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.04);
}

#portfolio .portfolio-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

#portfolio .portfolio-card .fs-sm {
  font-size: 0.8125rem;
  line-height: 1.45;
  min-height: 2.9em;
}

#portfolio .portfolio-modal-btn {
  margin-top: 0.5rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 1rem;
}

/* About/Contact tab block — cleaner cards */
.nav-tabs-block .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 2px;
}

.nav-tabs-block .nav-link.active {
  font-weight: 600;
}

.tab-content .block-content {
  padding: 1.5rem 1.25rem;
}

.tab-content .block-content h4,
.tab-content .block-content h5 {
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

.tab-content .block-content h4:first-child,
.tab-content .block-content h5:first-of-type {
  margin-top: 0;
}

.tab-content .block-content p {
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

/* Contact buttons — consistent pill style */
.contact .btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Stream / Featured video block */
.block-transparent .block-header {
  font-weight: 600;
}

.block-transparent .block-content iframe {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Am I Online table */
.table.table-striped.table-vcenter {
  border-radius: 10px;
  overflow: hidden;
}

.table.table-striped.table-vcenter thead th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Experience / Skills block */
.progress {
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Quote block */
.blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--codebase-primary, #6c5ce7);
  background: rgba(0,0,0,0.03);
}

[data-theme="dark"] .blockquote,
.sidebar-dark .blockquote {
  background: rgba(255,255,255,0.05);
}

.blockquote-footer {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Favorite Games / Songs cards */
.bg-gd-lake .fs-lg,
.bg-gd-cherry .fs-lg {
  font-weight: 600;
}

.table-borderless.table-striped td {
  padding: 0.6rem 0.75rem;
}

/* Portfolio modal — navigatable hero */
#portfolio-modal .modal-dialog {
  max-width: 900px;
}

#portfolio-modal .block-header {
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#portfolio-modal .block-title {
  font-size: 1.125rem;
}

#portfolio-modal .portfolio-hero {
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] #portfolio-modal .portfolio-hero,
.sidebar-dark #portfolio-modal .portfolio-hero {
  background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
}

#portfolio-modal .portfolio-hero img {
  display: block;
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

#portfolio-modal #portfolio-counter {
  font-weight: 500;
  min-width: 3.5rem;
  text-align: center;
}

#portfolio-modal #portfolio-prev,
#portfolio-modal #portfolio-next {
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

#portfolio-modal #portfolio-modal-link {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

/* Footer */
#page-footer {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] #page-footer,
.sidebar-dark #page-footer {
  border-top-color: rgba(255,255,255,0.08);
}

/* Theme toggle button */
#theme-toggle-btn {
  border-radius: 8px;
}

/* My Car section */
.block-rounded .block-content .h2 {
  font-weight: 700;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 1.5rem 4rem;
  }
}

@media (max-width: 575px) {
  #portfolio .portfolio-thumb {
    height: 140px;
  }
}
