/* Responsive improvements for style.css */

/* RESET DASAR */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
}

/* BODY */
body {
  background: #1a1a1a;
  color: #eee;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* NAVBAR - Mobile first approach */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #f44336;
  text-transform: uppercase;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 10px;
}

.navbar ul li {
  width: 100%;
  text-align: center;
  padding: 5px 0;
  border-bottom: 1px solid #333;
}

.navbar ul li:last-child {
  border-bottom: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #eee;
  font-size: 14px;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.navbar ul li a:hover {
  color: #f44336;
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  cursor: pointer;
  font-size: 24px;
  color: #eee;
}

/* Hidden by default on mobile */
.nav-menu {
  display: none;
  width: 100%;
}

.nav-menu.active {
  display: flex;
}
/* SECTION 1 */
.section-1 {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height for better mobile experience */
  overflow: hidden;
  margin-top: 60px; /* Account for fixed navbar */
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); /* Darker overlay for better text visibility */
  z-index: 2;
}

.section-1-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column; /* Stack vertically by default */
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.section-1-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.section-1-logo {
  max-width: 80%;
  width: 250px;
  margin-bottom: 20px;
}

.section-1-desc {
  font-size: 16px;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 0 10px;
}

.section-1-right {
  text-align: center;
}

.section-1-download-text {
  margin-bottom: 15px;
  font-size: 16px;
}

.section-1-download-btn {
  display: inline-block;
  background: #f44336;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  font-size: 16px;
}

.section-1-download-btn:hover {
  background: #b71c1c;
}

/* SECTION 2 */
.section-2 {
  background: #222;
  padding: 40px 20px;
}

.section-2-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Stack vertically by default */
  align-items: center;
  gap: 30px;
}

.section-2-left {
  width: 100%;
  text-align: center;
}

.section-2-left h2 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 15px;
}

.section-2-left p {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-2-right {
  width: 100%;
  text-align: center;
}

.section-2-foto {
  max-width: 100%;
  width: 280px;
  border-radius: 8px;
}

/* SECTION 3 - Screenshot Slider */
.section-3 {
  text-align: center;
  padding: 50px 15px;
  background: #111;
  overflow: hidden;
}

.section-3 h2 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 25px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px; /* Tampilkan satu item pada mobile */
  margin: 0 auto;
  overflow: hidden;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 67, 54, 0.8);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: #b71c1c;
}

.prev-btn {
  left: 5px;
}

.next-btn {
  right: 5px;
}

.slide-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide-item {
  width: 100%;
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
  margin: 0 10px;
  border-radius: 5px;
  transition: transform 0.3s;
  cursor: pointer;
}

.slide-item:hover {
  transform: scale(1.03);
}

/* Screenshot tooltip styles */
.screenshot-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
}

/* Improved modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

#caption {
  margin: 15px auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 16px;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f44336;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

/* Improve slider button styles */
.slider-btn:disabled,
.news-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Improve clickable area for screenshot items */
.slide-item {
  cursor: pointer;
}

