/* CSS Variables */
:root {
  --primary-bg: #f5f5dc;
  --secondary-bg: #fafafa;
  --text-dark: #2f4f4f;
  --accent-maroon: #800000;
  --accent-blue: #4682b4;
  --light-cream: #f9f8f6;
  --border-light: #e8e6e1;
  --shadow-light: 0 4px 15px rgba(47, 79, 79, 0.1);
  --shadow-medium: 0 8px 25px rgba(47, 79, 79, 0.15);
  --shadow-accent: 0 4px 20px rgba(128, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--primary-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
}

.aksara-batak,
.batak-text,
.batak-char,
.aksara-display,
.batak-display {
  font-family: "Noto Sans Batak", sans-serif;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(245, 245, 220, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-maroon);
  text-shadow: 0 2px 4px rgba(128, 0, 0, 0.1);
}

.logo-accent {
  font-size: 0.9rem;
  color: var(--accent-blue);
  margin-top: -5px;
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-maroon);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-maroon), var(--accent-blue));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    var(--light-cream) 50%,
    var(--secondary-bg) 100%
  );
  overflow: hidden;
  padding: 2rem 0;
}

/* Ensure proper font loading for Batak script */
@media (min-width: 769px) {
  .hero-pattern {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-pattern {
    opacity: 0.3;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.2s;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
  opacity: 0.85;
  line-height: 1.7;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.4s;
  max-width: 600px;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-maroon), #a52a2a);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.6s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background: linear-gradient(135deg, #a52a2a, var(--accent-maroon));
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(128, 0, 0, 0.3);
}

.cta-icon {
  transition: var(--transition);
  font-size: 1.3rem;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.aksara-display {
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 1s ease forwards 0.8s;
  background: var(--secondary-bg);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--border-light);
}

.aksara-large {
  display: block;
  font-size: 5rem;
  color: var(--accent-maroon);
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 6px rgba(128, 0, 0, 0.2);
}

.aksara-translation {
  font-size: 1.4rem;
  color: var(--accent-blue);
  font-style: italic;
  font-weight: 500;
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23800000' fill-opacity='0.08'%3E%3Cpath d='M40 40c0-22.091 17.909-40 40-40v80c-22.091 0-40-17.909-40-40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  z-index: 1;
}

/* Sections */
.section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-maroon), var(--accent-blue));
  border-radius: 2px;
}

/* Pengenalan Section */
.pengenalan {
  background: var(--light-cream);
  position: relative;
}

.pengenalan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-maroon),
    transparent
  );
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--secondary-bg);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 2px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-maroon), var(--accent-blue));
  transform: translateX(-100%);
  transition: var(--transition);
}

.card:hover::before {
  transform: translateX(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-blue);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-maroon);
  margin-bottom: 1.5rem;
  font-family: "Noto Sans Batak", sans-serif;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card p {
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.7;
}

/* Panduan Section */
.learning-interface {
  background: var(--secondary-bg);
  padding: 4rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  margin-bottom: 4rem;
  border: 2px solid var(--border-light);
  position: relative;
}

.learning-interface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-maroon), var(--accent-blue));
}

.input-section,
.output-section {
  margin-bottom: 2rem;
}

.input-section label,
.output-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

#latin-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
  resize: vertical;
  min-height: 120px;
}

#latin-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(70, 130, 180, 0.15);
}

.batak-display {
  background: var(--light-cream);
  padding: 2rem;
  border-radius: var(--border-radius);
  min-height: 140px;
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--accent-maroon);
  border: 2px solid var(--border-light);
  box-shadow: inset 0 2px 8px rgba(47, 79, 79, 0.05);
}

.placeholder-text {
  color: var(--text-dark);
  opacity: 0.5;
  font-style: italic;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.alphabet-guide {
  background: var(--light-cream);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border-light);
}

.alphabet-guide h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
}

.alphabet-item {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 2px solid var(--border-light);
}

.alphabet-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-blue);
}

.batak-char {
  display: block;
  font-size: 2rem;
  color: var(--accent-maroon);
  margin-bottom: 0.5rem;
}

.latin-char {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Kumpulan Teks Section */
.kumpulan-teks {
  background: var(--light-cream);
  position: relative;
}

.kumpulan-teks::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-blue),
    transparent
  );
}

.text-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.text-card {
  background: var(--secondary-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-light);
}

.text-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-maroon));
  transform: translateX(-100%);
  transition: var(--transition);
}

.text-card:hover::before {
  transform: translateX(0);
}

.text-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.text-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.batak-text {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--accent-maroon);
  margin-bottom: 1rem;
}

.translation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(128, 0, 0, 0.95),
    rgba(70, 130, 180, 0.95)
  );
  color: white;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.text-card:hover .translation-overlay {
  opacity: 1;
}

.translation-overlay p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Sejarah Section */
.sejarah-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.sejarah-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-dark);
  opacity: 0.9;
}

.timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--accent-maroon) 0%,
    var(--accent-blue) 50%,
    var(--accent-maroon) 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--secondary-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  border: 2px solid var(--border-light);
  transition: var(--transition);
  transform: translateX(20px);
}

