/* base styling font */
html, body {
	font-family: 'Inter', sans-serif;
	overflow: hidden;
	height: 100%;
}

/* background container */
.background-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	overflow: hidden;
	background-color: #0a0a0a;
	transform: scale(1.1);
	transition: transform 0.2s linear;
}

.background-container video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	filter: blur(24px) brightness(0.4);
}

.nav-link.active {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.sub-nav-link.active {
	background-color: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.7);
}

.content-section, .portfolio-content {
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
}

.slide-active {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
	z-index: 10;
}
.slide-off-left {
	transform: translateX(-100%);
	opacity: 0;
	pointer-events: none;
}
.slide-off-right {
	transform: translateX(100%);
	opacity: 0;
	pointer-events: none;
}

.tooltip {
	position: fixed;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	background-color: rgba(20, 20, 20, 0.85);
	backdrop-filter: blur(4px);
	color: #e5e7eb;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	padding: 0;
}

#flag-tooltip {
	width: 220px;
	overflow: hidden;
	transform: translate(-50%, calc(-100% + 10px)) scale(0.95);
}
#flag-tooltip.below {
	transform: translate(-50%, 10px) scale(0.95);
}
#flag-tooltip.visible {
	opacity: 1;
	transform: translate(-50%, calc(-100% - 8px)) scale(1);
}
#flag-tooltip.below.visible {
	transform: translate(-50%, 8px) scale(1);
}
.tooltip-flag {
	width: 100%;
	height: 120px;
	background-size: cover;
	background-position: center;
}
.tooltip-text {
	padding: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

/* pride flag styles */
.pride-flag {
	display: inline-block;
	width: 48px;
	height: 28px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: transform 0.2s ease;
	cursor: pointer;
}
.flag-container:hover .pride-flag {
	transform: scale(1.1);
}
.flag-trans {
	background: linear-gradient(to bottom, #5BCEFA 20%, #F5A9B8 20% 40%, #FFFFFF 40% 60%, #F5A9B8 60% 80%, #5BCEFA 80%);
}

#pronoun-tooltip {
	padding: 0.75rem;
	width: max-content;
	max-width: 300px;
	line-height: 1.5;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}
#pronoun-tooltip.visible {
	opacity: 1;
	visibility: visible;
}

/* music player styles */
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	width: 100%;
	--track-progress: 0%;
}
/* Track */
input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(to right, #FFE0C2 var(--track-progress), rgba(255, 255, 255, 0.2) var(--track-progress));
	height: 4px;
	border-radius: 2px;
}
input[type="range"]::-moz-range-track {
	background: linear-gradient(to right, #FFE0C2 var(--track-progress), rgba(255, 255, 255, 0.2) var(--track-progress));
	height: 4px;
	border-radius: 2px;
}
/* Thumb */
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	margin-top: -4px;
	background-color: #fff;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	transition: transform 0.1s ease-in-out;
}
input[type="range"]::-moz-range-thumb {
	border: none;
	background-color: #fff;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	transition: transform 0.1s ease-in-out;
}
input[type="range"]:hover::-webkit-slider-thumb {
	transform: scale(1.2);
}
input[type="range"]:hover::-moz-range-thumb {
	transform: scale(1.2);
}

main {
	transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#pfp {
	transition: transform 0.1s linear;
}

/* Visualizer Canvas */
#visualizer-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0.2;
}

/* Rain Canvas */
#rain-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
}
#rain-canvas.active {
	opacity: 1;
}

/* Rain Toggle */
.rain-toggle.active {
	background-color: rgba(255, 255, 255, 0.15);
}
.rain-toggle.active i {
	color: #FFE0C2;
}

/* 3D Tilt container */
.tilt-card {
	transform-style: preserve-3d;
	transform: perspective(1000px);
}

/* Tilt card fixes */
.social-card {
	transition: background-color 0.2s ease-in-out;
}
.social-card:hover i {
	color: #fff;
}

#portfolio-content-wrapper {
	scrollbar-width: none;
	-ms-overflow-style: none;
	overflow: hidden;
}
#portfolio-content-wrapper::-webkit-scrollbar {
	display: none;
}