/* SECTION 4 - Berita Slider */
.section-4 {
  padding: 50px 15px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-4 h2 {
  font-size: 24px;
  color: #f44336;
  text-align: center;
  margin-bottom: 25px;
}

.news-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.news-slide {
  display: flex;
  transition: transform 0.5s ease;
}

.news-item {
  min-width: 280px; /* Lebih kecil untuk mobile */
  background: #222;
  margin-right: 15px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-info {
  padding: 15px;
}

.news-info h3 {
  font-size: 18px;
  color: #f44336;
  margin-bottom: 10px;
}

.news-info p {
  font-size: 14px;
  color: #ddd;
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 67, 54, 0.8);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.3s;
}

.news-btn:hover {
  background: #b71c1c;
}

.news-prev-btn {
  left: 5px;
}

.news-next-btn {
  right: 5px;
}


@media (min-width: 768px) {
  .slider-wrapper {
    max-width: 660px; /* Tampilkan dua item pada tablet */
  }
  
  .news-slider {
    max-width: 660px;
  }
}

@media (min-width: 992px) {
  .slider-wrapper {
    max-width: 960px; /* Tampilkan tiga item pada desktop */
  }
  
  .news-slider {
    max-width: 960px;
  }
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* NEWS DETAIL PAGE */
.news-detail {
  max-width: 800px;
  margin: 80px auto 30px;
  padding: 20px;
  background: #222;
  border-radius: 8px;
  color: #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.news-detail h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #f44336;
  line-height: 1.3;
}

.news-detail .meta {
  font-size: 14px;
  margin-bottom: 20px;
  color: #aaa;
}

.news-detail img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.news-detail .content {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

/* MODAL POPUP */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f44336;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.btn-read:hover {
  background: #b71c1c;
}
  
/* SECTION KONTAK */
.kontak {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
  
.kontak h2 {
  font-size: 28px;
  color: #f44336;
  margin-bottom: 20px;
}
  
  /* FOOTER */
.footer {
  background-color: #000;
  color: #fff;
  width: 100%;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo bagian kiri */
.logo-section {
  flex: 0 0 auto;
  margin-right: 20px;
}

.footer-logo {
  width: 80px;
  height: auto;
}

/* Kontak di tengah */
.contact-section {
  flex: 1;
}

.contact-section h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
  color: #fff;
  border-bottom: 2px solid #ea5858;
  display: inline-block;
  padding-bottom: 5px;
}

.contact-item {
  margin: 5px 0;
  font-size: 16px;
  color: #fff;
}

/* Navigasi di kanan */
.nav-section {
  flex: 0 0 auto;
  text-align: right;
}

.nav-section a {
  display: block;
  margin: 5px 0;
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-section a:hover {
  color: #ea5858;
}

/* Copyright di bawah */
.copyright {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* Media query untuk tampilan mobile */
@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .logo-section {
      margin-right: 0;
      margin-bottom: 20px;
  }
  
  .contact-section {
      margin-bottom: 20px;
      width: 100%;
      text-align: center;
  }
  
  .nav-section {
      width: 100%;
      text-align: center;
  }
  
  .nav-section a {
      display: inline-block;
      margin: 5px 10px;
  }
}


/* MEDIA QUERIES FOR TABLET AND DESKTOP */
@media (min-width: 768px) {
  /* NAVBAR */
  .navbar {
    padding: 15px 30px;
  }
  
  .logo {
    font-size: 26px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    width: auto;
  }
  
  .navbar ul {
    flex-direction: row;
    width: auto;
    margin-top: 0;
    gap: 20px;
  }
  
  .navbar ul li {
    width: auto;
    border-bottom: none;
    padding: 0;
  }
  
  .navbar ul li a {
    font-size: 16px;
    padding: 0;
  }
  /* SECTION 1 */
  .section-1-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 0 40px;
  }
  
  .section-1-left {
    align-items: flex-start;
    margin-bottom: 0;
  }
  
  .section-1-logo {
    margin-left: 0;
    max-width: 300px;
  }
  
  .section-1-desc {
    margin-left: 0;
    max-width: 400px;
  }
  
  .section-1-right {
    text-align: right;
  }
  
  /* SECTION 2 */
  .section-2-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .section-2-left {
    width: 50%;
    text-align: left;
  }
  
  .section-2-left p {
    text-align: justify;
  }
  
  .section-2-right {
    width: 40%;
  }
  
  /* SECTION 3 */
  .slider-wrapper {
    max-width: 960px; /* Show more items on desktop */
  }
}

@media (min-width: 992px) {
  /* SECTION 1 */
  .section-1-logo {
    margin-left: 0;
  }
  
  .section-1-desc {
    margin-left: 0;
  }
  
  /* NEWS ITEMS */
  .news-item {
    min-width: 300px;
  }
}

@media (min-width: 1200px) {
  /* SECTION 3 */
  .slider-wrapper {
    max-width: 1000px;
  }
}