:root {
  --bg: #13172c;
  --bg-alt: #152644;
  --surface: #1f2334;
  --surface-strong: #2a2d3e;
  --surface-soft: #37382d;
  --border: rgba(242, 233, 203, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --blue: #326dd2;
  --light-blue: #8acbf1;
  --yellow: rgb(238, 203, 49);
  --highlight: #f2e9cb;
  --cyan: rgb(30, 171, 196);
  --red: rgb(217, 90, 2);
  --rule: rgba(217, 90, 2, 0.35);
  /* --rule: rgba(242, 233, 203, 0.35); */
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  background:
    radial-gradient(1000px 600px at 90% -10%, rgba(50, 109, 210, 0.2), transparent 70%),
    radial-gradient(700px 420px at -10% 12%, rgba(30, 171, 196, 0.12), transparent 70%),
    linear-gradient(160deg, var(--bg) 0%, #121a2c 48%, #101526 100%);
  padding: 0;
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
}

.container {
  position: relative;
  z-index: 1;
}

header {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(242, 233, 203, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.header-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.header-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

h1,
h2,
.logo {
  font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.logo {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.logo a {
  color: var(--text);
  text-decoration: none;
}

.logo a:hover {
  color: var(--yellow);
}

.btn.btn-secondary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #151824;
  font-weight: 600;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
  background: #f5d84f;
  border-color: #f5d84f;
  color: #111521;
}

.portfolio-page {
  display: block;
  padding: 1.15rem 0 3rem;
}

.portfolio-hero {
  max-width: 44rem;
  margin: 0 0 2.2rem;
  padding: 1.3rem 0 0.25rem;
}

.portfolio-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.portfolio-section {
  margin-bottom: 2.2rem;
  padding: 1.2rem 1.1rem 1.35rem;
  background: transparent;
  /* border: 1px solid var(--border); */
  border-radius: 1.35rem;
  box-shadow: none;
}

.portfolio-section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.portfolio-section-head h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
}

.portfolio-section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

.gallery-grid {
  margin-left: -0.65rem;
  margin-right: -0.65rem;
}

.gallery-grid .element {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.gallery-card,
content .element > a {
  display: block;
  height: 100%;
  padding: 0.7rem;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(170deg, rgba(55, 56, 45, 0.58), rgba(31, 35, 52, 0.88));
  border: 1px solid rgba(242, 233, 203, 0.05);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.gallery-card:hover,
content .element > a:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(238, 203, 49, 0.58);
  box-shadow: 0 16px 34px rgba(6, 10, 18, 0.44);
}

.gallery-card-media,
content .element > a img {
  display: block;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #0e1324;
  aspect-ratio: 4 / 3;
}

.gallery-card-media img,
content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

content .element > a img {
  margin-bottom: 0.6rem;
}

.gallery-card-label {
  display: block;
  margin-top: 0.85rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

a,
a.link-back {
  color: var(--light-blue);
}

a.link-back {
  text-decoration: none;
}

a:hover,
a.link-back:hover {
  color: var(--yellow);
}

footer .footerText {
  color: var(--muted);
}

footer .footerText a,
footer .footerText a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .portfolio-section {
    padding: 1rem;
  }
}

@media (max-width: 540px) {
  .logo {
    font-size: 1.25rem;
    /* max-width: 3rem; */
    text-align: center;
  }

  .logo a {
    display: inline-block;
    white-space: normal;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-brand-mark {
    width: 58px;
    height: 58px;
  }

  .portfolio-title {
    font-size: 2rem;
  }

  content .element {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .portfolio-sections-row > [class*="col-"] {
    display: flex;
  }

  .portfolio-section {
    width: 100%;
    margin-bottom: 0;
  }
}

/** Lightbox **/
.sl-overlay {
  background: rgba(19, 23, 44, 0.97);
  opacity: 1;
}

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter {
  color: var(--text);
  opacity: 1;
}
