/*
Theme Name: Darko Custom
Author: Tvoje ime
Version: 1.0
*/


body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  background-color: #000;
  color: #e0e0e0;
  line-height: 1.6;
}
strong{
  font-weight: bold;
}
/*Hedaer stilovi*/
.site-header {
  position: relative;
  z-index: 1000;          /* 1000px / 16 = 62.5rem nije smisleno → z-index ostaje broj */
  padding: 1.25rem 1.5rem; /* 20px 24px */

}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;        /* 16px */
  font-weight: 300;
  line-height: 1.25rem;   /* 20px */
}

.site-nav__list {
  display: flex;
  gap: 1.5rem;            /* 24px */
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;    /* 14px */
  line-height: 1.25rem;   /* 20px */
 font-weight: 300;
  opacity: 0.85;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
  opacity: 1;
}
/* Hero sekcija stilovi */
.hero__title {
  margin: 0 0 1.5rem 0; /* 0 0 24px 0 */
  padding-top: 30vh;
  font-size: 1.8rem;        /* 32px */
  line-height: 2.75rem;  /* 44px */
  font-weight: 300;
  color: #fff;

}

/* riječ Darko */
.hero__name {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-bottom: 0.125rem solid  rgba(255,255,255,.6); /* lagani underline */
}

/* slika */
.hero__image {
  position: absolute;
  left: 50%;
  top: -110%;
  transform: translateX(-50%);
  width: 18.75rem; /* 300px */
  max-width: 80vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

/* hover efekt */
.hero__name:hover .hero__image {
  opacity: 1;
}
.hero{
    padding: 0 20px 60px;
}

.hero__text-block{
    color: #ffffff4d;
   
    font-size: 18px;
}
/* h1 neka bude stacking context da -1 ne pobjegne iza cijele stranice */
.hero__title{
  position: relative;
  isolation: isolate;
}

/* underline */
.hero__name-text{
  position: relative;
  display: inline-block;
}


/* hover slika (ako koristiš <img class="hero__hover-img"> unutar .hero__name) */
.hero__hover-img{
  position:absolute;
  left:300%;
  top:52%;
  transform: translate(-50%, -50%);
  
  width: min(560px, 70vw);
  height: min(560px, 70vw);

  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity .25s ease, transform .25s ease;
}

.hero__name:hover .hero__hover-img{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

/* da i "Latest Work" bude sigurno iznad, ako slika dođe do njega */
.hero__text-block{
  position: relative;
  z-index: 1;
}
@media (max-width: 990px){
.hero__hover-img{
  position:absolute;
  left:200%;
  top:52%;
}
}

@media (max-width: 767px) {
.hero__hover-img{
  position:absolute;
  left:100%;
  top:52%;
}
}


    


/* Footer stilovi */


.heading {
  margin: 0;
  font-size: 1.75rem;
  line-height: 2.4rem;
  font-weight: 300;
  color: #fff;
}

.footer__cta {
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.footer__meta-content{
    padding-left: 20px;
    font-size: 16px;
    color:#fff;
}

.footer__meta {
    max-width: 1440px;
    margin: auto 0 ;
  font-size: 0.875rem;
  color: #e0e0e0;
  opacity: 0.6;
  padding: 10vh 10px 40px 0;
}
.heading {
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 10vh;
    padding-bottom: 0;
    padding-right: 0%;
    font-size: 28px;
    line-height: 120%;
    }
.block {
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    }

@media (min-width: 479px) {
  .hero{
    padding: 0 40px 82px;
  }
  .hero__title{
            padding-top: 25vh;
        font-size: 40px;
        line-height: 157%;
  }
  .hero__header{
    padding: 80px 40px 40px;
    max-width: 1440px;
        margin: 0 auto;
  }
  .block {
    padding: 0 20px 0 40px;
  }
  

}

@media (min-width: 767px) {
  .hero{
    padding: 0 82px 82px;
  }
  .hero__title{
            padding-top: 35vh;
        font-size: 45px;
        line-height: 157%;
  }
  .hero__header{
    padding: 82px 82px 0 82px;
  }
    .block {
    padding: 0 0 0 82px;
  }
    .heading{
    font-size: 45px;
  }
  .footer__meta{
    padding: 300px 82px 10vh 62px;
    max-width: 1440px;
    margin: 0 auto;
  }

}


@media screen and (min-width: 1280px){
    .hero{
       
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
      .hero__title{
                    letter-spacing: 0;
        max-width: 1400px;
        margin-bottom: 5vh;
        padding-top: 30vh;
        padding-left: 0;
        font-size: 54px;
        font-weight: 400;
        line-height: 80px;
  }
  .heading{
    font-size: 45px;
  }
    .block {
        margin: 0 auto;
        max-width: 1440px;
    padding: 300px 82px 0 62px;
  }
    }


/* =========================
   ALL WORK LIST / "TABLICA"
========================= */

.allwork{
   padding:0 82px 100px;
   margin: 0 auto;
    max-width: 1440px;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.allwork__hero{
    padding: 0 0 82px 0;
}

/* hover na SVAKOM redu (bez obzira je li link ili div) */
.work-row:hover {
  background: rgba(255,255,255,0.08);
}
.work-list .work-row__link {
  font-size: 1.3rem;
}

.work-row__link {
  display: grid;
  text-decoration: none;
  color: inherit;
}

/* YEAR: default sivo, Now zeleno */
.work-row__year {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.work-row__year.is-now {
  color: #2ee6c5;
}

/* NAME: default bez underline */
.work-row__name {
  color: #fff;
  font-weight: 400;
}

/* underline samo ako ima link (wrapper ima class is-link) */
/* underline samo ako ima link (wrapper ima class is-link) */
.work-row__link.is-link .work-row__name {
  display: inline-block;
  border-bottom: 1px solid #ffffff80;
  padding-bottom: 0.15rem;
  width: fit-content;      /* da ne rasteže */
  justify-self: start;     /* za grid layout */
  align-self: start;
}


/* muted fields */
.work-row__type,
.work-row__cat {
  color: rgba(255,255,255,0.45);
}
.allwork__title{
            letter-spacing: 0;
        max-width: 1400px;
        margin-bottom: 5vh;
        padding-top: 30vh;
        padding-left: 0;
       
        font-size: 54px;
        font-weight: 400;
        line-height: 80px;

}
  .work-row{
    padding: 0 10px;

  }

/* DESKTOP (>= 1025px): 4 kolone */
@media (min-width: 1025px) {
  .work-row__link {
    grid-template-columns: 6.5rem 1.7fr 1.2fr 1.7fr; /* year | name | type | cat */
    gap: 1.5rem;
    align-items: center;
    padding: 1.250rem 0 1.250rem;

  }
}

/* SREDNJI (480–1024px): 2 kolone (year+type lijevo, name+cat desno) */
@media (min-width: 480px) and (max-width: 1024px) {
  .work-row__link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "year"
      "name"
      "type"
      "cat";
    gap: 0.5rem;
    padding: 2rem 0;
  }
  .allwork{
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 100px;
    padding-left: 82px;
    padding-right: 82px;
}
  .work-row__year { grid-area: year; }
  .work-row__name { grid-area: name; }
  .work-row__type { grid-area: type; }
  .work-row__cat  { grid-area: cat; }

  .allwork__title{
            padding-top: 25vh;
        font-size: 40px;
        line-height: 135%;
    }
  
}

/* MALI (<= 479px): stacked */
@media (max-width: 479px) {
      .work-row__link {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "year name"
      "type cat";
    gap: 0.75rem 2.5rem;
    padding: 1.875rem 0 0.9375rem;
    align-items: start;
  }
  .work-row{
    padding: 0 10px;

  }
  .allwork__title{
            margin-top: 0;
        padding-top: 30vh;
        font-size: 32px;
        font-weight: 400;
        line-height: 44px;
        margin-bottom: 0;
  }
  .allwork__hero{
    padding-bottom: 40px;
    
  }

    .allwork{
   padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 10px;
}
.work-list .work-row__link {
    font-size: 16px;
}

  .work-row__year { grid-area: year; }
  .work-row__name { grid-area: name; }
  .work-row__type { grid-area: type; }
  .work-row__cat  { grid-area: cat; }
}


/* =========================
   CV PAGE
========================= */

.cv {
  padding: 0 1.25rem 3.75rem;
}

@media (min-width: 479px) {
  .cv {
    padding-left: 82px;
    padding-right: 82px;
  }
}

@media (min-width: 1280px) {
  .cv {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5.125rem 6.25rem; /* 82px 100px */
  }
}

/* =========================
   CV HEADER / TITLE
========================= */

.cv__title {
    letter-spacing: 0;
        max-width: 1440px;
        margin-bottom: 1vh;
        padding-top: 30vh;
        padding-left: 0;
        font-size: 54px;
        font-weight: 400;
        line-height: 80px;
}

@media (min-width: 1280px) {
  .cv__title {
            letter-spacing: 0;
        max-width: 1400px;
        margin-bottom: 1vh;
        padding-top: 30vh;
        padding-left: 0;
       
        font-size: 54px;
        font-weight: 400;
        line-height: 80px;
  }
}

/* section spacing */
.cv__section {
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 100px; /* 100px */
}

@media (max-width: 479px) {
  .cv__section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 60px; /* 100px */
  }
  .cv-row{
    font-size: 20px;
  }
}

.cv__heading {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
}

/* =========================
   GUTENBERG CONTENT (Intro + Education)
========================= */
.cv__content .university{
  font-size: 20px;
  line-height: 38px;
}
.cv__content {
  max-width: 80%;
}

.cv__content p {
  margin: 0 0 1.25rem;
  
  
  font-size: 28px; 
  line-height: 50px; /* 34px */
}

.cv__content h2 {
  margin: 100px 0 1.25rem;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
}

.cv__content h3 {
  margin: 2.5rem 0 1rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
}

.cv__content > *:first-child {
  margin-top: 0;
}

/* =========================
   LISTS (Experience / Awards)
========================= */

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* svaki red: hover uvijek */
.cv-row {
  width: 100%;
  padding: 30px 0 25px 0 ; /* 15px */
  transition: background 0.2s ease;
  
}

.cv-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* EXPERIENCE grid: 3 kolone */
.cv-row__grid {
  display: grid;
  grid-template-columns: 0.4fr 0.5fr 2fr; /* years | role | company */
  gap: 2rem;
  align-items: start;
  width: 100%;
  padding-left:10px ;
}

/* colors */
.cv-row__years {
  color: rgba(255, 255, 255, 0.35);
}

.cv-row__years.is-current {
  color: #2ee6c5;
}

.cv-row__role {
  color: #fff;
  font-weight: 400;
}

.cv-row__employment,
.cv-row__company {
  color: #fff;;
}
.cv-row__company1 {
  color: rgba(255, 255, 255, 0.45);
}

/* underline samo kad postoji link */
.cv-link {
  text-decoration: none;
      color: #fff;
    border-bottom: 1px solid #ffffff80;
    text-decoration: none;
  display: inline-block;
  width: fit-content;
  padding-bottom: 0.15rem;
}

/* AWARDS grid override: 4 kolone */
.cv-row__grid--awards {
  grid-template-columns: 6.5rem 1.3fr 1.7fr 1.2fr; /* year | project | result | org */
}

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

@media (max-width: 767px) {
  .cv__content {
    max-width: 100%;
  }

  .cv__content p {
    width: 100%;
    font-size: 20px;
    line-height: 1.7;
  }

  .cv-row__grid,
  .cv-row__grid--awards {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .cv__title{
          margin-top: 0;
        padding-top: 30vh;
        font-size: 32px;
        font-weight: 400;
        line-height: 44px;
    }

  }

  .cv__content h2 {
    margin: 130px 0 0;
    
}
.cv-row{
    font-size: 18px;
}



/* bitno za grid da se swiper ne “rastegne” */
/* svaki projekt je odvojeni blok */
.home-projects{
  display:flex;
  flex-direction:column;
  margin: 0 auto;
  
}

.project-row{
  display:grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap: 60px;
  align-items:center;
          width: 100%;
        height: 100%;
        padding: 15vh 0 15vh 82px;
        position: relative;
    
}

/* nema backgrounda ni paddinga */
.project-row__right{
  
     padding:0 2rem 2rem 0;
}


/* swiper je “kontejner” za overlay */
.project-swiper{
  position: relative;
  overflow: hidden;
}

/* FIX: spriječi wrap i grid-look */
.project-swiper .swiper-wrapper{ flex-wrap:nowrap !important; }
.project-swiper .swiper-slide{
  width:100% !important;
  flex:0 0 100% !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* slika */
.project-swiper .swiper-slide img{
  width:100% !important;
  height:100% !important;
  max-height:none;
  object-fit:contain;
  display:block;
  
}

/* točkice: OVERLAY na slici */
.project-swiper .swiper-pagination{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  z-index: 10;

  margin:0;
  display:flex;
  justify-content:center;
  
}

.project-swiper .swiper-pagination-bullet{
  width:10px;
  height:10px;
  opacity:1;
  background: rgba(255,255,255,.45);
}

.project-swiper .swiper-pagination-bullet-active{
  background: rgba(255,255,255,.95);
}

/* strelice: OVERLAY na slici */
.hp-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  border:0;
  background: transparent;   /* <- nema kruga */
  border-radius: 0;  
  cursor:pointer;
  z-index:10;
  display:grid;
  place-items:center;
}

.hp-arrow::before{
  content:"";
  width:14px;
  height:14px;
  border-right:3px solid rgba(255,255,255,.9);
  border-bottom:3px solid rgba(255,255,255,.9);
}

.hp-arrow--prev{ left:16px; }
.hp-arrow--prev::before{ transform:rotate(135deg); }

.hp-arrow--next{ right:16px; }
.hp-arrow--next::before{ transform:rotate(-45deg); }
.project-swiper .swiper-pagination-bullet{
  width:15px;
  height:15px;
}
.hp-arrow.swiper-button-disabled{
  opacity:.25;
  cursor:default;
}

.hp__empty{
  padding:24px;
  color:rgba(0,0,0,.6);
}
.project-row__title{
    float: none;
    clear: both;
    color: #fff;
    letter-spacing: 0;
    max-width: none;
   margin-top:0;
    margin-bottom: 40px;
    font-size: 50px;
    font-weight: 400;
    line-height: 70px;
    position: static;
}
.project-row__meta{
    color: #ffffff4d;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 0;
    }
.project-row__desc{
    float: none;
    color: #fff;
    max-width: none;
    margin-bottom: 60px;
    
    font-size: 20px;
    line-height: 36px;
    position: static;
}

.project-row__link{
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px; /* razmak do crte */
  font-size: 20px;
}

.project-row__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;          /* crta malo duža od teksta */
  height: 1px;
  background:rgb(113 113 113 / 55%);
}

@media (min-width: 1280px) {
.project-row{
    margin: 0 auto;
    max-width: 1440px;
     
}
}

@media (max-width: 990px){
  .project-row{
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 0;
  }

  /* desna gore */
  .project-row__right{ order: 1;
padding: 0px;
}

  /* lijeva dolje */
  .project-row__left{ order: 2;
padding-left: 60px; }

  /* opcionalno: naslov malo manji */
  .project-row__title{
    font-size: 36px;
    line-height: 1.1;
    margin-top:60px;
    margin-bottom: 25px;
  }
  .project-row{
            padding-top: 5vh;
        padding-bottom: 5vh;
  }
  .project-row__desc {
    margin-bottom: 30px;
    padding-top: 0;

}
}

@media (max-width: 767px) {
.project-row__left{
   
       padding-left: 40px;
}
.project-row__title{
    margin-top: 20px;
        margin-bottom: 10px;
        font-size: 40px;
    }
    .project-row__meta{
            font-size: 14px;
            margin-bottom: 10px;
  }
  .project-row__desc{
            margin-bottom: 20px;
  }
  .project-row{
padding: 5vh 0 5vh 0;
  }
}

@media (max-width: 479px) {

    .project-row__left{
    padding-left: 20px;
        padding-right: 20px;
}
.project-row__title{
                max-width: 100%;
        margin-top: 20px;
        margin-bottom: 0;
        font-size: 24px;
    }
    .project-row__meta{
            font-size: 13px;
            margin-bottom: 10px;
  }
  .project-row__desc{
                    max-width: 100%;
        margin-bottom: 20px;
        padding-top: 10px;
        font-size: 18px;
        line-height: 25px;
  }
  .project-row__link{
   
    font-size: 20px;
    
  }
}

/* =========================
   SINGLE PROJECT CASE STUDY
========================= */
.project-case{
 
      max-width: 1440px;
    margin: 0 auto;
    padding: 0 82px 120px;
}

.project-case__header{
  
  margin: 120px auto 60px;
  color: #fff;
          margin-top: 35vh;
        padding-left: 0;
        padding-right: 220px;
    
}

.project-case__title{
          color: #fff;
        letter-spacing: 0;
        
        font-size: 60px;
        font-weight: 400;
        line-height: 100px;
}

.project-case__meta{
  margin: 0 0 28px;
  opacity: .6;
  color: #ffffff80;
    padding-top: 40px;
    font-size: 18px;
}

.project-case__content{
  
  opacity: .9;
          font-size: 28px;
        line-height: 44px;
}

/* full-width slike jedna ispod druge */
.project-case__gallery{
  display:flex;
  flex-direction:column;
  gap: 10vh;
    margin-top: 10vh;
}

.project-case__image{
  width: 100%;
  margin: 0;
}

.project-case__img{
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1280px) {
.project-case{
padding: 0 82px 120px;
}
}

@media (max-width: 990px){
 .project-case__header{
    margin-top: 30vh;
    margin-bottom: 5vh;
    padding-left: 82px;
    padding-right: 220px;
}
}

@media (max-width: 767px) {
.project-case{
padding: 0;
}
}

@media (max-width: 479px) {

 .project-case__header{
    margin-top: 20vh;
    margin-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}
.project-case__title
{
           color: #fff;
    letter-spacing: 0;
    font-family: Calibre, sans-serif;
    font-size: 60px;
    font-weight: 400;
}
    
.project-case__gallery{
  
  gap: 5vh;
    margin-top: 5vh;
}
.project-case__title{
            color: #fff;
        letter-spacing: -1px;
        
        font-size: 36px;
    }
    .project-case__content{
                font-size: 18px;
        line-height: 25px;
    }
    .project-case__meta{
        color: #ffffff80;
    padding-top: 20px;
   
    font-size: 20px;
    }
    }

