/* Visual Identity Variables */
:root {
	--bg-primary: #0a192f;
	--bg-secondary: #10284b;
	--accent-primary: #cce1ff;
	--accent-secondary: #cce1ff90;
	--accent-tertiary: #cce1ff30;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

* {
	-webkit-tap-highlight-color: transparent; /* Removes highlight color on mobile */
	-webkit-user-select: none; /* Disables text selection on Chrome, Safari, Opera */
	user-select: none; /* Disables text selection on Standard */
}

html {
	scroll-behavior: smooth; /* Enables smooth scrolling when clicking navbar links */
}

body {
	font-family: 'Montserrat', sans-serif;
	background-color: var(--bg-primary); /* Fallback for white space with gradient background in mobile and unsupported browsers */
	background-image: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
	background-attachment: scroll;
	color: var(--accent-primary);
	line-height: 1.6;
	font-size: 16px;
}

h1,
h2 {
	font-weight: 700;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
	border-bottom: 2px solid var(--accent-tertiary);
	padding-bottom: 0.5rem;
	margin-top: 2rem;
}

h3 {
	font-size: 1.2rem;
	color: var(--accent-primary);
	margin-bottom: 0;
}

h4 {
	font-size: 1.1rem;
	margin: auto 0;
}

p,
span,
li {
	font-weight: 400;
	color: var(--accent-secondary);
}

li i, .scroll-tip i {
	margin-right: 0.8rem;
	scale: 1.5;
}

h2 i {
	margin-right: 1rem;
	scale: 1.2;
}

a {
	color: var(--accent-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--accent-primary);
}

/* Navigation Bar */
nav {
	position: fixed;
	top: 0;
	width: calc(100% - 2rem);
	margin: 0.5rem 1rem;
	height: 4rem;
	background: rgba(10, 25, 47, 0.85);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 0 1.5rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	border-radius: 1rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
}

.navscroll-hidden {
	opacity: 1;
	transform: translateY(-6rem);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navscroll-show {
	opacity: 1;
	transform: translateY(0);
}

.nav-profile {
	height: 3rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.profile-img {
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--accent-tertiary);
}

.nav-profile .profile-img {
	height: 100%;
}

.nav-profile h4 {
	margin: 0;
	line-height: 1.3rem;
}

.nav-profile span {
	font-size: 0.9rem;
}

nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	gap: 1.5rem;
}

nav a {
	font-weight: 400;
	font-size: 0.9rem;
}

/* Layout */
.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem 4rem 2rem;
}

/* Hero Section & Profile Image */
header {
	text-align: center;
	margin-bottom: 4rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

header > * {
	margin: 0;
}

header .profile-img {
	width: 180px;
	max-width: 50%;
	margin: 1rem auto 0.5rem;
}

header h1.name {
	line-height: 1;
	margin-bottom: 0.5rem;
}

header p.title {
	font-size: 1.2rem;
	color: var(--accent-secondary);
	margin-bottom: 1rem;
}

header ul {
	margin-bottom: 0.3rem;
	justify-content: center;
}

.scroll-tip {
	position: sticky;
	bottom: 1rem;
	width: fit-content;
	margin: auto;
	text-align: center;
	backdrop-filter: blur(10px);
}

.scroll-tip i {
	animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Sections */
section {
	margin-bottom: 6rem;
	scroll-margin-top: 6rem; /* Ensures the section title isn't hidden under the sticky navbar on scroll with anchor */
	opacity: 0;
	transform: translateY(0.5rem);
}

.section-show {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Experience Cards */
.card {
	background: rgba(16, 40, 75, 0.4);
	border: 1px solid var(--accent-tertiary);
	border-radius: 1rem;
	padding: 1.5rem;
	margin-bottom: 1rem;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.card-header span {
	font-size: 0.9rem;
}

/* Items Chips */
.items-group {
	margin-bottom: 1.5rem;
}

.items-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin-top: 0.5rem;
}

.items-list li, .scroll-tip {
	background: #cce1ff1a;
	color: var(--accent-primary);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	border: 1px solid var(--accent-tertiary);
	transition: all 0.3s ease;
}

.items-list li:hover, .scroll-tip:hover {
	border-color: var(--accent-primary);
	scale: 1.08;
}

.interactive-list li, .scroll-tip {
	cursor: pointer;
}

.interactive-list li:hover, .scroll-tip:hover {
	background-color: var(--accent-primary);
	color: var(--bg-primary);
}

.contact-list li {
	background-color: var(--accent-secondary);
	color: var(--bg-primary);
	font-weight: 700;
}

/* Contact/Footer */
.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin-top: 1rem;
}

.contact-links li a {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Responsive */
@media (max-width: 850px) {
	h1 {
		font-size: 2rem;
	}

	header p.title {
		font-size: 1.1rem;
	}

	nav ul {
		display: none;
	}

	.card-header {
		flex-direction: column;
	}

	.contact-links {
		flex-direction: column;
		gap: 0.5rem;
	}
}