:root {
	--light-brown: rgb(193, 161, 127);
	--dark-brown: rgb(55, 5, 6);
	--brown: rgb(124, 28, 28);
	--white: rgb(255, 255, 255);
	--light-blue: rgb(110, 203, 246);
	--blue: rgb(87, 106, 226);
	--dark-blue: rgb(42, 35, 86);
	--pink: rgb(194, 82, 226);
	--orange: rgb(195, 92, 53);
	--val-yellow: rgb(255, 178, 45);
	--black: #000;
}

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

html,
body {
	font-family: "Open Sans", sans-serif;
	background: var(--black);
	color: var(--white);
	overflow-x: hidden;
}

@keyframes toggle-animation {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

/* Header */

section.gradient-header {
	position: absolute;
	/* z-index: 11; */
	left: 0;
	top: 8vh;
	width: 100%;
	height: 1.5rem;
	background: linear-gradient(to bottom, rgba(175, 175, 175, 0.3), transparent);
}


/* Pop up ad */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

/* Fix for popup-overlay interaction bug after popup is closed */
.popup-overlay:not(.active) {
    pointer-events: none;
}
.popup-overlay.active {
    pointer-events: auto;
}

/* Popup styles */
.popup {
	position: relative;
	width: 90%;
	max-width: 450px;
	background: var(--val-yellow);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.4s ease;
}

.popup-overlay.active .popup {
	transform: translateY(0);
	opacity: 1;
}

.popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	background: rgb(239, 121, 90);
	color: white;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	outline: none;
	display: flex;
	justify-content: center;
	align-items: center;
}

.popup-close:hover {
	background: rgb(211, 103, 76);
}

.popup-close span {
	font-size: 20px;
	line-height: 1;
	color: white;
}

.popup-content {
	text-align: center;
}

.popup-title {
	color: white;
	margin-bottom: 15px;
	font-size: 30px;
	font-weight: bold;
}

.popup-text {
	color: white;
	margin-bottom: 25px;
	line-height: 1.5;
	text-align: center;
}

.popup-image {
	width: 100%;
	max-height: 200px;
	object-fit: contain;
	border-radius: 8px;
	margin-bottom: 20px;
}

.popup-button {
	display: inline-block;
	padding: 12px 30px;
	background-color: rgb(239, 121, 90);
	color: white;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.popup-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgb(239, 121, 90);
}

/* AI circle */

.fixed-icon {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 70px;
	height: 70px;
	background-color: rgb(255, 178, 45);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 12px rgba(255, 178, 45, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1000;
}

.fixed-icon:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(255, 178, 45, 0.6);
}


.val-logo{
	--size: 4vw;
	width: var(--size);
	height: var(--size);
	background-image: url(../img/foto/val-logo.png);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

.chat-bubble {
	position: absolute;
	bottom: 85px;
	right: 0;
	background-color: rgb(255, 178, 45);
	color: white;
	padding: 12px 15px;
	border-radius: 18px 18px 0 18px;
	font-size: 14px;
	box-shadow: 0 4px 8px rgba(255, 178, 45, 0.4);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
	max-width: 180px;
	width: max-content;
	text-align: left;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
	line-height: 1.4;
	font-weight: 500;
}

.fixed-icon-container:hover .chat-bubble,
.fixed-icon-container.active .chat-bubble {
	opacity: 1;
	transform: translateY(0);
}

/* Animation for bubble appearance */
@keyframes bubbleAppear {
	0% { opacity: 0; transform: translateY(10px); }
	20% { opacity: 1; transform: translateY(0); }
	80% { opacity: 1; transform: translateY(0); }
	100% { opacity: 0; transform: translateY(10px); }
}

.fixed-icon-container {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
}

.fixed-icon-container:hover .chat-bubble {
	animation: bubbleAppear 3s;
}

/* Pulse effect */
@keyframes pulse {
	0% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 178, 45, 0.5); }
	50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(255, 178, 45, 0.6); }
	100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 178, 45, 0.5); }
}

.fixed-icon {
	animation: pulse 2s infinite;
}

.fixed-icon:hover {
	animation: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.fixed-icon {
		width: 65px;
		height: 65px;
		bottom: 25px;
		right: 25px;
	}
	
	.fixed-icon-container {
		bottom: 25px;
		right: 25px;
	}
	
	.chat-bubble {
		bottom: 80px;
		font-size: 14px;
		max-width: 200px;
	}

	.val-logo{
		--size: 7.5vw;
	}
	
}

@media (min-width: 1024px) and (max-width: 1366px) {
	.fixed-icon {
		width: 75px;
		height: 75px;
		bottom: 30px;
		right: 30px;
	}
	
	.fixed-icon-container {
		bottom: 30px;
		right: 30px;
	}
	
	.chat-bubble {
		bottom: 90px;
		font-size: 15px;
		max-width: 220px;
		padding: 14px 18px;
	}
}

