@import url("https://fonts.googleapis.com/css2?family=Anton&family=Mona+Sans:wght@400;600&display=swap");

/* CSS Variables for consistent colors */
:root {
	--primary-color: #E1B755;
	--secondary-color: #073255;
	--accent-color: #246390;
	--text-light: #fff9ee;
	--text-dark: #073255;
	
	/* Background colors */
	--bg: rgba(7, 50, 85, 0.85);
	--cta-border: rgba(255, 255, 255, 0.15);
	--cta-shadow: rgba(0, 0, 0, 0.4);	
	--cta-text: rgba(255, 249, 238, 0.95);
	--button-bg: #E1B755;
	--button-hover: #d4a644;
	--button-shadow: rgba(225, 183, 85, 0.4);
	/* Footer hover color */
	--footer-hover-color: #E1B755;

	/* Sidebar (overlay) color tokens */
	--sidebar-bg: rgba(7, 50, 85, 0.92);
	--sidebar-text: #E1B755;

	/* Scrollbar colors */
	--scrollbar-thumb: var(--primary-color);
	--scrollbar-thumb-hover: #d4a644;
	--scrollbar-track: #f5e6c2;
}

/* Selection (highlighted text) colors */
::selection {
	background: var(--primary-color);
	color: #ffffff;
}

::-moz-selection {
	background: var(--primary-color);
	color: #ffffff;
}

/* Global scrollbar styles */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

/* Global styles to prevent horizontal overflow */
* {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

body {
	font-family: "Mona Sans", sans-serif;
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	font-weight: 400;
	line-height: 23px;
	letter-spacing: -0.36px;
	overflow-x: hidden;
	padding-top: 0;
	margin: 0;
	width: 100%;
	max-width: 100vw;
}

/* Prevent body scroll when menu overlay is open */
body.menu-open {
	overflow: hidden !important;
	height: 100vh !important;
}

/* Ensure all elements respect viewport width */
*, *::before, *::after {
	max-width: 100%;
}

/* Typography - Anton only for h1, h2, Mona Sans for everything else */
h1, h2 {
	font-family: 'Anton', sans-serif !important;
	font-weight: 400;
	letter-spacing: 1px;
}

h3, h4, h5, h6, p, span, div, a, button, input, textarea, label, li, td, th {
	font-family: 'Mona Sans', sans-serif !important;
	font-weight: 400;
}

/* Specific weight overrides */
h3, h4, h5, h6 {
	font-weight: 600;
}

button {
	font-weight: 600;
}

/* Tailwind CSS Overrides to prevent horizontal overflow */
@layer base {
	html, body {
		overflow-x: hidden !important;
		max-width: 100vw !important;
	}
	
	/* Typography overrides for Tailwind */
	/* h1, h2 {
		font-family: 'Anton', sans-serif !important;
		font-weight: bold !important;
	} */
	
	h3, h4, h5, h6 {
		font-family: 'Mona Sans', sans-serif !important;
		font-weight: 600 !important;
	}
	
	/* Override Tailwind's default margin/padding that can cause overflow */
	.container {
		max-width: 100vw !important;
		overflow-x: hidden !important;
	}
	
	/* Ensure Tailwind's max-w-* classes don't exceed viewport */
	.max-w-7xl {
		max-width: min(80rem, 100vw) !important;
	}
	
	/* Fix any Tailwind padding that might cause overflow */
	.px-4, .px-6, .px-8 {
		padding-left: min(1rem, 2vw) !important;
		padding-right: min(1rem, 2vw) !important;
	}
	
	.sm\:px-6 {
		padding-left: min(1.5rem, 3vw) !important;
		padding-right: min(1.5rem, 3vw) !important;
	}
	
	.lg\:px-8 {
		padding-left: min(2rem, 4vw) !important;
		padding-right: min(2rem, 4vw) !important;
	}
}

/* Reset only for menu overlay components to avoid conflicts with Tailwind */
.menu-overlay,
.menu-overlay *,
.navbar,
.navbar *,
#hero-section,
#hero-section * {
	margin: 0;
	
	box-sizing: border-box;
}

.menu-overlay a,
.navbar a,
#hero-section a {
	text-decoration: none;
	color: inherit;
}

/* Use Tailwind classes instead of custom wrapper */
/* .wrapper {
	max-width: 1440px;
	padding-inline: 2rem;
	margin-inline: auto;
} */

