/* css/home.css */

/* Reset dan base style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: #ffffff;
  background-color: #0a0a0a;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero section dengan video background */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Video background styling */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#bg-video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Fallback styling jika video error */
.video-fallback {
  background-image: url("../assets/images/fallback-image.jpg");
  background-size: cover;
  background-position: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.5)
  );
}

/* Hero content styling */
.hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(125, 95, 255, 0.8);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(125, 95, 255, 0.8);
  }
  to {
    text-shadow: 0 0 20px rgba(125, 95, 255, 1),
      0 0 30px rgba(125, 95, 255, 0.7);
  }
}

.tagline {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.description {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #bbbbbb;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7d5fff, #5d3fff);
  color: white;
  box-shadow: 0 5px 15px rgba(125, 95, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(125, 95, 255, 0.7);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #7d5fff;
  color: #7d5fff;
}

.btn-secondary:hover {
  background: rgba(125, 95, 255, 0.1);
  transform: translateY(-3px);
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #cccccc;
  font-size: 14px;
  opacity: 0.8;
  animation: fadeInOut 2s ease-in-out infinite;
}

.arrow {
  margin-top: 10px;
  width: 20px;
  height: 20px;
  border-right: 2px solid #cccccc;
  border-bottom: 2px solid #cccccc;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* Tombol play untuk perangkat yang tidak mendukung autoplay */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(125, 95, 255, 0.7);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(125, 95, 255, 0.5);
}

.video-play-button:hover {
  background: rgba(125, 95, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 42px;
    letter-spacing: 3px;
  }

  .tagline {
    font-size: 18px;
  }

  .description {
    font-size: 16px;
    padding: 0 15px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 80%;
    margin: 30px auto 0;
  }
}

/* Untuk layar yang sangat kecil */
@media (max-width: 480px) {
  h1 {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .tagline {
    font-size: 16px;
  }

  .description {
    font-size: 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Fix untuk iPhone landscape dan beberapa perangkat khusus */
@media screen and (max-height: 450px) and (orientation: landscape) {
  .hero-content {
    padding-top: 10px;
    transform: scale(0.8);
  }

  .scroll-down {
    bottom: 20px;
  }
}

/* Untuk layar ultra wide */
@media screen and (min-width: 1921px) {
  .hero-content {
    max-width: 1000px;
  }

  h1 {
    font-size: 90px;
  }

  .tagline {
    font-size: 30px;
  }

  .description {
    font-size: 22px;
    max-width: 800px;
  }
}

/* Tambahkan kode CSS ini ke file css/home.css */

/* Game Content Sections */
.game-content,
.game-features,
.game-world {
  padding: 120px 0;
  background-color: #0c0c14;
  position: relative;
  overflow: hidden;
}

.game-features {
  background-color: #0a0a12;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
  max-width: 600px;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #7d5fff;
  margin-bottom: 70px;
  letter-spacing: 5px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #7d5fff;
}

.content-details {
  padding-left: 20px;
  border-left: 1px solid rgba(125, 95, 255, 0.3);
}

.content-subtitle {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.content-description {
  font-size: 16px;
  line-height: 1.8;
  color: #b3b3cc;
  margin-bottom: 20px;
}

.content-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 550px;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.feature-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(125, 95, 255, 0.2);
}

/* Ambient background elements */
.game-content::before,
.game-features::before,
.game-world::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.03);
  filter: blur(100px);
  z-index: 0;
}

.game-content::before {
  top: -100px;
  right: 10%;
}

.game-features::before {
  bottom: -100px;
  left: 5%;
}

.game-world::before {
  top: 30%;
  right: -100px;
}

/* Features list styling */
.features-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #c9c9e0;
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #7d5fff;
  border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .container {
    padding: 0 40px;
  }

  .content-row {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .game-content,
  .game-features,
  .game-world {
    padding: 80px 0;
  }

  .content-row {
    flex-direction: column;
  }

  .content-row.reverse {
    flex-direction: column;
  }

  .content-text,
  .content-image {
    max-width: 100%;
  }

  .content-image {
    margin-top: 40px;
    order: 2;
  }

  .content-text {
    order: 1;
  }

  .section-title {
    margin-bottom: 50px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .game-content,
  .game-features,
  .game-world {
    padding: 60px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .content-subtitle {
    font-size: 20px;
  }

  .content-description {
    font-size: 15px;
  }
}

/* Game News Section - Ukuran diperbesar */
.game-news {
  padding: 120px 0;
  background-color: #0a0a12;
  position: relative;
  border-top: 1px solid rgba(125, 95, 255, 0.05);
}

/* News Header with Title and Navigation */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.news-navigation {
  display: flex;
  gap: 15px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(125, 95, 255, 0.3);
  color: #7d5fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(125, 95, 255, 0.1);
  transform: translateY(-2px);
}

.nav-btn:active {
  transform: translateY(0);
}

/* News Grid - Spacing diperbesar */
.news-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0 30px;
  scrollbar-width: none; /* Firefox */
}

.news-grid::-webkit-scrollbar {
  display: none; /* Safari dan Chrome */
}

/* News Card - Ukuran diperbesar */
.news-card {
  min-width: 360px;
  max-width: 360px;
  background: rgba(15, 15, 25, 0.5);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(125, 95, 255, 0.1);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(125, 95, 255, 0.15);
}

.news-image {
  height: 210px; /* Tinggi gambar diperbesar */
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 25px; /* Padding diperbesar */
}

.news-date {
  font-size: 16px; /* Font size diperbesar */
  color: #7d5fff;
  margin-bottom: 12px;
  font-weight: 500;
}

.news-title {
  font-family: "Orbitron", sans-serif;
  font-size: 20px; /* Font size diperbesar */
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 16px; /* Font size diperbesar */
  line-height: 1.6;
  color: #b3b3cc;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-link {
  font-family: "Orbitron", sans-serif;
  font-size: 16px; /* Font size diperbesar */
  font-weight: 500;
  color: #7d5fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.news-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: #7d5fff;
  transition: width 0.3s ease;
}

.news-link:hover {
  transform: translateX(3px);
}

.news-link:hover::after {
  width: 100%;
}

/* Responsive adjustments - Diupdate untuk ukuran card yang baru */
@media (max-width: 1200px) {
  .news-card {
    min-width: 330px;
    max-width: 330px;
  }
}

@media (max-width: 900px) {
  .game-news {
    padding: 80px 0;
  }

  .news-header {
    margin-bottom: 40px;
  }

  .news-grid {
    gap: 25px;
  }

  .news-card {
    min-width: 300px;
    max-width: 300px;
  }

  .news-image {
    height: 180px;
  }

  .news-content {
    padding: 20px;
  }

  .news-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .news-excerpt {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .news-date {
    font-size: 15px;
  }

  .news-link {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .game-news {
    padding: 60px 0;
  }

  .news-grid {
    gap: 20px;
  }

  .news-card {
    min-width: 280px;
    max-width: 280px;
  }

  .news-image {
    height: 170px;
  }

  .news-content {
    padding: 18px;
  }

  .news-title {
    font-size: 17px;
  }

  .news-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .news-date {
    font-size: 14px;
  }

  .news-link {
    font-size: 14px;
  }
}

/* Untuk layar sangat kecil */
@media (max-width: 400px) {
  .news-card {
    min-width: 260px;
    max-width: 260px;
  }

  .news-image {
    height: 160px;
  }

  .news-content {
    padding: 15px;
  }

  .news-title {
    font-size: 16px;
  }

  .news-excerpt {
    font-size: 13px;
  }
}

/* Custom scrollbar styling - Tetap dipertahankan */
.news-grid {
  scrollbar-width: thin;
  scrollbar-color: #7d5fff rgba(125, 95, 255, 0.1);
}

.news-grid::-webkit-scrollbar {
  height: 5px;
}

.news-grid::-webkit-scrollbar-track {
  background: rgba(125, 95, 255, 0.1);
  border-radius: 10px;
}

.news-grid::-webkit-scrollbar-thumb {
  background-color: #7d5fff;
  border-radius: 10px;
}

/* Game Comments Section - Tambahkan ke file hometest.css */
.game-comments {
  padding: 120px 0;
  background-color: #0a0a12;
  position: relative;
  border-top: 1px solid rgba(125, 95, 255, 0.05);
}

.comments-header {
  margin-bottom: 60px;
}

.comments-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.comments-info {
  flex: 1;
  max-width: 500px;
}

.comments-form {
  flex: 1;
  max-width: 550px;
}

.comments-subtitle {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.comments-description {
  font-size: 16px;
  line-height: 1.8;
  color: #b3b3cc;
  margin-bottom: 40px;
}

/* Form styling */
.form-group {
  margin-bottom: 25px;
}

#name,
#comment {
  width: 100%;
  background-color: rgba(15, 15, 25, 0.5);
  border: 1px solid rgba(125, 95, 255, 0.3);
  border-radius: 8px;
  padding: 15px 20px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#name:focus,
#comment:focus {
  outline: none;
  border-color: #7d5fff;
  box-shadow: 0 0 10px rgba(125, 95, 255, 0.3);
}

#name::placeholder,
#comment::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#comment {
  resize: none;
  min-height: 150px;
}

.btn-comment {
  background: linear-gradient(135deg, #7d5fff, #5d3fff);
  color: white;
  box-shadow: 0 5px 15px rgba(125, 95, 255, 0.5);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-comment:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(125, 95, 255, 0.7);
}

/* Alert message styles */
.alert-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.alert-message.success {
  background-color: rgba(46, 213, 115, 0.2);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.alert-message.error {
  background-color: rgba(255, 71, 87, 0.2);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 900px) {
  .game-comments {
    padding: 80px 0;
  }

  .comments-header {
    margin-bottom: 40px;
  }

  .comments-content {
    flex-direction: column;
    gap: 40px;
  }

  .comments-info,
  .comments-form {
    max-width: 100%;
  }

  .comments-subtitle {
    font-size: 24px;
  }

  .comments-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .game-comments {
    padding: 60px 0;
  }

  .comments-subtitle {
    font-size: 22px;
  }

  .comments-description {
    font-size: 14px;
  }

  #name,
  #comment {
    padding: 12px 15px;
    font-size: 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  #comment {
    min-height: 120px;
  }
}

/* Game Gallery Section - Tambahkan ke file hometest.css */
.game-gallery {
  padding: 120px 0;
  background-color: #0c0c14;
  position: relative;
  border-top: 1px solid rgba(125, 95, 255, 0.05);
}

.gallery-header {
  margin-bottom: 60px;
  text-align: center; /* Menengahkan judul */
}

/* Override style untuk judul di gallery section */
.game-gallery .section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Hapus garis di bawah judul gallery */
.game-gallery .section-title::after {
  display: none; /* Menghapus garis di bawah judul */
}

.gallery-content {
  position: relative;
}

/* Slideshow container */
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(125, 95, 255, 0.2);
}

/* Styling untuk slides */
.gallery-slide {
  display: none;
  width: 100%;
  height: 550px;
  transition: opacity 0.6s ease;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Next & previous buttons */
.gallery-prev,
.gallery-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  padding: 16px;
  color: #7d5fff;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 50%;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 18, 0.7);
  border: 1px solid rgba(125, 95, 255, 0.3);
  z-index: 2;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: rgba(125, 95, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Dots/bullets/indicators */
.gallery-dots {
  text-align: center;
  margin: 30px 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 8px;
  background-color: rgba(125, 95, 255, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #7d5fff;
  transform: scale(1.2);
}

/* Ambient background elements untuk galeri */
.game-gallery::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.03);
  filter: blur(100px);
  z-index: 0;
  top: 20%;
  left: 10%;
}

/* Responsive design untuk gallery */
@media (max-width: 1100px) {
  .slideshow-container {
    max-width: 90%;
  }

  .gallery-slide {
    height: 500px;
  }
}

@media (max-width: 900px) {
  .game-gallery {
    padding: 80px 0;
  }

  .gallery-header {
    margin-bottom: 40px;
  }

  .gallery-slide {
    height: 400px;
  }

  .gallery-prev,
  .gallery-next {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .game-gallery {
    padding: 60px 0;
  }

  .gallery-slide {
    height: 300px;
  }

  .gallery-prev,
  .gallery-next {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .dot {
    height: 10px;
    width: 10px;
    margin: 0 6px;
  }
}

@media (max-width: 480px) {
  .gallery-slide {
    height: 250px;
  }
}
