body {
	font-family: "Lato", sans-serif;
	background-color: #FFFAFA; /* Snow */
	color: #333;
	overflow-x: hidden;
	overflow-y: scroll ;
}
h1, h2, h3, h4, h5, h6 {
	font-family: 'Playfair Display', serif;
}
.serif {
	font-family: 'Playfair Display', serif;
}
.nav-link {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-weight: 400;
}
.active-nav-link {
	font-weight: bold;
	color: #D1A0A0; 
}
nav a:not(.active-nav-link):hover {
	color: #D1A0A0;
}
nav a {
	transition: color 0.3s ease;
}
.gallery-grid {
	align-items: start;
}
.gallery-item {
	opacity: 0;
	transition: opacity 0.7s ease-in-out, transform 0.5s ease-out;
	transform: translateY(20px);
	will-change: opacity, transform;
	background-color: #f0f0f0;
}
.gallery-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

#about-me-section { visibility: hidden;} /* Hide section initially before animation */

.about-me-image-container { 
	max-width: 300px; /* Max width for image on larger screens */
	width: 100%; /* Full width on smaller screens */
	margin-left: auto; 
	margin-right: auto;
}
.about-me-image-container img {
	display: block;
}

.form-input {
	border: 1px solid #E0E0E0;
	padding: 0.75rem;
	border-radius: 0.375rem;
	width: 100%;
	transition: border-color 0.3s ease;
}
.form-input:focus {
	outline: none;
	border-color: #D1A0A0;
	box-shadow: 0 0 0 0.125rem rgba(209, 160, 160, 0.25);
}
.btn-primary {
	background-color: #B08D8D;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	transition: background-color 0.3s ease, opacity 0.3s ease;
	border: none;
}
.btn-primary:hover:not(:disabled) {
	background-color: #A07D7D;
}
.btn-primary:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
.footer-icon {
	transition: transform 0.3s ease;
}
.footer-icon:hover {
	transform: scale(1.1);
}

.hamburger {
	cursor: pointer;
	padding: 0px;
	z-index: 101;
}
.hamburger div {
	width: 25px;
	height: 3px;
	background-color: #333;
	margin: 5px 0;
	transition: 0.4s;
}
.hamburger.open div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.open div:nth-child(2) { opacity: 0; }
.hamburger.open div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.mobile-menu {
	display: flex;
	flex-direction: column;
	background-color: #FFFDFB; /* Slightly creamier white for menu */
	position: absolute;
	top: 100%;
	right: 0; /* Align to the right */
	width: max-content; /* Elastic width */
	min-width: 200px; /* Minimum width */
	padding: 0.5rem 0; /* Padding top/bottom for the menu itself */
	border: 1px solid #c5bab3; /* Softer border color */
	border-radius: 0.375rem; /* Rounded corners */
	box-shadow: 0 6px 12px rgba(0,0,0,0.1);
	z-index: 100;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transform: translateY(-25px) translateX(15px); /* Start slightly off for animation */
	transition: max-height 0.4s ease-out, opacity 0.2s ease-out, transform 0.4s ease-out;
}
.mobile-menu.open {
	opacity: 1;
	max-height: calc(100vh - 80px); /* Max height considering header */
	transform: translateY(5px) translateX(0); /* Settle slightly below header */
}
.mobile-menu a {
	padding: 0.75rem 1.5rem; /* Increased padding inside links */
	text-align: left; /* Align text to left */
	font-size: 1.1rem; /* Larger text */
	line-height: 1.6; /* Increased line spacing */
	border-bottom: 1px solid #F3EDE9; /* Lighter separator */
	white-space: nowrap; /* Prevent text wrapping for width calculation */
}
.mobile-menu a:last-child {
	border-bottom: none;
}

@keyframes focusBounce {
	0% { filter: blur(10px); opacity: 0.3; transform: scale(0.99); }
	30% { filter: blur(0px); opacity: 1; transform: scale(1.01); }
	50% { filter: blur(3px); opacity: 0.9; transform: scale(0.995); }
	70% { filter: blur(0px); opacity: 1; transform: scale(1.005); }
	85% { filter: blur(1px); opacity: 0.98; transform: scale(1); }
	100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}
.animate-focus-bounce {
	visibility: visible !important; /* Make visible before animation */
	animation: focusBounce 2s ease-in-out forwards;
}
.char-counter {
	font-size: 0.8rem;
	color: #666;
	text-align: right;
	margin-top: -0.25rem;
	margin-bottom: 0.5rem;
}

/* Page Shutter Transition - Vertical */
#page-transition-shutter {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: transparent;
	z-index: 9999;
	pointer-events: none;
	display: flex;
	flex-direction: column; /* Stack blades vertically */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.1s ease-out, visibility 0.1s ease-out;
}
#page-transition-shutter.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}
.shutter-blade {
	width: 100%; /* Full width */
	height: 50%; /* Half height */
	background-color: #1a1a1a;
	transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Top blade starts above, bottom blade starts below */
.shutter-blade-top { transform: translateY(-100%); }
.shutter-blade-bottom { transform: translateY(100%); }

/* Closing: blades move to cover the screen */
#page-transition-shutter.closing .shutter-blade-top { transform: translateY(0%); }
#page-transition-shutter.closing .shutter-blade-bottom { transform: translateY(0%); }

/* Closed: blades stay covering the screen */
#page-transition-shutter.closed .shutter-blade-top { transform: translateY(0%); }
#page-transition-shutter.closed .shutter-blade-bottom { transform: translateY(0%); }

/* Opening: blades move back off-screen */
#page-transition-shutter.opening .shutter-blade-top { transform: translateY(-100%); }
#page-transition-shutter.opening .shutter-blade-bottom { transform: translateY(100%); }