.navbar {
	position: fixed;
	top: 18px;
	width: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
	overflow-x: hidden;
	transition: background 0.3s ease, backdrop-filter 0.3s ease, border-radius 0.3s ease, margin 0.3s ease, width 0.3s ease, top 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
	transform: translateY(0);
	will-change: transform;
}

.navbar.scrolled {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	margin: 0 18px;
	width: calc(100% - 36px);
	top: 0;
	padding: 12px 0;
	box-shadow: 0 4px 20px rgba(7, 50, 85, 0.15);
	border: 1px solid rgba(225, 183, 85, 0.2);
}

.navbar .menu-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.logo-wrapper {
	height: 44px;
	display: flex;
	align-items: center;
}

.logo-wrapper {
	background: rgba(255, 255, 255, 0.98);
	padding: 10px 14px;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(7, 50, 85, 0.2);
	border: 1px solid rgba(225, 183, 85, 0.3);
	transition: all 0.3s ease;
}

.logo-wrapper:hover {
	box-shadow: 0 4px 16px rgba(7, 50, 85, 0.3);
	transform: translateY(-1px);
}

.logo-wrapper img {
	height: 100%;
	width: auto;
}

#menu-toggle {
	width: 44px;
	height: 44px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	align-items: center;
	justify-content: center;
	background: #073255;
	border-radius: 10px;
	cursor: pointer;
	z-index: 10000;
	transition: all 0.3s ease;
	border: 1px solid rgba(225, 183, 85, 0.3);
}

#menu-toggle:hover {
	background: #246390;
	box-shadow: 0 2px 8px rgba(7, 50, 85, 0.3);
}

#menu-toggle span {
	width: 29px;
	height: 2px;
	background: #E1B755;
	border-radius: 1px;
	transition: all 0.3s ease;
}

.menu-overlay {
	position: fixed;
	inset: 0;
	height: 100vh;
	width: 100vw;
	z-index: 9999;
	clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.menu-overlay__bg-container {
	background-color: #f5e6c2;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
}

.menu-overlay__bg-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.menu-overlay__bg-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.menu-overlay__content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: stretch;
}

.menu-overlay__links {
    background: var(--sidebar-bg);
    backdrop-filter: blur(24px);
    width: 50%;
    height: 100%;
    padding: 44px 30px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--sidebar-text);
}

.menu-overlay__details {
	width: 50%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	pointer-events: none;
}

.menu-overlay__detail {
	display: none;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 30% 20%, rgba(225, 183, 85, 0.22), rgba(7, 50, 85, 0.78) 65%), rgba(7, 50, 85, 0.82);
	backdrop-filter: blur(12px);
	border-radius: 24px;
	padding: clamp(32px, 4vw, 48px);
	color: var(--text-light);
	border: 1px solid rgba(225, 183, 85, 0.35);
	box-shadow: 0 22px 65px rgba(7, 50, 85, 0.35);
	pointer-events: auto;
	flex-direction: column;
	justify-content: center;
}

.menu-overlay__detail.active {
	/* display: flex; */
	display: block;
}

.menu-overlay__detail h3 {
	font-family: 'Anton', sans-serif;
	font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
	margin-bottom: 20px;
	letter-spacing: 1px;
	color: var(--primary-color);
	text-transform: uppercase;
}

.menu-overlay__detail ul {
	list-style: none;
	display: grid;
	gap: 16px;
	padding: 0;
	margin: 0;
}

.menu-overlay__detail ul li {
	font-size: clamp(1.05rem, 0.6vw + 1rem, 1.45rem);
	letter-spacing: -0.3px;
	position: relative;
	padding-left: 28px;
}

.menu-overlay__detail ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(225, 183, 85, 0.25);
	transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.menu-overlay__detail ul li a {
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: color 0.3s ease, transform 0.3s ease;
}

.menu-overlay__detail ul li:hover a {
	color: var(--primary-color);
	transform: translateX(6px);
}

.menu-overlay__detail ul li:hover::before {
	background: #fff;
	box-shadow: 0 0 0 4px rgba(225, 183, 85, 0.4);
	transform: translateY(-50%) scale(1.12);
}

/* Sidebar-specific scrollbar styling */
.menu-overlay__links {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--sidebar-bg);
}

.menu-overlay__links::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

[data-text-anim] {
	/* hide animated words first to avoid FOUC */
	visibility: hidden;
}

.duplicate-char {
	position: absolute;
	inset: 0;
	transform: translateY(100%);
}

