:root {
	--bg-gradient: linear-gradient(to right, #f8bbd0, #d1c4e9);
	--card-bg: rgba(255, 255, 255, 0.7);
	--text-color: black;
	--bg-one: #d1c4e9;
	--bg-two: #f8bbd0;
	--bg-three: #ffccbc;
}

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

body {
	font-family: 'Segoe UI', sans-serif;
	overflow: hidden;
	/* Prevent double scrollbars */
	height: 100vh;
	font-size: clamp(1rem, 1.75vw, 1.25rem);
}

ul,
li {
	margin-left: 0.7rem;
}

/* Background Layers */
.background-texture {
	position: fixed;
	inset: 0;
	z-index: -1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
	overflow: hidden;
	background-color: black;
}

.background-texture>div {
	scale: 1.7;
	opacity: 0.2;
}

.marquee,
.marquee-outline {
	font-weight: 900;
	white-space: nowrap;
	display: flex;
	color: var(--bg-one);
	line-height: 0.9;
	will-change: transform;
}

.marquee-outline {
	color: transparent;
	-webkit-text-stroke: 2px var(--bg-one);
}

/* Varied sizes and slight overlapping */
.marquee:nth-child(1) {
	font-size: 12vw;
	margin-bottom: -2vw;
}

.marquee-outline:nth-child(2) {
	font-size: 10vw;
	margin-bottom: -1.5vw;
}

.marquee:nth-child(3) {
	font-size: 14vw;
	margin-bottom: -3vw;
}

.marquee-outline:nth-child(4) {
	font-size: 9vw;
	margin-bottom: -1vw;
}

.marquee:nth-child(5) {
	font-size: 11vw;
	margin-bottom: -2vw;
}

.marquee-outline:nth-child(6) {
	font-size: 13vw;
	margin-bottom: -2.5vw;
}

.marquee:nth-child(7) {
	font-size: 10vw;
	margin-bottom: -1.5vw;
}

.marquee-outline:nth-child(8) {
	font-size: 12vw;
}

/* Container & Snap Logic */
.scroll-container {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	height: 100vh;
	scroll-behavior: smooth;
}

.panel {
	min-width: 100vw;
	height: 100vh;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* The Card */
.card {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	max-width: 800px;
	max-height: 800px;
	padding: 3rem;
	border-radius: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	color: var(--text-color);
	overflow-y: scroll;
	text-wrap: pretty;
	opacity: 90%;
}

.card h2 {
	margin-bottom: 1rem;
	font-size: 3rem;
}

/* UI Elements */
.side-nav {
	position: fixed;
	left: 0;
	top: 50px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 15vw;
}

.nav-item {
	background: var(--bg-one);
	border: none;
	padding: 12px 20px;
	color: white;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
	border-radius: 0 8px 8px 0;
	transform: translateX(-50%);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	opacity: 0.7;
}

.nav-item:hover {
	transform: translateX(-10%);
	opacity: 0.9;
}

.nav-item.active {
	transform: translateX(0);
	scale: 1.25;
	opacity: 1;
	box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.linkedin-btn {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--bg-one);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.controls {
	position: fixed;
	bottom: 60px;
	right: 30px;
	display: flex;
	gap: 15px;
}

.arrow {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: none;
	background: var(--bg-one);
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
}

.bottom-panel {
	position: fixed;
	bottom: 0;
	width: 100%;
	background: var(--bg-one);
	backdrop-filter: blur(10px);
	text-align: center;
	padding: 10px 0;
	font-size: 0.9rem;
	color: white;
}

/* Homepage Profile */
#home img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#home h1 {
	text-align: center;
}

#home h3 {
	text-align: center;
}

.profile-pic {
	width: 250px;
	height: 250px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1.5rem;
}

#interests .img {
	width: 100%;
	height: 250px;
	border-radius: 20px;
	margin-top: 0.75rem;
	object-fit: cover;
	object-position: center calc(50% + 80px);
}

#plan h3:first-of-type {
	font-size: 2rem;
}

/* Scroll indicator for cards with overflow */
.card {
	position: relative;
}

.card-wrapper {
	position: relative;
}

.card-wrapper::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
	pointer-events: none;
	border-radius: 0 0 40px 40px;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.card-wrapper.scrolled::after {
	opacity: 0;
}

.scroll-indicator {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	opacity: 1;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.card-wrapper.scrolled .scroll-indicator {
	opacity: 0;
}

.scroll-indicator span {
	font-size: 0.75rem;
	color: var(--text-color);
	opacity: 0.7;
}

.scroll-indicator svg {
	width: 24px;
	height: 24px;
	color: var(--text-color);
	opacity: 0.7;
	animation: bounce 1.5s ease infinite;
}

@keyframes bounce {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(6px);
	}
}

/* Mobile View */
@media (max-width: 768px) {
	.scroll-container {
		flex-direction: column;
		overflow-y: auto;
		overflow-x: hidden;
		scroll-snap-type: y mandatory;
	}

	.card {
		width: 90%;
		padding: 1.5rem;
	}

	.side-nav {
		flex-direction: row;
		top: auto;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
	}

	.nav-item {
		border-radius: 8px 8px 0 0;
		transform: translateY(30%);
	}

	.nav-item:hover {
		transform: translateY(10%);
	}

	.nav-item.active {
		transform: translateY(0);
	}
}