/* ==========================================================================
   Michalina Kałmucka — Portfolio
   Shared design system: tokens, base, layout, components
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sora:wght@600;700;800&display=swap');

:root {
  /* Base palette */
  --bg: #0d0d14;
  --bg-alt: #14141f;
  --card: #1a1a28;
  --card-alt: #202031;
  --border: #2a2a3a;
  --text: #eceaf6;
  --text-muted: #a3a1b5;
  --white: #ffffff;

  /* Default (site-wide) accent — purple/blue gradient */
  --accent-a: #7c3aed;
  --accent-b: #8284ff;
  --accent-solid: #8284ff;
  --accent-gradient: linear-gradient(90deg, var(--accent-a), var(--accent-b));

  /* Type */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-pad: 154px;
  --section-pad-y: 100px;
  --radius-pill: 999px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-soft: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.section--alt { background: var(--bg-alt); }
.section--tight-top { padding-top: 56px; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-solid);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38.4px;
  color: var(--text);
  max-width: 640px;
  line-height: 1.15;
}

.section-lede { color: var(--text-muted); font-size: 16.8px; max-width: 680px; }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  font-weight: 600;
  font-size: 15.2px;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-gradient);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-solid); }

/* ---------------------------------- Navbar --------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19.2px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-weight: 500;
  font-size: 14.7px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { margin-left: 4px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14.7px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  padding-top: 130px;
  padding-bottom: 80px;
  background: var(--bg);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { display: flex; flex-direction: column; gap: 14px; width: 679px; max-width: 100%; }
.hero-kicker { color: var(--accent-solid); font-weight: 600; font-size: 13.6px; letter-spacing: 1.1px; }
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.05;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-family: var(--font-heading); font-weight: 600; font-size: 24px; color: var(--text-muted); }
.hero-desc { color: var(--text-muted); font-size: 16.8px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; padding: 10px 0; }
.hero-socials, .contact-socials { display: flex; gap: 14px; }
.social-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13.6px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-btn:hover { border-color: var(--accent-solid); color: var(--accent-solid); }

.hero-media { display: flex; align-items: center; justify-content: center; width: 453px; max-width: 100%; }
.hero-avatar {
  width: 397px;
  max-width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------- About --------------------------------- */
.about-grid { display: flex; gap: 48px; margin-top: 40px; align-items: flex-start; }
.about-text { flex: 1; color: var(--text-muted); font-size: 16.32px; }
.about-facts { display: flex; flex-direction: column; gap: 14px; width: 420px; max-width: 100%; font-size: 14.72px; }
.fact-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 18px;
}
.fact-row dt { color: var(--text-muted); font-weight: 400; }
.fact-row dd { margin: 0; color: var(--text); font-weight: 600; }

/* ---------------------------------- Skills --------------------------------- */
.skills-grid { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.skill-card {
  flex: 1 1 0; min-width: 240px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.skill-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.skill-card ul { display: flex; flex-direction: column; gap: 16px; }
.skill-card li { font-size: 14.08px; color: var(--text); }

/* --------------------------------- Services -------------------------------- */
.services-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.service-card {
  width: 265px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px;
}
.service-card .icon { font-size: 28.8px; margin-bottom: 16px; }
.service-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.72px; }

/* --------------------------------- Portfolio -------------------------------- */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13.6px;
  transition: all 0.15s ease;
}
.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--white);
}
.filter-btn:not(.active):hover { border-color: var(--accent-solid); color: var(--text); }

.portfolio-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.project-card {
  width: 360px; max-width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--accent-solid); }
.project-card__image { height: 270px; overflow: hidden; background: var(--accent-gradient); }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.project-card__tag { font-weight: 600; font-size: 12px; letter-spacing: 0.8px; color: var(--accent-solid); text-transform: uppercase; }
.project-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 16.8px; color: var(--text); }

