/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rethink Sans', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

/* LAYOUT */
.container {
  display: flex;
  position: relative;
}

.content {
  flex: 1;
  padding: 120px 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* vertikalna linija */
.container::after {
  content: "";
  position: fixed;
  top: 0;
  left: 260px;
  width: 1px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.08);
}

/* SIDEBAR (DESKTOP) */
.sidebar {
  padding: 80px 0;
  padding-left: 40px;
  padding-right: 30px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  min-width: 260px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER */
.sidebar-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

/* linija ispod imena */
.sidebar-header::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #ff7a00;
  margin-top: 10px;
}

/* LINKS */
.sidebar a {
  color: #666;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.6;
  position: relative;
  transition: all 0.25s ease;
}

.sidebar a span.num {
  font-size: 8px;
  color: #ff7a00;
  margin-left: 3px;
  vertical-align: super;
}

.sidebar a:hover,
.sidebar a.active {
  color: #111;
}

/* active indikator */
.sidebar a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #ff7a00;
  border-radius: 2px;
}

/* SECTIONS */
section {
  margin-bottom: 120px;
  scroll-margin-top: 100px;
}

h1 {
  font-size: 42px;
  margin-bottom: 40px;
  font-weight: 600;
}

h1 span {
  display: block;
  color: #ff7a00;
  font-size: 20px;
}

p {
  color: #777;
}

.nav-short { display: none; }
.nav-full { display: inline; }

@media (max-width: 768px) {
  .nav-short { display: inline; }
  .nav-full { display: none; }
}

/* GRAPHIC GRID LAYOUT */
.grid-graphic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1080px;
}

#graphic .grid-graphic {
  max-width: 1240px;
}

#photo .grid-graphic {
  max-width: 1240px;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-tall img {
  height: 500px;
  object-fit: cover;
}

.card-short img {
  height: 300px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .grid-graphic {
    grid-template-columns: 1fr;
  }
  .card-tall img,
  .card-short img {
    height: auto;
    max-height: 300px;
  }
}

/* VIEW PROJECT LABEL */
.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px 10px;
  /* background: rgba(255, 255, 255, 0.55);
 backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); */
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  
}

.card-label span {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.1px;
}

.card-label svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  stroke-width: -30%;
  flex-shrink: 0;
}


/* CARD */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f2f2f2;
  border-radius: 12px;
  isolation: isolate;
  contain: layout style;
  transform: translateZ(0);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: 0.4s;
  display: block;
  will-change: transform;
}

.card:hover img {
  transform: scale(1.05);
  transform-origin: center center;
}

/* overlay */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);

  display: none;
  justify-content: center;
  align-items: center;
  /*centar, ne flex-start */

  z-index: 2000;
}

/* PROJECT TITLE */
#project-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 30px;
}

/* container */
.project-container {
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;


  overflow-y: auto;


  background: #fff;
  padding: 40px;
  border-radius: 12px;
}

/* close */
.project-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
}

/* sadržaj */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 70px;
}

.project-content img {
  width: 100%;
  border-radius: 10px;
}

.project-text-block {
  font-size: 18px;
  line-height: 1.2;
  color: #444;
  max-width: 700px;
  margin-top: 20px;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);

  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.image-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #ff7a00;
  z-index: 99999;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
}

.cv-cell-full {
  grid-column: 1 / -1;
  padding: 50px 40px;
}

.cv-section-num {
  font-size: 20px;
  font-weight: 600;
  color: #ff7a00;
  margin-bottom: 24px;
}

/* CV GRID */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1240px;
}

.cv-cell {
  background: #fff;
  padding: 28px 30px;
}

.cv-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.cv-avatar-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.cv-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-name {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
}

.cv-subtitle {
  font-size: 16px;
  color: #888;
  margin-top: 6px;
}

.cv-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.cv-link:hover { color: #ff7a00; }

.cv-link-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cv-email {
  font-size: 14px;
  color: #aaa;
  margin-top: 12px;
}

.cv-exp-item {
  margin-bottom: 18px;
}

.cv-exp-item:last-child { margin-bottom: 0; }

.cv-exp-company {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.cv-exp-role {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.cv-exp-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.cv-exp-desc {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  line-height: 1.6;
}

.cv-tools {
  display: flex;
  flex-direction: column;
}

.cv-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cv-tool-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cv-tool-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}


.cv-proj-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  color: #333;
}

.cv-proj-item:last-child { border-bottom: none; }

.cv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7a00;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-cell-full { grid-column: 1; padding: 24px; }
}

/* TABLET */
@media (max-width: 1024px) {
  .content {
    padding: 100px 40px 40px;
  }

  .container::after {
    left: 200px;
  }

  .sidebar {
    padding-left: 40px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .container {
    flex-direction: column;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    background: #fff;
    z-index: 999;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
  }

  .sidebar-header {
    text-align: center;
    margin-bottom: 22px;
  }

  .sidebar-header::after {
    margin: 6px auto 0;
  }

  .case-split {
    grid-template-columns: 1fr !important;
    gap: 20px
  }

  .case-split:nth-child(even) .split-left,
  .case-split:nth-child(even) .split-right {
    order: initial !important
  }

  .split-left {
    order: 1;
  }

  .split-right {
    order: 2;
  }

  .split-left h1 {
    font-size: 28px;
  }

  .split-left p {
    font-size: 16px;
  }

  .split-right img {
    width: 100%;
    border-radius: 20px;
  }
  .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .menu a {
    font-size: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
  }

  .menu a span.num {
    font-size: 9px;
    position: relative;
    top: -5px;
  }

  .sidebar a.active::before {
    display: none;
  }

  .container::after {
    display: none;
  }

  .project-close {
    top: 3px
  }

  .content {
    margin-top: 20px;
    padding: 20px 20px 60px;
  }

  h1 {
    font-size: 32px;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .content {
    padding: 40px 15px 100px;
  }

  h1 {
    font-size: 26px;
  }
}

/* ================= SPLIT LAYOUT ================= */

.case-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin: 15px 0;
}

.split-left h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.split-left .line {
  width: 120px;
  height: 6px;
  background: #ff7a00;
  margin-bottom: 20px;
  border-radius: 4px;
}

.split-left p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.split-right img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.case-split:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.case-split:nth-child(even) .split-left {
  order: 2;
}

.case-split:nth-child(even) .split-right {
  order: 1;
}
.credits-block {
  margin: 15px 0;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 16px;
}

.credits-block h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.credits-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credits-block li {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
}

.credits-role {
  font-weight: 600;
  color: #222;
}