.menu-overlay__main {
    color: var(--sidebar-text);
	font-family: 'Anton', sans-serif;
	font-size: clamp(1.5rem, 3.5vw + 0.5rem, 3.8rem);
	line-height: 90%;
	letter-spacing: -1.2px;
}

.menu-overlay__main ul {
	list-style: none;
}

.menu-overlay__main li {
	margin-bottom: 10px;
	transition: opacity 0.3s ease;
	width: fit-content;
	margin-inline: auto;
}

.menu-overlay__main li a {
	line-height: 93%;
}

.menu-overlay__main:has(li:hover) li:not(:hover) {
	opacity: 0.5;
}

.menu-overlay__socials ul {
	display: flex;
	gap: 14px;
    color: var(--sidebar-text);
	font-size: clamp(1rem, 0.55vw + 0.88rem, 1.375rem);
	font-weight: 600;
	line-height: normal;
	letter-spacing: -0.44px;
	list-style: none;
}

/* Sidebar link hover for contrast */
.menu-overlay__main a:hover,
.menu-overlay__socials a:hover {
    color: var(--primary-color);
}

/* Button styles removed since explore button was removed */

.container {
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}

.page-content {
	height: 100%;
	will-change: transform;
	width: 100%;
	overflow-x: hidden;
}

#hero-section {
	background-image: url("/assets/image/home/hero-bg.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	height: 100vh;
	min-height: 700px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 40px 0;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
	position: relative;
	isolation: isolate;
}

#hero-section .hero__background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	background: rgba(7, 50, 85, 0.65);
}

#hero-section .hero__background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(2, 23, 42, 0.65) 0%, rgba(2, 23, 42, 0.55) 45%, rgba(2, 23, 42, 0.85) 100%);
	z-index: 2;
}

#hero-section .hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	filter: saturate(1.1) contrast(1.1);
	transform: scale(1.01);
	transition: opacity 0.6s ease;
}

#hero-section .hero__video::-webkit-media-controls {
	display: none !important;
}

#hero-section .hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
    background: radial-gradient(circle at 20% 20%, rgba(225, 183, 85, 0.11), transparent 55%), linear-gradient(120deg, rgb(7 50 85 / 8%) 0%, rgb(7 50 85 / 0%) 100%);
}

#hero-section .hero__content {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	text-align: center;
	padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* Use Tailwind classes for hero layout */
/* #hero-section .wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	width: 100%;
	gap: 20px;
} */

.hero__header {
	font-family: 'Anton', sans-serif;
	font-size: clamp(2.75rem, 7.89vw + 1.024rem, 8.125rem);
	line-height: 99%;
	letter-spacing: -2.6px;
	text-transform: uppercase;
	max-width: 751px;
	width: 100%;
	background: linear-gradient(0deg, #E1B755 0%, #fff9ee 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	word-break: normal;
	overflow-wrap: normal;
	word-wrap: normal;
	hyphens: none;
	min-width: 0;
	text-align: center;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	#hero-section .hero__content {
		flex-direction: row;
		align-items: flex-end;
		text-align: left;
	}

	#hero-section .hero__header {
		text-align: left;
		margin: 0;
	}

	#hero-section .hero__cta {
		margin: 0 0 0 clamp(1.5rem, 4vw, 3rem);
		text-align: left;
	}
}

.hero__cta {
	border-radius: 20px;
	background: var(--cta-bg);
	backdrop-filter: blur(15px);
	border: 1px solid var(--cta-border);
	box-shadow: 0 12px 40px var(--cta-shadow);
	z-index: 10;
	max-width: 380px;
	min-width: 0;
	padding: 32px 28px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	margin: 20px auto 0;
	text-align: center;
}

.hero__cta .cta__txt {
	margin-bottom: 28px;
	color: var(--cta-text);
	line-height: 1.6;
	font-size: 1rem;
	padding-bottom: 0;
	font-family: 'Mona Sans', sans-serif;
}

.hero__cta .cta__btn {
	background: var(--button-bg);
	color: white;
	font-family: 'Anton', sans-serif;
	font-size: 14px;
	font-weight: bold;
	display: flex;
	gap: 8px;
	padding: 20px 32px;
	border-radius: 14px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	letter-spacing: 1px;
	text-transform: uppercase;
	width: 100%;
	min-height: 56px;
	margin-top: 4px;
}

.hero__cta .cta__btn:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px var(--button-shadow);
}

.hero__cta .cta__btn:active {
	transform: translateY(0);
}

/* Responsive styles - using Tailwind classes for most responsive design */