/* -------------------------------- Experience -------------------------------- */
.experience-columns { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.timeline-col { flex: 1; min-width: 280px; }
.timeline-col h3 { font-family: var(--font-heading); font-weight: 700; font-size: 17.6px; margin-bottom: 24px; }
.timeline { border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 32px; padding-left: 24px; }
.timeline-item { position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -30px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-gradient);
}
.timeline-date { color: var(--accent-solid); font-weight: 600; font-size: 12.8px; letter-spacing: 0.6px; }
.timeline-item h4 { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text); }
.timeline-item .org, .timeline-item .desc { color: var(--text-muted); font-size: 14.4px; }

/* ---------------------------------- Contact --------------------------------- */
.contact-grid { display: flex; gap: 48px; flex-wrap: wrap; }
.contact-left { flex: 1; min-width: 280px; }
.contact-title { font-family: var(--font-heading); font-weight: 700; font-size: 32px; margin: 10px 0 24px; }
.contact-available { color: var(--accent-solid); font-weight: 600; font-size: 16px; display: block; margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; font-size: 15.2px; margin-bottom: 24px; }
.contact-list li { display: flex; gap: 6px; }
.contact-list strong { color: var(--text); font-weight: 600; }
.contact-list span { color: var(--text-muted); }

.contact-form {
  flex: 1; min-width: 280px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { color: var(--text-muted); font-size: 13.6px; }
.form-field input, .form-field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; color: var(--text);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent-solid); }
.form-status { font-size: 14px; color: var(--accent-solid); min-height: 1em; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.site-footer .name { font-size: 15.2px; }
.site-footer .rights { color: var(--text-muted); font-size: 13.6px; }

/* ============================ Project detail pages ========================= */
.project-header { padding-top: 72px; padding-bottom: 56px; }
.project-tag { color: var(--accent-solid); font-weight: 600; font-size: 12.8px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; display: block; }
.project-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 48px; line-height: 1.1;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px; max-width: 780px;
}
.project-lede { color: var(--text-muted); font-size: 16.8px; max-width: 680px; margin-bottom: 36px; }
.meta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.meta-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 18px; display: flex; flex-direction: column; gap: 4px;
}
.meta-item .k { color: var(--text-muted); font-size: 11.2px; letter-spacing: 0.6px; text-transform: uppercase; }
.meta-item .v { color: var(--text); font-weight: 600; font-size: 14.72px; }

.cover-wrap { padding-bottom: 100px; }
.cover-image {
  height: 566px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border);
  background: var(--accent-gradient);
}
.cover-image img { width: 100%; height: 100%; object-fit: cover; }

.project-about .about-text { display: flex; flex-direction: column; gap: 20px; font-size: 16px; }

.gallery-heading { margin-bottom: 36px; }
.gallery-heading .section-title { font-size: 32px; }
.shot-block { margin-bottom: 24px; }
.shot-block img, .shot-block .shot { width: 100%; border-radius: 20px; border: 1px solid var(--border); display: block; object-fit: cover; }
.gallery-caption { color: var(--text-muted); font-size: 14.5px; margin-top: 16px; }

.gallery-equal-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.gallery-equal-grid img { border-radius: 16px; border: 1px solid var(--border); object-fit: cover; flex: 1; min-width: 260px; height: 420px; }
.gallery-equal-grid.four img { min-width: 240px; height: 260px; }

/* Futura Book gallery — natural proportions, never cropped */
.futura-gallery { display: flex; flex-direction: column; gap: 24px; }
.futura-gallery__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.futura-gallery__row img {
  flex: 1 1 0;
  min-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
/* Extra breathing room under the opening pair */
.futura-gallery__row--hero { margin-bottom: 76px; }

.next-project-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 100px; padding-bottom: 100px; flex-wrap: wrap; gap: 24px;
}
.next-project-nav a { display: flex; flex-direction: column; gap: 6px; }
.next-project-nav .label { color: var(--accent-solid); font-weight: 600; font-size: 12.8px; letter-spacing: 1px; }
.next-project-nav .title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--text); }
.next-project-nav .next { text-align: right; align-items: flex-end; margin-left: auto; }