/* Media queries untuk responsivitas */
@media (max-width: 768px) {
	.fixed-icon {
		width: 60px;
		height: 60px;
		bottom: 20px;
		right: 20px;
	}
	
	.fixed-icon-container {
		bottom: 20px;
		right: 20px;
	}
	
	.chat-bubble {
		bottom: 75px;
		font-size: 13px;
		max-width: 170px;
		padding: 10px 12px;
	}
}

@media (max-width: 480px) {
	.fixed-icon {
		width: 55px;
		height: 55px;
		bottom: 15px;
		right: 15px;
	}
	
	.fixed-icon-container {
		bottom: 15px;
		right: 15px;
	}
	
	.chat-bubble {
		bottom: 70px;
		font-size: 12px;
		max-width: 150px;
		padding: 8px 12px;
	}

	.val-logo{
		--size: 12vw;
	}
	
}

.footer-divider {
	position: relative;
	top: 14rem;
	width: 100%;
}

/* Footer */
.waves-footer {
	background-color: var(--orange);
}

footer {
	background: var(--black);
	padding-top: 2rem 0;
}

footer .gradient {
	height: 10rem;
	background: linear-gradient(var(--dark-brown), var(--brown));
	margin-bottom: 1rem;
}

footer .footer-content {
	display: flex;
	justify-content: space-evenly;
	padding-top: 1.8rem;
}

footer .footer-content img {
	width: 2rem;
	border-radius: 0.3rem;
	margin-right: 0.3rem;
}

footer .footer-content a {
	color: var(--white);
	text-decoration: none;
}

footer .footer-content a:hover {
	color: #FEAF2D;
	animation: nav-hover-a 0.2s linear;
}

footer .column1 {
	width: 20%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

footer .column1 img {
	width: 15rem;
}

footer .column1 .footer-text {
	display: flex;
	flex-direction: column;
	align-items: center;
}

footer .column1 .footer-text h5 {
	font-size: 2.2rem;
	font-weight: 700;
	margin: 0;
}

footer .column1 .footer-text p {
	text-align: center;
	font-size: 1.1rem;
}

footer .column2 {
	width: 30%;
	margin: auto 0;
}

footer .column2 a {
	display: flex;
	flex-direction: column;
	align-items: center;
}

footer .column2 a h1 {
	margin: 0;
	color: #FEAF2D;
}

footer .column2 a p {
	padding-top: 5px;
	margin-bottom: 0;
	margin: 0;
	text-align: center;
	font-size: 1.1rem;
}

footer .column3 {
	width: 20%;
	height: 20%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: auto 0;
}

footer .column3 a {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin: 0.2rem 0;
}

footer .column3 a h2 {
	margin: 0;
	color: #FEAF2D;
}

footer .column3 p {
	margin: 0;
	margin-left: 10px;
	font-size: 1.1rem;
}

footer .copyright {
	margin-top: 1rem;
	background: var(--white);
	color: var(--dark-brown);
}

footer .copyright p {
	text-align: center;
	margin-bottom: 0;
}

/* Responsive Layout */
@media screen and (max-width : 1100px) {
	.footer-divider {
		top: 11rem;
	}
}

@media screen and (max-width : 590px) {
	body {
		max-width: 100vw;
	}

	@keyframes toggle-animation {
		0% {
			opacity: 0;
		}

		100% {
			opacity: 1;
		}
	}

	.footer-divider {
		top: 10rem;
	}

	footer .footer-content {
		padding-left: 3%;
		padding-right: 3%;
		display: flex;
		justify-content: space-evenly;
		flex-direction: column;
	}

	footer .footer-content img {
		width: 2rem;
		border-radius: 0.3rem;
		margin-right: 0rem;
	}

	footer .column1 {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	footer .column1 img {
		width: 10rem;
	}

	footer.column1 .footer-text {
		display: flex;
		flex-direction: column;
		align-content: center;
	}

	footer .column1 .footer-text h5 {
		font-size: 25px;
		text-align: right;
	}

	footer .column1 .footer-text p {
		text-align: center;
		margin-bottom: 40px;
	}

	footer .column1 img {
		width: 6rem;
	}

	footer .column2 {
		display: flex;
		width: 100%;
		margin: auto 0;
		padding-bottom: 40px;
	}

	footer .column2 a {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	footer .column2 a img {
		width: 33px;
		height: 33px;
		display: flex;
		margin-right: 5px;
		justify-content: space-evenly;
	}

	footer .column2 a p {
		margin: 0;
	}

	footer .column3 {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 100%;
		padding-bottom: 10px;
	}

	footer .column3 a {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: 0 10px;
	}

	footer .column3 a h2 {
		width: 25px;
		height: 25px;
	}

	footer .column3 p {
		display: none;
		margin: 0;
	}

	footer .copyright p {
		text-align: center;
		font-size: 11px;
	}
}




