@font-face{
  font-family: "Aftika";
  src: url("FontsFreeNetAftikaRegular.ttf") format("truetype");
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: "Aftika", sans-serif;
  background: #111111;
  color: #f5f5f5;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(71, 71, 71, 0.404);
  border-radius: 10px;
}

/* LAYOUT */

.case{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 100px;
  padding: 80px;
}

/* LEFT SIDE */

.case-info{
  position: sticky;
  top: 120px;
  align-self: start;
}

.case-info h1{
  font-size: 48px;
  margin-bottom: 24px;
}

.case-info p{
  line-height: 1.6;
  margin-bottom: 20px;
  color: #d8d8d8;
}

.meta p{
  font-size: 14px;
  color: #d3d3d3;
  margin-bottom: 8px;
}

/* RIGHT SIDE */

.gallery{
  display: flex;
  flex-direction: column;
}

.flip-wrap{
  position: relative;
  width: 100%;
  margin: 0px 0px 0px 20%;
}

.flip-wrap2{
  position: relative;
  width: 100%;
  margin: 0px 0px 0px 20%;
}

.journ{
  width: 50%;
  height: 100%;
  display: block;
}

/* BACK BUTTON STYLES */
.back-btn {
display: inline-flex;
align-items: center;
gap: 8px;
color: #a0a0a0;
text-decoration: none;
font-size: 15px;
font-weight: 500;
margin-top: 28px;
transition: color 0.2s ease, transform 0.2s ease;
}

.back-btn svg {
transition: transform 0.2s ease;
}

.back-btn:hover {
color: #ffffff;
}

.back-btn:hover svg {
transform: translateX(-4px);
}

/* Full-screen Loader Overlay */
.loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #080808;
display: flex;
justify-content: center;
align-items: center;
z-index: 99999;
}

.loader-content {
display: flex;
gap: 12px;
}

.bar {
width: 16px;
height: 60px;
background-color: #b9ddff;
border-radius: 8px;
}




/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Tablet Screens (1024px and below) */
@media (max-width: 1024px) {
  .case {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 50px 32px;
  }

  .case-info {
    position: static;
    top: auto;
    margin: 8%;
  }

  .case-info h1 {
    font-size: 47px;
  }

  .gallery {
    gap: 40px;
  }

  .flip-wrap,
  .flip-wrap2 {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .journ {
    width: 80%;
  }
}

/* Mobile Screens (768px and below) */
@media (max-width: 768px) {
  .case {
    padding: 30px 16px;
    gap: 30px;
  }

  .case-info h1 {
    font-size: 47px;
    margin-bottom: 16px;
  }

  .case-info p {
    font-size: 15px;
    line-height: 1.5;
  }

  .meta p {
    font-size: 13px;
  }

  .back-btn {
    margin-top: 20px;
    font-size: 14px;
  }

  .gallery {
    gap: 24px;
  }

  .flip-wrap,
  .flip-wrap2 {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .journ {
    width: 100%;
  }
}