/* Small laptops and tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
	.menu-overlay__links {
		width: 100%;
		padding: 36px 24px;
	}
	
	.menu-overlay__details {
		display: none;
	}
	
	.menu-overlay__main {
		font-size: clamp(1.2rem, 3vw + 0.4rem, 2rem);
	}
	
	.navbar {
		top: 14px;
	}
	
	.navbar.scrolled {
		margin: 0 12px;
		width: calc(100% - 24px);
		padding: 10px 0;
	}
	
	.logo-wrapper {
		height: 40px;
		padding: 8px 12px;
	}
	
	#menu-toggle {
		width: 40px;
		height: 40px;
	}
}

/* Small desktop screens (1024px - 1139px) */
@media (min-width: 1024px) and (max-width: 1139px) {
	.menu-overlay__main {
		font-size: clamp(1.3rem, 2.8vw + 0.4rem, 2.2rem);
	}
	
	.menu-overlay__links {
		width: 45%;
		padding: 38px 22px;
	}
	
	.menu-overlay__details {
		width: 55%;
		padding: 32px;
	}
	
	.menu-overlay__detail {
		padding: clamp(28px, 3vw, 40px);
	}
	
	.navbar {
		top: 16px;
	}
	
	.navbar.scrolled {
		margin: 0 14px;
		width: calc(100% - 28px);
		padding: 11px 0;
	}
	
	.logo-wrapper {
		height: 42px;
		padding: 9px 13px;
	}
	
	#menu-toggle {
		width: 42px;
		height: 42px;
	}
}

/* Medium desktop screens (1140px - 1199px) */
@media (min-width: 1140px) and (max-width: 1199px) {
	.menu-overlay__main {
		font-size: clamp(1.4rem, 3vw + 0.4rem, 2.5rem);
	}
	
	.menu-overlay__links {
		width: 48%;
		padding: 40px 26px;
	}
	
	.menu-overlay__details {
		width: 52%;
		padding: 36px;
	}
	
	.menu-overlay__detail {
		padding: clamp(30px, 3.5vw, 44px);
	}
	
	.navbar {
		top: 17px;
	}
	
	.navbar.scrolled {
		margin: 0 16px;
		width: calc(100% - 32px);
	}
}

/* Standard desktop screens (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
	.menu-overlay__main {
		font-size: clamp(1.5rem, 3.2vw + 0.4rem, 3rem);
	}
	
	.menu-overlay__links {
		width: 50%;
		padding: 42px 28px;
	}
	
	.menu-overlay__details {
		width: 50%;
		padding: 38px;
	}
	
	.menu-overlay__detail {
		padding: clamp(32px, 3.8vw, 46px);
	}
	
	.navbar {
		top: 18px;
	}
	
	.navbar.scrolled {
		margin: 0 18px;
		width: calc(100% - 36px);
	}
}

/* Large desktop screens (1440px and above) */
@media (min-width: 1440px) {
	.menu-overlay__main {
		font-size: clamp(1.6rem, 3.5vw + 0.5rem, 3.8rem);
	}
	
	.menu-overlay__links {
		padding: 44px 30px;
	}
	
	.menu-overlay__details {
		padding: 40px;
	}
	
	.menu-overlay__detail {
		padding: clamp(32px, 4vw, 48px);
	}
}

@media (max-width: 768px) {
	.navbar {
		top: 12px;
	}
	
	.menu-overlay__links {
		width: 100%;
		padding: 32px 20px;
	}

	.menu-overlay__details {
		display: none;
	}
	
	/* Hero responsive styles are now handled by Tailwind classes */
	.hero__header {
		max-width: 100%;
	}
	
	.hero__cta {
		max-width: 100%;
	}

	#hero-section {
		min-height: 520px;
		padding: 32px 0;
	}

	#hero-section .hero__background {
		background: linear-gradient(180deg, rgba(2, 23, 42, 0.7), rgba(2, 23, 42, 0.9));
	}

	#hero-section .hero__video {
		opacity: 0.8;
		transform: scale(1.08);
	}

	#hero-section .hero__background::after {
		background: linear-gradient(185deg, rgba(2, 23, 42, 0.55) 0%, rgba(2, 23, 42, 0.76) 65%, rgba(2, 23, 42, 0.88) 100%);
	}

	#hero-section .hero__overlay {
		background: radial-gradient(circle at 20% 20%, rgba(225, 183, 85, 0.116), transparent 55%), linear-gradient(120deg, rgb(7 50 85 / 8%) 0%, rgb(7 50 85 / 0%) 100%);
	}
}