/* Brand showcase card (SOLIS logo panel etc.) */
.showcase-card {
  background: #f5f5f8; border-radius: 24px; padding: 40px; color: #111;
}
.showcase-card .badge {
  display: inline-block; background: #e5e5ea; color: #333; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.showcase-card h3 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: #0d0d14; }
.showcase-card p { color: #55536a; margin-top: 8px; }

.swatch-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.swatch {
  width: 150px; height: 150px; border-radius: 16px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 14px;
}
.swatch span { font-weight: 600; font-size: 13px; color: var(--white); }
.swatch.light span { color: #111; }

.color-carousel {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 2200 / 701;
}
.color-carousel img {
  display: block;
  width: calc(var(--carousel-pages, 3) * 100%);
  max-width: none;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0%);
}

.color-chip-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.color-chip { width: 150px; border-radius: 16px; overflow: hidden; background: #fff; }
.color-chip .swab { height: 90px; }
.color-chip .label { padding: 10px 14px; }
.color-chip .label strong { display: block; font-size: 14px; color: #0d0d14; }
.color-chip .label span { font-size: 12px; color: #7a7a86; }

.icon-grid-card { background: #fdf9ee; border-radius: 24px; padding: 40px; }
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.icon-tile { aspect-ratio: 1; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; }

.weather-icon-base { opacity: 1; transition: opacity 0.5s ease; }
.weather-icon-swap:hover .weather-icon-base { opacity: 0; }

.phone-mock {
  width: 220px; border-radius: 32px; border: 8px solid #1c1c1c; background: #1c1c1c;
  overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.phone-mock .screen { border-radius: 24px; overflow: hidden; aspect-ratio: 9/19.5; display: flex; flex-direction: column; padding: 18px; color: #fff; }
.phone-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }

.social-post-card { width: 220px; background: #fff; border-radius: 14px; overflow: hidden; color: #111; flex-shrink: 0; }
.social-post-card .post-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.social-post-card .post-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-gradient); }
.social-post-card .post-image { aspect-ratio: 1; }
.social-post-card .post-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.social-post-card .post-actions .left { display: flex; gap: 10px; }
.h-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }

.ig-card {
  width: 300px; flex-shrink: 0; border-radius: 20px; overflow: hidden; position: relative;
  background-size: cover; background-position: center; aspect-ratio: 366/498;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ig-card .ig-actions { display: flex; gap: 14px; padding: 14px 16px; background: rgba(10,10,16,0.35); backdrop-filter: blur(2px); }
.ig-card .ig-actions img { width: 20px; height: 20px; }

.video-shorts { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; }
.video-shorts__item {
  width: 260px;
  height: 550px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #000;
  object-fit: cover;
}

.yt-block { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.yt-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-width: 280px; }
.yt-thumbs img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }

/* ------------------------------ Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------------------- Responsive -------------------------------- */
@media (max-width: 1200px) {
  :root { --container-pad: 64px; --section-pad-y: 80px; }
  .hero-title { font-size: 52px; }
}

@media (max-width: 960px) {
  :root { --container-pad: 32px; --section-pad-y: 64px; }
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; padding: 32px; gap: 24px;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .hero-inner { flex-direction: column; }
  .hero-text { width: 100%; }
  .hero-title { font-size: 42px; }
  .hero-desc { max-width: 100%; }
  .about-grid { flex-direction: column; }
  .about-facts { width: 100%; }
  .skills-grid, .experience-columns, .contact-grid { flex-direction: column; }
  .project-card, .service-card { width: 100%; }
  .section-title { font-size: 30px; }
  .project-title { font-size: 36px; }
  .cover-image { height: 320px; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .next-project-nav .next { text-align: left; align-items: flex-start; margin-left: 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 34px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .meta-row { flex-direction: column; }
  .project-title { font-size: 28px; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-thumbs { grid-template-columns: 1fr; }
}
