/* Prevent text size adjustment on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  height: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Inter', 'Noto Sans Batak', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff9f2;
  color: #2c3e50;
  line-height: 1.6;
  padding-top: 80px;
  /* Account for fixed navbar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Ensure main content takes full height */
main {
  flex: 1;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0 15px;
}

/* Container styles */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: none;
  color: #2c3e50;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background: rgba(44, 62, 80, 0.1);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.4);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease;
}

.theme-toggle .moon-icon {
  position: absolute;
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  color: #f1c40f;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: linear-gradient(135deg, rgba(255, 249, 242, 0.95), rgba(255, 245, 230, 0.95));
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-transform: translateZ(0);
  will-change: transform;
  border-bottom: 2px solid #f1c40f;
  background: linear-gradient(135deg, rgba(255, 249, 242, 0.95), rgba(255, 245, 230, 0.95)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 L70,10 L90,50 L70,90 L30,90 L10,50 Z" fill="none" stroke="%23f1c40f" stroke-width="0.5" opacity="0.1"/></svg>');
  background-size: 120px, 100px;
}

/* Navbar scroll effects */
.navbar.scrolled {
  padding: 15px 5%;
  background: rgba(255, 249, 242, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.navbar.scroll-up {
  transform: translateY(0);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar.scroll-down {
  transform: translateY(-100%);
  box-shadow: none;
}

/* Navigation Links Styling */
.nav-menu {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-menu .nav-item {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  text-decoration: none;
  background: transparent;
  transform: translateY(0);
  border: 1px solid transparent;
}

.nav-menu .nav-item:hover {
  color: #f39c12;
}

.nav-menu .nav-item.active {
  color: #f39c12;
  font-weight: 600;
}

.nav-text {
  display: block;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 1;
}

.nav-batak {
  display: block;
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1.2em;
  line-height: 1.1;
  margin-top: 2px;
  color: #d35400;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.nav-latin {
  display: block;
  margin-bottom: 2px;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.nav-item:hover .nav-batak {
  color: #a04000;
  transform: scale(1.05);
}

.nav-item:hover .nav-latin {
  color: #1a252f;
}

.nav-menu .nav-item::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 2px 5px rgba(241, 196, 15, 0.3);
}

.nav-menu .nav-item:hover {
  color: #d35400;
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(241, 196, 15, 0.5);
}

.nav-menu .nav-item:hover::before {
  transform: translateX(-50%) scaleX(1);
  background: linear-gradient(90deg, #f39c12, #e67e22);
  width: 80%;
  height: 4px;
}

/* Active state */
.nav-menu a.active {
  color: #f1c40f;
  font-weight: 600;
}

/* Dark theme styles */
[data-theme="dark"] {
  --bg-color: #1a1a2e;
  --text-color: #f0f0f0;
  --accent-color: #f1c40f;
  --nav-bg: rgba(26, 26, 46, 0.95);
  --card-bg: #16213e;
  --border-color: rgba(255, 255, 255, 0.1);
  --section-bg: #0f0f1f;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --text-muted: #a0a0c0;
}

[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Hero Section */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
  color: var(--text-color);
}

[data-theme="dark"] .hero-pattern {
  opacity: 0.1;
}

/* About Section */
[data-theme="dark"] .about-aksara {
  background-color: var(--section-bg);
  color: var(--text-muted);
}

[data-theme="dark"] .about-card {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .highlight {
  color: var(--text-color);
}

[data-theme="dark"] .section-description {
  color: var(--text-muted);
}

[data-theme="dark"] .lead {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .lead em {
  color: var(--accent-color);
  font-style: normal;
  font-weight: 600;
  padding: 0 2px;
  position: relative;
}

[data-theme="dark"] .lead em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(241, 196, 15, 0.3);
  border-radius: 2px;
}

/* Add a subtle gradient to the text for better readability */
[data-theme="dark"] .lead {
  background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

[data-theme="dark"] .feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .feature-item:hover {
  background: rgba(241, 196, 15, 0.05);
  border-color: rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .feature-icon {
  /* background: rgba(241, 196, 15, 0.1); */
  color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.1);
}

[data-theme="dark"] .feature-text h4 {
  color: var(--text-color);
  margin-bottom: 8px;
}

[data-theme="dark"] .feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

[data-theme="dark"] .batak-char {
  color: #f1c40f;
  font-size: 1.8rem;
  display: block;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
  transition: all 0.3s ease;
}

[data-theme="dark"] .feature-item:hover .batak-char {
  transform: scale(1.2);
  text-shadow: 0 0 15px rgba(241, 196, 15, 0.8);
}

[data-theme="dark"] .call-to-action {
  background: rgba(241, 196, 15, 0.05);
  border-left: 3px solid var(--accent-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

[data-theme="dark"] .call-to-action p {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
}

[data-theme="dark"] .batak-quote {
  background: rgba(241, 196, 15, 0.05);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 8px;
  margin-top: 40px;
  text-align: center;
}

[data-theme="dark"] .batak-script {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin: 15px 0;
  font-family: 'Noto Sans Batak', sans-serif;
}

[data-theme="dark"] .translation {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
}

[data-theme="dark"] .decorative-line {
  background: var(--border-color);
}

[data-theme="dark"] .batak-ornament {
  color: var(--accent-color);
  margin: 0 15px;
  font-size: 1.2rem;
}

[data-theme="dark"] .feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(241, 196, 15, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

[data-theme="dark"] .feature-item:hover::before {
  opacity: 1;
}

[data-theme="dark"] .feature-item .feature-text {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .feature-item:hover .feature-text p {
  color: #f0f0f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .feature-icon {
  /* background: rgba(241, 196, 15, 0.1); */
  color: var(--accent-color);
}

/* History Section */
[data-theme="dark"] #sejarah {
  background: var(--section-bg);
  position: relative;
  padding: 80px 10px;
}

/* [data-theme="dark"] .history-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
} */

[data-theme="dark"] .timeline-item {
  position: relative;
  margin-bottom: 30px;
}

[data-theme="dark"] .timeline-dot {
  position: absolute;
  left: -10px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .timeline-content {
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  /* margin-left: 15px; */
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .timeline-content h3 {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

[data-theme="dark"] .timeline-content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

[data-theme="dark"] .timeline-content em {
  color: var(--accent-color);
  font-style: normal;
  font-weight: 500;
}

/* Features Grid in History Section */
[data-theme="dark"] .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

[data-theme="dark"] .feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  opacity: 0.7;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

[data-theme="dark"] .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .feature-card:hover::before {
  transform: scaleX(1);
}

[data-theme="dark"] .feature-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

[data-theme="dark"] .feature-card h4 {
  color: var(--text-color);
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

[data-theme="dark"] .feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Learn More Button in History Section */
[data-theme="dark"] .learn-more-btn {
  margin-top: 30px;
  display: inline-block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

[data-theme="dark"] .button-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  /* padding: 12px 25px; */
  color: #1a1a2e;
  font-weight: 600;
  transition: all 0.3s ease;
}

[data-theme="dark"] .button-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  border-radius: 50px;
  z-index: 1;
  transition: all 0.3s ease;
}

[data-theme="dark"] .button-icon {
  margin-left: 8px;
  display: flex;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .learn-more-btn:hover .button-background {
  background: #f7d358;
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .learn-more-btn:hover .button-icon {
  transform: translateX(3px);
}

[data-theme="dark"] .learn-more-btn:active {
  transform: translateY(1px);
}

/* Dark Mode Manuscript Gallery */
[data-theme="dark"] .gallery-section.manuscript-gallery {
  background:
    radial-gradient(ellipse at top, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(160, 82, 45, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

[data-theme="dark"] .gallery-title {
  color: #f1c40f;
}

[data-theme="dark"] .title-main {
  color: #bdc3c7;
}

[data-theme="dark"] .gallery-subtitle {
  color: #bdc3c7;
}

[data-theme="dark"] .ornament-symbol {
  color: #f1c40f;
}

[data-theme="dark"] .batak-ornament {
  color: #e67e22;
}

[data-theme="dark"] .manuscript-frame {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 3px solid rgba(241, 196, 15, 0.3);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(241, 196, 15, 0.1);
}

[data-theme="dark"] .manuscript-item:hover .manuscript-frame {
  border-color: rgba(241, 196, 15, 0.5);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .corner {
  color: rgba(241, 196, 15, 0.6);
}

[data-theme="dark"] .manuscript-item:hover .corner {
  color: rgba(241, 196, 15, 0.8);
}

[data-theme="dark"] .manuscript-category {
  background: rgba(241, 196, 15, 0.2);
  border: 1px solid rgba(241, 196, 15, 0.4);
  color: #f1c40f;
}

[data-theme="dark"] .manuscript-title {
  color: #f1c40f;
}

[data-theme="dark"] .manuscript-description {
  color: #bdc3c7;
}

[data-theme="dark"] .manuscript-origin {
  background: rgba(241, 196, 15, 0.1);
  border-left: 3px solid #f1c40f;
}

[data-theme="dark"] .origin-text {
  color: #bdc3c7;
}

/* Buttons */
[data-theme="dark"] .cta-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

[data-theme="dark"] .cta-button.primary {
  background: var(--accent-color);
  color: #1a1a2e;
}

[data-theme="dark"] .cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cta-button.primary:hover {
  background: #f7d358;
}

/* Text Colors */
[data-theme="dark"] .section-description,
[data-theme="dark"] .lead,
[data-theme="dark"] .feature-text p,
[data-theme="dark"] .timeline-content p {
  color: var(--text-muted);
}

[data-theme="dark"] .highlight {
  color: var(--accent-color);
}

[data-theme="dark"] .subheading,
[data-theme="dark"] .subheading-batak {
  color: var(--text-muted);
}

/* Cards and Sections */
[data-theme="dark"] .section {
  background-color: var(--section-bg);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .section-header h2 {
  color: var(--text-color);
}

[data-theme="dark"] .section-tag {
  background: rgba(241, 196, 15, 0.1);
  color: var(--accent-color);
}

[data-theme="dark"] .section-tag-text {
  color: var(--accent-color);
}

/* Feature Cards */
[data-theme="dark"] .feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

[data-theme="dark"] .feature-card .feature-icon {
  /* background: rgba(241, 196, 15, 0.1); */
  color: var(--accent-color);
}

[data-theme="dark"] .feature-card h4 {
  color: var(--text-color);
}

[data-theme="dark"] .feature-card p {
  color: var(--text-muted);
}

/* Gallery Section Enhancements */
[data-theme="dark"] .gallery-info h3 {
  color: var(--text-color);
}

[data-theme="dark"] .gallery-info p {
  color: var(--text-muted);
}

/* Timeline Section */
[data-theme="dark"] .timeline-item h3 {
  color: var(--accent-color);
}

/* Buttons and Interactive Elements */
[data-theme="dark"] .learn-more-btn {
  background: var(--accent-color);
  color: #1a1a2e;
}

[data-theme="dark"] .learn-more-btn:hover {
  background: #f7d358;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Hero Section Text */
[data-theme="dark"] .heading-latin,
[data-theme="dark"] .heading-batak {
  color: var(--text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Badge Styling */
[data-theme="dark"] .badge {
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.2);
  color: var(--accent-color);
}

[data-theme="dark"] .badge-latin,
[data-theme="dark"] .badge-batak {
  color: var(--accent-color);
}

/* Info Text */
[data-theme="dark"] .info-text p {
  color: #f0f0f0;
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  padding: 0 20px;
}

/* Ensure text doesn't get too small on mobile */
@media (max-width: 768px) {
  [data-theme="dark"] .info-text p {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-menu {
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
  }

  [data-theme="dark"] .nav-item {
    border-bottom: 1px solid var(--border-color);
  }
}

[data-theme="dark"] .navbar {
  background: linear-gradient(135deg, var(--nav-bg), rgba(26, 26, 46, 0.95)) !important;
  color: var(--text-color);
  border-bottom: 2px solid var(--accent-color);
}



[data-theme="dark"] .nav-menu .nav-item .nav-text {
  color: #f8f9fa !important;
  /* Brighter text for better visibility */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  /* Subtle text shadow for better contrast */
}

[data-theme="dark"] .nav-latin {
  color: #f8f9fa;
  /* Brighter text for Latin characters */
  font-weight: 500;
  /* Slightly bolder for better readability */
}

[data-theme="dark"] .nav-batak {
  color: #f1c40f;
  /* Gold color for Batak script */
  font-weight: 500;
  /* Slightly bolder for better readability */
}

/* Dark mode button text color fix */
[data-theme="dark"] .cta-button .button-text {
  color: #2c3e50;
}

[data-theme="dark"] .cta-button:hover .button-text {
  color: #2c3e50;
}

/* Navigation item states in dark mode */
[data-theme="dark"] .nav-item {
  transition: all 0.3s ease;
  position: relative;
}

/* Hover and focus states */
[data-theme="dark"] .nav-item:hover .nav-latin,
[data-theme="dark"] .nav-item:focus .nav-latin {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

[data-theme="dark"] .nav-item:hover .nav-batak,
[data-theme="dark"] .nav-item:focus .nav-batak {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Active state for current page */
[data-theme="dark"] .nav-item.active {
  background: rgba(255, 215, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-item.active .nav-latin,
[data-theme="dark"] .nav-item.active .nav-batak {
  color: #ffd700;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Active indicator dot */
[data-theme="dark"] .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

/* Mobile menu specific styles */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-menu {
    background: rgba(20, 20, 30, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  [data-theme="dark"] .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1rem;
  }

  [data-theme="dark"] .nav-item:last-child {
    border-bottom: none;
  }

  [data-theme="dark"] .nav-item.active {
    background: rgba(255, 215, 0, 0.12);
  }

  [data-theme="dark"] .nav-item.active::after {
    bottom: 8px;
  }
}

[data-theme="dark"] .mobile-menu-toggle .menu-line {
  background-color: var(--text-color);
}

[data-theme="dark"] .logo-light {
  opacity: 0;
}

[data-theme="dark"] .logo-dark {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 992px) {
  .nav-menu {
    gap: 12px;
  }

  .nav-menu .nav-item {
    min-width: auto;
    padding: 10px 12px;
  }

  .nav-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    background: #fff9f2;
    padding: 20px 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 40px rgba(44, 62, 80, 0.15);
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-right: none;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-item {
    width: 90%;
    margin: 8px 5%;
    padding: 16px 20px;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }

  .nav-menu .nav-item .nav-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
  }

  .nav-menu .nav-item::before {
    display: none;
  }

  .nav-menu .nav-item.active {
    background: rgba(241, 196, 15, 0.1);
    border-left: 3px solid #f1c40f;
  }
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin: -12px -12px -12px 0;
  z-index: 1001;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-icon {
  position: relative;
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #2c3e50;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

[data-theme="dark"] .menu-line {
  background-color: #f8f9fa;
}

/* Cross icon animation */
.mobile-menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.menu-line-2 {
  opacity: 1;
  transform: scaleX(1);
  width: 100%;
}

.menu-line-3 {
  transform: translateY(0) rotate(0);
  width: 60%;
  margin-right: auto;
}

.mobile-menu-toggle.active {
  background: #f1c40f;
  border-color: #f1c40f;
}

.mobile-menu-toggle.active .menu-line {
  background-color: #2c3e50;
}

.mobile-menu-toggle.active .menu-line-1 {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .menu-line-3 {
  transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.4);
}

.mobile-menu-toggle:focus:not(:focus-visible) {
  box-shadow: none;
}

.mobile-menu-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.4);
}

/* Hover effect */
.mobile-menu-toggle:not(.active):hover {
  background: #f1f2f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Active state */
.mobile-menu-toggle:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Smooth transition for all states */
.mobile-menu-toggle,
.mobile-menu-toggle * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line-1 {
  transform: translateY(8.5px) rotate(45deg);
  width: 100%;
  margin-left: 0;
  background-color: #2c3e50;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line-3 {
  transform: translateY(-8.5px) rotate(-45deg);
  width: 100%;
  margin-right: 0;
  background-color: #2c3e50;
}

/* Hover effect */
.mobile-menu-toggle:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Prevent double-tap zoom on mobile */
@media (max-width: 768px) {
  html {
    touch-action: manipulation;
  }

  /* Improve tap targets for mobile */
  button,
  a,
  [role="button"] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Adjust navbar height and body padding on mobile */
  body {
    padding-top: 70px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
  }

  .navbar {
    padding: 10px 20px;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 1000;
  }

  /* Ensure content doesn't jump when mobile menu opens */
  body.no-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}

.mobile-menu-toggle:focus {
  outline: none;
}

.mobile-menu-toggle:active {
  transform: scale(0.9);
}

/* Menu toggle animation removed - using new animation system */

/* No-scroll class for when menu is open */
/* Prevent zoom on input focus on mobile */
input,
select,
textarea,
button {
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 40px;
    background-size: 80%;
    background-position: right -50px top -30px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Prevent double tap zoom on mobile */
@media (hover: none) and (pointer: coarse) {

  a,
  button,
  [role="button"],
  input,
  label,
  select,
  textarea {
    touch-action: manipulation;
  }
}

body.no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

@media (max-width: 768px) {
  .header-controls {
    gap: 8px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 85%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow: hidden;
  }

  .nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f1c40f, #e67e22);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    flex-direction: row;
    align-items: center;
    padding: 16px 24px;
    margin: 0 8px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .nav-item:not(:last-child) {
    margin-bottom: 4px;
  }

  .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f1c40f;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
  }

  .nav-item:hover::before,
  .nav-item:focus::before {
    transform: scaleY(1);
  }

  .nav-item:active {
    background-color: rgba(241, 196, 15, 0.08);
    transform: translateY(1px);
  }

  .nav-text {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .nav-text {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .nav-item:hover .nav-text {
    color: #f1c40f;
  }

  .nav-menu a {
    display: block;
    width: 90%;
    padding: 14px 25px;
    margin: 0 5%;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff9f2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
  }

  .nav-menu a:active {
    background-color: rgba(44, 62, 80, 0.03);
    transform: scale(0.98);
  }

  .nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f1c40f;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
  }

  .nav-menu a:hover {
    color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.05);
    padding-left: 30px;
  }

  .nav-menu a:hover::before {
    transform: scaleY(1);
  }

  .mobile-auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    padding: 20px 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
  }

  .mobile-auth .login,
  .mobile-auth .signup {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
  }

  .mobile-auth .login {
    background: transparent;
    border: 2px solid #f1c40f;
    color: #f1c40f;
  }

  .mobile-auth .signup {
    background: #f1c40f;
    border: 2px solid #f1c40f;
    color: #2c3e50;
  }

  .mobile-auth .login:active,
  .mobile-auth .signup:active {
    transform: translateY(1px);
  }

  .desktop-auth {
    display: none;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
  }

  .overlay.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0));
    pointer-events: none;
  }

  .overlay.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 90% 10%, rgba(241, 196, 15, 0.1), transparent 40%);
    pointer-events: none;
    animation: shine 3s infinite alternate;
  }

  @keyframes shine {
    from {
      opacity: 0.3;
    }

    to {
      opacity: 0.5;
    }
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    will-change: opacity, visibility;
    -webkit-tap-highlight-color: transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: pointer;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .overlay.active {
    display: block;
  }
}

/* About Aksara Section */
.about-aksara {
  position: relative;
  padding: 120px 0;
  background-color: #fff9f2;
  background-image: radial-gradient(rgba(241, 196, 15, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  margin-top: 100px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Section Intro */
.section-intro {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  display: flex;
  margin-bottom: 40px;
  position: relative;
  flex-wrap: nowrap;
  gap: 30px;
  width: 100%;
  padding: 15px 0;
}

.section-header h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  white-space: nowrap;
  text-align: center;
  flex: 1 0 100%;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f1c40f;
  border-radius: 2px;
}

/* Language Toggle Container */
.language-toggle-container {
  display: flex;
  justify-content: center;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.language-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  color: #2c3e50;
}

.language-btn:hover {
  background: rgba(44, 62, 80, 0.05);
}

.language-btn.active {
  background: #f1c40f;
  color: #2c3e50;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .language-toggle-container {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Section Tag */
.section-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.15));
  color: #b37a0b;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: 'Noto Sans', sans-serif;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(241, 196, 15, 0.2);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.05);
  transition: all 0.3s ease;
}

.section-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.1);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  border-radius: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.highlight {
  color: #d4a30d;
  position: relative;
  display: inline-block;
}

/* Section Description */
.section-description {
  font-size: 1.2rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Card */
.about-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  border-radius: inherit;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(241, 196, 15, 0.2);
}

.card-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  transform: translate(30%, -30%);
}

.text-content .lead {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
  font-weight: 400;
  max-width: 90%;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid #f1c40f;
  text-align: left;
}

.text-content .lead em {
  font-style: normal;
  color: #2c3e50;
  font-weight: 600;
  position: relative;
}

.text-content .lead em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(241, 196, 15, 0.3);
  z-index: -1;
  border-radius: 2px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 45px 0 30px;
  text-align: left;
  max-width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  padding: 22px;
  background: white;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #f1c40f, #f39c12);
  transition: height 0.4s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(241, 196, 15, 0.3);
}

.feature-item:hover::before {
  height: 100%;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(243, 156, 18, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 196, 15, 0.15);
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  z-index: 0;
}

.feature-item:hover .feature-icon {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.2);
}

.feature-text h4 {
  margin: 0 0 8px;
  color: #2c3e50;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.feature-text h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  transition: width 0.3s ease;
}

.feature-item:hover .feature-text h4::after {
  width: 100%;
}

.feature-text p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.feature-item:hover .feature-text p {
  color: #4b5563;
}

/* Call to Action */
.call-to-action {
  background: linear-gradient(135deg, #fefcf5 0%, #fff9f0 100%);
  padding: 35px 30px;
  border-radius: 16px;
  margin-top: 50px;
  text-align: center;
  border: 1px solid rgba(241, 196, 15, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.call-to-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  opacity: 0.8;
}

.call-to-action p {
  margin: 0 0 25px;
  font-size: 1.15rem;
  color: #2c3e50;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.call-to-action p::before,
.call-to-action p::after {
  content: '"';
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: rgba(241, 196, 15, 0.2);
  position: absolute;
  line-height: 1;
}

.call-to-action p::before {
  top: -15px;
  left: -15px;
}

.call-to-action p::after {
  bottom: -40px;
  right: -10px;
  transform: rotate(180deg);
}

.learn-more-btn {
  --button-primary: #f1c40f;
  --button-primary-dark: #f39c12;
  --button-text: #ffffff;
  --button-hover: #f7d358;

  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50px;
  padding: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--button-text);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  height: 50px;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
  text-decoration: none;
}

.learn-more-btn .button-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  z-index: 2;
  transition: transform 0.3s ease;
}

.learn-more-btn .button-text {
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

.learn-more-btn .button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.learn-more-btn .button-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--button-primary) 0%, var(--button-primary-dark) 100%);
  border-radius: 50px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Hover Effects */
.learn-more-btn:hover {
  transform: translateY(-3px);
}

.learn-more-btn:hover .button-content {
  transform: translateX(3px);
}

.learn-more-btn:hover .button-icon {
  transform: translateX(4px);
  opacity: 1;
}

.learn-more-btn:hover .button-background {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Active State */
.learn-more-btn:active {
  transform: translateY(0);
}

.learn-more-btn:active .button-content {
  transform: translateX(0);
}

.learn-more-btn:active .button-background {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

/* Focus State */
.learn-more-btn:focus-visible {
  outline: none;
}

.learn-more-btn:focus-visible .button-background {
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.5);
}

/* Batak Quote */
.batak-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #f8f5ec 0%, #f1e9d9 100%);
  border-radius: 16px;
  text-align: center;
  /* height: 100%; */
  border: 1px solid rgba(241, 196, 15, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.batak-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M56.5 12.5c0 7.18-5.82 13-13 13s-13-5.82-13-13 5.82-13 13-13 13 5.82 13 13z' fill='%23f1c40f' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.7;
  z-index: 0;
}

.quote-decoration {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

.decorative-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.quote-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.translation {
  font-style: italic;
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0;
}

/* Section Tag Styles */
.section-tag .indonesian-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #d4a30d;
}

/* Language Toggle */
.section-header {
  display: flex;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1rem;
}

.language-toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: #7f8c8d;
}

.language-btn.active {
  background: white;
  color: #2c3e50;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.language-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

/* Text transitions */
[data-lang-content] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-lang-content].hidden {
  opacity: 0;
  transform: translateY(10px);
  position: absolute;
  pointer-events: none;
}

/* Section Styles */
.section {
  padding: 80px 0;
  position: relative;
}

.section.light-bg {
  background-color: #f9f9f9;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f1c40f;
  border-radius: 2px;
}

/* Sejarah Section */
.content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.text-content {
  flex: 1;
}

.text-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.text-content ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.text-content li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.text-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f1c40f;
  font-weight: bold;
}

.image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-image {
  width: 100%;
  height: 300px;
  background-color: #f0f0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-style: italic;
}

/* Tentang Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-avatar {
  width: 100px;
  height: 100px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
  color: #f1c40f;
}

.team-member h3 {
  margin: 15px 0 10px;
  color: #2c3e50;
}

.team-member p {
  color: #777;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  --primary-color: #f1c40f;
  --primary-dark: #d4ac0d;
  --text-light: #ecf0f1;
  --text-muted: #b3c5d7;
  --bg-dark: #1a2634;
  --bg-darker: #121c26;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
  font-family: 'Inter', 'Noto Sans Batak', sans-serif;
  line-height: 1.6;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(90deg, transparent 0%, #f1c40f 50%, transparent 100%);
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  padding: 0 15px;
  z-index: 1;
}

.footer-logo {
  position: relative;
  padding-right: 20px;
}

.footer-logo::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-logo .logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f1c40f;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(241, 196, 15, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo .logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}

.footer-logo p {
  color: #b3c5d7;
  line-height: 1.7;
  margin: 15px 0 0;
  font-size: 0.95rem;
  max-width: 90%;
  position: relative;
}

.footer-links h4,
.footer-newsletter h4 {
  color: #f1c40f;
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-facts h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #f1c40f, transparent);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.footer-links li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #f1c40f;
  font-size: 0.9em;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.footer-links a {
  color: #d1dbe5;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 0;
  font-size: 0.95rem;
  position: relative;
}

.footer-links a:hover {
  color: #f1c40f;
  padding-left: 8px;
}

.footer-links li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(241, 196, 15, 0.5);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: #2c3e50;
  border: none;
  padding: 14px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.2);
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, #f7d358, #f1c40f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}

.newsletter-form button:active {
  transform: translateY(0);
}

.footer-bottom {
  text-align: center;
  padding: 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.6;
  max-width: 800px;
  color: white;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-bottom a:hover::after {
  transform: scaleX(1);
}

.footer-bottom .fa-heart {
  color: #e74c3c;
  margin: 0 4px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.batak-translation-footer {
  display: block;
  font-family: 'Noto Sans Batak', sans-serif;
  color: var(--primary-color);
  margin-top: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f1c40f, transparent);
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  .footer-logo {
    grid-column: 1 / -1;
    text-align: center;
    padding-right: 0;
  }

  .footer-logo::after {
    display: none;
  }

  .footer-logo p {
    margin: 15px auto 0;
    text-align: left;
    padding-left: 0;
  }

  .footer-logo p::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 30px;
  }

  /* .footer-logo {
    padding: 0 15px;
  } */

  .footer-logo p {
    text-align: left;
    margin: 15px auto 25px;
  }

  .footer-links h4,
  .footer-newsletter h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
  }

  .footer-links ul {
    gap: 8px;
  }

  .btn-subscribe {
    padding: 12px 20px;
  }

  .payment-icons {
    justify-content: center;
  }

  .footer-bottom p {
    flex-direction: column;
    gap: 5px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .divider {
    display: none;
  }

  #back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Footer Content */
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Logo Section */
.footer-logo {
  position: relative;
  padding-right: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  /* margin-bottom: 20px; */
}

.footer-logo p {
  color: var(--text-muted);
  margin: 5px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-logo .batak-translation-footer {
  color: #f1c40f;
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: .9rem;
  margin: 5px 0 15px;
  line-height: 1.5;
  opacity: 0.9;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1rem;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

/* Links Section */
.footer-links h4,
.footer-newsletter h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-newsletter h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
  transition: var(--transition);
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
  font-size: 0.95rem;
}

.footer-links a i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-links a:hover i {
  transform: scale(1.2);
}

/* Facts Section */
.footer-facts {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0;
  margin: 0;
}

.footer-facts h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-facts h4 i {
  color: var(--primary-color);
  font-size: 1.2rem;
  opacity: 0.8;
}

.footer-facts h4 .batak-translation {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-left: 5px;
}

.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  margin: 0;
  transition: var(--transition);
  border: none;
  background: none;
}

.fact-icon {
  color: var(--primary-color);
  font-size: 1rem;
  background: none;
  width: auto;
  height: auto;
  margin-top: 4px;
  opacity: 0.8;
}

.fact-content strong {
  display: block;
  color: var(--text-light);
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.fact-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Hover effects */
.facts-list li:hover .fact-icon {
  transform: none;
  opacity: 1;
  color: var(--primary-color);
  background: none;
}

.facts-list li:hover .fact-content strong {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-facts {
    padding: 0;
  }

  .facts-list li {
    padding: 0;
  }

  .fact-icon {
    font-size: 0.95rem;
  }
}

/* Newsletter Section */
.newsletter-form {
  margin-top: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.btn-subscribe:active {
  transform: translateY(0);
}

.payment-methods {
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.payment-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 1.8rem;
  color: var(--text-muted);
}

.payment-icons i {
  transition: var(--transition);
  cursor: pointer;
}

.payment-icons i:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  position: relative;
  padding: 25px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.batak-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.5;
}

.footer-bottom p {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.footer-bottom strong {
  color: var(--primary-color);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--primary-color);
}

.divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* Batak Pattern Overlay */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 20v-2h-2v2h2zm2 0h2v-2h-2v2zm0 0v2h2v-2h-2zm0 18v-2h-2v2h2zm-2 0h-2v2h2v-2zm0 0h2v2h-2v-2zm-36 0v2h-2v-2h2zm-2 0h-2v2h2v-2zm0 0h-2v-2h2v2zm0-18v-2h-2v2h2zm2 0h2v-2h-2v2zm0 0v-2h-2v2h2zm18 0v-2h-2v2h2zm2 0h2v-2h-2v2zm0 0v-2h-2v2h2zm0 18v-2h-2v2h2zm2 0h2v-2h-2v2zm0 0v-2h-2v2h2z' fill='%23f1c40f' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  /* Hide by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle:focus {
  outline: 2px solid #f1c40f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Show mobile menu toggle on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide desktop nav on mobile */
  .navbar nav {
    display: none;
  }

  /* Show mobile menu when active */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff9f2;
    padding: 10px 30px 20px;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  /* Overlay for mobile menu */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile menu links */
  .nav-menu a {
    color: #2c3e50;
    padding: 15px 0;
    margin: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  /* Dark mode mobile menu */
  [data-theme="dark"] .nav-menu {
    background: #1a1a2e;
  }

  [data-theme="dark"] .nav-menu a {
    color: #f8f9fa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  [data-theme="dark"] .nav-menu a:hover {
    color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.1);
  }

  /* Mobile menu toggle animation */
  .mobile-menu-toggle[aria-expanded="true"] .menu-line-1 {
    transform: translateY(8.5px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-line-2 {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-line-3 {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Hide scroll when menu is open */
  body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
    /* Smaller navbar on mobile */
  }

  .navbar {
    padding: 10px 20px;
  }

  .navbar.scrolled {
    padding: 8px 20px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p.subtext {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cta-buttons .primary,
  .cta-buttons .secondary {
    width: 100%;
    text-align: center;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .text-content li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .section {
    padding: 60px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .member-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .social-links {
    gap: 20px;
  }

  .social-link {
    text-align: center;
  }
}

.navbar nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-clip: padding-box;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.nav-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-latin {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-batak {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.9;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar nav a:hover {
  color: #2c3e50;
  background: rgba(44, 62, 80, 0.04);
}

.navbar nav a.active {
  color: #2c3e50;
  font-weight: 600;
}

.navbar nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f1c40f 0%, #f39c12 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.navbar nav a:hover::after {
  width: 60%;
}

.navbar nav a.active::after {
  width: 60%;
  background: linear-gradient(90deg, #f1c40f 0%, #f39c12 100%);
}

.auth-buttons {
  display: flex;
  gap: 12px;
  margin-left: 20px;
}

.auth-buttons .login,
.auth-buttons .signup {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.auth-buttons .login {
  background: transparent;
  color: #4a5568;
  border: 1.5px solid rgba(44, 62, 80, 0.2);
}

.auth-buttons .signup {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: #2c3e50;
  border: none;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.auth-buttons .login:hover {
  background: rgba(44, 62, 80, 0.03);
  border-color: rgba(44, 62, 80, 0.3);
  transform: translateY(-1px);
}

.auth-buttons .signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

/* About Aksara Section */
.about-aksara {
  padding: 4rem 2rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.about-aksara .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-aksara h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

/* .about-aksara h2:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f1c40f, #e67e22);
  border-radius: 3px;
} */

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.text-content {
  flex: 1;
  min-width: 100%;
  box-sizing: border-box;
}

.text-content p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: #2c3e50;
}

.text-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.text-content li {
  margin-bottom: 0.8rem;
  position: relative;
  line-height: 1.6;
}

.text-content li:before {
  content: '•';
  color: #f1c40f;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.batak-quote {
  flex: 0 1 400px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-sizing: border-box;
}

.quote-text {
  position: relative;
  z-index: 2;
}

.quote-text p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-style: italic;
}

.batak {
  font-family: 'Noto Sans Batak', sans-serif;
  color: #d4ac0d;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.translation {
  font-size: 1rem;
  color: #6c757d;
  text-align: right;
  font-style: normal;
}

.decorative-border {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f1c40f, #e67e22);
  transform: scaleX(0);
  transform-origin: left;
  animation: borderGrow 1s ease-out forwards 0.5s;
}

@keyframes borderGrow {
  to {
    transform: scaleX(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .batak-quote {
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  .about-aksara h2 {
    font-size: 2rem;
  }
}

/* Notes Box Styles */
.notes-box {
  --notes-bg-start: #f8f9fa;
  --notes-bg-end: #e9ecef;
  --notes-border: #d4a30d;
  --notes-text: #2c3e50;
  --notes-text-muted: #495057;
  --notes-shadow: rgba(0, 0, 0, 0.05);
  --notes-hover-shadow: rgba(0, 0, 0, 0.1);

  background: linear-gradient(145deg, var(--notes-bg-start), var(--notes-bg-end));
  border-left: 4px solid var(--notes-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px var(--notes-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Dark mode styles */
[data-theme="dark"] .notes-box {
  --notes-bg-start: #2d3748;
  --notes-bg-end: #1a202c;
  --notes-text: #e2e8f0;
  --notes-text-muted: #a0aec0;
  --notes-shadow: rgba(0, 0, 0, 0.2);
  --notes-hover-shadow: rgba(0, 0, 0, 0.3);
}

.notes-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--notes-hover-shadow);
}

.notes-title {
  color: var(--notes-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notes-title::before {
  content: 'ⓘ';
  color: var(--notes-border);
  font-size: 1.2em;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: var(--notes-text-muted);
  transition: color 0.3s ease;
}

.notes-list li:last-child {
  margin-bottom: 0;
}

.notes-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--notes-border);
  font-weight: bold;
  font-size: 1.25em;
  line-height: 1;
  transition: color 0.3s ease;
}

/* Logo styles */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-decoration: none;
  gap: 2px;
  flex-grow: 1;
  position: relative;
  height: 60px;
  /* Adjust based on your logo height */
}

.logo img {
  height: 100%;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

[data-theme="dark"] .logo-light {
  opacity: 0;
}

[data-theme="dark"] .logo-dark {
  opacity: 1;
}

.logo-latin {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
  transition: color 0.3s ease;
}

.logo-batak {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Hover effect */
.logo:hover .logo-batak,
.logo:hover .logo-latin {
  color: #f1c40f;
}

.logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 20px 140px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9f2 0%, #fff5e6 100%);
  text-align: center;
  box-sizing: border-box;
  z-index: 1;
  text-align: center;
  isolation: isolate;
  /* Creates a new stacking context */
}

/* Batak Animation Container */
.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-animation canvas {
  width: 100%;
  height: 100%;
}

/* Traditional Batak Pattern with Animations */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.5;

  /* Parchment-like texture */
  background-color: #f8f1e6;
  background-image:
    linear-gradient(90deg, #efd8b2 1px, transparent 1px),
    linear-gradient(#efd8b2 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px;
  background-position: -1px -1px, -1px -1px;

  /* Performance optimizations */
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Main decorative pattern */
    url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='batak-pattern' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Crect fill='none' width='200' height='200'/%3E%3Cpath d='M20,20 L180,20 L180,180 L20,180 Z' stroke='%23d4ac0d' stroke-width='0.8' stroke-dasharray='4,4' fill='none'/%3E%3Ctext x='100' y='100' font-family='Noto Sans Batak' font-size='24' text-anchor='middle' fill='%23d4ac0d' fill-opacity='0.15'%3Eᯘᯮᯒᯗ ᯅᯖᯂ᯲%3C/text%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23batak-pattern)'/%3E%3C/svg%3E"),
    /* Subtle paper texture */
    url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E");

  background-blend-mode: overlay;
  animation: float 25s ease-in-out infinite;

  /* Traditional Batak decorative elements */
  background:
    url("data:image/svg+xml,%3Csvg width='120' height='160' viewBox='0 0 120 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60,20 C80,20 100,40 100,60 C100,80 80,100 60,100 C40,100 20,80 20,60 C20,40 40,20 60,20 Z' fill='none' stroke='%23d4ac0d' stroke-width='0.8' stroke-dasharray='2,2'/%3E%3Cpath d='M60,40 C70,40 80,50 80,60 C80,70 70,80 60,80 C50,80 40,70 40,60 C40,50 50,40 60,40 Z' fill='none' stroke='%23d4ac0d' stroke-width='0.8'/%3E%3C/svg%3E") no-repeat;
  animation: float 15s ease-in-out infinite alternate-reverse;
  opacity: 0.4;
}

/* Bottom decorative border */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background:
    url("data:image/svg+xml,%3Csvg width='400' height='40' viewBox='0 0 400 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q100,0 200,20 T400,20' fill='none' stroke='%23d4ac0d' stroke-width='1' stroke-dasharray='10,5' opacity='0.3'/%3E%3C/svg%3E") repeat-x bottom center;
  background-size: 400px 40px;
  animation: slide 60s linear infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0.5deg);
  }

  25% {
    transform: translate(5px, 5px) rotate(-0.5deg);
  }

  50% {
    transform: translate(-5px, 5px) rotate(0.5deg);
  }

  75% {
    transform: translate(5px, -5px) rotate(-0.5deg);
  }
}

@keyframes slide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 800px 0;
  }
}

/* Add subtle glow on hover */
.hero:hover .hero-pattern::before {
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.hero .badge {
  display: inline-block;
  background: rgba(241, 196, 15, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(241, 196, 15, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 30px;
}

.badge-latin {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  margin-right: 8px;
}

.badge-batak {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1rem;
  color: #d35400;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  animation-delay: 0.2s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.heading-latin {
  font-size: 4rem;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -0.5px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.heading-batak {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1.8rem;
  color: #d35400;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.highlight {
  display: inline-block;
  margin: 15px 0 20px;
}

.highlight .heading-latin {
  color: #2c3e50;
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 5px;
}

.highlight .heading-batak {
  font-size: 2rem;
  color: #d35400;
  margin-bottom: 0;
}

.subheading {
  font-size: 1.5rem;
  color: #4a5568;
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.subheading-batak {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1.2rem;
  color: #d35400;
  margin-bottom: 1.5rem;
  display: block;
}

.info-text {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.25rem;
  color: #4a5568;
  line-height: 1.7;
  padding: 0 20px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* CTA Buttons */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto 0;
  flex-wrap: wrap;
  padding: 0 20px;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 180px;
  text-align: center;
}

.cta-button.primary {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  border: 2px solid #f1c40f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.cta-button.secondary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button-icon {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
  transform: translateX(3px);
}


/* Hero Pattern */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.08;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 L70,10 L90,50 L70,90 L30,90 L10,50 Z" fill="%23f1c40f"/></svg>');
  background-size: 100px;
  background-repeat: repeat;
  pointer-events: none;
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 249, 242, 0.9) 0%, rgba(255, 245, 230, 0.7) 100%);
  z-index: 1;
}

.cultural-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><path d="M60,10 L110,60 L60,110 L10,60 Z" fill="none" stroke="%23f1c40f" stroke-width="0.5" opacity="0.1"/><path d="M30,30 L90,30 L90,90 L30,90 Z" fill="none" stroke="%23f1c40f" stroke-width="0.3" opacity="0.1"/></svg>');
  background-size: 120px;
  background-repeat: repeat;
  opacity: 0.4;
  z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 20px 160px;
  }

  .heading-latin {
    font-size: 3.5rem;
  }

  .highlight .heading-latin {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 140px;
  }

  .heading-latin {
    font-size: 2.8rem;
  }

  .heading-batak {
    font-size: 1.5rem;
  }

  .highlight .heading-latin {
    font-size: 3.2rem;
  }

  .highlight .heading-batak {
    font-size: 1.7rem;
  }

  .subheading {
    font-size: 1.3rem;
  }

  .subheading-batak {
    font-size: 1.1rem;
  }

  .info-text {
    font-size: 1.1rem;
  }

  .cta-container {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 120px;
  }

  .heading-latin {
    font-size: 2.2rem;
  }

  .heading-batak {
    font-size: 1.3rem;
  }

  .highlight .heading-latin {
    font-size: 2.5rem;
  }

  .highlight .heading-batak {
    font-size: 1.4rem;
  }

  .subheading {
    font-size: 1.1rem;
  }

  .subheading-batak {
    font-size: 1rem;
  }

  .info-text {
    font-size: 1rem;
  }

  .badge {
    padding: 6px 15px;
    margin-bottom: 20px;
  }

  .badge-latin {
    font-size: 0.8rem;
  }

  .badge-batak {
    font-size: 0.9rem;
  }
}


.highlight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f1c40f;
  margin-bottom: 30px;
}

.highlight .heading-latin {
  color: #f1c40f;
}

.highlight .heading-batak {
  color: #f1c40f;
  /* opacity: 0.9; */
}

.hero .highlight {
  color: #2c3e50;
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #f1c40f 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Info Text with Inline Toggle */
.hero .info-text {
  max-width: 700px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  padding-top: 20px;
  text-align: center;
  padding: 0 20px;
}

.info-text p {
  margin: 0 0 1rem;
  position: relative;
  display: inline;
  line-height: 1.8;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.3);
  border-radius: 50%;
  padding: 0;
  margin: 0 0 0 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
  position: relative;
  top: -1px;
  outline: none;
  color: #2c3e50;
}

.inline-toggle:hover {
  background: rgba(241, 196, 15, 0.2);
  transform: scale(1.1);
}

.inline-toggle:active {
  transform: scale(0.95);
}

.inline-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.4);
}

.inline-toggle .toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.batak-translation {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  margin: 0.5rem 0 0;
  text-align: center;
  width: 100%;
}

.batak-script {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin: 0;
  padding: 1rem;
  background: rgba(241, 196, 15, 0.05);
  border-radius: 8px;
  display: inline-block;
  max-width: 90%;
  transition: all 0.3s ease;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Old bilingual text styles removed - replaced with inline toggle */

.hero .subtext {
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
  display: flex;
  flex-direction: column;
}

.subtext-latin-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.subtext-latin {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  flex: 1;
  text-align: center;
  max-width: 700px;
}

.toggle-batak {
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.3);
  border-radius: 20px;
  padding: 5px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  height: 36px;
  margin: 10px auto 0;
  align-self: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.toggle-text {
  font-size: 0.6rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.toggle-batak:hover {
  background: rgba(241, 196, 15, 0.2);
  transform: translateY(-1px);
}

.toggle-batak .toggle-icon {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1rem;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.toggle-batak:hover .toggle-icon {
  color: #f1c40f;
}

.subtext-batak-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.subtext-batak {
  font-family: 'Noto Sans Batak', sans-serif;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

/* Active state when Batak text is visible */
.subtext-batak-container.visible {
  max-height: 200px;
  opacity: 1;
}

.cta {
  display: flex;
  gap: 20px;
  margin: 0 auto 60px;
  justify-content: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.cta {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.cta .get-started {
  --button-primary: #f1c40f;
  --button-primary-dark: #f39c12;
  --button-text: #ffffff;
  /* Changed to white for better contrast */
  --button-hover: #f7d358;

  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50px;
  padding: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--button-text);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  height: 60px;
  z-index: 1;
}

.button-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 32px;
  z-index: 2;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.button-text {
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

.button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.button-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--button-primary) 0%, var(--button-primary-dark) 100%);
  border-radius: 50px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Hover Effects */
.cta .get-started:hover {
  transform: translateY(-3px);
}

.cta .get-started:hover .button-content {
  transform: translateX(3px);
}

.cta .get-started:hover .button-icon {
  transform: translateX(4px);
  opacity: 1;
}

.cta .get-started:hover .button-background {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Active State */
.cta .get-started:active {
  transform: translateY(0);
}

.cta .get-started:active .button-content {
  transform: translateX(0);
}

.cta .get-started:active .button-background {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

/* Focus State */
.cta .get-started:focus-visible {
  outline: none;
}

.cta .get-started:focus-visible .button-background {
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3), 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Ripple Effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  z-index: 2;
}

/* Manuscript Gallery Section */
.gallery-section.manuscript-gallery {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at top, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(160, 82, 45, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f4f1e8 0%, #ede6d3 50%, #f4f1e8 100%);
  position: relative;
  overflow: hidden;
}

/* Gallery Atmosphere */
.gallery-atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-manuscripts {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-manuscript {
  position: absolute;
  font-family: 'Noto Sans Batak', serif;
  font-size: 2rem;
  color: rgba(139, 69, 19, 0.08);
  animation: manuscriptFloat 20s infinite linear;
  opacity: 0.3;
}

.manuscript-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.manuscript-2 {
  top: 40%;
  right: 15%;
  animation-delay: -5s;
}

.manuscript-3 {
  top: 70%;
  left: 20%;
  animation-delay: -10s;
}

.manuscript-4 {
  top: 80%;
  right: 25%;
  animation-delay: -15s;
}

@keyframes manuscriptFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }

  25% {
    transform: translateY(-10px) rotate(90deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-5px) rotate(180deg);
    opacity: 0.2;
  }

  75% {
    transform: translateY(-15px) rotate(270deg);
    opacity: 0.3;
  }

  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.2;
  }
}

/* Gallery Header */
.gallery-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.header-ornament {
  margin-bottom: 30px;
}

.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.ornament-symbol {
  font-size: 1.5rem;
  color: #8b4513;
}

.ornament-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
  opacity: 0.4;
}

.batak-ornament {
  font-family: 'Noto Sans Batak', serif;
  font-size: 1.2rem;
  color: #d2691e;
}

.gallery-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #8b4513;
  margin: 0 0 20px;
  line-height: 1.2;
}

.title-main {
  display: block;
  font-size: 0.7em;
  opacity: 0.8;
}

.title-highlight {
  background: linear-gradient(135deg, #b8860b, #daa520);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: #5d4037;
  font-style: italic;
  opacity: 0.9;
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
}

/* Manuscript Showcase */
.manuscript-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.manuscript-item {
  position: relative;
  transition: all 0.4s ease;
}

.manuscript-item:hover {
  transform: translateY(-8px);
}

.manuscript-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 241, 232, 0.95) 100%);
  border: 3px solid rgba(139, 69, 19, 0.2);
  border-radius: 20px;
  padding: 25px;
  box-shadow:
    0 15px 40px rgba(139, 69, 19, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: all 0.4s ease;
}

.manuscript-item:hover .manuscript-frame {
  border-color: rgba(139, 69, 19, 0.4);
  box-shadow:
    0 20px 60px rgba(139, 69, 19, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.frame-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.corner {
  position: absolute;
  font-size: 1.5rem;
  color: rgba(139, 69, 19, 0.6);
  z-index: 2;
  transition: all 0.4s ease;
}

.corner.top-left {
  top: -5px;
  left: -5px;
}

.corner.top-right {
  top: -5px;
  right: -5px;
}

.corner.bottom-left {
  bottom: -5px;
  left: -5px;
}

.corner.bottom-right {
  bottom: -5px;
  right: -5px;
}

.manuscript-item:hover .corner {
  color: rgba(139, 69, 19, 0.8);
  transform: scale(1.1);
}

/* Manuscript Visual */
.manuscript-visual {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
  background: rgba(139, 69, 19, 0.05);
}

.manuscript-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: sepia(10%) saturate(1.1);
}

.manuscript-item:hover .manuscript-image {
  transform: scale(1.05);
  filter: sepia(5%) saturate(1.2);
}

.manuscript-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 69, 19, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.manuscript-item:hover .manuscript-glow {
  opacity: 1;
}

/* Manuscript Details */
.manuscript-details {
  position: relative;
  z-index: 3;
}

.manuscript-category {
  display: inline-block;
  background: rgba(139, 69, 19, 0.1);
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b4513;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.manuscript-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #8b4513;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.manuscript-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #5d4037;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.manuscript-origin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 12px;
  border-left: 3px solid #8b4513;
}

.origin-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.origin-text {
  font-size: 0.9rem;
  color: #5d4037;
  font-weight: 500;
  opacity: 0.8;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  transform: translateY(10px);
  transition: transform 0.3s ease 0.1s;
  color: white;
  width: 100%;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gallery-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #f1c40f;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(241, 196, 15, 0.3);
}

.gallery-item:hover .gallery-info h3::after {
  width: 60px;
}

.gallery-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin: 14px 0 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Gallery Badge */
.gallery-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(241, 196, 15, 0.95);
  color: #2c3e50;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover .gallery-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
/* Responsive Manuscript Gallery */
@media (max-width: 1200px) {
  .manuscript-showcase {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .gallery-section.manuscript-gallery {
    padding: 80px 0;
  }

  .gallery-header {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .gallery-title {
    font-size: 2.5rem;
  }

  .title-main {
    font-size: 0.8em;
  }

  .gallery-subtitle {
    font-size: 1.1rem;
  }

  .manuscript-showcase {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }

  .manuscript-frame {
    padding: 20px;
  }

  .manuscript-image {
    height: 220px;
  }

  .manuscript-title {
    font-size: 1.3rem;
  }

  .manuscript-description {
    font-size: 0.95rem;
  }

  /* Hide floating elements on tablet */
  .floating-manuscripts {
    display: none;
  }
}

@media (max-width: 576px) {
  .gallery-section.manuscript-gallery {
    padding: 60px 0;
  }

  .gallery-header {
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .gallery-title {
    font-size: 2rem;
  }

  .title-main {
    font-size: 1em;
    margin-bottom: 5px;
  }

  .gallery-subtitle {
    font-size: 1rem;
  }

  .ornament-line {
    gap: 10px;
  }

  .ornament-divider {
    width: 40px;
  }

  .manuscript-showcase {
    padding: 0 15px;
    gap: 20px;
  }

  .manuscript-frame {
    padding: 15px;
  }

  .manuscript-image {
    height: 200px;
  }

  .manuscript-title {
    font-size: 1.2rem;
  }

  .manuscript-description {
    font-size: 0.9rem;
  }

  .manuscript-category {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .manuscript-origin {
    padding: 10px 12px;
  }

  .origin-text {
    font-size: 0.85rem;
  }

  .corner {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .gallery-title {
    font-size: 1.6rem;
  }

  .manuscript-image {
    height: 180px;
  }

  .manuscript-title {
    font-size: 1.1rem;
  }

  .manuscript-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .gallery-info h3 {
    font-size: 1rem;
  }

  .gallery-info p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 25px;
    /* padding: 0 15px; */
  }

  .gallery-item {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cta .get-started {
    font-size: 1rem;
    height: 56px;
    min-width: 200px;
  }

  .button-content {
    padding: 0 28px;
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.metric-box {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.metric-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.label {
  font-weight: 600;
}

.trend.up {
  color: #27ae60;
  font-weight: 600;
  margin-left: 5px;
}

.progress {
  background: #eee;
  height: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.bar {
  height: 10px;
  background: linear-gradient(90deg, #f1c40f, #e67e22);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.ai-section {
  position: relative;
  background: #2c3e50;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  min-height: 200px;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
}

.ai-section .bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  z-index: 1;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Noto Sans Batak', sans-serif;
}

.ai-badge {
  background: linear-gradient(45deg, #f1c40f, #e67e22);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.logos span {
  color: #2c3e50;
  font-weight: 600;
  padding: 10px 20px;
  background: #f8f9fa;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.logos span:hover {
  background: #f1c40f;
  color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero {
    padding: 40px 20px 60px;
    /* background-position: right -150px top -50px; */
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 20px;
    z-index: 1000;
    transform: translateY(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  .heading-latin {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }

  .heading-batak {
    margin-bottom: 20px;
  }

  .highlight {
    margin-bottom: 20px;
    gap: 5px;
  }

  .hero .badge {
    margin-bottom: 30px;
  }

  .logo {
    font-size: 1.5rem;
  }

  nav {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .auth-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .hero {
    padding: 30px 0 50px;
    background-size: 80%;
    background-position: right -100px top 50px;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin: 15px 0;
  }

  .hero .subtext {
    font-size: 1.1rem;
  }

  .cta {
    flex-direction: column;
    gap: 15px;
  }

  .cta button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 15px;
  }


}

@media (max-width: 480px) {
  .hero {
    padding: 20px 0 40px;
    background-size: 120%;
    background-position: right -50px top 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtext {
    font-size: 1rem;
  }

  .heading-latin {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .heading-batak {
    margin-bottom: 15px;
    font-size: 1rem;
  }

  .highlight {
    margin-bottom: 15px;
  }

  .hero .badge {
    margin-bottom: 25px;
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .metric-box {
    padding: 20px 15px;
  }

  .ai-section {
    padding: 20px 15px;
    min-height: 180px;
  }

  .ai-section .bubble {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .ai-badge {
    font-size: 0.8rem;
    padding: 6px 15px;
  }

  nav a {
    margin: 0 8px;
    font-size: 0.9rem;
  }

  .auth-buttons .login,
  .auth-buttons .signup {
    padding: 6px 15px;
    font-size: 0.9rem;
  }

  /* About Aksara Section - Mobile Styles */
  .about-aksara {
    padding: 20px 0 40px;
  }

  .about-aksara .container {
    padding: 0 15px;
  }

  .section-intro {
    padding: 1rem 0 1rem;
    text-align: center;
    margin-bottom: 0;
  }

  .section-header {
    margin-bottom: 0;
  }

  .section-header h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    margin: 0.5rem 0 1.5rem;
    position: relative;
    padding-bottom: 1.2rem;
  }

  .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f1c40f;
    border-radius: 2px;
  }

  .section-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .about-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  .card-content {
    padding: 20px 15px;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .text-content {
    padding: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }

  .feature-item {
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* .feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
  } */

  .feature-icon .batak-char {
    font-size: 1.75rem;
  }

  .feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }

  .feature-text p {
    font-size: 0.9rem;
    color: #5d6d7e;
    margin: 0;
  }

  .call-to-action {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 1rem;
  }

  .call-to-action p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .learn-more-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .batak-quote {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-sizing: border-box;
  }

  .quote-text {
    margin: 1rem 0;
  }

  .batak-script {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .translation {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .quote-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
  }

  .decorative-line {
    width: 30%;
    height: 1px;
    background: rgba(44, 62, 80, 0.2);
  }

  .batak-ornament {
    margin: 0 10px;
    color: #f1c40f;
    font-size: 1.2rem;
  }

  .language-toggle-container {
    margin-bottom: 1rem;
  }

  .language-toggle {
    justify-content: center;
  }

  .language-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .text-content .lead {
    padding-left: .8rem;
    margin-bottom: 1rem;
  }

  /* Extra small devices (phones, 360px and down) */
  @media (max-width: 480px) {
    .section-header h2 {
      font-size: 2rem;
      line-height: 1.3;
      margin: 0.5rem 0 1.5rem;
      padding: 0 0.5rem 1.2rem;
      text-align: center;
      position: relative;
    }

    .section-header h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 3px;
      background: #f1c40f;
      border-radius: 2px;
    }

    .section-header h2 .highlight {
      display: block;
      margin-top: 0.25rem;
    }
  }
}

/* Floating Language Toggle */
/* Add smooth transitions for language changes */
body.language-loaded [data-id] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading animation for language switch */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.language-fab {
  display: none !important;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

.feature-icon .batak-char {
  font-size: 1.75rem;
  color: #f1c40f;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(241, 196, 15, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.language-fab__button {
  width: auto;
  height: 3.5rem;
  border-radius: 2rem;
  background: #f1c40f;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

/* Loading state */
.language-fab__button.loading .language-fab__icon {
  animation: spin 0.6s linear infinite;
}

.language-fab__button.loading {
  pointer-events: none;
}

.language-fab__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #f8d84e;
}

.language-fab__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  width: 24px;
  height: 24px;
}

.language-fab__current {
  font-weight: 700;
  /* margin: 0 0.25rem; */
  min-width: 20px;
  text-align: center;
}

.language-fab__tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #2c3e50;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-right: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-fab__button:hover .language-fab__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-8px);
}

.language-fab__options {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
  border-radius: 1rem;
  padding: 0.75rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: auto;
  min-width: 200px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}



.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 1rem;
  color: #2d3748;
  margin: 0 0.5rem;
  width: calc(100% - 1rem);
  box-sizing: border-box;
}

.language-option:hover {
  background: #f8f9fa;
}

.language-option[aria-pressed="true"] {
  background: #f1f5f9;
  font-weight: 600;
  color: #1a365d;
  position: relative;
}

.language-option[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  right: 1rem;
  width: 6px;
  height: 6px;
  background: #f1c40f;
  border-radius: 50%;
}

.language-option .flag-icon,
.language-option .batak-char {
  font-size: 1.4rem;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.language-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-grow: 1;
}

.language-option__name {
  font-weight: 500;
}

.language-option__code {
  font-size: 0.75rem;
  color: #6b7280;
  opacity: 0.8;
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.language-option {
  position: relative;
  overflow: hidden;
}

.language-option:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.language-option:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

/* Show options when button is clicked */
.language-fab.active .language-fab__options {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Consistent styles for all layouts */
.language-fab {
  bottom: 2rem;
  right: 2rem;
}

.language-fab__button {
  width: auto;
  height: 3.5rem;
  border-radius: 2rem;
  padding: 0 1.25rem;
}

.language-fab__current {
  display: inline-block;
  /* margin-left: 0.5rem; */
  font-weight: 600;
}

.language-fab__tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  margin-right: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.language-fab__button:hover .language-fab__tooltip {
  opacity: 1;
  visibility: visible;
  margin-right: 0.75rem;
}

.language-fab__options {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  left: auto;
  width: auto;
  min-width: 220px;
  margin-bottom: 1rem;
}

.language-fab__button .language-fab__icon {
  margin-right: 0.2rem;
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
  .language-fab {
    bottom: 1.5rem;
    right: 1rem;
  }

  .language-fab__button {
    padding: 0 1rem;
  }

  .language-fab__options {
    min-width: 200px;
    right: 0;
    left: auto;
  }
}

/* Manuscript Storytelling Design - Sejarah Section */
#sejarah.manuscript-storytelling {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(160, 82, 45, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f4f1e8 0%, #ede6d3 50%, #f4f1e8 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Cultural Atmosphere - Floating Elements */
.cultural-atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-char {
  position: absolute;
  font-family: 'Noto Sans Batak', serif;
  font-size: 2rem;
  color: rgba(139, 69, 19, 0.1);
  animation: mysticalFloat 20s infinite linear;
  opacity: 0.6;
}

.char-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.char-2 {
  top: 20%;
  right: 15%;
  animation-delay: -3s;
}

.char-3 {
  top: 60%;
  left: 20%;
  animation-delay: -7s;
}

.char-4 {
  top: 70%;
  right: 10%;
  animation-delay: -12s;
}

.char-5 {
  top: 40%;
  left: 80%;
  animation-delay: -15s;
}

.char-6 {
  top: 80%;
  left: 60%;
  animation-delay: -18s;
}

@keyframes mysticalFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.3;
  }

  75% {
    transform: translateY(-30px) rotate(270deg);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.3;
  }
}

.mystical-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 {
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.particle-2 {
  top: 45%;
  right: 30%;
  animation-delay: -5s;
}

.particle-3 {
  top: 75%;
  left: 15%;
  animation-delay: -10s;
}

.particle-4 {
  top: 30%;
  left: 70%;
  animation-delay: -12s;
}

.particle-5 {
  top: 85%;
  right: 20%;
  animation-delay: -8s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }

  25% {
    transform: translateY(-40px) scale(1.2);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0.4;
  }

  75% {
    transform: translateY(-60px) scale(1.1);
    opacity: 0.7;
  }
}

/* Cinematic Header */
.cinematic-header {
  padding: 100px 0 80px;
  position: relative;
  z-index: 10;
  background:
    radial-gradient(ellipse at center top, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
}

.manuscript-title {
  text-align: center;
  position: relative;
}

.ancient-border {
  position: relative;
  display: inline-block;
  padding: 60px 80px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 241, 232, 0.9) 100%);
  border: 3px solid #8b4513;
  border-radius: 20px;
  box-shadow:
    0 0 30px rgba(139, 69, 19, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.corner-ornament {
  position: absolute;
  font-size: 1.5rem;
  color: #8b4513;
  z-index: 2;
}

.top-left {
  top: -10px;
  left: -10px;
}

.top-right {
  top: -10px;
  right: -10px;
}

.bottom-left {
  bottom: -10px;
  left: -10px;
}

.bottom-right {
  bottom: -10px;
  right: -10px;
}

.sanskrit-line {
  margin-bottom: 20px;
}

.batak-ancient {
  font-family: 'Noto Sans Batak', serif;
  font-size: 1.4rem;
  color: #8b4513;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.word-art {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 15px;
  background: linear-gradient(135deg, #8b4513, #d2691e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
  position: relative;
}

.word-art.highlight {
  background: linear-gradient(135deg, #b8860b, #daa520);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mystical-subtitle {
  font-size: 1.3rem;
  color: #8b4513;
  font-style: italic;
  font-weight: 300;
  margin: 20px 0 0;
  opacity: 0.8;
}

/* Story Chapters */
.story-chapters {
  position: relative;
  z-index: 5;
  padding: 80px 0;
}

.story-chapter {
  position: relative;
  margin-bottom: 120px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.chapter-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
}

.backdrop-texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 25% 25%, #8b4513 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #d2691e 1px, transparent 1px);
  background-size: 30px 30px;
}

.ancient-backdrop {
  background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.08) 0%, transparent 70%);
}

.golden-backdrop {
  background: radial-gradient(ellipse at center, rgba(218, 165, 32, 0.12) 0%, transparent 70%);
}

.colonial-backdrop {
  background: radial-gradient(ellipse at center, rgba(105, 105, 105, 0.08) 0%, transparent 70%);
}

.modern-backdrop {
  background: radial-gradient(ellipse at center, rgba(65, 105, 225, 0.08) 0%, transparent 70%);
}

.mystical-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
  animation: mysticalPulse 8s ease-in-out infinite;
}

.royal-radiance {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(218, 165, 32, 0.15) 0%, transparent 50%);
  animation: royalShimmer 6s ease-in-out infinite;
}

.somber-mist {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(105, 105, 105, 0.1) 0%, transparent 50%);
  animation: somberness 10s ease-in-out infinite;
}

.digital-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(65, 105, 225, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
  animation: digitalPulse 4s ease-in-out infinite;
}

@keyframes mysticalPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes royalShimmer {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes somberness {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes digitalPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

/* Manuscript Pages */
.chapter-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.manuscript-page {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

.page-frame {
  background:
    linear-gradient(135deg, #fefefe 0%, #f8f6f0 50%, #fefefe 100%);
  border-radius: 20px;
  padding: 50px;
  box-shadow:
    0 20px 60px rgba(139, 69, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(139, 69, 19, 0.2);
  transition: all 0.6s ease;
  transform-style: preserve-3d;
}

.page-frame:hover {
  transform: rotateY(2deg) rotateX(1deg);
  box-shadow:
    0 30px 80px rgba(139, 69, 19, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-border {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 15px;
  pointer-events: none;
}

.golden-border {
  border-color: rgba(218, 165, 32, 0.4);
}

.colonial-border {
  border-color: rgba(105, 105, 105, 0.4);
}

.modern-border {
  border-color: rgba(65, 105, 225, 0.4);
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

.chapter-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(139, 69, 19, 0.3);
  font-family: 'Times New Roman', serif;
}

.chapter-era {
  font-size: 1.1rem;
  color: #8b4513;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.chapter-symbol {
  background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(139, 69, 19, 0.2);
}

.mystical-symbol {
  font-family: 'Noto Sans Batak', serif;
  font-size: 2.5rem;
  color: #8b4513;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.mystical-symbol.golden {
  color: #b8860b;
}

.mystical-symbol.colonial {
  color: #696969;
}

.mystical-symbol.modern {
  color: #4169e1;
}

/* Chapter Content */
.chapter-title {
  font-size: 2.5rem;
  margin: 0 0 30px;
  color: #8b4513;
  position: relative;
}

.illuminated-letter {
  font-size: 5rem;
  font-weight: 900;
  float: left;
  line-height: 3.5rem;
  margin: 0 10px -5px 0;
  color: #8b4513;
  text-shadow:
    2px 2px 0 rgba(139, 69, 19, 0.3),
    0 0 10px rgba(218, 165, 32, 0.5);
}

.illuminated-letter.golden {
  color: #b8860b;
  text-shadow:
    2px 2px 0 rgba(184, 134, 11, 0.3),
    0 0 10px rgba(218, 165, 32, 0.7);
}

.illuminated-letter.colonial {
  color: #696969;
  text-shadow:
    2px 2px 0 rgba(105, 105, 105, 0.3),
    0 0 10px rgba(128, 128, 128, 0.5);
}

.illuminated-letter.modern {
  color: #4169e1;
  text-shadow:
    2px 2px 0 rgba(65, 105, 225, 0.3),
    0 0 10px rgba(30, 144, 255, 0.7);
}

.manuscript-line {
  margin-bottom: 25px;
}

.drop-cap {
  font-size: 3rem;
  font-weight: bold;
  float: left;
  line-height: 2.5rem;
  margin: 0 8px -2px 0;
  color: #8b4513;
}

.drop-cap.golden {
  color: #b8860b;
}

.drop-cap.colonial {
  color: #696969;
}

.drop-cap.modern {
  color: #4169e1;
}

.story-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #5d4037;
  margin: 0 0 20px;
  text-align: justify;
}

.story-text em {
  color: #8b4513;
  font-weight: 600;
  font-style: normal;
}

/* Ancient Wisdom Quote */
.ancient-wisdom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  padding: 25px;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 15px;
  border-left: 4px solid #8b4513;
}

.wisdom-ornament {
  font-size: 1.5rem;
  color: #8b4513;
  opacity: 0.7;
}

.wisdom-text {
  text-align: center;
  flex: 1;
}

.batak-quote {
  display: block;
  font-family: 'Noto Sans Batak', serif;
  font-size: 1.3rem;
  color: #8b4513;
  margin-bottom: 8px;
}

.translation {
  font-size: 0.95rem;
  color: #8b4513;
  font-style: italic;
  opacity: 0.8;
}

/* Royal Statistics */
.royal-statistics {
  margin: 30px 0;
}

.stat-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
  padding: 25px;
  border-radius: 15px;
  border: 2px solid rgba(218, 165, 32, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #b8860b;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: #8b4513;
  font-weight: 600;
  margin-top: 5px;
}

.stat-divider {
  font-size: 1.5rem;
  color: #b8860b;
  opacity: 0.7;
}

/* Colonial Duality */
.colonial-duality {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  padding: 25px;
  background: rgba(105, 105, 105, 0.05);
  border-radius: 15px;
}

.duality-item {
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  flex: 1;
}

.duality-item.positive {
  background: rgba(34, 139, 34, 0.1);
  border: 1px solid rgba(34, 139, 34, 0.3);
  width: 100%;
}

.duality-item.negative {
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.3);
  width: 100%;
}

.duality-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.duality-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5d4037;
}

.duality-divider {
  font-size: 2rem;
  color: #696969;
  opacity: 0.5;
}

/* Modern Achievements */
.modern-achievements {
  margin: 30px 0;
}

/* Achievement Medallion Design */
.achievement-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.achievement-award {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 241, 232, 0.95) 100%);
  border-radius: 15px;
  border: 2px solid rgba(139, 69, 19, 0.1);
  box-shadow:
    0 8px 25px rgba(139, 69, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-award::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.1), transparent);
  transition: left 0.6s ease;
}

.achievement-award:hover::before {
  left: 100%;
}

.achievement-award:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 35px rgba(139, 69, 19, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.award-medallion {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.medallion-center {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease;
}

.achievement-award:hover .medallion-center {
  transform: scale(1.1);
}

.medallion-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  opacity: 0.7;
  animation: medalRing 3s ease-in-out infinite;
}

@keyframes medalRing {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.award-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.3));
}

.award-details {
  flex: 1;
  min-width: 0;
}

.award-title {
  font-size: 1rem;
  font-weight: 700;
  color: #8b4513;
  margin: 0 0 5px 0;
  word-wrap: break-word;
}

.award-desc {
  font-size: 0.85rem;
  color: #5d4037;
  margin: 0;
  opacity: 0.8;
  font-style: italic;
  word-wrap: break-word;
}

/* Individual Award Themes */
.unesco-award .medallion-center {
  background: radial-gradient(circle, #8b4513 0%, #a0522d 100%);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.unesco-award .medallion-ring {
  border: 3px solid rgba(139, 69, 19, 0.4);
}

.digital-award .medallion-center {
  background: radial-gradient(circle, #b8860b 0%, #daa520 100%);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.digital-award .medallion-ring {
  border: 3px solid rgba(184, 134, 11, 0.4);
}

.education-award .medallion-center {
  background: radial-gradient(circle, #cd853f 0%, #d2691e 100%);
  box-shadow: 0 4px 15px rgba(205, 133, 63, 0.3);
}

.education-award .medallion-ring {
  border: 3px solid rgba(205, 133, 63, 0.4);
}

.revival-award .medallion-center {
  background: radial-gradient(circle, #a0522d 0%, #8b4513 100%);
  box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3);
}

.revival-award .medallion-ring {
  border: 3px solid rgba(160, 82, 45, 0.4);
}

/* Page Artifacts */
.page-artifacts {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.artifact {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 15px;
  background: rgba(139, 69, 19, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid rgba(139, 69, 19, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
}

.artifact:hover {
  transform: scale(1.1) rotate(2deg);
  background: rgba(139, 69, 19, 0.2);
}

.artifact-glow {
  position: absolute;
  inset: -5px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.artifact:hover .artifact-glow {
  opacity: 1;
}

.golden-glow {
  background: radial-gradient(circle, rgba(218, 165, 32, 0.4) 0%, transparent 70%);
}

.colonial-glow {
  background: radial-gradient(circle, rgba(105, 105, 105, 0.3) 0%, transparent 70%);
}

.digital-glow {
  background: radial-gradient(circle, rgba(65, 105, 225, 0.4) 0%, transparent 70%);
}

.artifact-icon {
  font-size: 2.5rem;
}

.artifact-label {
  font-size: 0.8rem;
  color: #8b4513;
  font-weight: 600;
  text-align: center;
}

/* Epic Conclusion */
.epic-conclusion {
  position: relative;
  z-index: 10;
  padding: 100px 0;
  background:
    radial-gradient(ellipse at center, rgba(139, 69, 19, 0.1) 0%, transparent 60%);
}

.conclusion-scroll {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.scroll-frame {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 241, 232, 0.95) 100%);
  border: 3px solid #8b4513;
  border-radius: 25px;
  padding: 60px 50px;
  box-shadow:
    0 25px 70px rgba(139, 69, 19, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  margin-bottom: 80px;
  backdrop-filter: blur(15px);
}

.scroll-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

.scroll-ornament {
  font-size: 1.5rem;
  color: #8b4513;
  margin: 0 20px;
  opacity: 0.7;
}

.scroll-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #8b4513;
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.epic-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #5d4037;
  margin: 0 0 40px;
  text-align: justify;
  font-style: italic;
  position: relative;
}

.legacy-symbols {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.legacy-symbol {
  font-family: 'Noto Sans Batak', serif;
  font-size: 2.5rem;
  color: #8b4513;
  opacity: 0.7;
  transition: all 0.4s ease;
  cursor: pointer;
}

.legacy-symbol:hover {
  opacity: 1;
  transform: scale(1.2) rotate(360deg);
  text-shadow: 0 0 20px rgba(139, 69, 19, 0.6);
}

/* Mystical Portal */
.mystical-portal {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portal-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  text-decoration: none;
  transition: all 0.6s ease;
  cursor: pointer;
}

.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 60%, rgba(139, 69, 19, 0.1) 70%, transparent 80%),
    conic-gradient(from 0deg, #8b4513, #d2691e, #daa520, #8b4513);
  animation: portalRotate 20s linear infinite;
  opacity: 0.8;
}

.portal-core {
  position: relative;
  z-index: 10;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(244, 241, 232, 0.9) 100%);
  border: 3px solid #8b4513;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 15px 40px rgba(139, 69, 19, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
}

.portal-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #8b4513;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px rgba(139, 69, 19, 0.2);
}

.portal-subtext {
  font-size: 0.9rem;
  color: #8b4513;
  opacity: 0.8;
  font-weight: 600;
}

.portal-energy {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.2) 0%, transparent 70%);
  opacity: 0;
  animation: energyPulse 3s ease-in-out infinite;
}

.portal-button:hover .portal-ring {
  animation-duration: 5s;
  opacity: 1;
  transform: scale(1.1);
}

.portal-button:hover .portal-core {
  transform: scale(1.05);
  box-shadow:
    0 20px 60px rgba(139, 69, 19, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.portal-button:hover .portal-energy {
  opacity: 0.6;
}

@keyframes portalRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes energyPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

/* Responsive Design for Manuscript Style */
@media (max-width: 1200px) {
  .page-artifacts {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
  }

  .artifact {
    width: 100px;
    height: 100px;
  }

  .artifact-icon {
    font-size: 2rem;
  }

  .artifact-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 992px) {
  .cinematic-header {
    padding: 80px 0 60px;
  }

  .ancient-border {
    padding: 40px 50px;
  }

  .word-art {
    font-size: 2.8rem;
    margin: 0 10px;
  }

  .story-chapter {
    margin-bottom: 80px;
    min-height: auto;
  }

  .page-frame {
    padding: 40px 30px;
  }

  .chapter-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .chapter-number {
    font-size: 3rem;
  }

  .chapter-symbol {
    width: 60px;
    height: 60px;
  }

  .mystical-symbol {
    font-size: 2rem;
  }

  .illuminated-letter {
    font-size: 4rem;
    line-height: 3rem;
  }

  .drop-cap {
    font-size: 2.5rem;
    line-height: 2rem;
  }

  .achievement-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .achievement-award {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .award-medallion {
    margin-bottom: 15px;
  }

  .portal-button {
    width: 160px;
    height: 160px;
  }

  .portal-core {
    width: 130px;
    height: 130px;
  }

  .portal-text {
    font-size: 1.1rem;
  }

  .portal-subtext {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .cultural-atmosphere {
    display: none;
  }

  .cinematic-header {
    padding: 60px 0 40px;
  }

  .ancient-border {
    padding: 30px 25px;
  }

  .word-art {
    font-size: 2.2rem;
    display: block;
    margin: 10px 0;
  }

  .batak-ancient {
    font-size: 1.2rem;
  }

  .mystical-subtitle {
    font-size: 1.1rem;
  }

  .story-chapters {
    padding: 60px 0;
  }

  .story-chapter {
    margin-bottom: 60px;
  }

  .page-frame {
    padding: 30px 20px;
  }

  .chapter-title {
    font-size: 2rem;
  }

  .story-text p {
    font-size: 1.1rem;
    text-align: left;
  }

  .stat-scroll {
    flex-direction: column;
    gap: 20px;
  }

  .colonial-duality {
    flex-direction: column;
    gap: 15px;
  }

  .duality-divider {
    transform: rotate(90deg);
  }

  .legacy-symbols {
    gap: 20px;
  }

  .legacy-symbol {
    font-size: 2rem;
  }

  .scroll-frame {
    padding: 40px 30px;
  }

  .scroll-title {
    font-size: 2rem;
  }

  .epic-text {
    font-size: 1.2rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .ancient-border {
    padding: 20px 15px;
  }

  .word-art {
    font-size: 1.8rem;
  }

  .page-frame {
    padding: 20px 15px;
  }

  .chapter-number {
    font-size: 2.5rem;
  }

  .chapter-title {
    font-size: 1.7rem;
  }

  .illuminated-letter {
    font-size: 3.5rem;
    line-height: 2.5rem;
  }

  .drop-cap {
    font-size: 2rem;
    line-height: 1.8rem;
  }

  .story-text p {
    font-size: 1rem;
  }

  .portal-button {
    width: 140px;
    height: 140px;
  }

  .portal-core {
    width: 110px;
    height: 110px;
  }

  .portal-text {
    font-size: 1rem;
  }

  .portal-subtext {
    font-size: 0.8rem;
  }

  .scroll-frame {
    padding: 30px 20px;
  }

  .scroll-title {
    font-size: 1.8rem;
  }

  .epic-text {
    font-size: 1.1rem;
  }

  .legacy-symbols {
    gap: 15px;
  }

  .legacy-symbol {
    font-size: 1.8rem;
  }
}

/* Dark Mode for Manuscript Storytelling Design */
[data-theme="dark"] #sejarah.manuscript-storytelling {
  background:
    radial-gradient(ellipse at top, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(160, 82, 45, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

/* Dark Mode Cultural Atmosphere */
[data-theme="dark"] .floating-char {
  color: rgba(241, 196, 15, 0.15);
}

[data-theme="dark"] .particle {
  background: radial-gradient(circle, rgba(241, 196, 15, 0.6) 0%, transparent 70%);
}

/* Dark Mode Cinematic Header */
[data-theme="dark"] .cinematic-header {
  background:
    radial-gradient(ellipse at center top, rgba(241, 196, 15, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .ancient-border {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 3px solid #f39c12;
  box-shadow:
    0 0 30px rgba(241, 196, 15, 0.4),
    inset 0 0 20px rgba(241, 196, 15, 0.1);
}

[data-theme="dark"] .corner-ornament {
  color: #f39c12;
}

[data-theme="dark"] .batak-ancient {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

[data-theme="dark"] .word-art {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .word-art.highlight {
  background: linear-gradient(135deg, #ffd700, #f1c40f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .mystical-subtitle {
  color: #a0a0c0;
}

/* Dark Mode Story Chapters */
[data-theme="dark"] .ancient-backdrop {
  background: radial-gradient(ellipse at center, rgba(241, 196, 15, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .golden-backdrop {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .colonial-backdrop {
  background: radial-gradient(ellipse at center, rgba(160, 160, 160, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .modern-backdrop {
  background: radial-gradient(ellipse at center, rgba(65, 105, 225, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .mystical-glow {
  background: radial-gradient(ellipse at center, rgba(241, 196, 15, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .royal-radiance {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
}

[data-theme="dark"] .somber-mist {
  background: radial-gradient(ellipse at center, rgba(160, 160, 160, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .digital-aurora {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(65, 105, 225, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(30, 144, 255, 0.15) 0%, transparent 50%);
}

/* Dark Mode Manuscript Pages */
[data-theme="dark"] .page-frame {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 2px solid rgba(241, 196, 15, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(241, 196, 15, 0.1);
}

[data-theme="dark"] .page-frame:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .page-border {
  border: 1px solid rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .golden-border {
  border-color: rgba(255, 215, 0, 0.5);
}

[data-theme="dark"] .colonial-border {
  border-color: rgba(160, 160, 160, 0.4);
}

[data-theme="dark"] .modern-border {
  border-color: rgba(65, 105, 225, 0.5);
}

[data-theme="dark"] .chapter-header {
  border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .chapter-number {
  color: rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .chapter-era {
  color: #f1c40f;
}

[data-theme="dark"] .chapter-symbol {
  background: radial-gradient(circle, rgba(241, 196, 15, 0.15) 0%, transparent 70%);
  border: 2px solid rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .mystical-symbol {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

[data-theme="dark"] .mystical-symbol.golden {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

[data-theme="dark"] .mystical-symbol.colonial {
  color: #a0a0a0;
  text-shadow: 0 0 10px rgba(160, 160, 160, 0.4);
}

[data-theme="dark"] .mystical-symbol.modern {
  color: #6495ed;
  text-shadow: 0 0 10px rgba(100, 149, 237, 0.6);
}

/* Dark Mode Chapter Content */
[data-theme="dark"] .chapter-title {
  color: #f1c40f;
}

[data-theme="dark"] .illuminated-letter {
  color: #f1c40f;
  text-shadow:
    2px 2px 0 rgba(241, 196, 15, 0.3),
    0 0 15px rgba(241, 196, 15, 0.7);
}

[data-theme="dark"] .illuminated-letter.golden {
  color: #ffd700;
  text-shadow:
    2px 2px 0 rgba(255, 215, 0, 0.3),
    0 0 15px rgba(255, 215, 0, 0.8);
}

[data-theme="dark"] .illuminated-letter.colonial {
  color: #a0a0a0;
  text-shadow:
    2px 2px 0 rgba(160, 160, 160, 0.3),
    0 0 15px rgba(160, 160, 160, 0.6);
}

[data-theme="dark"] .illuminated-letter.modern {
  color: #6495ed;
  text-shadow:
    2px 2px 0 rgba(100, 149, 237, 0.3),
    0 0 15px rgba(100, 149, 237, 0.8);
}

[data-theme="dark"] .drop-cap {
  color: #f1c40f;
}

[data-theme="dark"] .drop-cap.golden {
  color: #ffd700;
}

[data-theme="dark"] .drop-cap.colonial {
  color: #a0a0a0;
}

[data-theme="dark"] .drop-cap.modern {
  color: #6495ed;
}

[data-theme="dark"] .story-text p {
  color: #e0e0e0;
}

[data-theme="dark"] .story-text em {
  color: #f39c12;
}

/* Dark Mode Ancient Wisdom */
[data-theme="dark"] .ancient-wisdom {
  background: rgba(241, 196, 15, 0.08);
  border-left: 4px solid #f39c12;
}

[data-theme="dark"] .wisdom-ornament {
  color: #f39c12;
}

[data-theme="dark"] .batak-quote {
  color: #f1c40f;
}

[data-theme="dark"] .translation {
  color: #a0a0c0;
}

/* Dark Mode Royal Statistics */
[data-theme="dark"] .stat-scroll {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(241, 196, 15, 0.15) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .stat-number {
  color: #ffd700;
}

[data-theme="dark"] .stat-label {
  color: #f1c40f;
}

[data-theme="dark"] .stat-divider {
  color: #ffd700;
}

/* Dark Mode Colonial Duality */
[data-theme="dark"] .colonial-duality {
  background: rgba(160, 160, 160, 0.08);
}

[data-theme="dark"] .duality-item.positive {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
}

[data-theme="dark"] .duality-item.negative {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
}

[data-theme="dark"] .duality-text {
  color: #e0e0e0;
}

[data-theme="dark"] .duality-divider {
  color: #a0a0a0;
}

/* Dark Mode Achievement Awards */
[data-theme="dark"] .achievement-award {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 2px solid rgba(241, 196, 15, 0.2);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(241, 196, 15, 0.1);
}

[data-theme="dark"] .achievement-award:hover {
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .achievement-award::before {
  background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.1), transparent);
}

[data-theme="dark"] .award-title {
  color: #f1c40f;
}

[data-theme="dark"] .award-desc {
  color: #bdc3c7;
}

[data-theme="dark"] .unesco-award .medallion-center {
  background: radial-gradient(circle, #8b4513 0%, #a0522d 100%);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.5);
}

[data-theme="dark"] .unesco-award .medallion-ring {
  border: 3px solid rgba(139, 69, 19, 0.6);
}

[data-theme="dark"] .digital-award .medallion-center {
  background: radial-gradient(circle, #b8860b 0%, #daa520 100%);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.5);
}

[data-theme="dark"] .digital-award .medallion-ring {
  border: 3px solid rgba(184, 134, 11, 0.6);
}

[data-theme="dark"] .education-award .medallion-center {
  background: radial-gradient(circle, #cd853f 0%, #d2691e 100%);
  box-shadow: 0 4px 15px rgba(205, 133, 63, 0.5);
}

[data-theme="dark"] .education-award .medallion-ring {
  border: 3px solid rgba(205, 133, 63, 0.6);
}

[data-theme="dark"] .revival-award .medallion-center {
  background: radial-gradient(circle, #a0522d 0%, #8b4513 100%);
  box-shadow: 0 4px 15px rgba(160, 82, 45, 0.5);
}

[data-theme="dark"] .revival-award .medallion-ring {
  border: 3px solid rgba(160, 82, 45, 0.6);
}

/* Dark Mode Page Artifacts */
[data-theme="dark"] .artifact {
  background: rgba(241, 196, 15, 0.15);
  border: 2px solid rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .artifact:hover {
  background: rgba(241, 196, 15, 0.25);
}

[data-theme="dark"] .artifact-glow {
  background: radial-gradient(circle, rgba(241, 196, 15, 0.4) 0%, transparent 70%);
}

[data-theme="dark"] .golden-glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, transparent 70%);
}

[data-theme="dark"] .colonial-glow {
  background: radial-gradient(circle, rgba(160, 160, 160, 0.4) 0%, transparent 70%);
}

[data-theme="dark"] .digital-glow {
  background: radial-gradient(circle, rgba(100, 149, 237, 0.5) 0%, transparent 70%);
}

[data-theme="dark"] .artifact-label {
  color: #f1c40f;
}

/* Dark Mode Epic Conclusion */
[data-theme="dark"] .epic-conclusion {
  background:
    radial-gradient(ellipse at center, rgba(241, 196, 15, 0.15) 0%, transparent 60%);
}

[data-theme="dark"] .scroll-frame {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 3px solid #f39c12;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .scroll-header {
  border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .scroll-ornament {
  color: #f39c12;
}

[data-theme="dark"] .scroll-title {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .epic-text {
  color: #e0e0e0;
}

[data-theme="dark"] .legacy-symbol {
  color: #f39c12;
}

[data-theme="dark"] .legacy-symbol:hover {
  text-shadow: 0 0 25px rgba(241, 196, 15, 0.8);
}

/* Dark Mode Mystical Portal */
[data-theme="dark"] .portal-ring {
  background:
    radial-gradient(circle, transparent 60%, rgba(241, 196, 15, 0.2) 70%, transparent 80%),
    conic-gradient(from 0deg, #f1c40f, #f39c12, #ffd700, #f1c40f);
}

[data-theme="dark"] .portal-core {
  background:
    radial-gradient(ellipse at center, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 3px solid #f39c12;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .portal-text {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .portal-subtext {
  color: #a0a0c0;
}

[data-theme="dark"] .portal-energy {
  background: radial-gradient(circle, rgba(241, 196, 15, 0.3) 0%, transparent 70%);
}

[data-theme="dark"] .portal-button:hover .portal-core {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(241, 196, 15, 0.5);
}

/* Manuscript Introduction Design - Tentang Aksara Section */
#tentang-aksara.manuscript-introduction {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at top left, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(160, 82, 45, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f4f1e8 0%, #ede6d3 50%, #f4f1e8 100%);
  position: relative;
  overflow: hidden;
}

/* Cultural Atmosphere for Introduction */
.cultural-atmosphere-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-elements-intro {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-char-intro {
  position: absolute;
  font-family: 'Noto Sans Batak', serif;
  font-size: 1.8rem;
  color: rgba(139, 69, 19, 0.08);
  animation: mysticalFloatIntro 25s infinite linear;
  opacity: 0.4;
}

.char-intro-1 {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

.char-intro-2 {
  top: 25%;
  right: 20%;
  animation-delay: -8s;
}

.char-intro-3 {
  top: 65%;
  left: 25%;
  animation-delay: -15s;
}

.char-intro-4 {
  top: 75%;
  right: 15%;
  animation-delay: -20s;
}

@keyframes mysticalFloatIntro {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }

  25% {
    transform: translateY(-15px) rotate(90deg);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-8px) rotate(180deg);
    opacity: 0.2;
  }

  75% {
    transform: translateY(-22px) rotate(270deg);
    opacity: 0.4;
  }

  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.2;
  }
}

.mystical-particles-intro {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle-intro {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: particleFloatIntro 18s infinite ease-in-out;
}

.particle-intro-1 {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.particle-intro-2 {
  top: 50%;
  right: 35%;
  animation-delay: -6s;
}

.particle-intro-3 {
  top: 80%;
  left: 20%;
  animation-delay: -12s;
}

@keyframes particleFloatIntro {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-30px) scale(1.1);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-15px) scale(0.9);
    opacity: 0.4;
  }

  75% {
    transform: translateY(-45px) scale(1.05);
    opacity: 0.7;
  }
}

/* Manuscript Header */
.manuscript-intro-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.intro-scroll-frame {
  position: relative;
  display: inline-block;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 241, 232, 0.95) 100%);
  border: 3px solid #8b4513;
  border-radius: 25px;
  padding: 50px 70px;
  box-shadow:
    0 20px 50px rgba(139, 69, 19, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.scroll-corner {
  position: absolute;
  font-size: 1.3rem;
  color: #8b4513;
  z-index: 2;
}

.top-left-corner {
  top: -8px;
  left: -8px;
}

.top-right-corner {
  top: -8px;
  right: -8px;
}

.bottom-left-corner {
  bottom: -8px;
  left: -8px;
}

.bottom-right-corner {
  bottom: -8px;
  right: -8px;
}

.intro-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.intro-tag-text {
  background: rgba(139, 69, 19, 0.1);
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8b4513;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.batak-tag {
  font-family: 'Noto Sans Batak', serif;
  font-size: 1rem;
  color: #d2691e;
}

.intro-title {
  font-size: 3rem;
  font-weight: 800;
  color: #8b4513;
  margin: 0 0 20px;
  line-height: 1.2;
}

.intro-illuminated {
  font-size: 4rem;
  color: #8b4513;
  float: left;
  line-height: 2.5rem;
  margin: 0 8px -5px 0;
  text-shadow:
    2px 2px 0 rgba(139, 69, 19, 0.3),
    0 0 15px rgba(218, 165, 32, 0.5);
}

.highlight-manuscript {
  background: linear-gradient(135deg, #b8860b, #daa520);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-subtitle {
  font-size: 1.2rem;
  color: #8b4513;
  font-style: italic;
  margin: 0;
  opacity: 0.8;
}

/* Sacred Manuscript Content */
.sacred-manuscript {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Illuminated Opening */
.illuminated-opening {
  margin-bottom: 60px;
}

.opening-frame {
  background:
    linear-gradient(135deg, #fefefe 0%, #f8f6f0 50%, #fefefe 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
  border: 2px solid rgba(139, 69, 19, 0.2);
}

.opening-ornament-border {
  position: relative;
}

.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.ornament {
  font-size: 1.2rem;
  color: #8b4513;
  margin: 0 10px;
}

.ornament-divider {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
  opacity: 0.3;
}

.opening-text {
  margin: 30px 0;
}

.grand-drop-cap {
  font-size: 4.5rem;
  font-weight: 900;
  float: left;
  line-height: 3.8rem;
  margin: 0 12px -8px 0;
  color: #8b4513;
  text-shadow:
    3px 3px 0 rgba(139, 69, 19, 0.3),
    0 0 20px rgba(218, 165, 32, 0.6);
}

.sacred-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #5d4037;
  margin: 0;
  text-align: justify;
}

.sacred-text em {
  color: #8b4513;
  font-weight: 600;
  font-style: normal;
}

/* Knowledge Scrolls */
.knowledge-scrolls {
  margin-bottom: 60px;
}

.scrolls-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2rem;
  color: #8b4513;
  position: relative;
}

.scrolls-illuminated {
  font-size: 3.5rem;
  /* float: left; */
  line-height: 2rem;
  margin: 0 8px -3px 0;
  color: #8b4513;
  text-shadow:
    2px 2px 0 rgba(139, 69, 19, 0.3),
    0 0 12px rgba(218, 165, 32, 0.5);
}

.title-ornament {
  margin-top: 10px;
}

.batak-ornament-title {
  font-family: 'Noto Sans Batak', serif;
  font-size: 1.1rem;
  color: #d2691e;
  opacity: 0.8;
}

.scrolls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.knowledge-scroll {
  position: relative;
  background:
    linear-gradient(135deg, #fefefe 0%, #f8f6f0 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
  border: 2px solid rgba(139, 69, 19, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
}

.knowledge-scroll:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(139, 69, 19, 0.2);
  border-color: rgba(139, 69, 19, 0.3);
}

.scroll-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
}

.scroll-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 69, 19, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.knowledge-scroll:hover .scroll-glow {
  opacity: 1;
}

.scroll-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.scroll-icon {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
  border: 3px solid rgba(139, 69, 19, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.knowledge-scroll:hover .icon-circle {
  transform: scale(1.1);
  border-color: rgba(139, 69, 19, 0.4);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.batak-char-large {
  font-family: 'Noto Sans Batak', serif;
  font-size: 2.2rem;
  color: #8b4513;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.icon-rays {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}

.ray {
  position: absolute;
  width: 2px;
  height: 12px;
  background: linear-gradient(to bottom, rgba(139, 69, 19, 0.6), transparent);
  transform-origin: center bottom;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ray-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
}

.ray-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(90deg);
}

.ray-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.ray-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(270deg);
}

.knowledge-scroll:hover .ray {
  opacity: 1;
}

.scroll-text h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8b4513;
  margin: 0 0 15px;
}

.scroll-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #5d4037;
  margin: 0 0 20px;
}

.scroll-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.decoration-symbol {
  color: #8b4513;
  opacity: 0.6;
}

.decoration-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
  opacity: 0.3;
  max-width: 50px;
}

/* Sacred Calling */
.sacred-calling {
  margin-top: 40px;
}

.calling-frame {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 241, 232, 0.9) 100%);
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.1);
}

.calling-ornament-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.calling-ornament {
  font-size: 1.2rem;
  color: #8b4513;
  margin: 0 15px;
}

.calling-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8b4513;
  margin: 0;
}

.calling-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5d4037;
  margin: 0 0 30px;
  text-align: justify;
}

.calling-portal {
  display: flex;
  justify-content: center;
}

.sacred-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  text-decoration: none;
  transition: all 0.5s ease;
}

.button-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 60%, rgba(139, 69, 19, 0.1) 70%, transparent 80%),
    conic-gradient(from 0deg, #8b4513, #d2691e, #daa520, #8b4513);
  animation: sacredRotate 15s linear infinite;
  opacity: 0.7;
}

.button-core {
  position: relative;
  z-index: 10;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(244, 241, 232, 0.9) 100%);
  border: 3px solid #8b4513;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(139, 69, 19, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.4s ease;
}

.button-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #8b4513;
  margin-bottom: 3px;
}

.button-subtext {
  font-size: 0.85rem;
  color: #8b4513;
  opacity: 0.7;
  font-style: italic;
}

.button-energy {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.2) 0%, transparent 70%);
  opacity: 0;
  animation: energyPulseSacred 2.5s ease-in-out infinite;
}

.sacred-button:hover .button-ring {
  animation-duration: 8s;
  opacity: 1;
  transform: scale(1.05);
}

.sacred-button:hover .button-core {
  transform: scale(1.08);
  box-shadow:
    0 15px 50px rgba(139, 69, 19, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.sacred-button:hover .button-energy {
  opacity: 0.5;
}

@keyframes sacredRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes energyPulseSacred {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(1.15);
  }
}

/* Sacred Quote Scroll */
.sacred-quote-scroll {
  position: relative;
  align-self: start;
  margin-top: 40px;
}

.quote-manuscript {
  background:
    linear-gradient(135deg, #fefefe 0%, #f8f6f0 50%, #fefefe 100%);
  border: 3px solid #8b4513;
  border-radius: 20px;
  padding: 40px;
  box-shadow:
    0 20px 50px rgba(139, 69, 19, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  position: sticky;
  top: 100px;
}

.quote-ornament-top,
.quote-ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.ornament-star {
  font-size: 1.1rem;
  color: #8b4513;
  margin: 0 8px;
}

.ornament-line-quote {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
  opacity: 0.4;
  max-width: 60px;
}

.batak-ornament-quote {
  font-family: 'Noto Sans Batak', serif;
  font-size: 1.5rem;
  color: #d2691e;
  margin: 0 15px;
}

.quote-content {
  margin: 30px 0;
}

.batak-script-large {
  font-family: 'Noto Sans Batak', serif;
  font-size: 2rem;
  color: #8b4513;
  margin: 0 0 15px;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.translation-elegant {
  font-size: 1.2rem;
  color: #8b4513;
  font-style: italic;
  margin: 0 0 25px;
  opacity: 0.8;
}

.quote-wisdom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 12px;
  border-left: 3px solid #8b4513;
}

.wisdom-symbol {
  color: #8b4513;
  font-size: 0.8rem;
  opacity: 0.6;
}

.wisdom-text {
  font-size: 0.95rem;
  color: #8b4513;
  font-style: italic;
  opacity: 0.9;
}

/* Dark Mode for Manuscript Introduction */
[data-theme="dark"] #tentang-aksara.manuscript-introduction {
  background:
    radial-gradient(ellipse at top left, rgba(241, 196, 15, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(243, 156, 18, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

[data-theme="dark"] .floating-char-intro {
  color: rgba(241, 196, 15, 0.12);
}

[data-theme="dark"] .particle-intro {
  background: radial-gradient(circle, rgba(241, 196, 15, 0.5) 0%, transparent 70%);
}

[data-theme="dark"] .intro-scroll-frame {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 3px solid #f39c12;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .scroll-corner {
  color: #f39c12;
}

[data-theme="dark"] .intro-tag-text {
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid rgba(241, 196, 15, 0.4);
  color: #f1c40f;
}

[data-theme="dark"] .batak-tag {
  color: #f39c12;
}

[data-theme="dark"] .intro-title {
  color: #f1c40f;
}

[data-theme="dark"] .intro-illuminated {
  color: #f1c40f;
  text-shadow:
    2px 2px 0 rgba(241, 196, 15, 0.3),
    0 0 20px rgba(241, 196, 15, 0.6);
}

[data-theme="dark"] .highlight-manuscript {
  background: linear-gradient(135deg, #ffd700, #f1c40f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .intro-subtitle {
  color: #a0a0c0;
}

[data-theme="dark"] .opening-frame {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 2px solid rgba(241, 196, 15, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ornament {
  color: #f39c12;
}

[data-theme="dark"] .ornament-divider {
  background: linear-gradient(90deg, transparent, #f39c12, transparent);
}

[data-theme="dark"] .grand-drop-cap {
  color: #f1c40f;
  text-shadow:
    3px 3px 0 rgba(241, 196, 15, 0.3),
    0 0 25px rgba(241, 196, 15, 0.7);
}

[data-theme="dark"] .sacred-text {
  color: #e0e0e0;
}

[data-theme="dark"] .sacred-text em {
  color: #f39c12;
}

[data-theme="dark"] .scrolls-title {
  color: #f1c40f;
}

[data-theme="dark"] .scrolls-illuminated {
  color: #f1c40f;
  text-shadow:
    2px 2px 0 rgba(241, 196, 15, 0.3),
    0 0 15px rgba(241, 196, 15, 0.6);
}

[data-theme="dark"] .batak-ornament-title {
  color: #f39c12;
}

[data-theme="dark"] .knowledge-scroll {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
  border: 2px solid rgba(241, 196, 15, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .knowledge-scroll:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .scroll-glow {
  background: radial-gradient(circle at center, rgba(241, 196, 15, 0.08) 0%, transparent 60%);
}

[data-theme="dark"] .icon-circle {
  background:
    radial-gradient(circle, rgba(241, 196, 15, 0.15) 0%, rgba(255, 215, 0, 0.15) 100%);
  border: 3px solid rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .knowledge-scroll:hover .icon-circle {
  border-color: rgba(241, 196, 15, 0.5);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .batak-char-large {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

[data-theme="dark"] .ray {
  background: linear-gradient(to bottom, rgba(241, 196, 15, 0.8), transparent);
}

[data-theme="dark"] .scroll-text h4 {
  color: #f1c40f;
}

[data-theme="dark"] .scroll-text p {
  color: #e0e0e0;
}

[data-theme="dark"] .decoration-symbol {
  color: #f39c12;
}

[data-theme="dark"] .decoration-line {
  background: linear-gradient(90deg, transparent, #f39c12, transparent);
}

[data-theme="dark"] .calling-frame {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
  border: 2px solid rgba(241, 196, 15, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .calling-ornament {
  color: #f39c12;
}

[data-theme="dark"] .calling-title {
  color: #f1c40f;
}

[data-theme="dark"] .calling-text {
  color: #e0e0e0;
}

[data-theme="dark"] .button-ring {
  background:
    radial-gradient(circle, transparent 60%, rgba(241, 196, 15, 0.2) 70%, transparent 80%),
    conic-gradient(from 0deg, #f1c40f, #f39c12, #ffd700, #f1c40f);
}

[data-theme="dark"] .button-core {
  background:
    radial-gradient(ellipse at center, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
  border: 3px solid #f39c12;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .button-text {
  color: #f1c40f;
}

[data-theme="dark"] .button-subtext {
  color: #a0a0c0;
}

[data-theme="dark"] .button-energy {
  background: radial-gradient(circle, rgba(241, 196, 15, 0.3) 0%, transparent 70%);
}

[data-theme="dark"] .sacred-button:hover .button-core {
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .quote-manuscript {
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  border: 3px solid #f39c12;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(241, 196, 15, 0.2);
}

[data-theme="dark"] .ornament-star {
  color: #f39c12;
}

[data-theme="dark"] .ornament-line-quote {
  background: linear-gradient(90deg, transparent, #f39c12, transparent);
}

[data-theme="dark"] .batak-ornament-quote {
  color: #f39c12;
}

[data-theme="dark"] .batak-script-large {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

[data-theme="dark"] .translation-elegant {
  color: #a0a0c0;
}

[data-theme="dark"] .quote-wisdom {
  background: rgba(241, 196, 15, 0.08);
  border-left: 3px solid #f39c12;
}

[data-theme="dark"] .wisdom-symbol {
  color: #f39c12;
}

[data-theme="dark"] .wisdom-text {
  color: #a0a0c0;
}

/* Responsive Design for Manuscript Introduction */
@media (max-width: 1200px) {
  .sacred-manuscript {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sacred-quote-scroll {
    position: static;
    margin-top: 60px;
  }

  .quote-manuscript {
    position: static;
  }
}

@media (max-width: 992px) {
  #tentang-aksara.manuscript-introduction {
    padding: 100px 0;
  }

  .intro-scroll-frame {
    padding: 40px 50px;
  }

  .intro-title {
    font-size: 2.5rem;
  }

  .intro-illuminated {
    font-size: 3.5rem;
    line-height: 2rem;
  }

  .scrolls-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sacred-button {
    width: 160px;
    height: 160px;
  }

  .button-core {
    width: 120px;
    height: 120px;
  }

  .button-text {
    font-size: 1rem;
  }

  .button-subtext {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .cultural-atmosphere-intro {
    display: none;
  }

  #tentang-aksara.manuscript-introduction {
    padding: 80px 0;
  }

  .intro-scroll-frame {
    padding: 30px 40px;
  }

  .intro-title {
    font-size: 2.2rem;
  }

  .intro-illuminated {
    font-size: 3rem;
    line-height: 1.8rem;
  }

  .grand-drop-cap {
    font-size: 3.8rem;
    line-height: 3.2rem;
  }

  .scrolls-title {
    font-size: 1.8rem;
  }

  .scrolls-illuminated {
    font-size: 3rem;
    line-height: 1.5rem;
  }

  .knowledge-scroll {
    padding: 25px;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .batak-char-large {
    font-size: 2rem;
  }

  .calling-frame {
    padding: 30px;
  }

  .calling-text {
    text-align: left;
  }

  .quote-manuscript {
    padding: 30px;
  }

  .batak-script-large {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .intro-scroll-frame {
    padding: 25px 30px;
  }

  .intro-title {
    font-size: 1.9rem;
  }

  .intro-illuminated {
    font-size: 2.5rem;
    line-height: 1.5rem;
  }

  .grand-drop-cap {
    font-size: 3.5rem;
    line-height: 3rem;
  }

  .sacred-text {
    font-size: 1.1rem;
    text-align: left;
  }

  .knowledge-scroll {
    padding: 20px;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .batak-char-large {
    font-size: 1.8rem;
  }

  .scroll-text h4 {
    font-size: 1.2rem;
  }

  .scroll-text p {
    font-size: 0.95rem;
  }

  .sacred-button {
    width: 140px;
    height: 140px;
  }

  .button-core {
    width: 110px;
    height: 110px;
  }

  .button-text {
    font-size: 0.95rem;
  }

  .button-subtext {
    font-size: 0.75rem;
  }

  .calling-frame {
    padding: 25px;
  }

  .quote-manuscript {
    padding: 25px;
  }

  .batak-script-large {
    font-size: 1.5rem;
  }

  .translation-elegant {
    font-size: 1.1rem;
  }
}

/* Image Content */
.history-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.history-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.history-image:hover .image-overlay {
  transform: translateY(0);
}

.history-quote {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin: 0;
  border-left: 4px solid #f39c12;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.history-quote p {
  font-style: italic;
  color: #2c3e50;
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
  padding-left: 20px;
}

.history-quote p::before {
  content: '\201C';
  position: absolute;
  left: -10px;
  top: -15px;
  font-size: 4rem;
  color: rgba(241, 196, 15, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* History CTA Button */
.cta-button {
  display: inline-block;
  background-color: #f1c40f;
  color: #ffffff;
  /* Changed from #2c3e50 to white for better contrast */
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #f1c40f;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #f7d358;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #2c3e50;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-quote footer {
  text-align: right;
  color: #7f8c8d;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
}

/* Responsive Styles for Enhanced Sejarah Section */
@media (max-width: 1200px) {
  .era-content {
    grid-template-columns: 150px 1fr;
    gap: 20px;
  }

  .historical-illustration {
    width: 150px;
    height: 150px;
  }

  .marker-dot {
    width: 70px;
    height: 70px;
  }

  .marker-dot .batak-char {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  #sejarah {
    padding: 100px 0;
  }

  #sejarah .section-header h2 {
    font-size: 2.5rem;
  }

  .timeline-era {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .era-marker {
    position: static;
    margin-bottom: 20px;
  }

  .era-content {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: left;
  }

  .era-visual {
    text-align: center;
  }

  .preservation-stats {
    flex-direction: column;
    gap: 15px;
  }

  .summary-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #sejarah {
    padding: 80px 0;
  }

  #sejarah .section-header h2 {
    font-size: 2.2rem;
  }

  #sejarah .section-subtitle {
    font-size: 1.1rem;
  }

  .history-timeline {
    gap: 50px;
  }

  .marker-dot {
    width: 60px;
    height: 60px;
  }

  .marker-dot .batak-char {
    font-size: 1.5rem;
  }

  .historical-illustration {
    width: 120px;
    height: 120px;
  }

  .period-icon {
    font-size: 3rem;
  }

  .era-text h3 {
    font-size: 1.5rem;
  }

  .era-description {
    padding: 25px;
  }

  .era-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    padding: 12px;
  }

  .summary-card {
    padding: 30px;
  }

  .learn-more-btn.enhanced {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Global mobile overflow prevention */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Prevent text overflow for all elements */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Ensure Batak text doesn't overflow */
  [class*="batak"] {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Responsive Styles for Manuscript Introduction */
@media (max-width: 1200px) {
  .sacred-manuscript {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sacred-quote-scroll {
    position: relative;
    margin-top: 0;
  }

  .quote-manuscript {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {

  /* Sejarah tablet responsive */
  #sejarah.manuscript-storytelling {
    padding: 60px 0;
  }

  .cinematic-header {
    padding: 60px 0;
  }

  .manuscript-title {
    padding: 0 20px;
  }

  .ancient-border {
    padding: 30px 25px;
    margin: 0 15px;
  }

  .word-art {
    font-size: 1.8rem;
  }

  .story-chapters {
    padding: 60px 0;
  }

  .story-chapter {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .page-frame {
    padding: 30px 25px;
  }

  .chapter-title {
    font-size: 1.6rem;
  }

  .illuminated-letter {
    font-size: 2.5rem;
  }

  .drop-cap {
    font-size: 3rem;
  }

  .story-text p {
    font-size: 1rem;
  }

  .ancient-wisdom {
    padding: 20px;
  }

  .batak-quote {
    font-size: 1.2rem;
  }

  .stat-scroll {
    gap: 20px;
  }

  .colonial-duality {
    gap: 20px;
  }

  #tentang-aksara.manuscript-introduction {
    padding: 80px 0;
  }

  .intro-scroll-frame {
    padding: 30px 40px;
  }

  .intro-title {
    font-size: 2.2rem;
  }

  .intro-illuminated {
    font-size: 3rem;
    line-height: 2rem;
    margin: 0 6px -3px 0;
  }

  .intro-subtitle {
    font-size: 1.1rem;
  }

  .scrolls-title {
    font-size: 1.8rem;
  }

  .scrolls-illuminated {
    font-size: 2.8rem;
    margin: 0 6px -2px 0;
  }

  .scrolls-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .opening-frame {
    padding: 30px;
  }

  .grand-drop-cap {
    font-size: 3.5rem;
    line-height: 3rem;
    margin: 0 10px -6px 0;
  }

  .sacred-text {
    font-size: 1.1rem;
  }

  .calling-frame {
    padding: 30px;
  }

  .sacred-button {
    width: 160px;
    height: 160px;
  }

  .button-core {
    width: 120px;
    height: 120px;
  }

  .quote-manuscript {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  #tentang-aksara.manuscript-introduction {
    padding: 40px 0;
  }

  .manuscript-intro-header {
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .intro-scroll-frame {
    padding: 20px 15px;
    margin: 0 10px;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .intro-tag {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .intro-tag-text {
    padding: 6px 12px;
    font-size: 0.8rem;
    word-wrap: break-word;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .batak-tag {
    font-size: 0.9rem;
    word-wrap: break-word;
    text-align: center;
  }

  .intro-title {
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .intro-illuminated {
    font-size: 2rem;
    float: none;
    display: block;
    text-align: center;
    line-height: 1;
    margin: 0 0 8px 0;
  }

  .intro-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }

  .opening-frame {
    padding: 15px;
    margin: 0 10px;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
  }

  .grand-drop-cap {
    font-size: 2.5rem;
    float: none;
    display: block;
    text-align: center;
    line-height: 1;
    margin: 0 0 12px 0;
  }

  .sacred-text {
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .knowledge-scrolls {
    padding: 0 15px;
  }

  .scrolls-title {
    font-size: 1.3rem;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .scrolls-illuminated {
    font-size: 1.8rem;
    float: none;
    display: block;
    text-align: center;
    line-height: 1;
    margin: 0 0 8px 0;
  }

  .knowledge-scroll {
    padding: 20px 15px;
    margin: 0 5px 15px 5px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .batak-char-large {
    font-size: 2rem;
  }

  .scroll-text h4 {
    font-size: 1.1rem;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .scroll-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .sacred-calling {
    padding: 0 15px;
  }

  .calling-frame {
    padding: 20px 15px;
    margin: 0 5px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
  }

  .calling-text {
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .sacred-button {
    width: 140px;
    height: 140px;
  }

  .button-core {
    width: 100px;
    height: 100px;
  }

  .button-text {
    font-size: 1rem;
  }

  .button-subtext {
    font-size: 0.8rem;
  }

  .sacred-quote-scroll {
    padding: 0 15px;
  }

  .quote-manuscript {
    padding: 20px 15px;
    margin: 0 5px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
  }

  .batak-script-large {
    font-size: 1.4rem;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .translation-elegant {
    font-size: 1rem;
    word-wrap: break-word;
    line-height: 1.4;
  }

  .quote-wisdom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px;
  }

  .wisdom-text {
    font-size: 0.85rem;
    word-wrap: break-word;
    line-height: 1.4;
  }

  /* Prevent horizontal scroll */
  .container {
    max-width: 100vw;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Fix floating elements on mobile */
  .cultural-atmosphere-intro {
    display: none;
  }

  /* Ensure all text content fits */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
  #tentang-aksara.manuscript-introduction {
    padding: 30px 0;
  }

  .intro-scroll-frame {
    padding: 15px 10px;
    margin: 0 5px;
    max-width: calc(100vw - 10px);
  }

  .intro-title {
    font-size: 1.2rem;
  }

  .intro-illuminated {
    font-size: 1.6rem;
  }

  .opening-frame {
    padding: 12px;
    margin: 0 5px;
    max-width: calc(100vw - 10px);
  }

  .grand-drop-cap {
    font-size: 2rem;
  }

  .sacred-text {
    font-size: 0.9rem;
  }

  .scrolls-title {
    font-size: 1.2rem;
  }

  .scrolls-illuminated {
    font-size: 1.5rem;
  }

  .knowledge-scroll {
    padding: 15px 10px;
    margin: 0 2px 12px 2px;
    max-width: calc(100vw - 20px);
  }

  .scroll-text h4 {
    font-size: 1rem;
  }

  .scroll-text p {
    font-size: 0.85rem;
  }

  .calling-frame {
    padding: 15px 10px;
    margin: 0 2px;
    max-width: calc(100vw - 20px);
  }

  .calling-text {
    font-size: 0.9rem;
  }

  .sacred-button {
    width: 120px;
    height: 120px;
  }

  .button-core {
    width: 85px;
    height: 85px;
  }

  .button-text {
    font-size: 0.9rem;
  }

  .button-subtext {
    font-size: 0.75rem;
  }

  .quote-manuscript {
    padding: 15px 10px;
    margin: 0 2px;
    max-width: calc(100vw - 20px);
  }

  .batak-script-large {
    font-size: 1.2rem;
  }

  .translation-elegant {
    font-size: 0.95rem;
  }

  .wisdom-text {
    font-size: 0.8rem;
  }

  /* Extra small sejarah styles */
  #sejarah.manuscript-storytelling {
    padding: 30px 0;
  }

  .cinematic-header {
    padding: 30px 0;
  }

  .ancient-border {
    padding: 15px 10px;
    margin: 0 5px;
    max-width: calc(100vw - 10px);
  }

  .word-art {
    font-size: 1.2rem;
    margin: 3px 0;
  }

  .mystical-subtitle {
    font-size: 0.8rem;
  }

  .story-chapters {
    padding: 30px 0;
  }

  .story-chapter {
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .chapter-content {
    max-width: calc(100vw - 20px);
  }

  .page-frame {
    padding: 15px 10px;
    max-width: calc(100vw - 20px);
  }

  .chapter-title {
    font-size: 1.1rem;
  }

  .illuminated-letter {
    font-size: 1.6rem;
  }

  .drop-cap {
    font-size: 2rem;
  }

  .story-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .batak-quote {
    font-size: 0.9rem;
  }

  .translation {
    font-size: 0.8rem;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .artifact-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 576px) {

  /* Manuscript Storytelling Mobile Styles */
  #sejarah.manuscript-storytelling {
    padding: 40px 0;
  }

  .cinematic-header {
    padding: 40px 0;
  }

  .manuscript-title {
    padding: 0 15px;
  }

  .ancient-border {
    padding: 20px 15px;
    margin: 0 10px;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
  }

  .title-content {
    text-align: center;
  }

  .batak-ancient {
    font-size: 1rem;
    word-wrap: break-word;
  }

  .word-art {
    font-size: 1.4rem;
    display: block;
    margin: 5px 0;
    word-wrap: break-word;
  }

  .mystical-subtitle {
    font-size: 0.9rem;
    word-wrap: break-word;
  }

  .story-chapters {
    padding: 40px 0;
  }

  .story-chapter {
    margin-bottom: 40px;
    min-height: auto;
    padding: 0 15px;
  }

  .chapter-content {
    width: 100%;
    max-width: calc(100vw - 30px);
  }

  .manuscript-page {
    max-width: 100%;
    margin: 0;
  }

  .page-frame {
    padding: 20px 15px;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-inner {
    max-width: 100%;
    overflow: hidden;
  }

  .chapter-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .chapter-number {
    font-size: 2rem;
  }

  .chapter-era {
    font-size: 0.8rem;
  }

  .chapter-symbol .mystical-symbol {
    font-size: 1.5rem;
  }

  .chapter-title {
    font-size: 1.3rem;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .illuminated-letter {
    font-size: 2rem;
    float: none;
    display: block;
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1;
  }

  .manuscript-line {
    margin-bottom: 20px;
  }

  .drop-cap {
    font-size: 2.5rem;
    float: none;
    display: block;
    text-align: center;
    line-height: 1;
    margin: 0 0 10px 0;
  }

  .story-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    padding: 0 15px;
  }

  .ancient-wisdom {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
  }

  .wisdom-text {
    margin: 10px 0;
  }

  .batak-quote {
    font-size: 1rem;
    word-wrap: break-word;
    display: block;
    margin-bottom: 8px;
  }

  .translation {
    font-size: 0.85rem;
    word-wrap: break-word;
  }

  .royal-statistics {
    padding: 0 10px;
  }

  .stat-scroll {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.8rem;
    word-wrap: break-word;
  }

  .stat-divider {
    display: none;
  }

  .colonial-duality {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 10px 15px;
  }

  .duality-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .duality-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .duality-text {
    font-size: 0.85rem;
    word-wrap: break-word;
  }

  .duality-divider {
    display: none;
  }

  .page-artifacts {
    margin-top: 20px;
    padding: 0 10px;
  }

  .artifact {
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .artifact-label {
    font-size: 0.6rem;
    word-wrap: break-word;
  }

  /* Modern achievements section mobile */
  .modern-achievements {
    margin: 20px 0;
  }

  .achievement-showcase {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .achievement-award {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 12px;
    margin: 0 15px;
  }

  .award-medallion {
    align-self: center;
    margin-bottom: 0;
  }

  .award-title {
    font-size: 0.95rem;
  }

  .award-desc {
    font-size: 0.8rem;
  }

  /* Hide floating elements on mobile */
  .cultural-atmosphere {
    display: none;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .container {
    max-width: 100vw;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Ensure all text fits properly */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  div {
    hyphens: auto;
  }
}