@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --background-color: linear-gradient(to bottom, rgba(27, 27, 34, 1) 0%, rgba(21, 21, 25, 1) 100%);
    --primary-color: #F2CD5C;
    --secondary-color: #FFFFFF;
    --text-color: #292933;
}

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

html{
    box-sizing: border-box;
    overflow-x: clip;
    scroll-behavior: smooth;
    scrollbar-color: var(--primary-color) black;
    scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
  background: var(--background-color);
  overflow-x: clip;
}

a, p, h1, h2, h3, h4, h5{
    color: var(--text-color);
}

header{
    position:fixed;
    top:0;
    background: linear-gradient(to bottom, rgba(27, 27, 34, 1) 0%, rgba(21, 21, 25, 1) 100%);
    z-index: 1000;
    width: 100%;
}

/* Video jadi latar belakang */
.background-video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
    z-index: -1;
    pointer-events: none; /* Biar gak ganggu klik */
}

.point-text{
    color: var(--primary-color);
    font-weight: 500;
}

.contact::before {
    content: '';
    background: linear-gradient(to right, rgba(220, 198, 112, 0.65) 0%, rgba(169, 152, 83, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 5px;
    width: 0;
    z-index: -1;
    transition: width 0.4s ease-in-out;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    justify-content: center;
    color: var(--background-color);
    position: absolute;
    overflow-x: hidden;
    overflow-y: visible;
    z-index: 1;
    white-space: nowrap;
    width: 160px;
    transition: gap 0.4s ease-in-out;
}

.contact:hover::before {
    width: 100%;
}

.contact:hover {
    gap: 1rem;
}

nav a {
  position: relative;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #F2CD5C;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Warna dan garis saat hover */
nav a:hover {
  color: #F2CD5C;
}

nav a:hover::after {
  width: 100%;
}

/* Warna dan garis untuk active */
nav a.active {
  color: #F2CD5C;
}

nav a.active::after {
  width: 100%;
}

/* Hilangkan garis hover untuk link terakhir */
nav ul li:last-child a::after {
  content: none;
}

nav ul li:last-child a:hover::after {
  width: 0 !important;
}

/* Optional: warna tetap berubah saat hover untuk link terakhir */
nav ul li:last-child a:hover {
  color: #F2CD5C;
}

/* Sidebar muncul dari kanan */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* pindah dari left ke right */
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: var(--background-color);
    transition: right 0.4s ease-in-out;
    z-index: 9999;
    padding: 1.5rem 1rem;
    box-shadow: -2px 0 12px rgba(0,0,0,0.6);
}

/* Saat aktif (muncul) */
.sidebar.active {
    right: 0;
}

/* Tombol close (di pojok kanan) */
.close-btn {
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

/* Tombol hamburger tetap di kiri */
.menu-toggle {
    z-index: 5;
}

footer{
    background: linear-gradient(to bottom, rgba(27, 27, 34, 1) 0%, rgba(21, 21, 25, 1) 100%);
}
