@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #F37021;   
  --secondary-color: #cc5200;
  --background-element: #1A1A1A;
  --text-color: #FFFFFF;
  --card-background: #2A2A2A;
  --hover-color: #ff6600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  font-family: "Poppins", sans-serif;
  background: #0d1117;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: var(--background-element);
  box-shadow: 10px 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.navbar .logo{
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1rem;
  animation: slideLeft 1s ease forwards;
}

.logo-img {
  width: 60px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.logo-img img {
  max-width: 100%;
  height: auto;
  background-image: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  animation: slideRight 1s ease forwards;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
  padding: 5px 0;
  border-bottom: 3px solid var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 5px;
  transition: 0.3s;
}

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: url("https://jete.id/wp-content/uploads/2023/05/jete-Living-World-Denpasar.jpg")
    no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  text-align: center;
  z-index: 8;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color);
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--secondary-color);
}

.about {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.about-text {
  flex: 1;
  color: var(--text-color);
  line-height: 1.6;
  animation: slideLeft 1s ease forwards;
}

.about img {
  width: 45%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  filter: grayscale(80%);
  animation: slideRight 1s ease forwards;
}

.about img:hover {
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: var(--primary-color); 
  font-size: 1.8rem;
  font-weight: bold;
}

.structure {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--background-element); 
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: #f1f5f9;
  text-align: center;
}

.structure h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--primary-color);
  animation: slideUp 1s ease forwards;
}

.structure-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.person {
  position: relative;
  text-align: center;
  width: 180px;
}

.person:nth-child(1) {
  animation: slideLeft 1s ease forwards;
}

.person:nth-child(2) {
  animation: slideUp 1s ease forwards;
}

.person:nth-child(3) {
  animation: slideRight 1s ease forwards;
}

.person img {
  width: 190px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.person img:hover {
  transform: scale(1.05);
}

.person h2 {
  margin: 4px;
  font-size: 1.125rem;
  color: var(--primary-color);
}

.person p {
  margin: 0 0 4px;
  font-weight: bold;
  color: #e2e8f0;
}

.tooltip {
  position: absolute;
  width: 190px;
  bottom: -35px;
  transform: translateY(10px);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.person:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Hover shading */
.person::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px 6px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.person:hover::after {
  opacity: 1;
}

.products {
  width: 100%;
  height: 100%;
  padding: 4rem 2rem;
  background: var(--background-color);
  text-align: center;
}

.products h2 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--primary-color);
  animation: slideUp 1s ease forwards;
}

.products-container {
  overflow: hidden;
  white-space: nowrap;
}

.scroll-products {
  display: inline-flex;
  gap: 2rem;
  animation: scroll-left 20s linear infinite;
}

.scroll-products:hover {
  animation-play-state: paused;
}

.products-card {
  background: var(--card-background);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 15px;
  min-width: 220px;
  height: 280px;
  text-align: center;
  filter: grayscale(80%);
  transition: filter 0.3s;
}

.products-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.products-card h3 {
  font-size: 1rem;
  color: var(--text-color);
}

.products-card:hover {
  filter: grayscale(0%);
}

.services {
  max-width: 100%;
  min-height: 80dvh;
  padding: 60px 20px;
  text-align: center;
  animation: slideUp 1s ease forwards;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 1.8rem;
  color: var(--primary-color);
}

.services-h2 {
  position: relative;
  margin-bottom: 15px;
}

.services-tooltip {
  position: absolute;
  width: 180px;
  height: 60px;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(-10%);
  background: var(--card-background);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.services p {
  margin: 15px 0;
  font-size: 1.125rem;
  color: var(--primary-color);
}

.services-h2:hover .services-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-50%);
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-box {
  background: #161b22;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  filter: grayscale(80%);
  transition: all 0.3s ease;
}

.service-box:hover {
  filter: grayscale(0%);
  transform: translateY(-5%);
}

.service-box img {
  max-width: 400px;
  width: 100%;
  height: 280px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.service-box p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.articles {
  position: relative;
  width: 100%;
  min-height: 80dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 1s ease forwards;
}

.articles-container {
  max-width: 900px;
  background: var(--background-element);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-align: left;
}

.articles h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.articles-content {
  column-count: 2;
  column-gap: 2rem;
}

.article {
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

.article h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.article p {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pagination {
  text-align: center;
  margin-top: 1.5rem;
}

.pagination button,
.pagination span {
  background: var(--primary-color);
  padding: 6px 12px;
  margin: 0 4px;
  color: #0f172a;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.pagination button:hover {
  background: var(--text-color);
}

.pagination button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.pagination .active {
  background: var(--text-color);
}

.contact {
  position: relative;
  min-width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.contact p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--text-color);
}

.contact form {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  gap: 15px;
  animation: slideUp 1s ease forwards;
}

.contact input,
.contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.contact button {
  font-weight: bold;
  color: #e9f5ff;
  padding: 10px;
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 1px solid var(--background-element)
}

footer {
  background: var(--background-element);
  padding: 15px;
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Animasi */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .logo h2 {
    font-size: 1rem;
  }

  .nav-links {
    position: absolute;
    height: 100dvh;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background: #111827;
    width: 200px;
    padding: 20px;
    transition: right 0.3s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about {
    flex-direction: column;
  }
  .about img {
    width: 100%;
    height: 200px;
  }
  .about-text h2 {
    text-align: center;
  }

  .articles-content {
    column-count: 1; 
  }

  .article h3 {
    font-size: 1rem;
  }

  .article p {
    font-size: 0.9rem;
  }
}