.timeline-item:hover {
  transform: translateX(25px) translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-blue);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-maroon);
  border: 4px solid var(--secondary-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-maroon), 0 0 15px rgba(128, 0, 0, 0.4);
  transition: var(--transition);
}

.timeline-item:hover::before {
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px var(--accent-blue), 0 0 20px rgba(70, 130, 180, 0.6);
  transform: translateY(-50%) scale(1.2);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -39px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.timeline-item:hover::after {
  background: white;
  transform: translateY(-50%) scale(1.5);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-maroon), #a52a2a);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border: 2px solid transparent;
}

.timeline-item:hover .timeline-year {
  background: linear-gradient(135deg, var(--accent-blue), #4169e1);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(70, 130, 180, 0.4);
}

.timeline-desc {
  color: var(--text-dark);
  opacity: 0.9;
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-desc::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.8rem;
  opacity: 0.7;
  transition: var(--transition);
}

.timeline-item:hover .timeline-desc::before {
  opacity: 1;
  transform: translateX(3px);
}

.sejarah-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pustaha-illustration {
  background: var(--light-cream);
  padding: 4rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--border-light);
  position: relative;
}

.pustaha-illustration::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-maroon), var(--accent-blue));
}

.pustaha-text {
  font-size: 3rem;
  color: var(--accent-maroon);
  margin-bottom: 1rem;
}

.pustaha-illustration p {
  color: var(--text-dark);
  font-weight: 500;
  font-style: italic;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1e3a3a 100%);
  color: white;
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-maroon),
    var(--accent-blue),
    var(--accent-maroon)
  );
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 80%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23800000' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-16.569 13.431-30 30-30v60c-16.569 0-30-13.431-30-30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.footer-logo-text {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-logo-accent {
  font-size: 1.2rem;
  color: var(--accent-blue);
  opacity: 0.9;
  font-family: "Noto Sans Batak", sans-serif;
}

.footer-description {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: var(--accent-maroon);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(128, 0, 0, 0.3);
  border-color: var(--accent-maroon);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-maroon), var(--accent-blue));
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.footer-link::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-10px);
}

.footer-link:hover {
  color: white;
  padding-left: 2rem;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  font-size: 0.95rem;
}

.heart {
  color: var(--accent-maroon);
  font-size: 1.2rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.footer-credits {
  display: flex;
  gap: 2rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-credits a:hover {
  color: var(--accent-blue);
}

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

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .aksara-display {
    padding: 2.5rem;
  }

  .aksara-large {
    font-size: 4rem;
  }

  .aksara-translation {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 15px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }

  .aksara-display {
    padding: 2rem;
    margin: 0 auto;
    max-width: 280px;
  }

  .aksara-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .aksara-translation {
    font-size: 1.1rem;
  }

  .hero-pattern {
    display: none;
  }

  .sejarah-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 8px;
    width: 3px;
  }

  .timeline-item {
    transform: translateX(10px);
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .timeline-item:hover {
    transform: translateX(15px) translateY(-3px);
  }

  .timeline-item::before {
    left: -27px;
    width: 16px;
    height: 16px;
  }

  .timeline-item::after {
    left: -21px;
    width: 3px;
    height: 3px;
  }

  .timeline-year {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .timeline-desc {
    font-size: 1rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-description {
    max-width: 100%;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-section h3 {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-credits {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .text-gallery {
    grid-template-columns: 1fr;
  }

  .alphabet-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .learning-interface {
    padding: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .hero-container {
    padding: 0 10px;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .aksara-display {
    padding: 1.5rem;
    max-width: 250px;
  }

  .aksara-large {
    font-size: 3rem;
    margin-bottom: 0.8rem;
  }

  .aksara-translation {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .card {
    padding: 2.5rem;
  }

  .learning-interface {
    padding: 2rem;
  }

  .timeline {
    padding-left: 0.8rem;
  }

  .timeline::before {
    left: 6px;
    width: 2px;
  }

  .timeline-item {
    transform: translateX(5px);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .timeline-item:hover {
    transform: translateX(8px) translateY(-2px);
  }

  .timeline-item::before {
    left: -22px;
    width: 14px;
    height: 14px;
  }

  .timeline-item::after {
    left: -17px;
    width: 2px;
    height: 2px;
  }

  .timeline-year {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

  .timeline-desc {
    font-size: 0.95rem;
    padding-left: 0.8rem;
  }

  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-main {
    gap: 2.5rem;
  }

  .footer-logo-text {
    font-size: 2.2rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-social {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .contact-item {
    font-size: 0.95rem;
  }

  .alphabet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.2rem;
  }

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

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .aksara-display {
    padding: 1.2rem;
    max-width: 220px;
  }

  .aksara-large {
    font-size: 2.5rem;
  }

  .aksara-translation {
    font-size: 0.9rem;
  }

  .footer-logo-text {
    font-size: 2rem;
  }

  .footer-logo-accent {
    font-size: 1rem;
  }

  .footer-main {
    gap: 2rem;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }

  .footer-social {
    gap: 0.8rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 0.5rem 0;
  }

  .hero-container {
    gap: 1.5rem;
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .aksara-display {
    padding: 1.8rem;
    max-width: 240px;
  }

  .aksara-large {
    font-size: 3rem;
  }
}
