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

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

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

::-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: #131313;
}

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

/* RIGHT SIDE */
.phone {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container to hold both video and phone image together */
.phone-container {
  position: relative;
  display: inline-block;
}

/* iPhone Mockup Image */
.journ2 {
  height: 800px;
  display: block;
  position: relative;
  z-index: 2; 
  pointer-events: none; 
}

/* Background wrapper behind the video to cover gaps */
.screen-bg {
  position: absolute;
  top: 5.5%;
  left: 29.7%;
  width: 29%;
  height: 91%;
  background-color: #000000 !important;
  z-index: 1;
  border-radius: 37px;
  overflow: hidden;
}

/* Video positioned inside the phone screen */
.phone-video {
  width: 100%;
  height: 100%;
}

/* Custom Controls Styling */
.video-controls {
  position: absolute;
  bottom: 51px;
  left: 44%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 241px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
  
  /* Hover Hide/Show Properties */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show controls when hovering over the phone container */
.phone-container:hover .video-controls {
  opacity: 1;
  visibility: visible;
}

.control-btn {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
}

.timeline-container {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-progress {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
}

/* BACK BUTTON STYLES */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #252525;
  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: #a8a8a8;
}

.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: 1600px) {
  .case {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 50px 32px;
  }

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

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

  .journ2 {
    height: 600px;
  }
}

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

  .case-info h1 {
    font-size: 47px;
    margin-bottom: 16px;
  }
  .phone{
    padding-right: 39%;
  }

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

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

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

  .journ2 {
    height: 480px;
  }

  .video-controls {
    width: 200px;
    bottom: 30px;
    padding: 8px 12px;
  }
}