/* ============================================================
   Karolina Kubisiowska Portfolio
   Visual language: Mercury / Linear / Stripe
   ============================================================ */

/* 1. TOKENS ------------------------------------------------- */
:root {
  --bg:           #FAF9F7;
  --text:         #1F1F1F;
  --muted:        #6B6B6B;
  --border:       #E7E4DE;
  --surface:      #F0EDE8;
  --radius:       12px;
  --max-w:        1100px;
  --gutter:       clamp(24px, 4vw, 48px);
  --section-pad:  128px;
}

/* 2. GLOBAL ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

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

img { display: block; }

.container, .container-sm, .container-md, .container-lg, .container-xl {
  max-width: var(--max-w) !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
}

.kk-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 3. SECTION COMMON ----------------------------------------- */
.kk-section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px;
}

section[id] { scroll-margin-top: 70px; }

/* Hidden scroll anchor (projects / selected-work) */
.scroll-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 56px;
}

/* 4. EDITORIAL TWO-COLUMN LAYOUT ---------------------------- */
/* Used by: What I Bring, Selected Experience */

.editorial-two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .editorial-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.editorial-sticky {
  position: sticky;
  top: 120px;
}

@media (max-width: 860px) {
  .editorial-sticky { position: static; top: auto; }
}

.editorial-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.editorial-heading {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.editorial-right {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

/* 5. NAVBAR ------------------------------------------------- */
#profileHeader {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  transition: none !important;
}

#profileHeader nav {
  background: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#profileHeader .container-fluid {
  max-width: var(--max-w) !important;
  margin: 0 auto;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
}

.navbar-brand {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  letter-spacing: -0.01em !important;
  padding: 14px 0 !important;
}

.navbar-brand img { display: none !important; }

.navbar-collapse { background: var(--bg) !important; }

.nav-link {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  padding: 14px 14px !important;
  transition: color 0.12s !important;
  letter-spacing: 0.01em !important;
}

.nav-link:hover, .nav-link:focus { color: var(--text) !important; }
.nav-link.active { color: var(--text) !important; }

button#theme-toggle {
  display: none !important;
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  color: var(--text) !important;
}
.navbar-toggler:focus { box-shadow: none !important; }

/* 6. HERO --------------------------------------------------- */
#hero {
  padding: 96px 0 100px !important;
  background: var(--bg) !important;
  border-top: none !important;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero-name {
  font-size: clamp(40px, 5.5vw, 64px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  color: var(--text) !important;
  margin: 0 0 44px !important;
  max-width: 760px;
}

.hero-description {
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-description p { margin: 0 0 14px; }
.hero-description p:last-child { margin-bottom: 0; }

.hero-description p:first-child {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}

.hero-description p + p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

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

.btn-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  background: var(--text) !important;
  color: var(--bg) !important;
  border: 1px solid var(--text) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.btn-cta:hover { opacity: 0.8; color: var(--bg) !important; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(31, 31, 31, 0.5) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

.hero-bottom-svg { display: none !important; }

/* 7. ABOUT -------------------------------------------------- */
#about {
  padding: var(--section-pad) 0 !important;
  background: var(--bg) !important;
}

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

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

.about-bio p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 22px;
}
.about-bio p:last-child { margin-bottom: 0; }

.expertise-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  transition: border-color 0.12s, background 0.12s;
}
.chip:hover {
  border-color: rgba(31, 31, 31, 0.35);
  background: var(--surface);
}

/* 8. WHAT I BRING ------------------------------------------- */
#what-i-bring {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px;
}

.wib-title {
  font-size: 20px;
  font-weight: 500;
  color: #2A2A2A;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.wib-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* 9. SELECTED EXPERIENCE ------------------------------------ */
#experience {
  padding: var(--section-pad) 0 !important;
  background: var(--bg) !important;
  border-top: none !important;
}

.exp-company-role {
  font-size: 24px;
  font-weight: 500;
  color: #3D3D3D;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.exp-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 24px;
}

