@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-color: #0d0d0d;
  --text-color: #f5f5f5;
  --accent-color: #b08d57;
  --accent-hover: #cbb382;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header & Nav */
header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 1300px;
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  padding: 15px 5%;
  background: rgba(10, 10, 10, 0.9);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(176,141,87,0.3);
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f0d5a3, #b08d57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #ddd;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background-color: rgba(10, 10, 10, 0.95);
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}



.dropdown-content li {
  width: 100%;
}

.dropdown-content li a {
  color: #ddd;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: normal;
}

.dropdown-content li a::after {
  display: none;
}

.dropdown-content li a:hover {
  background-color: rgba(176, 141, 87, 0.2);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Offset for anchor links to not be covered by fixed header */
.anchor-section {
  scroll-margin-top: 100px;
}

/* Hero Section */
.hero {
  height: auto;
  padding-top: 150px; /* Jarak untuk melewati header */
  padding-bottom: 30px; /* Jarak sedikit pas di bawah sub-judul */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#home-hero {
  height: 100vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  filter: brightness(0.4);
  transform: scale(1.05);
  animation: bgZoom 20s infinite alternate linear;
}

.hero-bg.home { background-image: url('../uploads/home/thumbnail/home_6a40e29c3d0c5.png'); }
.hero-bg.collection { background-image: url('../uploads/collection/collection.png'); }
.hero-bg.sustainability { background-image: url('../uploads/collection/sustainable.png'); }
.hero-bg.research { background-image: url('../uploads/research-journal/research_6a40ebc16e9dc.png'); filter: brightness(0.3); }

@keyframes bgZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-content {
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  line-height: 1.1;
  white-space: nowrap;
}

.mobile-break { display: none; }
.desktop-break { display: block; }

@media (min-width: 769px) {
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: 300;
  letter-spacing: 2px;
  margin-top: 1.5rem;
}

/* Common Section */
section {
  padding: 3rem 5%;
}

body.home section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--accent-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--accent-color);
}

.section-description {
  max-width: 760px;
  margin: -2rem auto 3rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

.sustainability-single-line-title {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-list-text {
  min-width: 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  grid-auto-flow: dense;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  border-color: rgba(176, 141, 87, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.glass-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.glass-card p {
  color: #bbb;
  font-size: 1rem;
}

/* Specific Home styles */
.about-text p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 1.5rem;
}
.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}
.glass-card .about-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-image:hover img {
  transform: scale(1.05);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: #050505;
  padding: 1.5rem 5% 1rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  text-align: center;
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.footer-col p, .footer-col li {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  color: #555;
  font-size: 0.9rem;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Mobile Navigation & Responsive */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

@media (max-width: 900px) {
  section {
    padding: 4rem 5%;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
  }

  .nav-links.active {
    right: 0;
  }
  


  .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    min-width: 240px;
  }
  
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  #about .grid-2 {
    display: flex;
    flex-direction: column-reverse;
  }

  #about .about-image img {
    width: min(62vw, 220px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .grid-4 .glass-card {
    padding: 1rem !important;
  }
  
  .grid-4 h4 {
    font-size: 1rem !important;
  }
  
  .grid-4 p {
    font-size: 0.8rem;
  }
  
  .gallery-item {
    aspect-ratio: 1 / 1;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    white-space: normal;
  }
  
  .mobile-break { display: block; }
  .desktop-break { display: none; }
  
  .hero p {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  footer {
    padding: 1.5rem 5% 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .footer-col p, .footer-col li {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 768px) {
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .collection-grid .glass-card {
    padding: 1rem;
  }
  .collection-grid .card-text h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .collection-grid .card-text p {
    font-size: 0.8rem;
  }
}

/* Size Besar CSS */
.glass-card.size-besar { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; padding: 3rem; }
.glass-card.size-besar .about-image { width: 100%; margin-bottom: 0 !important; }
.glass-card.size-besar .about-image img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 12px; }
@media (max-width: 768px) {
  .glass-card.size-besar { padding: 1.5rem; }
  .glass-card.size-besar .about-image img { aspect-ratio: 16/9; }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}
@keyframes zoomIn {
  from {transform:scale(0.9)}
  to {transform:scale(1)}
}
section img:not(.slider-nav img):not(.frontend-modal-img) {
  cursor: pointer;
}


/* Frontend Modal */
.frontend-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.frontend-modal.active {
  display: flex;
  opacity: 1;
}
.frontend-modal-content {
  background: #111;
  border: 1px solid var(--accent-color);
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.frontend-modal.active .frontend-modal-content {
  transform: scale(1);
}
.frontend-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
}
.frontend-modal-close:hover {
  color: var(--accent-color);
}
.frontend-modal-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-weight: bold;
}
.btn-read-more:hover {
  text-decoration: underline;
}

/* ARCHIVES & MEMORABILIA */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.archive-folder {
  background: linear-gradient(145deg, #1f1a14, #14110d);
  border: 1px solid rgba(176,141,87,0.2);
  border-radius: 12px 12px 4px 4px;
  position: relative;
  transition: 0.4s;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 2px 0 rgba(255,255,255,0.05);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.archive-folder::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 20px;
  width: 100px;
  height: 15px;
  background: #1f1a14;
  border: 1px solid rgba(176,141,87,0.2);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.archive-folder:hover {
  transform: translateY(-10px);
  border-color: rgba(176,141,87,0.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 2px 0 rgba(176,141,87,0.1);
}
.archive-folder-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  opacity: 0.8;
  transition: 0.4s;
  mix-blend-mode: luminosity;
}
.archive-folder:hover .archive-folder-img {
  opacity: 1;
  mix-blend-mode: normal;
}
.archive-folder-content {
  padding: 25px;
  border-top: 1px solid rgba(176,141,87,0.1);
}
.archive-folder-content h3 {
  margin: 0 0 10px 0;
  color: #e0cca5;
  font-size: 1.3rem;
}
.archive-folder-content p {
  margin: 0;
  color: #888;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Masonry Grid for Archive Items */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.masonry-item {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transition: 0.3s;
}
.masonry-item:hover {
  transform: scale(1.02);
  border-color: rgba(176,141,87,0.3);
  box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}
.masonry-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.masonry-title {
  margin: 15px 0 5px 0;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masonry-desc {
  margin: 0;
  color: #999;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
}
@media (max-width: 600px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
  .masonry-item {
    padding: 10px;
  }
  .masonry-title {
    font-size: 0.85rem;
    margin-top: 10px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .masonry-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }
}

