/* Typewriter Effect */
.typewriter h1 {
	overflow: hidden;
	border-right: .15em solid orange;
	white-space: nowrap;
	margin: 0 auto;
	letter-spacing: .15em;
	animation: typing 1.5s steps(40, end), blink-caret .75s step-end infinite;
	will-change: width, border-color;
	transform: translateZ(0);
	max-width: 90rem;
}

@keyframes typing {
	from { width: 0 }
	to { width: 100% }
}

@keyframes blink-caret {
	from, to { border-color: transparent }
	50% { border-color: orange; }
}

/* Gradient Greeting Animation */
.greeting {
	font-family: 'Arial', sans-serif;
	font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
	font-weight: bold;
	background: linear-gradient(90deg, #fc6e51 0%, #da4453 50%, #4a89dc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	background-size: 200% 200%;
	animation: gradientShift 2s linear infinite;
	will-change: background-position;
	transform: translateZ(0);
	max-width: 90rem;
	margin-left: auto;
	margin-right: auto;
}

@keyframes gradientShift {
	0%, 100% { background-position: 100% 50%; }
	50% { background-position: 0% 50%; }
}

.greeting.fadeIn {
	animation: fadeIn 1.5s ease-in-out, gradientShift 2s linear infinite;
}

.greeting.fadeOut {
	animation: fadeOut 1.5s ease-in-out, gradientShift 2s linear infinite;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeOut {
	from { opacity: 1; }
	to { opacity: 0; }
}

/* Image Gallery Styles */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 1rem;
	margin: 2rem auto;
	max-width: min(90rem, 100%);
}

.gallery img {
	width: 100%;
	height: auto;
	border-radius: 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
	will-change: transform;
}

.gallery img:hover {
	transform: scale(1.02) translateY(-4px) translateZ(0);
	box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.2);
}

/* Glass Effect Animations */
@keyframes glassShimmer {
	0% { background-position: -200% center; }
	100% { background-position: 200% center; }
}

.glass-shimmer {
	position: relative;
	overflow: hidden;
}

.glass-shimmer::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	animation: glassShimmer 3s infinite;
}

/* Float Animation for Elements */
@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
}

.float-animation {
	animation: float 3s ease-in-out infinite;
}

/* Smooth Entrance Animations */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slide-in-up {
	animation: slideInUp 0.6s ease-out;
}

/* Glass Card Hover Effect */
.glass-card {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
	transform: translateY(-8px) scale(1.02);
}

/* Intro Text Styles */
.intro-text {
	font-size: 16px;
}

/* Copyright Styles */
#copyright {
	color: grey;
}

#copyright a {
	color: grey;
}

@media screen and (max-width: 736px) {
	.greeting {
		font-size: 3em;
	}
	
	.gallery {
		grid-template-columns: 1fr;
	}
}
