body {
	margin: 0;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: clamp(14px, 2vw, 16px);
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1rem 0;
	font-weight: 400;
	line-height: 1.3;
	color: #222;
}

h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	text-align: center;
	margin-bottom: 2rem;
}

h2 {
	font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
	font-size: clamp(1.2rem, 3vw, 1.5rem);
}

a {
	color: inherit;
}

code {
	font-family: menlo, inconsolata, monospace;
	font-size: calc(1em - 2px);
	color: #555;
	background-color: #f0f0f0;
	padding: 0.2em 0.4em;
	border-radius: 2px;
}

@media (min-width: 400px) {
	body {
		font-size: 16px;
	}
}

/* Navigation styles from Nav.svelte */
.nav{
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	transition: all 0.3s ease;
}

.topnav a:hover{
	color: limegreen;
	transition: color 0.3s ease;
}

.link{
	padding: 1rem;
	text-decoration: none;
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 500;
	transition: all 0.3s ease;
}

.active-link{
	padding: 1rem;
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: limegreen;
	font-weight: 600;
}

.home-btn img{
	height: clamp(40px, 8vw, 56px);
	width: auto;
	transition: transform 0.3s ease;
}

.home-btn:hover{
	transform: scale(1.1);
	filter: brightness(1.2) saturate(1.2);
}

.menu-btn{
	padding: 1rem;
	text-decoration: none;
	display: none;
}

.menu-btn:hover{
	cursor: pointer;
}

