/* ==========================================================
   GLOBAL STYLE
   Main file: static/style.css
   Resume file removed. Resume will be handled by database later.
   ========================================================== */

:root {
  --portfolio-bg: #0F1115;
  --portfolio-text: #E5E7EB;
  --portfolio-accent: #D4AF37;
  --portfolio-accent-text: #000000;

  --portfolio-muted: rgba(229, 231, 235, 0.72);
  --portfolio-soft: rgba(255, 255, 255, 0.08);
  --portfolio-border: rgba(255, 255, 255, 0.12);
  --portfolio-card: rgba(255, 255, 255, 0.06);

  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--portfolio-bg);
  color: var(--portfolio-text);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.portfolio-app {
  min-height: 100vh;
  width: 100%;
}

#client-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 64px;
}

.section-shell {
  min-height: 60vh;
  padding-bottom: 16px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.glass-card {
  background: var(--portfolio-card);
  border: 1px solid var(--portfolio-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.soft-card {
  background: var(--portfolio-soft);
  border: 1px solid var(--portfolio-border);
  border-radius: var(--radius-md);
}

.section-label {
  color: var(--portfolio-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.section-description {
  color: var(--portfolio-muted);
  max-width: 760px;
  line-height: 1.8;
}

.accent-text {
  color: var(--portfolio-accent);
}

.muted-text {
  color: var(--portfolio-muted);
}

.primary-btn,
.secondary-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--portfolio-accent);
  color: var(--portfolio-accent-text);
  padding: 12px 18px;
  font-weight: 800;
}

.secondary-btn {
  background: var(--portfolio-soft);
  color: var(--portfolio-text);
  border: 1px solid var(--portfolio-border);
  padding: 12px 18px;
  font-weight: 700;
}

.icon-btn {
  width: 42px;
  height: 42px;
  background: var(--portfolio-soft);
  color: var(--portfolio-text);
  border: 1px solid var(--portfolio-border);
}

.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.copy-feedback {
  font-size: 0.78rem;
  color: var(--portfolio-accent);
}

html,
.scroll-area,
.modal-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--portfolio-accent) transparent;
}

html::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track,
.scroll-area::-webkit-scrollbar-track,
.modal-panel::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb,
.modal-panel::-webkit-scrollbar-thumb {
  background: var(--portfolio-accent);
  border-radius: 999px;
}

#modal-root {
  position: relative;
  z-index: 9999;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-panel {
  width: min(920px, 100%);
  max-height: min(760px, 92vh);
  overflow-y: auto;
  background: var(--portfolio-bg);
  color: var(--portfolio-text);
  border: 1px solid var(--portfolio-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(15, 17, 21, 0.92);
  border-bottom: 1px solid var(--portfolio-border);
  backdrop-filter: blur(14px);
}

.modal-body {
  padding: 22px;
}

@media (max-width: 768px) {
  #client-main {
    width: min(100% - 20px, 1180px);
    padding-top: calc(var(--header-height) + 18px);
  }

  .section-shell {
    padding-bottom: 16px;
  }

  .modal-backdrop {
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

.header-nav-link.active,
.header-mobile-link.active {
  color: var(--portfolio-accent) !important;
  background: rgba(212, 175, 55, 0.14);
}

.header-nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.28);
}