@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom, #fdf6e3, #fcf1cc); /* Gradient soft cerah */
  transition: background 0.3s, color 0.3s;
  color: #333;
  text-align: center;
}

body.dark {
  background: #1e1e1e;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-weight: bold;
  font-family: 'Merriweather', serif;
}

.logo {
  font-size: 1.5rem;
  color: #6b1e1e;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.title-text {
  font-size: 24px;
  font-weight: 600;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #007b8c;
}

.dark-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem 2rem;
  background: #262533;
  color: white;
  border-radius: 10px;
}

.hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  color: #703b3b;
  font-family: 'Merriweather', serif;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.hero h2 {
  font-size: 2rem;
  color: #ffb619;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #703b3b;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  direction: rtl;
  text-align: right;
  line-height: 2;
  }
  
.arabic-footer {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  direction: rtl;
  text-align: center;
  line-height: 2;
  color: #fffdfd;
}

.quote {
  font-style: italic;
  color: #daa520;
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  white-space: nowrap;
  margin: 1rem auto;
  animation: marquee 15s linear infinite;
}

.quote-atas {
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  text-align: center;
}

.quote-author {
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

.quote span {
  display: inline-block;
  padding: 0 2rem;
}

.quote-box {
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 1080px;
  background-color: 3px #eee2c0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: left;
}

body.dark .quote-box {
  background-color: #00000080;
  border-color: #F9CC41;
}

.Terjemahan{
  text-align: justify;
  font-size: 1rem;
  }

.sticky-header {
  position: sticky;
  top: 0;
  background: #daa520;
  z-index: 1000;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

/* Tambahkan di style.css */

body.dark .hero h1 {
  color: #f9cc41; /* Gold light */
}

body.dark .hero h2 {
  color: #f7e9a0; /* Light yellow */
}

body.dark .hero p {
  color: #f0f0f0; /* Light grey */
}

body.dark .logo {
  color: #f8f7f5; /* Light grey */
}

body.dark .quote {
  color: #f9cc41; /* Sama dengan light gold */
}

body.dark .quote-author {
  color: #f9cc41; /* Sama dengan light gold */
}

body.dark .quote-atas {
  color: #f9cc41; /* Sama dengan light gold */
}

body.dark .arabic-text {
  color: #ffffff; /* White */
}

body.dark .Terjemahan {
  color: #f9cc41; /* Light grey */
}

/* Jika ingin efek tambahan: nav link hover di dark mode */
body.dark nav a:hover {
  color: #f9cc41;
}

/* Tambahan aman untuk scroll-down button */
body.dark .scroll-down {
  background: #f9cc41;
  color: #1e1e1e; /* Dark background color */
}

/* Selesai, semua elemen penting sudah dikover */


@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.scroll-down {
  background: #daa520;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
}

.scroll-down:hover {
  transform: translateY(5px);
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-box {
  border: 3px solid #007b8c;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1080px;
  background-color: #ffffff80;
  text-align: left;
}

body.dark .section-box {
  background-color: #00000080;
  border-color: #F9CC41;
}

footer {
  background: #6b1e1e;
  color: white;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

#toTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background: #daa520;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

#toTopBtn:hover {
  background-color: #daa520;
  transform: translateY(-4px);
}

.mobile-menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6b1e1e;
  position: Right;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  border: 12px;
}

.card {
  background-color: #daa520;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #000000;
}

.role {
  font-size: 0.9rem;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 768px) {  
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    color: #6b1e1e;
  }

  .title-text {
    font-size: 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }
  
  .arabic-text {
    font-size: 1.5rem;
  }
  
  .arabic-Terjemahan {
    font-size: 1.5rem;
  }
  
  body.dark .name {
    color: #ffffff; /* White */
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .section-box {
    padding: 1rem;
    border: none;
    box-shadow: none;
    width: 100%;
    margin: 1rem 0;
  }

  nav {
    width: 100vw;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1rem;
  }

  .quote {
    display: none;
  }
  
  .quote-atas {
    display: none;
  }

  #toTopBtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .mobile-menu-icon {
    display: block;
  }
  
  .section-box {
    max-width: 100vw;
    box-sizing: border-box;
    border-radius: 15px;
  }

  nav {
    display: none;
    flex-direction: column;
    background: #daa520;
    position: center;
    width: 90vw;
    top: 60px;
    right: 10px;
    z-index: 100;
    border: 3px solid #fffefe;
    border-radius: 15px;
    color: #fcf7f7;
    padding: 1rem;
  }

  nav.show {
    display: flex;
  }

  nav a {
    margin: 0.5rem 0;
  }
}