@media only screen and (max-width: 600px) {
	.nav{
		justify-content: space-between;
	}

	.nav .topnav{
		display: none;
	}

	.menu-btn{
		display: inline-block;
		text-decoration: none;
		max-height: 60px;
		font-size: xx-large;
	}

	.menu-btn:hover{
		cursor: pointer;
	}
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 15%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

.overlay .closebtn {
  cursor: pointer;
}

@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

/* Home styles from index.svelte */
.index{
	width: 100%;
	min-height: 100vh;
	background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('uf.jpg') no-repeat center;
	background-size: cover;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.top{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	animation-name: floating;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
	text-align: center;
}

.profile-images {
	display: flex;
	flex-direction: row;
	gap: 2rem;
	align-items: center;
	justify-content: center;
	margin: 1rem 0;
}

.profile-images img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	transition: transform 0.3s ease;
}

.profile-images img:hover {
	transform: scale(1.05);
}

.glass{
	padding: 3rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 800px;
	margin: 0 auto;
}

.home{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-top: 80px; /* Account for fixed nav */
}

h3{
	padding: 1rem;
	font-weight: 300;
	color: #555;
}

.scrollUp {
	display: none;
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 99;
	font-size: 18px;
	border: none;
	outline: none;
	background: linear-gradient(135deg, limegreen, #32cd32);
	color: white;
	cursor: pointer;
	padding: 15px;
	border-radius: 50%;
	box-shadow: 0 5px 15px rgba(50,205,50,0.3);
	transition: all 0.3s ease;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scrollUp:hover {
	background: linear-gradient(135deg, #32cd32, limegreen);
	transform: scale(1.1);
	box-shadow: 0 8px 25px rgba(50,205,50,0.4);
}

@keyframes floating {
	0% { transform: translate(0,  0px); }
	50%  { transform: translate(0, 15px); }
	100%   { transform: translate(0, -0px); }
}

.newly-added {
	animation: flyin 1.2s ease forwards;
	opacity: 0;
	transform: scale(2);
	filter: blur(4px);
}

@keyframes flyin {
	to { 
		filter: blur(0);
		transform: scale(1);
		opacity: 1;
	}
}

@media only screen and (max-width: 600px) {
	h3{
		padding-top: 50px;
		text-align: center;
	}
}

/* Skills styles */
.skills{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 4rem 2rem;
	background-color: #fff;
}

.cards{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 2rem;
	justify-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.item{
	padding: 1.5rem;
	animation: flyin 1.2s ease forwards;
	opacity: 0;
	transform: scale(2);
	filter: blur(4px);
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.item:hover{
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.item img{
	width: auto;
	height: clamp(80px, 15vw, 120px);
	max-width: 100%;
	transition: transform 0.3s ease;
}

.item:hover img{
	transform: scale(1.1);
}

@media only screen and (max-width: 600px) {
	.item img{
		height: 100px;
		width: auto;
	}
}

/* Experience styles */
.experience{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 4rem 2rem;
    background-color: #f5f5f5;
}

.job{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 1000px;
    width: 100%;
}

.job:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.job .left{
    flex: 1;
    padding: 1.5rem;
    border-radius: 10px;
    margin-right: 1rem;
}

.experience img{
    width: auto;
    height: clamp(100px, 20vw, 150px);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.job:hover img{
    transform: scale(1.05);
}

@media only screen and (max-width: 600px) {
.experience{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.job{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
}

.job .left{
    max-width: 300px;
    background-color: white;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.experience img{
    width: auto;
    height: 100px;
}
}

/* Projects styles */
.projects{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 4rem 2rem;
		background-color: #fff;
}
.cards{
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 2rem;
		max-width: 1200px;
		margin: 0 auto;
}

.projects a{
	text-decoration: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.card{
	display: flex;
	margin: 0;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	border-radius: 15px;
	background-color: white;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	overflow: hidden;
}

.card:hover{
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card img{
	border-bottom: none;
	transition: transform 0.3s ease;
}

.card:hover img{
	transform: scale(1.05);
}

.card p{
	max-width: 90%;
	text-align: center;
	padding: 0 1rem;
	color: #666;
}

.card h3{
	margin: 1rem auto;
	max-width: 90%;
	text-align: center;
	color: #333;
}

@media only screen and (max-width: 600px) {
	.card img{
		width: 300px;
	}

	.card p{
		max-width: 200px;	
	}

	.card h3{
		margin: 0 auto;
		max-width: 280px;
		text-align: center;
	}
}

/* Education styles */
@font-face {
	font-family: 'diplomaregular';
	src: url('../diploma.ttf') format('truetype'),
		url('../diploma-webfont.woff2') format('woff2'),
		url('../diploma-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

.education{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-family: serif;
	background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('uf.jpg') no-repeat center;
	background-size: cover;
	background-attachment: fixed;
	color: white;
	padding: 4rem 2rem;
	min-height: 60vh;
	align-items: center;
}

.left{
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: rgba(188, 188, 188, 0.3);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	max-width: 600px;
}

.right{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
}

.education * {
	color: white;
}

.major{
	font-family: diplomaregular;
	font-size: clamp(2rem, 5vw, 3rem);
	text-align: center;
	margin-bottom: 1rem;
}

.cert{
	font-family: diplomaregular;
	font-size: clamp(1.5rem, 4vw, 2rem);
	text-align: center;
	margin-bottom: 1rem;
}

@media only screen and (max-width: 600px) {
	.education{
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		padding-left: 20px;
		padding-right: 20px;
	}
	.education img{
		width: 300px;
		height: auto;
	}
	.left{
		padding-right: 0;
		text-align: center;
		align-items: center;
	}
	.left ul{
		text-align: left;
	}
}

/* Contact styles */
.contact{
	padding: 4rem 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
	color: white;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	min-height: 60vh;
	box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.socials{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
}

.socials i{
	padding: 15px;
	font-size: clamp(2rem, 5vw, 3rem);
	color: #ccc;
	transition: all 0.3s ease;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	margin: 0 0.5rem;
}

.socials i:hover{
	color: limegreen;
	transform: scale(1.2);
	background: rgba(50,205,50,0.2);
}

.contact form{
	font-size: clamp(1rem, 2vw, 1.2rem);
	margin: 2rem 0;
}

.body{
	height: 150px;
	width: clamp(200px, 50vw, 400px);
	box-sizing: border-box;
	border: 2px solid #555;
	border-radius: 8px;
	background-color: #333;
	resize: none;
	padding: 1rem;
	font-family: inherit;
	color: white;
	transition: border-color 0.3s ease;
}

.body:focus{
	border-color: limegreen;
	outline: none;
}

.name{
	height: auto;
	width: clamp(200px, 50vw, 400px);
	border: 2px solid #555;
	border-radius: 8px;
	background-color: #333;
	padding: 1rem;
	font-family: inherit;
	color: white;
	transition: border-color 0.3s ease;
}

.name:focus{
	border-color: limegreen;
	outline: none;
}

.contact button{
	color: white;
	background: linear-gradient(135deg, limegreen, #32cd32);
	border-radius: 25px;
	padding: 15px 30px;
	font-size: clamp(1rem, 2vw, 1.2rem);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(50,205,50,0.3);
	font-weight: 600;
}

.contact button:hover{
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(50,205,50,0.4);
	background: linear-gradient(135deg, #32cd32, limegreen);
}

.resume-btn {
	display: inline-block;
	background-color: limegreen;
	color: white;
	padding: 12px 24px;
	text-decoration: none;
	border-radius: 5px;
	font-size: 1.1rem;
	font-weight: bold;
	margin: 1rem 0;
	transition: background-color 0.3s;
}

.resume-btn:hover {
	background-color: #228b22;
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	text-decoration: none;
	color: white;
}

h4.show-msg{
	display: inline;
}

h4.hide{
	display: none;
}

/* Footer styles */
.footer {
	background: linear-gradient(135deg, #333, #444);
	color: white;
	text-align: center;
	padding: 3rem 2rem;
	margin-top: 2rem;
	box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.footer p {
	margin: 0.5rem 0;
	font-size: clamp(0.9rem, 2vw, 1rem);
	font-weight: 300;
}

.footer-links a {
	color: #ddd;
	text-decoration: none;
	margin: 0 1rem;
	font-size: clamp(0.9rem, 2vw, 1rem);
	transition: color 0.3s ease;
	font-weight: 400;
}

.footer-links a:hover {
	color: limegreen;
}

@media only screen and (max-width: 600px) {
	.nav{
		justify-content: space-between;
		padding: 0.5rem 1rem;
	}

	.nav .topnav{
		display: none;
	}

	.menu-btn{
		display: inline-block;
		text-decoration: none;
		max-height: 60px;
		font-size: clamp(1.5rem, 5vw, 2rem);
	}

	.menu-btn:hover{
		cursor: pointer;
	}

	.glass{
		padding: 2rem 1rem;
		margin: 1rem;
	}

	h3{
		padding-top: 1rem;
		text-align: center;
		font-size: clamp(1rem, 4vw, 1.2rem);
	}

	.cards{
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		gap: 1rem;
	}

	.item{
		padding: 1rem;
		min-height: 100px;
	}

	.job{
		flex-direction: column;
		padding: 1rem;
		margin-bottom: 1rem;
	}

	.job .left{
		margin-right: 0;
		margin-bottom: 1rem;
		max-width: none;
	}

	.education{
		flex-direction: column;
		padding: 2rem 1rem;
		text-align: center;
	}

	.left{
		padding: 1rem;
		margin-bottom: 1rem;
		max-width: none;
	}

	.socials{
		flex-wrap: wrap;
		justify-content: center;
	}

	.socials i{
		margin: 0.5rem;
	}

	.contact form{
		width: 100%;
		max-width: 300px;
	}

	.body, .name{
		width: 100%;
	}

	.projects .cards{
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.card img{
		width: 100%;
		height: auto;
	}
}