/* ============================================
   NINO VRANA — Portfolio
   ============================================ */

/* --- Aeonik Font --- */
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --font-primary: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --color-bg: #f9f7f3;
  --color-text: #000000;
  --color-text-secondary: #8c8c8c;
  --color-border: #e0ddd6;
  --color-accent: #000000;

  --max-width: 1600px;
  --grid-gap: 16px;
  --nav-height: 60px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* --- Custom Circle Cursor --- */
.cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  background: #c0bcb4;
  border: none;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  left: -100px;
  top: -100px;
  opacity: 0.7;
}

.cursor.hover {
  width: 30px;
  height: 30px;
  opacity: 0.5;
}

html, body, a, button, input, textarea, select, img, .tag, .project-card {
  cursor: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-logo a {
  transition: opacity 0.3s;
}

.site-logo a:hover {
  opacity: 0.5;
}

.site-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
  transition: color 0.3s;
}

.site-nav a:hover {
  color: var(--color-text);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Main Content --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Hero / Tagline --- */
.hero {
  padding: 80px 0 60px;
}

.hero-tagline {
  font-size: 2.64rem;
  font-weight: 400;
  color: var(--color-text);
  max-width: none;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: left;
  }

.line-desktop {
  display: block;
}

.hero-tagline .tag {
  font-size: inherit;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-text-secondary);
  border-radius: 3px;
  padding: 2px 10px;
  letter-spacing: inherit;
  display: inline;
  white-space: nowrap;
}

/* --- Project Grid --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  padding-bottom: 80px;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card a {
  display: block;
}

.project-card .thumbnail-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #edeae4;
  border-radius: 8px;
}

.project-card .thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-card:hover .thumbnail-wrapper img {
  transform: scale(1.08);
}



.project-card .card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 4px;
}

.project-card .project-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 12px 0 4px;
}

.project-card .project-disciplines {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.project-card .project-disciplines .tag {
  font-size: 0.7rem;
  font-weight: 400;
  color: #707070;
  border: 1px solid #b3b0aa;
  border-radius: 3px;
  padding: 3px 10px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* --- Project Detail Page --- */
.project-header {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
}

.project-header .back-link {
  grid-column: 1 / -1;
}

.project-header .project-left {
  grid-column: 1;
}

.project-header .project-right {
  grid-column: 2;
  grid-row: 2 / 4;
}

.project-header h1 {
  font-size: 3.125rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.project-header .discipline-tags.project-discipline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.project-header .discipline-tags.project-discipline-tags .tag {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-text-secondary);
  border-radius: 3px;
  padding: 4px 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: inline-block;
}

.project-description {
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.project-description p {
  margin-bottom: 1em;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-meta {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-meta dt {
  font-weight: 400;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  color: var(--color-text-secondary);
}

.project-meta dd {
  color: var(--color-text);
  font-weight: 400;
}

/* Discipline tags in meta */
.project-meta .discipline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-meta .discipline-tags .tag {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-text-secondary);
  border-radius: 3px;
  padding: 4px 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: inline-block;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.project-images img {
  width: 100%;
  border-radius: 4px;
}

/* --- Video Embeds --- */
.project-videos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.project-videos + .project-images {
  margin-top: 0;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 0;
  background: #000;
  border-radius: 4px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Credits Section --- */
.project-credits {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding: 40px 0 80px;
}

.project-credits h2 {
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

.credits-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}

.credit-item .credit-role {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  color: var(--color-text-secondary);
}

.credit-item .credit-name {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

/* --- About Page --- */
.about-content {
  padding: 60px 0 80px;
  max-width: 700px;
}

.about-content h1 {
  font-size: 3.125rem;
  font-weight: 400;
  margin-bottom: 30px;
  letter-spacing: -0.01em;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1.5em;
}

.about-content .client-list {
  margin-top: 30px;
}

.about-content .client-list h2 {
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.about-content .client-list p {
  color: var(--color-text-secondary);
}

/* --- Contact Page --- */
.contact-content {
  padding: 60px 0 80px;
  max-width: 700px;
}

.contact-content h1 {
  font-size: 3.125rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.contact-content .contact-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.contact-content .contact-email {
  font-size: 1rem;
  font-weight: 400;
}

.contact-content .contact-email a {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.contact-content .contact-email a:hover {
  border-color: var(--color-text);
}

/* --- Footer --- */
.site-footer {
  border-top: none;
  padding: 24px 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  border-top: 1px dotted var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-text);
}

/* --- Back Link --- */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.back-link:hover {
  color: var(--color-text);
}

.back-link::before {
  content: '\2190';
  margin-right: 6px;
}

/* --- Placeholder image --- */
.placeholder-img {
  background: #edeae4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 1rem;
  min-height: 200px;
}

/* --- Image Grid (2-up) --- */
.image-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.image-grid-2 img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.image-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.image-grid-3 img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.image-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}
.image-grid-4 img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}


/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-bg: #212121;
  --color-text: #e8e6e1;
  --color-text-secondary: #8c8c8c;
  --color-border: #2a2a28;
  --color-accent: #e8e6e1;
}

[data-theme="dark"] .project-card .thumbnail-wrapper {
  background: #1e1e1c;
}

[data-theme="dark"] .cursor {
  background: #d4d0c8;
}

[data-theme="dark"] .site-nav {
  background: var(--color-bg);
}

[data-theme="dark"] .placeholder-img {
  background: #1e1e1c;
}

[data-theme="dark"] .tag {
  border-color: #777 !important;
  border-width: 0.5px !important;
  color: var(--color-text);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: color 0.3s;
  position: relative;
  top: 2px;
}

.theme-toggle:hover {
  color: var(--color-text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* --- Location + Time --- */
.location-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
}

.location-time .separator {
  margin: 0 2px;
}



/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .project-header {
    grid-template-columns: 1fr;
  }
  .project-header .project-left,
  .project-header .project-right {
    grid-column: 1;
    grid-row: auto;
  }
  :root {
    --nav-height: 52px;
    --grid-gap: 12px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .location-time {
    display: none;
  }

  nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .site-nav {
    background: var(--color-bg);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--color-border);
  }



  .main-content {
    padding: 0 20px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .line-desktop {
    display: inline;
  }


  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 60px;
  }

  .project-header h1 {
    font-size: 1.6rem;
  }

  
.project-header .discipline-tags.project-discipline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.project-header .discipline-tags.project-discipline-tags .tag {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-text-secondary);
  border-radius: 3px;
  padding: 4px 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: inline-block;
}
.project-description {
    font-size: 1.125rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 12px;
  }

  .footer-container {
    padding: 0 20px;
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .project-header h1 {
    font-size: 1.6rem;
  }

  
.project-header .discipline-tags.project-discipline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.project-header .discipline-tags.project-discipline-tags .tag {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-text-secondary);
  border-radius: 3px;
  padding: 4px 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: inline-block;
}
.project-description {
    font-size: 1rem;
  }

  .credits-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