.exp-body p { margin: 0 0 12px; }
.exp-body p:last-child { margin-bottom: 0; }

/* Tags — shared by experience and projects */
.t-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.t-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

/* 10. SELECTED WORK ----------------------------------------- */
.projects-heading {
  margin-bottom: 56px;
}

#projects {
  padding: var(--section-pad) 0 !important;
  background: var(--bg) !important;
  border-top: none !important;
}

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

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  background: var(--surface) !important;
}

.work-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--surface);
  flex-shrink: 0;
  overflow: hidden;
}

.work-card:hover .work-thumb { background: #E9E5DF; }

.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
}

.work-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-tag + .work-tag::before { content: " · "; margin: 0 2px; }

.work-title {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  line-height: 1.25 !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em;
}

.work-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
  flex: 1;
}

.work-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  opacity: 0.45;
  transition: opacity 0.12s;
}
.work-card:hover .work-cta { opacity: 1; }

/* 11. CONTACT — DARK CLOSING SECTION ------------------------ */
#contact {
  background: #0D0D0D !important;
  padding: 100px 0 72px !important;
  border-top: 1px solid var(--border) !important;
}

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

@media (max-width: 860px) {
  .dark-contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

.dark-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.45);
  margin: 0 0 28px;
}

.dark-heading {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #FAF9F7;
  margin: 0 0 28px;
}

.dark-body { max-width: 380px; }

.dark-body p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(250, 249, 247, 0.5);
  margin: 0 0 10px;
}
.dark-body p:last-child { margin-bottom: 0; }

.dark-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border: 1px solid rgba(250, 249, 247, 0.1);
  border-radius: 10px;
  margin-bottom: 8px;
  color: #FAF9F7 !important;
  transition: border-color 0.15s, background 0.15s;
}

.dark-block:hover {
  border-color: rgba(250, 249, 247, 0.22);
  background: rgba(250, 249, 247, 0.04) !important;
  color: #FAF9F7 !important;
}

.dark-block-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.38);
  margin: 0 0 5px;
}

.dark-block-value {
  font-size: 14px;
  color: #FAF9F7;
  margin: 0;
}

.dark-icon {
  color: rgba(250, 249, 247, 0.32);
  flex-shrink: 0;
  margin-left: 16px;
}

.dark-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 1px solid rgba(250, 249, 247, 0.16);
  border-radius: 10px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #FAF9F7 !important;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.dark-cv-btn:hover {
  border-color: rgba(250, 249, 247, 0.38);
  background: rgba(250, 249, 247, 0.05) !important;
  color: #FAF9F7 !important;
}

.dark-cv-btn svg { color: rgba(250, 249, 247, 0.5); }

.dark-footer-line {
  border-top: 1px solid rgba(250, 249, 247, 0.07);
  margin-top: 72px;
  padding-top: 28px;
}

.dark-footer-copy {
  font-size: 12px;
  color: rgba(250, 249, 247, 0.26);
}

/* 12. FOOTER ------------------------------------------------ */
footer { display: none !important; }

/* 13. DARK MODE --------------------------------------------- */
.dark {
  --bg:      #18181a !important;
  --text:    #e8e8e4 !important;
  --muted:   #8a8a86 !important;
  --border:  #2e2e2e !important;
  --surface: #232325 !important;
}

.dark body  { background-color: var(--bg) !important; color: var(--text) !important; }
.dark .work-thumb { background: var(--surface) !important; }
.dark .work-card:hover .work-thumb { background: #2a2a2c !important; }

/* 14. UTILITY OVERRIDES ------------------------------------- */
.card, .card-body, .card-footer, .card-head {
  box-shadow: none !important;
  background: var(--bg) !important;
}

.bg-transparent { background: transparent !important; }

#primary-font, .primary-font { font-family: inherit !important; }
.secondary-font { font-family: inherit !important; color: var(--muted) !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
