:root {
  --bg: #0f0f0f;
  --bg-alt: #131313;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --accent: #7c5cff;
  --accent-2: #00e5ff;
  --chip: #1f1f1f;
  --border: #262626;
  --radius: 14px;
  --fontsize:15px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: var(--fontsize);
}

h1 {
  font-size: clamp(24px, 5vw, 36px);
}


h2 {
  font-size: clamp(20px, 3.5vw, 28px);
}

h3 {
  font-size: clamp(16px, 2.5vw, 20px);
}


/* Layout */
.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

.container img {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero .brandmark {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.hero .brandmark img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.hero__content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  z-index: 2;
  max-width: 90%;
}

.hero__content h1 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hero__content .tagline {
  font-size: clamp(14px, 2.5vw, 22px);
  margin-top: 6px;
  color: #ddd;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Cards */
.card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  font-size: clamp(16px, 2.5vw, 18px);
  margin: 16px 16px 8px;
  color: #fff;
}

.card p {
  font-size: var(--fontsize);
  line-height: 1.5;
  color: #ccc;
  margin: 0 16px 16px;
}

/* Sections */
.section { 
  padding: 25px 0; 
}

.section--dark { 
  background: var(--bg-alt); 
}

.lead { 
  max-width: 60ch; 
}

/* Grid Layouts */
.cards {
  display: grid;
  gap: 24px;
  margin: 20px 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Navigation */
.mainnav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid #333;
  padding: 8px 0;
}

.mainnav__list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainnav__list a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  color: #ccc;
  padding: 6px 8px;
  transition: color 0.2s ease;
}

.mainnav__list a:hover {
  color: #fff;
  font-weight: 600;
}

/* About Section */
.about {
  padding: 25px 5% 60px;
}

.about__content {
  max-width: 720px;
  margin: 0 auto;
}

.about__content h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
}

.about__content .lead {
  margin-bottom: 16px;
  color: #ccc;
}

.about__content p {
  font-size: var(--fontsize);
  line-height: 1.6;
  margin-bottom: 12px;
}

.about__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Footer */
.footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding: 24px 0 76px;
  background: var(--bg-alt);
}

.footer__grid {
  display: grid;
  gap: 30px;
}

.footer__logo {
  margin-bottom: 12px;
}

.footer__logo img {
  width: 100px;
  height: auto;
}

.footer__contact .contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.contact__item a,
.footer__legal a {
  text-decoration: none;
  color: var(--text);
}

.footer__title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: calc(var(--fontsize) + 1px);
}

/* Community Links */
#community a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  color: var(--text);
  font-size: calc(var(--fontsize) + 2px); 
}

#community a:hover {
  color: #0095f6;
}

#community a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Visual Gallery - FIXED untuk Click Zoom */
/* Visual Gallery - Mobile Optimized (No Animation) */
#visual-gallery.custom-gallery {
  padding: 2rem 0;
  background-color: #1a1a1a;
}

#visual-gallery .custom-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

#visual-gallery .custom-gallery-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

#visual-gallery .custom-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#visual-gallery .custom-filter {
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease;
}

#visual-gallery .custom-filter-active {
  background-color: #fff;
  color: #1a1a1a;
  border-color: #fff;
}

#visual-gallery .custom-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

#visual-gallery .custom-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

#visual-gallery .custom-grid-item.custom-hidden {
  display: none;
}

#visual-gallery .custom-grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

#visual-gallery .custom-caption {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  #visual-gallery .custom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  #visual-gallery .custom-grid-item img {
    height: 240px;
  }
}

/* Desktop: 2 columns (no 3 columns) */
@media (min-width: 1024px) {
  #visual-gallery .custom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  #visual-gallery .custom-grid-item img {
    height: 260px;
  }
}

/* Remove all hover effects for mobile focus */
#visual-gallery .custom-grid-item:hover {
  transform: none;
  box-shadow: none;
}

#visual-gallery .custom-grid-item:hover img {
  transform: none;
}

#visual-gallery .custom-grid-item:hover .custom-caption {
  transform: none;
  opacity: 1;
}

/* MOBILE: Click untuk show caption dan zoom */
@media (max-width: 768px) {
  #visual-gallery .custom-grid-item.active img {
    transform: scale(1.03);
  }
  
  #visual-gallery .custom-grid-item.active .custom-caption {
    transform: translateY(0);
    opacity: 1;
  }
  
  .mainnav__list {
    gap: 16px;
  }
  
  .mainnav__list a {
    font-size: 12px;
  }

  .footer__logo img {
    margin-left: 20px !important;
    margin-right: auto !important;
  }

  .footer__legal {
    text-align: left !important;
  }
}

/* Tablet & Desktop Styles */
@media (min-width: 768px) {
  .cards { 
    grid-template-columns: repeat(3, 1fr); 
  }
  
  .footer__grid { 
    grid-template-columns: 2fr 1fr; 
  }
  
  #visual-gallery .custom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  #visual-gallery .custom-grid-item img {
    height: 280px;
  }
}

/* Desktop Hover Effects */
@media (min-width: 769px) {
  #visual-gallery .custom-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  #visual-gallery .custom-grid-item:hover img {
    transform: scale(1.05);
  }
  
  #visual-gallery .custom-grid-item:hover .custom-caption {
    transform: translateY(0);
    opacity: 1;
  }
  
  #visual-gallery .custom-filter:hover {
    border-color: rgba(255, 255, 255, 0.6);
  }
}

/* Large Desktop Adjustments */
@media (min-width: 1024px) {
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .hero__overlay {
    border-radius: 12px;
  }
  
  .hero .brandmark {
    top: 20px;
    left: 20px;
  }
  
  .hero__content {
    bottom: 25%;
    left: 10%;
  }
}

/* Animations */
@keyframes custom-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Utilities */
.small { 
  font-size: 13px; 
}

/* Desktop Optimization Message */
.desktop-optimization-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 90%;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.desktop-message-content {
  position: relative;
  padding: 20px;
  padding-right: 50px;
}

.desktop-message-content p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.desktop-message-content p:first-child {
  font-weight: 500;
  color: var(--accent-2);
}

.desktop-message-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.desktop-message-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Hide on mobile */
@media (max-width: 1023px) {
  .desktop-optimization-message {
    display: none !important;
  }
}

/* Dalam bagian footer CSS yang sudah ada, tambahkan: */
.footer__legal {
  grid-column: 1 / -1;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}

.footer__legal .copyright {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text);
}

.footer__legal small {
  font-size: 11px;
  color:lightgrey !important;
}
.footer__legal a {
  font-size: 11px;
  color: lightgrey !important;
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}