/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial, sans-serif;
background:#e9e5dd;
color:#111;
overflow-x:hidden;
}



.hero{
    background:url("Assets/pictures/bar\ hvar.jpg") center/cover no-repeat;

    /* Parallax */
    background-attachment:fixed;
    background-position:center;
    background-size:cover;
}





/* SECOND CHANCES */

.second-chances{
padding:120px 10% ;
display:flex;
align-items:center;
height: 46vh;
}

.split-text{
max-width:800px;
animation:fadeUp 1.5s ease;
}



.shop-btn{
margin-top:35px;
padding:16px 40px;
border:none;
border-radius:20px;
background:#2f5d50;
color:white;
letter-spacing:1px;
cursor:pointer;
transition:0.3s;
}

.shop-btn:hover{
transform:translateY(-4px);
box-shadow:0 10px 20px rgba(0,0,0,0.2);
background:#244a41;
}


/* CATEGORIES */

.categories{
    display:flex;
    gap:25px;
    padding:40px 10%;
}

.category{
    flex:1;
    height:400px;
    background-size:cover;
    background-position:center;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:30px;
    color:white;
    transition:0.5s;
    position:relative;
    overflow:hidden;
    border-radius:20px;
}

/* HINTERGRÜNDE */

.face{
    background-image:url('https://picsum.photos/id/1015/600/400');
}

.tools{
    background-image:url('https://picsum.photos/id/1016/600/400');
}

.body{
    background-image:url('https://picsum.photos/id/1018/600/400');
}

.category span{
    font-size:20px;
    margin-bottom:10px;
}



/* POPUP */

.popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.8);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.popup.active{
    display:flex;
}

.popup-content{
    width:80%;
    max-width:900px;
    height:500px;
    position:relative;
    border-radius:20px;
    overflow:hidden;
    background:black;
}

/* SLIDESHOW BILD */

.popup-content img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position: top;
}

/* hover zoom */

.category:hover{
transform:scale(1.05);
}

.category span{
font-size:22px;
letter-spacing:2px;
}

.close{
    position:absolute;
    top:20px;
    right:20px;

    width:50px;
    height:50px;

    border-radius:50%;

    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,0.3);

    color:white;
    font-size:30px;
    font-weight:300;

    display:flex;
    justify-content:center;
    align-items:center;

    cursor:pointer;

    transition:0.3s;

    z-index:10;
}

.close:hover{
    transform:scale(1.1) rotate(90deg);
    background:rgba(255,255,255,0.25);
}





.face{background-image:url("Assets/pictures/Blumenfeld\ Querformat.jpg");}
.tools{background-image:url("Assets/pictures/Balkon.jpg");}
.body{background-image:url("Assets/pictures/weiße\ Häuser\ in\ Sardinien.jpg");}


/* IMAGE GRID */

.image-grid{
    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    padding:80px 10%;
}

/* EINZELNES BILD */

.grid-item{
    height:260px;

    border-radius:20px;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    overflow:hidden;

    transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;

    cursor:pointer;
}

/* =========================
   EINZELNE BILDER
========================= */

.grid-item:nth-child(1){
    background-image:url("Assets/pictures/mauritius\ night.jpg");
}

.grid-item:nth-child(2){
    background-image:url("Assets/pictures/strand\ mau.jpg");
}

.grid-item:nth-child(3){
    background-image:url("Assets/pictures/stara\ baska\ night.jpg");
}



/* =========================
   HOVER EFFECT
========================= */

.grid-item:hover{
    transform:scale(1.05);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.25);
}










/* ANIMATION */

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(50px);
}
to{
opacity:1;
transform:translateY(0);
}
}


/* RIGHT TEXT BLOCK */

.second-chances.right{
justify-content:flex-end;
text-align:right;
height: 46vh;
padding:120px  ;
padding-top: 150px;
}

.second-chances.right .second-text{
animation:fadeRight 1.5s ease;
}

/* neue Animation */

@keyframes fadeRight{
from{
opacity:0;
transform:translateX(80px);
}
to{
opacity:1;
transform:translateX(0);
}
}




/* =========================
   TABLET (max 992px)
========================= */
@media (max-width: 992px) {

  .hero {
    background-attachment: scroll;
    height: 60vh;
  }

  .hero-title{
    font-size:50px;
letter-spacing:3px;
  }

  /* SECOND CHANCES */
  .second-chances {
    flex-direction: column;
    height: auto;
    padding: 100px 8%;
    text-align: left;
  }

  .second-chances.right {
    text-align: left;
    justify-content: flex-start;
    padding: 100px 8%;
    height: auto;
  }

  /* CATEGORIES */
  .categories {
    flex-direction: column;
    padding: 40px 8%;
  }

  .category {
    height: 320px;
  }

  /* IMAGE GRID */
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 70px 8%;
  }

  /* POPUP */
  .popup-content {
    width: 90%;
    height: 420px;
  }
}


/* =========================
   MOBILE (max 600px)
========================= */
@media (max-width: 600px) {

  /* SECOND CHANCES */
  .second-chances {
    padding: 70px 6%;
  }

  .second-chances.right {
    padding: 70px 6%;
  }

  .split-text {
    max-width: 100%;
  }

  .shop-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  /* CATEGORIES */
  .categories {
    gap: 20px;
    padding: 30px 6%;
  }

  .category {
    height: 260px;
    border-radius: 16px;
  }

  .category span {
    font-size: 18px;
  }

  /* IMAGE GRID */
  .image-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 60px 6%;
  }

  .grid-item {
    height: 220px;
  }

  /* POPUP */
  .popup-content {
    width: 95%;
    height: 320px;
  }

  .close {
    width: 42px;
    height: 42px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
}